/* ═══════════════════════════════════════════════════════════
   AUTOMYTE V6 — Design System & Stylesheet
   Brand Identity CSS: Colors, Typography, Spacing, Animations
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --bg: #050510;
    --surface: #0A0A16;
    --surface-2: #0E0E1C;
    --surface-3: #121222;
    --black: #030305;
    --white: #EDEDF0;
    --g100: #C0C0CC;
    --g200: #8E8EA0;
    --g300: #5C5C6F;
    --g400: #3D3D4E;
    --g500: #24242F;
    --blue: #5064FF;
    --blue-lt: #7080FF;
    --cyan: #00DCDC;
    --red: #FF375A;
    --violet: #B43CFF;
    --green: #34D399;
    --grad: linear-gradient(135deg, #5064FF, #00DCDC);
    --grad-warm: linear-gradient(135deg, #FF375A, #B43CFF);
    --grad-full: linear-gradient(135deg, #5064FF, #00DCDC, #FF375A);
    --grad-text: linear-gradient(135deg, #7080FF, #00DCDC);
    --bdr: rgba(80, 100, 255, .06);
    --bdr-s: rgba(80, 100, 255, .035);
    --bdr-a: rgba(80, 100, 255, .13);
    --a-m: rgba(80, 100, 255, .07);
    --a-g: rgba(80, 100, 255, .14);
    --c-m: rgba(0, 220, 220, .07);
    --r-m: rgba(255, 55, 90, .07);
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-s: cubic-bezier(.45, 0, .15, 1);
    --max: 1320px;
    --px: clamp(24px, 5vw, 72px);
    --rad: 12px;
    --rad-lg: 16px;
    --rad-xl: 24px;
}

/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6
}

::selection {
    background: var(--blue);
    color: #fff
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: inherit;
    cursor: pointer
}

img {
    max-width: 100%;
    display: block
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -60px;
    left: 0;
    background: var(--blue);
    color: #fff;
    padding: 8px 16px;
    z-index: 100001;
    font-size: .85rem;
    transition: top .3s
}

.skip-link:focus {
    top: 0
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px
}

/* ── Grain ── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.012'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000
}

/* ── Custom Cursor ── */
.cur {
    position: fixed;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: width .4s var(--ease), height .4s var(--ease), border-color .3s, background .3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen
}

.cur.h {
    width: 56px;
    height: 56px;
    background: rgba(0, 220, 220, .06);
    box-shadow: 0 0 24px rgba(0, 220, 220, .1)
}

.cur-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 100, 255, .02) 0%, rgba(0, 220, 220, .008) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: left .8s var(--ease), top .8s var(--ease)
}

/* ══════════════════════ PRELOADER ══════════════════════ */
.pre {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 32px
}

.pre-logo {
    opacity: 0;
    animation: fi .5s ease .2s forwards;
    display: flex;
    align-items: center;
    gap: 14px
}

.pre-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(0, 220, 220, .15))
}

.pre-logo span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px
}

.pre-bar {
    width: 200px;
    height: 2px;
    background: var(--g500);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: fi .5s ease .4s forwards
}

.pre-bar div {
    height: 100%;
    width: 0%;
    background: var(--grad);
    border-radius: 2px;
    animation: pb 1.2s var(--ease-s) .6s forwards
}

.pre-txt {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: var(--g300);
    letter-spacing: 2px;
    opacity: 0;
    animation: fi .5s ease .5s forwards
}

.pre.done {
    animation: po .8s var(--ease) forwards
}

@keyframes fi {
    to {
        opacity: 1
    }
}

@keyframes pb {
    to {
        width: 100%
    }
}

@keyframes po {
    0% {
        clip-path: inset(0 0 0 0)
    }

    100% {
        clip-path: inset(0 0 100% 0)
    }
}

/* ══════════════════════ NAV ══════════════════════ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9000;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--px);
    backdrop-filter: blur(40px) saturate(1.5);
    background: rgba(5, 5, 16, .65);
    border-bottom: 1px solid var(--bdr-s);
    transition: transform .4s var(--ease)
}

.nav-hide {
    transform: translateY(-100%)
}

.n-left {
    display: flex;
    align-items: center;
    gap: 10px
}

.n-left img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(0, 220, 220, .12))
}

.n-wm {
    font-family: 'JetBrains Mono', monospace;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .5px
}

.n-wm .d {
    color: var(--cyan)
}

.n-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    background: var(--surface);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid var(--bdr-s)
}

.n-pill {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: .78rem;
    color: var(--g200);
    transition: all .25s
}

.n-pill:hover,
.n-pill.active {
    color: var(--white);
    background: var(--surface-3)
}

.n-right {
    display: flex;
    align-items: center;
    gap: 12px
}

.n-ghost {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: .72rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--g300);
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: color .3s
}

.n-ghost:hover {
    color: var(--g100)
}

.btn-sm {
    height: 34px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 500;
    color: var(--white);
    background: var(--blue);
    border: 1px solid rgba(80, 100, 255, .35);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .35s var(--ease)
}

.btn-sm:hover {
    background: var(--blue-lt);
    box-shadow: 0 0 28px var(--a-g), 0 0 60px var(--a-m);
    transform: translateY(-1px)
}

.btn-sm .arr {
    font-size: .7rem;
    transition: transform .3s
}

.btn-sm:hover .arr {
    transform: translateX(2px)
}

/* ── Mobile Menu ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    z-index: 9001
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s var(--ease)
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.open span:nth-child(2) {
    opacity: 0
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, .97);
    backdrop-filter: blur(40px);
    z-index: 8999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease)
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all
}

.mobile-menu a {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    color: var(--g200);
    transition: color .3s
}

.mobile-menu a:hover {
    color: var(--white)
}

.mob-cta {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(10px);
}

.mobile-menu.open .mob-cta {
    opacity: 1;
    transform: translateY(0);
    transition: all .5s var(--ease) .35s;
}

.mob-btn {
    width: 100%;
    height: 54px;
    font-size: 1rem;
}

.mob-email {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem !important;
    color: var(--g400) !important;
    letter-spacing: .5px;
}

/* ══════════════════════ HERO ══════════════════════ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--px) 80px;
    overflow: hidden
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(80, 100, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 100, 255, .025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, black 20%, transparent 70%)
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none
}

.orb.o1 {
    width: 500px;
    height: 500px;
    background: var(--blue);
    opacity: .05;
    top: 8%;
    right: 15%;
    animation: od 20s ease-in-out infinite
}

.orb.o2 {
    width: 400px;
    height: 400px;
    background: var(--cyan);
    opacity: .03;
    bottom: 15%;
    left: 10%;
    animation: od 25s ease-in-out infinite reverse
}

.orb.o3 {
    width: 350px;
    height: 350px;
    background: var(--red);
    opacity: .025;
    top: 50%;
    left: 45%;
    animation: od 18s ease-in-out infinite;
    animation-delay: -8s
}

@keyframes od {

    0%,
    100% {
        transform: translate(0, 0)
    }

    25% {
        transform: translate(40px, -30px)
    }

    50% {
        transform: translate(-20px, 20px)
    }

    75% {
        transform: translate(30px, 10px)
    }
}

.hero-c {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 10px;
    border: 1px solid var(--bdr);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--g200);
    margin-bottom: 36px;
    background: var(--surface);
    opacity: 0;
    animation: hu 1s var(--ease) 1.8s forwards
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(52, 211, 153, .12);
    animation: pulse 2s ease-in-out infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

.h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3.2rem, 8.5vw, 7.5rem);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -3px;
    margin-bottom: 48px
}

.hl {
    display: block;
    overflow: hidden
}

.hli {
    display: block;
    opacity: 0;
    transform: translateY(100%)
}

.hl:nth-child(1) .hli {
    animation: lu .9s var(--ease) 2s forwards
}

.hl:nth-child(2) .hli {
    animation: lu .9s var(--ease) 2.12s forwards
}

.hl:nth-child(3) .hli {
    animation: lu .9s var(--ease) 2.24s forwards
}

@keyframes lu {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.gt {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.gt-w {
    background: linear-gradient(135deg, #FF375A, #B43CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.thin {
    font-weight: 400;
    color: var(--g300)
}

.hero-ft {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    opacity: 0;
    animation: hu 1s var(--ease) 2.5s forwards
}

.hero-desc {
    max-width: 460px
}

.hero-desc p {
    font-size: 1.02rem;
    color: var(--g200);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 32px
}

.hero-acts {
    display: flex;
    gap: 10px
}

.btn {
    height: 48px;
    padding: 0 28px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .4s var(--ease)
}

.btn.fill {
    background: var(--blue);
    color: var(--white);
    border: 1px solid rgba(80, 100, 255, .4);
    box-shadow: 0 0 20px var(--a-m)
}

.btn.fill:hover {
    background: var(--blue-lt);
    box-shadow: 0 0 36px var(--a-g), 0 8px 32px rgba(0, 0, 0, .4);
    transform: translateY(-2px)
}

.btn.ghost {
    background: var(--surface);
    color: var(--g100);
    border: 1px solid var(--bdr-a)
}

.btn.ghost:hover {
    background: var(--surface-3);
    border-color: var(--g400)
}

.btn .ico {
    font-size: 1rem;
    transition: transform .3s
}

.btn.fill:hover .ico {
    transform: translateX(3px)
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px
}

.hero-data {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: var(--g400);
    letter-spacing: 1px;
    text-align: right;
    line-height: 2
}

.hero-data .b {
    color: var(--blue)
}

.hero-data .c {
    color: var(--cyan)
}

.hero-data .r {
    color: var(--red)
}

.scroll-i {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--g400)
}

.scroll-bar {
    width: 1px;
    height: 36px;
    position: relative;
    background: var(--g500);
    overflow: hidden
}

.scroll-bar::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 6px rgba(0, 220, 220, .2);
    animation: sd 2s ease infinite
}

@keyframes sd {
    0% {
        top: -100%
    }

    100% {
        top: 100%
    }
}

@keyframes hu {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ══════════════════════ TICKER ══════════════════════ */
.ticker {
    border-top: 1px solid var(--bdr-s);
    border-bottom: 1px solid var(--bdr-s);
    padding: 16px 0;
    overflow: hidden;
    background: rgba(80, 100, 255, .006)
}

.ticker-t {
    display: flex;
    gap: 56px;
    animation: ts 35s linear infinite;
    width: max-content
}

.ticker-t span {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--g400);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 14px
}

.t-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px rgba(0, 220, 220, .15)
}

@keyframes ts {
    to {
        transform: translateX(-50%)
    }
}

/* ══════════════════════ UTILS ══════════════════════ */
.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--px)
}

.slbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px
}

.slbl::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(0, 220, 220, .15)
}

.stitle {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1px
}

.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease)
}

.rv.v {
    opacity: 1;
    transform: translateY(0)
}

.d1 {
    transition-delay: .1s
}

.d2 {
    transition-delay: .2s
}

.d3 {
    transition-delay: .3s
}

.d4 {
    transition-delay: .4s
}

/* ══════════════════════ INTRO ══════════════════════ */
.intro {
    padding: 160px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start
}

.intro-r p {
    font-size: 1rem;
    color: var(--g200);
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 20px
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--bdr)
}

.stat {
    padding: 20px;
    border-radius: var(--rad);
    background: var(--surface);
    border: 1px solid var(--bdr-s);
    transition: all .3s;
    position: relative;
    overflow: hidden
}

.stat:hover {
    border-color: var(--bdr-a);
    box-shadow: 0 0 20px var(--a-m)
}

.stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad);
    opacity: 0;
    transition: opacity .3s
}

.stat:hover::after {
    opacity: .6
}

.stat-n {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 6px
}

.stat-l {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    color: var(--g300);
    text-transform: uppercase;
    letter-spacing: 1.5px
}

/* ══════════════════════ SERVICES ══════════════════════ */
.svc {
    padding: 0 0 160px
}

.svc-hd {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px
}

.svc-hd-l {
    max-width: 550px
}

.svc-hd-r {
    font-size: .82rem;
    color: var(--g300);
    max-width: 300px;
    text-align: right;
    line-height: 1.7;
    font-weight: 300
}

.svc-list {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.sr {
    display: grid;
    grid-template-columns: 72px 1fr 300px 48px;
    gap: 32px;
    align-items: center;
    padding: 36px;
    border-radius: var(--rad-lg);
    background: var(--surface);
    border: 1px solid var(--bdr-s);
    transition: all .5s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden
}

.sr::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad);
    opacity: 0;
    transition: opacity .4s
}

.sr::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--a-m), transparent 40%);
    opacity: 0;
    transition: opacity .5s
}

.sr:hover {
    border-color: var(--bdr-a);
    transform: translateY(-3px);
    box-shadow: 0 16px 64px rgba(0, 0, 0, .4), 0 0 40px var(--a-m)
}

.sr:hover::before,
.sr:hover::after {
    opacity: 1
}

.sr:nth-child(2):hover {
    box-shadow: 0 16px 64px rgba(0, 0, 0, .4), 0 0 40px var(--c-m)
}

.sr:nth-child(2)::before {
    background: linear-gradient(90deg, var(--cyan), var(--blue))
}

.sr:nth-child(3):hover {
    box-shadow: 0 16px 64px rgba(0, 0, 0, .4), 0 0 40px var(--r-m)
}

.sr:nth-child(3)::before {
    background: var(--grad-warm)
}

.sr-n {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: var(--g400);
    letter-spacing: 1px;
    position: relative;
    z-index: 1
}

.sr-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.9rem;
    letter-spacing: -.5px;
    position: relative;
    z-index: 1;
    transition: all .3s
}

.sr:hover .sr-name {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.sr:nth-child(2):hover .sr-name {
    background: linear-gradient(135deg, #00DCDC, #5064FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.sr:nth-child(3):hover .sr-name {
    background: linear-gradient(135deg, #FF375A, #B43CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.sr-desc {
    font-size: .84rem;
    color: var(--g300);
    line-height: 1.65;
    font-weight: 300;
    position: relative;
    z-index: 1
}

.sr-arr {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--bdr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .4s var(--ease);
    position: relative;
    z-index: 1;
    color: var(--g400)
}

.sr:hover .sr-arr {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: rotate(-45deg);
    box-shadow: 0 0 16px var(--a-g)
}

.sr:nth-child(2):hover .sr-arr {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--black)
}

.sr:nth-child(3):hover .sr-arr {
    background: var(--red);
    border-color: var(--red)
}

/* ══════════════════════ CAPABILITIES ══════════════════════ */
.cap {
    padding: 160px 0;
    background: var(--surface);
    border-top: 1px solid var(--bdr-s);
    border-bottom: 1px solid var(--bdr-s);
    position: relative;
    overflow: hidden
}

.cap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(80, 100, 255, .015) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 100, 255, .015) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, black, transparent 30%, transparent 70%, black);
    -webkit-mask-image: linear-gradient(180deg, black, transparent 30%, transparent 70%, black)
}

.cap-in {
    position: relative;
    z-index: 1
}

.cap-hd {
    text-align: center;
    margin-bottom: 72px
}

.cap-hd .slbl {
    justify-content: center
}

.cap-g {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--bdr-s);
    border-radius: var(--rad-lg);
    overflow: hidden
}

.ci {
    background: var(--bg);
    padding: 44px 32px;
    transition: all .4s;
    position: relative
}

.ci::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--grad);
    opacity: 0;
    transition: opacity .3s
}

.ci:hover {
    background: var(--surface-2)
}

.ci:hover::before {
    opacity: .5
}

.ci-ico {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--a-m);
    border: 1px solid var(--bdr);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all .3s
}

.ci:hover .ci-ico {
    border-color: rgba(80, 100, 255, .2);
    box-shadow: 0 0 20px var(--a-m);
    background: var(--a-g)
}

.ci-ico svg {
    width: 20px;
    height: 20px;
    stroke: var(--cyan);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.ci h4 {
    font-size: .95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--g100)
}

.ci p {
    font-size: .82rem;
    color: var(--g300);
    line-height: 1.65;
    font-weight: 300
}

/* ══════════════════════ PROCESS ══════════════════════ */
.proc {
    padding: 160px 0
}

.proc-hd {
    margin-bottom: 72px
}

.proc-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative
}

.proc-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 1px;
    background: linear-gradient(90deg, var(--blue), var(--cyan), var(--red));
    opacity: .12
}

.proc-line {
    position: absolute;
    top: 20px;
    left: 50px;
    height: 1px;
    background: var(--grad-full);
    width: 0;
    transition: width 1.5s var(--ease);
    opacity: .5
}

.proc-line.drawn {
    width: calc(100% - 100px)
}

.ps {
    padding: 0 20px;
    position: relative
}

.ps-dot {
    width: 12px;
    height: 12px;
    position: relative;
    margin-bottom: 28px
}

.ps-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 0 12px rgba(0, 220, 220, .2)
}

.ps-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    opacity: .25;
    position: absolute;
    top: 0;
    left: 0
}

.ps-n {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 12px
}

.ps-t {
    font-family: 'Instrument Serif', serif;
    font-size: 1.35rem;
    margin-bottom: 10px;
    letter-spacing: -.3px
}

.ps-d {
    font-size: .82rem;
    color: var(--g300);
    line-height: 1.7;
    font-weight: 300
}

/* ══════════════════════ SHOWCASE ══════════════════════ */
.show {
    padding: 0 0 160px
}

.show-hd {
    margin-bottom: 64px
}

.show-g {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.sc {
    border-radius: var(--rad-xl);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--surface);
    border: 1px solid var(--bdr-s);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    transition: all .5s var(--ease);
    cursor: pointer
}

a.sc {
    text-decoration: none;
    color: inherit
}

.sc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(3, 3, 5, .93));
    z-index: 1
}

.sc-bg {
    position: absolute;
    inset: 0;
    transition: transform .6s var(--ease)
}

.sc:nth-child(1) .sc-bg {
    background: radial-gradient(circle at 30% 35%, var(--a-g), transparent 50%), linear-gradient(135deg, #0A0A18, #060610)
}

.sc:nth-child(2) .sc-bg {
    background: radial-gradient(circle at 65% 30%, var(--c-m), transparent 50%), linear-gradient(135deg, #060F12, #050A0C)
}

.sc:nth-child(3) .sc-bg {
    background: radial-gradient(circle at 50% 50%, var(--r-m), transparent 50%), linear-gradient(135deg, #100A10, #0A060A)
}

.sc:nth-child(4) .sc-bg {
    background: radial-gradient(circle at 40% 60%, rgba(180, 60, 255, .06), transparent 50%), linear-gradient(135deg, #0C0A14, #08060E)
}

.sc:hover {
    border-color: var(--bdr-a);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 40px var(--a-m)
}

.sc:hover .sc-bg {
    transform: scale(1.04)
}

.sc-mock {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    width: 76%;
    height: 55%;
    border-radius: 8px;
    background: rgba(80, 100, 255, .02);
    border: 1px solid rgba(80, 100, 255, .06);
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 6px;
    transition: transform .5s var(--ease)
}

.sc-mock-top {
    display: flex;
    gap: 4px;
    margin-bottom: 8px
}

.sc-mock-top span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06)
}

.sc-mock-line {
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .03)
}

.sc:hover .sc-mock {
    transform: translateX(-50%) translateY(-4px);
    border-color: rgba(80, 100, 255, .1)
}

.sc-content {
    position: relative;
    z-index: 2
}

.sc-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 8px
}

.sc-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    letter-spacing: -.3px;
    margin-bottom: 5px
}

.sc-desc {
    font-size: .8rem;
    color: var(--g300);
    font-weight: 300
}

.sc-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, .7);
    opacity: 0;
    transition: opacity .4s;
    backdrop-filter: blur(4px);
    border-radius: var(--rad-xl)
}

.sc:hover .sc-overlay {
    opacity: 1
}

.sc-overlay span {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--cyan);
    border: 1px solid rgba(0, 220, 220, .2);
    padding: 8px 20px;
    border-radius: 8px;
    transition: all .3s
}

/* ══════════════════════ TESTIMONIALS ══════════════════════ */
.test {
    padding: 140px var(--px);
    border-top: 1px solid var(--bdr-s);
    border-bottom: 1px solid var(--bdr-s);
    background: var(--surface);
    position: relative;
    overflow: hidden
}

.test::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--blue);
    filter: blur(200px);
    opacity: .015;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.test-in {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1
}

.test-carousel {
    position: relative;
    overflow: hidden
}

.test-track {
    display: flex;
    transition: transform .6s var(--ease)
}

.test-slide {
    min-width: 100%;
    flex-shrink: 0
}

.tq {
    font-family: 'Instrument Serif', serif;
    font-size: 4.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: .5;
    margin-bottom: 32px;
    opacity: .4
}

.tt {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.55;
    font-weight: 400;
    letter-spacing: -.3px;
    margin-bottom: 40px;
    color: var(--g100)
}

.ta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px
}

.ta-av {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface-2);
    border: 1px solid var(--bdr);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--cyan)
}

.ta-name {
    font-weight: 500;
    font-size: .88rem
}

.ta-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    color: var(--g400);
    margin-top: 2px
}

.test-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px
}

.test-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--g500);
    border: none;
    cursor: pointer;
    transition: all .3s;
    padding: 0
}

.test-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 220, 220, .3)
}

/* ══════════════════════ CTA ══════════════════════ */
.cta {
    padding: 180px var(--px);
    position: relative;
    overflow: hidden
}

.cta-in {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(200px)
}

.cta-orb.a {
    width: 600px;
    height: 600px;
    background: var(--blue);
    opacity: .025;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.cta-orb.b {
    width: 400px;
    height: 400px;
    background: var(--red);
    opacity: .015;
    top: 60%;
    left: 35%;
    transform: translate(-50%, -50%)
}

.cta h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.05
}

.cta-d {
    font-size: 1rem;
    color: var(--g300);
    margin-bottom: 44px;
    font-weight: 300
}

.cta-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.cta-row {
    display: flex;
    gap: 12px
}

.cta-input,
.cta-textarea {
    width: 100%;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid var(--bdr-a);
    background: var(--surface);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    outline: none;
    transition: all .3s
}

.cta-input {
    height: 50px
}

.cta-textarea {
    padding: 14px 20px;
    min-height: 120px;
    resize: vertical
}

.cta-input::placeholder,
.cta-textarea::placeholder {
    color: var(--g400)
}

.cta-input:focus,
.cta-textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 220, 220, .08), 0 0 20px rgba(0, 220, 220, .06)
}

.cta-input.error,
.cta-textarea.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(255, 55, 90, .08)
}

.cta-sub {
    height: 50px;
    padding: 0 28px;
    border-radius: 10px;
    background: var(--blue);
    color: var(--white);
    border: 1px solid rgba(80, 100, 255, .4);
    font-family: 'DM Sans', sans-serif;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .35s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 100%
}

.cta-sub:hover {
    background: var(--blue-lt);
    box-shadow: 0 0 28px var(--a-g), 0 8px 32px rgba(0, 0, 0, .3);
    transform: translateY(-2px)
}

.cta-success {
    display: none;
    color: var(--green);
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    padding: 16px;
    border: 1px solid rgba(52, 211, 153, .15);
    border-radius: 10px;
    background: rgba(52, 211, 153, .04)
}

.cta-success.show {
    display: block
}

/* ══════════════════════ FOOTER ══════════════════════ */
footer {
    border-top: 1px solid var(--bdr-s);
    padding: 72px var(--px)
}

.f-in {
    max-width: var(--max);
    margin: 0 auto
}

.f-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 72px
}

.f-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px
}

.f-brand img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(0, 220, 220, .1))
}

.f-desc {
    font-size: .82rem;
    color: var(--g400);
    line-height: 1.7;
    font-weight: 300;
    max-width: 260px
}

.f-social {
    display: flex;
    gap: 12px;
    margin-top: 20px
}

.f-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--bdr);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s
}

.f-social a:hover {
    border-color: var(--bdr-a);
    box-shadow: 0 0 12px var(--a-m);
    background: var(--surface-3)
}

.f-social svg {
    width: 16px;
    height: 16px;
    stroke: var(--g300);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round
}

.f-social a:hover svg {
    stroke: var(--cyan)
}

.f-col-t {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--g400);
    margin-bottom: 18px
}

.f-links {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.f-links a {
    font-size: .85rem;
    color: var(--g300);
    transition: color .3s;
    font-weight: 300
}

.f-links a:hover {
    color: var(--cyan)
}

.f-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 36px;
    border-top: 1px solid var(--bdr-s)
}

.f-copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: var(--g500);
    letter-spacing: .5px
}

.f-bot-links {
    display: flex;
    gap: 20px
}

.f-bot-links a {
    font-size: .72rem;
    color: var(--g500);
    transition: color .3s
}

.f-bot-links a:hover {
    color: var(--g200)
}

/* ── Back to Top ── */
.btt {
    position: fixed;
    bottom: 32px;
    left: 32px;
    right: auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--bdr-a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all .4s var(--ease);
    cursor: pointer;
    color: var(--g300)
}

.btt.show {
    opacity: 1;
    pointer-events: all
}

.btt:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3)
}

.btt svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

/* ── Tech Stacker ── */
.tech-ticker-wrap {
    padding: 24px 0;
    border-bottom: 1px solid var(--bdr-s);
    background: rgba(18, 18, 34, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.tech-lbl {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    color: var(--g500);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.tech-ticker {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: ticker 30s linear infinite;
    width: max-content;
}

.tech-track span {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--g300);
    font-weight: 500;
    white-space: nowrap;
    padding: 0 16px;
}

.tech-track .dot {
    color: var(--g600);
    font-size: .6rem;
    padding: 0;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Founder Section ── */
.founder {
    padding: 100px var(--px);
    background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 18, 34, 0) 100%);
}

.fdr-c {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: 80px;
    align-items: center;
    border: 1px solid var(--bdr-s);
    border-radius: 32px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
}

.fdr-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1.1;
    background: var(--surface);
    border: 1px solid var(--bdr-a);
}

.fdr-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: var(--g500);
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
}

.fdr-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    color: var(--cyan);
    margin-bottom: 24px;
    display: block;
}

.fdr-stats {
    display: flex;
    gap: 40px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--bdr-s);
    border-bottom: 1px solid var(--bdr-s);
}

.fst span {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
    font-family: 'Instrument Serif', serif;
}

.fst small {
    font-family: 'JetBrains Mono', monospace;
    font-size: .65rem;
    color: var(--g500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fdr-links {
    display: flex;
    gap: 20px;
}

.fdr-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: .8rem;
    color: var(--white);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--g600);
    transition: all .3s;
}

.fdr-links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */

/* ── Tablet / small laptop ── */
@media(max-width:1024px) {
    .intro {
        grid-template-columns: 1fr;
        gap: 60px
    }

    .svc-hd {
        flex-direction: column;
        align-items: flex-start
    }

    .svc-hd-r {
        text-align: left
    }

    .sr {
        grid-template-columns: 56px 1fr 48px
    }

    .sr-desc {
        display: none
    }

    .cap-g {
        grid-template-columns: repeat(2, 1fr)
    }

    .proc-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px
    }

    .proc-steps::before,
    .proc-line {
        display: none
    }

    .show-g {
        grid-template-columns: 1fr
    }

    .f-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px
    }
}

/* ── Mobile ── */
@media(max-width:768px) {

    :root {
        --px: 20px;
    }

    .n-center,
    .n-ghost {
        display: none
    }

    .hamburger {
        display: flex
    }

    .cur,
    .cur-glow {
        display: none
    }

    /* ── Premium mobile menu ── */
    .mobile-menu {
        gap: 0;
        padding: 100px var(--px) 60px;
        justify-content: flex-start;
    }

    .mobile-menu a {
        font-size: 2.4rem;
        padding: 18px 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(80, 100, 255, .06);
        opacity: 0;
        transform: translateX(-20px);
    }

    .mobile-menu.open a {
        opacity: 1;
        transform: translateX(0);
        transition: all .4s var(--ease);
    }

    .mobile-menu.open a:nth-child(1) {
        transition-delay: .08s
    }

    .mobile-menu.open a:nth-child(2) {
        transition-delay: .14s
    }

    .mobile-menu.open a:nth-child(3) {
        transition-delay: .2s
    }

    .mobile-menu.open a:nth-child(4) {
        transition-delay: .26s
    }

    /* ── Hero ── */
    .hero {
        padding-bottom: 40px;
        min-height: 100svh;
    }

    .hero-ft {
        flex-direction: column;
        align-items: flex-start
    }

    .hero-meta {
        align-items: flex-start
    }

    .hero-acts {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        height: 52px;
        font-size: .92rem;
    }

    .hero-data {
        display: none
    }

    /* ── Scroll indicator bigger on mobile ── */
    .scroll-i span {
        font-size: .65rem;
    }

    /* ── Intro / About ── */
    .intro-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .stat {
        text-align: center;
        padding: 16px 0;
    }

    .stat:not(:last-child) {
        border-right: 1px solid var(--bdr-s);
    }

    .stat-n {
        font-size: 1.8rem;
    }

    /* ── Services ── */
    .sr {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 20px;
    }

    .sr-n {
        font-size: .6rem;
    }

    .sr-name {
        font-size: 1.3rem;
    }

    .sr-desc {
        display: block;
        font-size: .8rem;
        line-height: 1.5;
    }

    .sr-arr {
        display: none;
    }

    /* ── Capabilities ── */
    .cap-g,
    .proc-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ci {
        padding: 24px 22px;
    }

    /* ── CTA Form ── */
    .cta-row {
        flex-direction: column
    }

    .cta-input,
    .cta-textarea {
        font-size: 16px;
        /* prevents iOS zoom */
    }

    .cta-sub {
        width: 100%;
        font-size: .92rem;
    }

    /* ── Footer ── */
    .f-top {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .f-bot {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .f-bot-links {
        justify-content: center;
    }

    .f-social {
        margin-top: 12px;
    }

    .f-desc {
        max-width: 100%;
    }
}

/* ── Small phones ── */
@media(max-width:480px) {

    :root {
        --px: 16px;
    }

    /* ── Typography ── */
    .h1 {
        letter-spacing: -1.5px;
    }

    .eyebrow {
        font-size: .7rem;
        padding: 6px 14px 6px 10px;
        gap: 8px;
    }

    .stitle {
        font-size: clamp(1.5rem, 6.5vw, 2rem);
    }

    /* ── Hero ── */
    .hero {
        padding-bottom: 32px;
    }

    .hero-c {
        padding-top: 30vh;
    }

    .btn {
        height: 50px;
    }

    /* ── Sections ── */
    .svc.wrap,
    .show.wrap,
    .proc.wrap {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .cap {
        padding: 60px 0;
    }

    /* ── Intro stats tight ── */
    .intro-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-n {
        font-size: 1.6rem;
    }

    .stat-l {
        font-size: .7rem;
    }

    .sr-n {
        font-size: .75rem;
    }

    /* ── Showcase ── */
    .sc-live-frame {
        aspect-ratio: 4/3;
    }

    .sc-live-info {
        padding: 16px 18px;
    }

    .sc-live-info .sc-title {
        font-size: 1.2rem;
    }

    .sc-live-info .sc-desc {
        font-size: .75rem;
    }

    .sc-live-topbar {
        padding: 7px 10px;
    }

    .sc-live-dots span {
        width: 5px;
        height: 5px;
    }

    .sc-live-url {
        font-size: .65rem;
    }

    /* ── Footer Touch Targets ── */
    .f-links a {
        padding: 6px 0;
        display: block;
    }

    /* ── Testimonial ── */
    .test {
        padding: 60px var(--px);
    }

    .test-in {
        padding: 40px 24px;
    }

    .tq {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .tt {
        font-size: 1.1rem;
    }

    .ta-av {
        width: 36px;
        height: 36px;
        font-size: .7rem;
    }

    /* ── CTA ── */
    .cta {
        padding: 80px var(--px);
    }

    .cta h2 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    /* ── Footer ── */
    .f-col-t {
        font-size: .6rem;
    }

    .f-links a {
        font-size: .78rem;
    }
}

/* ── Touch device feedback ── */
@media(hover: none) and (pointer: coarse) {

    /* Active tap states */
    .btn:active,
    .btn-sm:active {
        transform: scale(.97);
        transition: transform .1s;
    }

    .sr:active {
        background: var(--surface-2);
        transition: background .1s;
    }

    .sc-live:active {
        transform: scale(.985);
        transition: transform .15s;
    }

    .ci:active {
        border-color: var(--bdr-a);
        background: var(--surface-2);
        transition: all .1s;
    }

    .n-pill:active {
        color: var(--white);
    }

    /* Disable hover-only effects on touch */
    .sc-live:hover {
        transform: none;
        box-shadow: none;
    }

    .sr:hover {
        background: var(--surface);
    }

    .ci:hover {
        transform: none;
        border-color: var(--bdr-s);
    }
}

/* ── Safe area (notched phones) ── */
@supports(padding: env(safe-area-inset-bottom)) {
    nav {
        padding-left: max(var(--px), env(safe-area-inset-left));
        padding-right: max(var(--px), env(safe-area-inset-right));
    }

    .hero {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }

    footer .f-in {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }

    .mobile-menu {
        padding-left: max(var(--px), env(safe-area-inset-left));
        padding-right: max(var(--px), env(safe-area-inset-right));
    }
}

/* ── Reduced motion ── */
@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .orb {
        animation: none !important;
    }
}

/* ══════════════════════ LIVE PREVIEW CARDS ══════════════════════ */
.sc-live {
    display: block;
    border-radius: var(--rad-xl);
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--bdr-s);
    transition: all .5s var(--ease);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.sc-live:hover {
    border-color: var(--bdr-a);
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 40px var(--a-m);
}

.sc-live-frame {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.sc-live-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(18, 18, 34, .92);
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.sc-live-dots {
    display: flex;
    gap: 5px;
}

.sc-live-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--g500);
}

.sc-live-dots span:first-child {
    background: #ff5f57;
}

.sc-live-dots span:nth-child(2) {
    background: #ffbd2e;
}

.sc-live-dots span:last-child {
    background: #28c840;
}

.sc-live-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    color: var(--g400);
    letter-spacing: .5px;
}

/* ── Iframe preview ── */
.sc-live-frame iframe {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
}

/* ── Info & Hover ── */
.sc-live-info {
    padding: 24px 28px;
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--bdr-s);
}

.sc-live-info .sc-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 6px;
}

.sc-live-info .sc-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    letter-spacing: -.3px;
    margin-bottom: 4px;
}

.sc-live-info .sc-desc {
    font-size: .82rem;
    color: var(--g300);
    font-weight: 300;
    line-height: 1.6;
}

.sc-live-hover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 16, .65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .4s;
    border-radius: var(--rad-xl);
}

.sc-live:hover .sc-live-hover {
    opacity: 1;
}

.sc-live-hover span {
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    color: var(--cyan);
    border: 1px solid rgba(0, 220, 220, .2);
    padding: 10px 24px;
    border-radius: 8px;
    background: rgba(0, 220, 220, .04);
    transition: all .3s;
}

.sc-live:hover .sc-live-hover span {
    box-shadow: 0 0 20px rgba(0, 220, 220, .1);
}

/* Live preview responsive */
@media(max-width:1024px) {
    .show-g {
        grid-template-columns: 1fr;
    }
}

@media(max-width:480px) {
    .sc-live-frame {
        aspect-ratio: 4/3;
    }

    .sc-live-info {
        padding: 18px 20px;
    }
}

/* ── Floating Chat Button ── */
.float-chat {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: var(--grad-warm);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9002;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s;
}

.float-chat svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.float-chat:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(180, 60, 255, 0.5);
}

.float-chat.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
}

.float-chat:active {
    transform: scale(0.95);
}

/* ── Chat Window ── */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 380px;
    height: 500px;
    background: rgba(18, 18, 34, 0.85);
    backdrop-filter: blur(16px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    z-index: 9003;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--grad-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-name {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.chat-status {
    display: block;
    font-size: .7rem;
    color: var(--green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.chat-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--g300);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .92rem;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.chat-msg.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--g100);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--grad-warm);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 10px;
    background: rgba(10, 10, 20, 0.3);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 16px;
    color: white;
    font-family: inherit;
    font-size: .9rem;
    outline: none;
    transition: all .3s;
}

.chat-input-area input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
}

.chat-input-area button:hover {
    background: var(--blue-lt);
    transform: scale(1.05);
}

.chat-input-area button svg {
    width: 18px;
    height: 18px;
    margin-left: -2px;
    /* Visual balance */
}

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 6px 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--g300);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@media(max-width: 768px) {
    .btt {
        left: 20px;
        bottom: calc(24px + env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
    }

    .float-chat {
        bottom: calc(24px + env(safe-area-inset-bottom));
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .float-chat svg {
        width: 24px;
        height: 24px;
    }

    .chat-window {
        width: calc(100% - 40px);
        height: 60vh;
        right: 20px;
        bottom: calc(90px + env(safe-area-inset-bottom));
    }
}

/* ── Founder & Ticker Mobile ── */
@media(max-width:768px) {
    .fdr-c {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 24px;
        text-align: center;
    }

    .fdr-img {
        max-width: 300px;
        margin: 0 auto;
    }

    .fdr-stats {
        justify-content: center;
        gap: 20px;
    }

    .fdr-links {
        justify-content: center;
    }

    .tech-ticker-wrap {
        padding: 16px 0;
    }

    .tech-track span {
        font-size: .95rem;
        padding: 0 12px;
    }
}