:root {
    --primario: rgb(246, 246, 246);
    --primario-rgb: 246, 246, 246;

    --secondario: rgb(217, 217, 217);
    --secondario-rgb: 217, 217, 217;

    --terziario: rgb(32, 32, 32);
    --terziario-rgb: 32, 32, 32;

    --space: #000000;
    --space-rgb: 0, 0, 0;

    --details: rgb(151, 151, 151);
    --details-rgb: 151, 151, 151;

    --testo: #f6f6f6;
    --element-bg: #f6f6f6;
    --element-bg-rgb: 246, 246, 246;
    --element-color: #1a1a1a;

    --tool-chat: #c13338;
    --tool-chat-hover: #a12b2f;
    --tool-chat-rgb: 193, 51, 56;

    --tool-frame: #d29f14;
    --tool-frame-hover: hsl(44, 83%, 38%);
    --tool-frame-rgb: 224, 170, 21;

    --tool-code: #8cb44b;
    --tool-code-hover: hsl(83, 41%, 35%);
    --tool-code-rgb: 154, 189, 97;

    --tool-prompt: #4eb193;
    --tool-prompt-hover: hsl(162, 39%, 40%);
    --tool-prompt-rgb: 78, 177, 147;

    --tool-writing: #3990c6;
    --tool-writing-hover: hsl(203, 55%, 40%);
    --tool-writing-rgb: 57, 144, 198;

    --tool-news: #6a4c94;
    --tool-news-hover: hsl(265, 32%, 34%);
    --tool-news-rgb: 106, 76, 148;

    --star: #FCC438;
    --star-rgb: 252, 196, 56;
}

:root {
    --t-ms: 200ms;
    --t-type: ease-in-out;
    --c-width: 90%;
    --c-max-width:
        /*1300px*/
        68rem;
    --radius: 1rem;
    --font-text: "Raleway", sans-serif;
    --font-header: "Unbounded", sans-serif;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

@supports (-moz-appearance:none) {

    *,
    *::before,
    *::after {
        scrollbar-color: #ffffff68 transparent;
        scrollbar-width: thin;
        scrollbar-width: 4px;
        transition: all calc(var(--t-ms)*2) var(--t-type);
    }
}

::-webkit-scrollbar-track {
    background: transparent;
    padding: 0px
}

::-webkit-scrollbar-thumb {
    background: #ffffff68;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffffc0
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--testo) !important;
    background-color: var(--space);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    background-image: var(--bg-gradient-50);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Safari 15+ */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll !important;
    }
}

.middle {
    flex-grow: 1;
    position: relative;
    width: 100%;
    z-index: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body,
input,
textarea,
select,
button {
    font-family: var(--font-text);
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
}

a {
    color: inherit;
    border-radius: var(--radius);
}

a.nounderline {
    text-decoration: none;
}

a:target:before {
    content: "";
    display: block;
    height: 90px;
    margin: -90px 0 0;
}

br {
    user-select: none;
}

img {
    user-select: none;
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }
}

.container {
    width: var(--c-width);
    max-width: var(--c-max-width);
    margin-left: auto;
    margin-right: auto;
}

.separatore {
    background: linear-gradient(90deg, var(--space), var(--details), var(--space));
    background-size: cover;
    background-position: center;
    height: 1px;
    padding: 1px 0;
    padding-bottom: 0;
    width: 100%;
    display: block;
    z-index: 1;
    position: relative;
}

#particles-js {
    pointer-events: none;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0.3;
}

.container {
    width: var(--c-width);
    max-width: var(--c-max-width);
    margin-left: auto;
    margin-right: auto;
}

.hero {
    height: 100dvh;
    padding: 12rem 2rem;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    position: relative;
}

.hero .glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -5;
}

.hero .glow::after {
    content: "";
    width: 200%;
    height: 200%;
    background: radial-gradient(rgba(38, 0, 255, 0.6), transparent 60%);
    background: radial-gradient(rgba(255, 145, 0, 0.4), transparent 60%);
    background: radial-gradient(rgba(255, 255, 255, 0.3), transparent 60%);
    bottom: -125%;
    right: -50%;
    position: absolute;
    z-index: -2;
}

.hero h4 {
    font-weight: 300;
    z-index: 2;
    text-wrap: balance;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-text);
}

.hero h1 {
    z-index: 2;
    text-wrap: balance;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h1 span,
h2 span {
    background: linear-gradient(45deg, #b248f8 15%, #6380ff, #10cc87);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .shot {
    width: 85%;
    max-width: 68rem;
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: -5rem;
    background-color: rgba(var(--details-rgb), 0.15);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    padding: 1px;
    z-index: 1;
    position: relative;
}

.hero .shot img {
    display: block;
    width: 100%;
    height: auto;
    z-index: 2;
    opacity: 1;
    border-radius: calc(calc(var(--radius) * 2) - 1px);
}

.hero .shot img.desktop {
    max-height: 65dvh;
    object-fit: cover;
    object-position: top;
}

.hero .shot img.mobile {
    display: none;
    max-height: 60dvh;
    object-fit: cover;
    object-position: top;
}

@media only screen and (max-width: 1099px) {
    .hero .shot img.desktop {
        display: none;
    }

    .hero .shot img.mobile {
        display: block;
    }

    .hero .shot {
        max-width: 20rem;
    }

    .hero {
        padding: 10rem 1rem;
        padding-bottom: 0;
    }
}

@media only screen and (max-width: 599px) {
    .hero h4 {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media only screen and (max-width: 449px) {
    .hero h4 {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero .scroller {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1;
}

.hero .scroller.fill {
    z-index: -1;
}

.hero .shot .content::after {
    content: "";
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: calc(var(--radius) * 2);
    background: linear-gradient(0deg, var(--space), transparent);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: all var(--t-ms) var(--t-type);
}

.hero .shot .content:hover::after {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero .shot::before {
    content: "";
    background: radial-gradient(rgba(var(--details-rgb), 1), rgba(255, 145, 0, 0.0) 50%);
    background-size: 200% 200%;
    background-position: 100% 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: auto;
    width: 60%;
    height: 60%;
    transition: all var(--t-ms) var(--t-type);
    pointer-events: none;
    opacity: 1;
    z-index: -1;
}

.hero .shot::after {
    content: "";
    background: radial-gradient(rgba(var(--details-rgb), 1), rgba(255, 145, 0, 0.0) 50%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: 0;
    width: 60%;
    height: 60%;
    transition: all var(--t-ms) var(--t-type);
    pointer-events: none;
    opacity: 1;
    z-index: -1;
}

.middle .desc,
.middle .cta {
    z-index: 1;
    background-color: rgba(var(--space-rgb), 0.7);
    padding: 5rem 0;
}

.middle .desc {
    padding-top: 12rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

@media only screen and (max-width: 760px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.grid>.col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.grid>.col>img {
    width: 90%;
    max-width: 32rem;
    display: block;
    margin: 0 auto;
}

.grid > .col em {
    text-align: center;
    font-size: 75%;
    display: block;
    width: 100%;
    opacity: 0.8;
    margin-bottom: 2rem;
}