:root {
    --haiti: #161032;
    --java: #14CFBC;
    --bright-sun: #FFE830;
    --butterfly: #5C51A2;
    --alabaster: #FAFAFA;
    --glass-1: rgba(255, 255, 255, .10);
    --glass-2: rgba(255, 255, 255, .06);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-1: 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-2: 0 18px 60px rgba(20, 207, 188, .18);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    color: var(--alabaster);
    background:
        radial-gradient(1200px 800px at 10% -10%, rgba(92, 81, 162, .35), transparent 60%) no-repeat,
        radial-gradient(1000px 700px at 90% 10%, rgba(255, 232, 48, .22), transparent 55%) no-repeat,
        var(--haiti);
    -webkit-font-smoothing: antialiased;
    line-height: var(--lh-body);
    scroll-behavior: smooth;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

/* ─── Typography ─── */
.eyebrow {
    color: var(--java);
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: var(--fs-micro);
    font-family: var(--font-heading)
}

h1 {
    margin: .35rem 0 .6rem;
    font-size: var(--fs-h1);
    line-height: var(--lh-heading);
    font-weight: 700;
    font-family: var(--font-heading)
}

h2 {
    font-size: var(--fs-h2);
    margin: .2rem 0 .8rem;
    line-height: var(--lh-heading-2);
    font-family: var(--font-heading)
}

.lead {
    color: #e7e7f5;
    opacity: .95;
    font-size: var(--fs-body-lg)
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: var(--java);
    color: #041d1a;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--fs-btn);
    border: 2px solid transparent;
    box-shadow: var(--shadow-2);
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(20, 207, 188, .35);
    filter: saturate(1.05)
}

.btn.secondary {
    background: transparent;
    color: var(--alabaster);
    border-color: var(--glass-1);
    box-shadow: none
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, .06)
}

/* ═══════════════════════════════════════
   HERO — two columns: text + code window
   ═══════════════════════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
    padding: 48px 0 16px
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}

/* ─── Code window decoration ─── */
.code-window {
    background: linear-gradient(170deg, rgba(12, 10, 32, .95), rgba(22, 16, 50, .88));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-lg);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, .45),
        0 0 60px rgba(20, 207, 188, .08),
        inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
    position: relative
}

.code-window::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 207, 188, .12), transparent 70%);
    pointer-events: none
}

.cw-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .04);
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%
}

.dot.red { background: #ff5f57 }
.dot.yellow { background: #febc2e }
.dot.green { background: #28c840 }

.cw-title {
    margin-left: 10px;
    font-size: .72rem;
    opacity: .5;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    letter-spacing: .02em
}

.cw-code {
    margin: 0;
    padding: 18px 20px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: .78rem;
    line-height: 1.65;
    color: #c8c8d8;
    overflow-x: auto;
    tab-size: 4
}

.cw-code .kw { color: #c792ea }
.cw-code .cls { color: var(--bright-sun) }
.cw-code .fn { color: #82aaff }
.cw-code .str { color: #c3e88d }
.cw-code .num { color: #f78c6c }
.cw-code .op { color: #89ddff }
.cw-code .cmt { color: #546e7a; font-style: italic }

/* ═══════════════════════════════════════
   STATS — gradient numbers
   ═══════════════════════════════════════ */
.stripe {
    margin: 20px 0 8px
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.stat {
    background: linear-gradient(180deg, rgba(27, 21, 64, .92), rgba(27, 21, 64, .72));
    border: 1px solid var(--glass-1);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
    transition: transform .18s ease, box-shadow .25s ease;
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35)
}

.stat .num {
    font-size: var(--fs-h2);
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--java), var(--bright-sun));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.stat .hint {
    opacity: .85;
    margin-top: 2px
}

/* ═══════════════════════════════════════
   PHILOSOPHY + HOW WE WORK
   ═══════════════════════════════════════ */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0
}

.panel {
    background: linear-gradient(180deg, rgba(26, 21, 64, .92), rgba(26, 21, 64, .72));
    border: 1px solid var(--glass-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    padding: 24px;
    transition: transform .18s ease;
    position: relative;
    overflow: hidden
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--java), var(--butterfly));
    opacity: .6
}

.panel:hover {
    transform: translateY(-2px)
}

.list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px
}

.list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start
}

.check {
    width: 18px;
    height: 18px;
    background: var(--java);
    color: #072521;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
    font-size: .85rem;
}

/* ═══════════════════════════════════════
   TEAM
   ═══════════════════════════════════════ */
.team-section {
    margin: 32px 0
}

.team-section h2 {
    margin-bottom: .3rem
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px
}

.team-card {
    background: linear-gradient(180deg, rgba(27, 21, 64, .92), rgba(27, 21, 64, .72));
    border: 1px solid var(--glass-1);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-1);
    transition: transform .18s ease, border-color .25s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 207, 188, .25)
}

.team-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(20, 207, 188, .14);
    border: 1px solid rgba(20, 207, 188, .2);
    color: var(--java);
    margin-bottom: 14px
}

.team-card h3 {
    font-size: var(--fs-body-lg);
    font-weight: 700;
    margin: 0 0 8px;
    font-family: var(--font-heading)
}

.team-card p {
    opacity: .9;
    margin: 0;
    line-height: 1.5
}

/* ═══════════════════════════════════════
   PARTNER BANNER
   ═══════════════════════════════════════ */
.partner-section {
    margin: 36px 0
}

.partner-banner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(180deg, rgba(92, 81, 162, .18), rgba(92, 81, 162, .06));
    border: 1px solid var(--glass-1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-1);
    padding: 28px;
    position: relative;
    overflow: hidden
}

.partner-banner::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from 300deg, rgba(255, 232, 48, .16), transparent 30%, transparent 70%, rgba(20, 207, 188, .16));
    filter: blur(20px);
    opacity: .3
}

.partner-text {
    position: relative;
    z-index: 1
}

.partner-text h2 {
    margin-top: .4rem
}

.partner-text p {
    opacity: .92;
    line-height: 1.6
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--glass-1);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: var(--fs-micro);
    font-family: var(--font-heading)
}

.partner-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1
}

.pf {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(22, 16, 50, .65);
    border: 1px solid var(--glass-1);
    color: var(--java);
    transition: transform .18s ease, border-color .25s ease
}

.pf:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 207, 188, .2)
}

.pf svg {
    flex-shrink: 0
}

.pf span {
    color: var(--alabaster);
    font-weight: 600;
    font-size: var(--fs-body);
    line-height: 1.25
}

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */
.cta {
    margin: 36px 0 48px;
    text-align: center
}

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(92, 81, 162, .22), rgba(92, 81, 162, .08));
    border: 1px solid var(--glass-1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-1);
    padding: 26px;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from 140deg, rgba(20, 207, 188, .22), transparent 20%, transparent 60%, rgba(255, 232, 48, .20));
    filter: blur(18px);
    opacity: .35;
}

.cta .box {
    display: inline-block;
    max-width: 900px;
    text-align: left
}

/* ═══════════════════════════════════════
   REVEAL + STAGGER
   ═══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.show {
    opacity: 1;
    transform: none
}

.stagger>* {
    opacity: 0;
    transform: translateY(16px)
}

.stagger.show>* {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease
}

.stagger.show>*:nth-child(1) { transition-delay: .05s }
.stagger.show>*:nth-child(2) { transition-delay: .12s }
.stagger.show>*:nth-child(3) { transition-delay: .2s }
.stagger.show>*:nth-child(4) { transition-delay: .28s }
.stagger.show>*:nth-child(5) { transition-delay: .36s }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width:980px) {

    .hero {
        grid-template-columns: 1fr;
        padding: 36px 0 16px
    }

    .code-window {
        max-width: 520px
    }

    .row,
    .partner-banner {
        grid-template-columns: 1fr
    }

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

    .team-grid,
    .partner-features {
        grid-template-columns: 1fr
    }
}

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion:reduce) {

    .reveal,
    .stagger>* {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important
    }
}
