/* ============================================================
   TOKENWEB LANDING — Iteration 2
   Cinematic typographic compositions
   ============================================================ */

html {
    scroll-behavior: auto; /* GSAP handles smooth scroll */
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-sm) 0;
    background-color: transparent;
    transition: background-color 0.3s ease, transform 0.3s ease;
    mix-blend-mode: difference;
}

.nav.nav--solid {
    background-color: rgba(0,0,0,0.9);
    mix-blend-mode: normal;
    border-bottom: var(--border-base);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: #fff;
    text-transform: uppercase;
    border-bottom: none;
    letter-spacing: 0.05em;
}

.nav-logo:hover {
    color: var(--color-accent);
}

.nav-link {
    border-bottom: none;
}

.nav-link .btn {
    border-bottom: var(--border-base);
}


/* ── Screens ───────────────────────────────────────────────── */
.screen {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}


/* ============================================================
   HERO
   ============================================================ */
.screen-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-black);
    color: var(--color-text-inverse);
    padding: 0 var(--space-lg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--color-bg-black);
    background-image:
        repeating-radial-gradient(
            circle at center,
            transparent 0,
            transparent 830px,
            rgba(249, 90, 35, 0.05) 830px,
            rgba(249, 90, 35, 0.05) 880px
        );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1100px;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 5.5rem);
    line-height: 1.05;
    color: var(--color-text-inverse);
    margin-bottom: var(--space-xl);
    will-change: transform;
}

.hero-title .char {
    display: inline-block;
    will-change: transform, opacity;
}

.hero-dot {
    color: var(--color-accent);
    display: inline-block;
}

.hero-verbs {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.hero-verb {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    opacity: 0;
    will-change: transform, opacity;
}

.hero-scroll-hint {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.hero-scroll-hint .text-mono {
    font-size: var(--text-2xl);
    color: var(--color-accent);
    animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50%      { transform: translateY(12px); opacity: 1; }
}


/* ============================================================
   TYPOGRAPHIC SCREENS
   ============================================================ */
.screen-typo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.screen-typo--dark {
    background-color: var(--color-bg-black);
    color: var(--color-text-inverse);
}

.screen-typo--light {
    background-color: var(--color-bg-main);
    color: var(--color-text-primary);
    background-image:
        repeating-radial-gradient(
            circle at center,
            transparent 0,
            transparent 830px,
            var(--color-bg-accent) 830px,
            var(--color-bg-accent) 880px
        );
}

.typo-pinned {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ── Word sizes ────────────────────────────────────────────── */
.typo-word {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    will-change: transform, opacity;
    opacity: 0;
    position: absolute;
}

.typo-word--mega {
    font-size: clamp(4rem, 14vw, 14rem);
    font-weight: 400;
}

.typo-word--giant {
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 400;
}

.typo-word--accent {
    font-size: clamp(1.8rem, 5vw, 5rem);
    color: var(--color-accent);
    font-weight: 400;
}

.typo-word--medium {
    font-size: clamp(1.4rem, 3.5vw, 3.5rem);
    font-weight: 400;
}

.typo-word--mono {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 3vw, 3rem);
    font-weight: var(--weight-bold);
    text-transform: none;
    letter-spacing: 0;
}

.typo-word--small {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Light screen overrides */
.screen-typo--light .typo-word--small {
    color: var(--color-text-secondary);
}


/* ============================================================
   FINAL SCREEN (Architecture + CTA)
   ============================================================ */
.screen-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.final-cta {
    position: absolute;
    bottom: 12vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    z-index: 2;
    white-space: nowrap;
}

.final-cta-text {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--color-text-inverse);
    margin-bottom: var(--space-lg);
    max-width: none;
}


/* ============================================================
   CONTACT
   ============================================================ */
.screen-contact {
    min-height: auto;
    padding: var(--space-3xl) 0;
    background-color: var(--color-bg-main);
    background-image:
        repeating-radial-gradient(
            circle at center,
            transparent 0,
            transparent 830px,
            var(--color-bg-accent) 830px,
            var(--color-bg-accent) 880px
        );
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-card {
    max-width: 600px;
    width: 100%;
}

.contact-card-body {
    padding: var(--space-xl);
}

.contact-heading {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-form .btn-block {
    grid-column: 1 / -1;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--color-bg-black);
    padding: var(--space-lg) 0;
    border-top: 3px solid var(--color-accent);
}

.footer-inner {
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-copy {
    font-size: var(--text-xs);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero-verbs {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .typo-word--mega {
        font-size: clamp(1.8rem, 8vw, 3.5rem);
    }

    .typo-word--giant {
        font-size: clamp(1.5rem, 7vw, 2.8rem);
    }

    .typo-word--accent {
        font-size: clamp(1.2rem, 5.5vw, 2.2rem);
    }

    .typo-word--medium {
        font-size: clamp(1.1rem, 4.5vw, 1.8rem);
    }

    .typo-word--mono {
        font-size: clamp(1rem, 4vw, 1.6rem);
    }

    .typo-word--small {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
    }

    /* Prevent clipping for the longest string */
    [data-word="Internal AI-as-a-Service"] {
        font-size: clamp(0.85rem, 4vw, 1.4rem) !important;
    }

    /* Push contact card down so it is not covered by fixed nav bar when it solidifies */
    .screen-contact {
        padding-top: calc(var(--space-3xl) + 60px);
    }

    /* Make final screen CTA lower down on mobile to avoid header collision */
    .final-cta {
        bottom: 6vh;
    }

    .final-cta-text {
        font-size: var(--text-md);
        margin-bottom: var(--space-md);
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-field--full,
    .contact-form .btn-block {
        grid-column: auto;
    }
}

