/* ============================================================
   AXO INSIGHTS — Editorial Intelligence
   Fraunces · Syne · JetBrains Mono
   ============================================================ */

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

:root {
    --bg:        #070D1A;
    --bg-r:      #0A1120;
    --bg-c:      #0D1528;
    --bg-ch:     #111C32;

    --amber:     #E8A020;
    --amber-dim: rgba(232,160,32,.10);
    --amber-glo: rgba(232,160,32,.22);
    --amber-bdr: rgba(232,160,32,.28);

    --tx:        #EDE8E0;
    --tx2:       #9E9A94;
    --tx3:       #827D75;

    --bdr:       #252220;

    --live:      #4ADE80;
    --blue:      #60A5FA;

    --fd:        'Fraunces', Georgia, serif;
    --fu:        'Syne', system-ui, sans-serif;
    --fm:        'JetBrains Mono', monospace;

    --ease:      cubic-bezier(.25,.46,.45,.94);
    --snap:      cubic-bezier(.12,.65,.10,.96);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--fu);
    background: var(--bg);
    color: var(--tx);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section { padding: 100px 0; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--fd); line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem,7.5vw,8rem); font-weight: 900; color: var(--tx); }
h1 em { font-style: italic; color: var(--amber); }
h2 { font-size: clamp(1.9rem,4vw,3.5rem); font-weight: 700; color: var(--tx); margin-bottom: 18px; }
h3 { font-family: var(--fd); font-size: clamp(1.15rem,2vw,1.55rem); font-weight: 700; color: var(--tx); margin-bottom: 10px; }
p  { font-size: 1.05rem; color: var(--tx2); line-height: 1.75; max-width: 65ch; margin-bottom: 14px; }
p strong { color: var(--tx); font-weight: 600; }

.overline {
    font-family: var(--fm);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 14px;
    display: block;
}

.section-head { max-width: 680px; margin-bottom: 60px; }
.section-sub   { font-size: 1.08rem; margin-top: 10px; max-width: 60ch; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--fu);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s var(--ease), transform .2s var(--ease),
                box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn-amber { background: var(--amber); color: #0C0B09; border-color: var(--amber); }
.btn-amber:hover { background: #F0BE3A; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,160,32,.35); }
.btn-amber:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn-ghost { background: transparent; color: var(--tx2); border-color: var(--bdr); }
.btn-ghost:hover { border-color: var(--amber-bdr); color: var(--amber); transform: translateY(-2px); }
.btn-ghost:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.btn-block { width: 100%; }

/* ── Alert Strip ─────────────────────────────────────────────── */
.alert-strip {
    background: var(--bg-r);
    border-bottom: 1px solid var(--bdr);
    padding: 9px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--fm);
    font-size: .68rem;
    letter-spacing: .12em;
    color: var(--tx3);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.alert-strip::-webkit-scrollbar { display: none; }

.strip-label { color: var(--amber); font-weight: 600; }
.sep { color: var(--bdr); }

/* ── Header ──────────────────────────────────────────────────── */
header {
    position: sticky; top: 0; z-index: 200;
    background: rgba(7,13,26,.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--bdr);
    transition: box-shadow .3s ease;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    text-decoration: none;
    font-family: var(--fd);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -.035em;
    display: inline-flex;
    align-items: baseline;
}
.logo-axo  { color: var(--amber); }
.logo-rest { color: var(--tx); }

nav ul { display: flex; list-style: none; align-items: center; gap: 32px; }
nav a { font-size: .88rem; font-weight: 600; color: var(--tx3); text-decoration: none; transition: color .2s; }
nav a:hover { color: var(--tx); }

.nav-cta {
    padding: 7px 15px;
    border-radius: 8px;
    border: 1px solid var(--amber-bdr) !important;
    background: var(--amber-dim) !important;
    color: var(--amber) !important;
}
.nav-cta:hover { background: var(--amber-glo) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--tx); border-radius: 1px; transition: all .3s var(--ease); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Static backdrop so the hero isn't flat when the canvas is off
       (reduced motion, JS disabled) */
    background:
        radial-gradient(ellipse 60% 50% at 75% 70%, rgba(232,160,32,.07), transparent 70%),
        radial-gradient(ellipse 70% 60% at 20% 85%, rgba(80,170,255,.06), transparent 70%);
}

/* Water canvas */
#waterCanvas {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Vignette: ensures text readability over the water */
.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 70% at 40% 50%, transparent 20%, rgba(7,13,26,.72) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 2;
}

.hero-content { max-width: 820px; }
.hero-content h1 { margin-bottom: 22px; }

/* Staggered word reveal */
.w {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: wUp .7s var(--snap) forwards;
}
.hero-overline { opacity: 0; animation: wUp .55s var(--snap) .05s forwards; }
.w1 { animation-delay: .15s; }
.w2 { animation-delay: .30s; }
.w3 { animation-delay: .45s; }
.hero-desc {
    font-size: 1.1rem;
    max-width: 56ch;
    margin-bottom: 34px;
    opacity: 0;
    animation: wUp .6s var(--snap) .62s forwards;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: wUp .5s var(--snap) .78s forwards;
}
@keyframes wUp { to { opacity:1; transform:translateY(0); } }

/* Stats bar */
.stats-bar {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--bdr);
    background: rgba(7,13,26,.80);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}
.stats-row { display: flex; align-items: stretch; }
.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 22px 28px;
}
.stat-n {
    font-family: var(--fm);
    font-size: clamp(1.5rem,3vw,2.3rem);
    font-weight: 600;
    color: var(--tx);
    letter-spacing: -.03em;
    line-height: 1;
}
.stat-l {
    font-size: .7rem;
    font-weight: 500;
    color: var(--tx3);
    text-transform: uppercase;
    letter-spacing: .1em;
}
.stat-rule { width: 1px; background: var(--bdr); margin: 18px 0; flex-shrink: 0; }

/* ── What We Build ────────────────────────────────────────────── */
.what-we-build { background: var(--bg-r); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    background: var(--bdr);
    gap: 1px;
    border: 1px solid var(--bdr);
    border-radius: 6px;
    overflow: hidden;
}
.platform-card {
    background: var(--bg-c);
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    transition: background .2s ease;
}
.platform-card:hover { background: var(--bg-ch); }

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.card-n { font-family: var(--fm); font-size: .72rem; color: var(--tx3); letter-spacing: .06em; }

.platform-card h3 { margin-bottom: 12px; }
.platform-card p  { flex: 1; font-size: .95rem; margin-bottom: 0; }

.feat-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.feat-list li { font-size: .84rem; color: var(--tx3); padding-left: 18px; position: relative; }
.feat-list li::before { content:'—'; position: absolute; left:0; color: var(--amber); font-size: .68rem; }

.bill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--bdr);
}
.bill {
    font-family: var(--fm);
    font-size: .74rem;
    color: var(--amber);
    background: var(--amber-dim);
    border: 1px solid var(--amber-bdr);
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: .05em;
}
.impact-full .bill-row { margin-bottom: 14px; }

/* ── Impact ───────────────────────────────────────────────────── */
.impact-card {
    background: var(--bg-c);
    border: 1px solid var(--bdr);
    border-radius: 6px;
    padding: 38px;
    transition: border-color .25s ease;
}
.impact-card:hover { border-color: var(--amber-bdr); }

.impact-tag {
    font-family: var(--fm);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber);
    display: inline-block;
    margin-bottom: 12px;
}
.impact-card h3 { margin-bottom: 6px; }

/* ── Our Work ─────────────────────────────────────────────────── */
.our-work { background: var(--bg-r); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }

.work-feature {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}
.work-feature-label { position: sticky; top: calc(68px + 24px); }
.work-feature-label h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: 16px; }
.work-feature-label p  { font-size: 1rem; }

.work-stats {
    display: flex;
    gap: 28px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--bdr);
    flex-wrap: wrap;
}
.wstat { display: flex; flex-direction: column; gap: 4px; }
.wstat-n { font-family: var(--fm); font-size: 1.8rem; font-weight: 600; color: var(--amber); letter-spacing: -.03em; line-height: 1; }
.wstat-l  { font-size: .7rem; color: var(--tx3); text-transform: uppercase; letter-spacing: .09em; }

.work-feature-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 900px) {
    .work-feature { grid-template-columns: 1fr; gap: 40px; }
    .work-feature-label { position: static; }
}

/* ── How We Work ──────────────────────────────────────────────── */
.how-we-work { background: var(--bg-r); border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr); }

.svc-table { border: 1px solid var(--bdr); border-radius: 6px; overflow: hidden; }
.svc-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
    padding: 38px 40px;
    border-bottom: 1px solid var(--bdr);
    transition: background .2s ease;
}
.svc-row:last-child { border-bottom: none; }
.svc-row:hover { background: var(--bg-c); }

.svc-label { display: flex; align-items: flex-start; gap: 18px; }
.svc-letter { font-family: var(--fm); font-size: 1.1rem; font-weight: 600; color: var(--amber); line-height: 1.6rem; flex-shrink: 0; width: 20px; }
.svc-row h3  { margin-bottom: 0; line-height: 1.3; }
.svc-row > p { margin-bottom: 0; }

/* ── Contact ──────────────────────────────────────────────────── */
.contact { background: var(--bg); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { margin-bottom: 14px; }

.contact-dl { margin-top: 38px; display: flex; flex-direction: column; gap: 24px; }
.cd-item { display: flex; flex-direction: column; gap: 4px; }
.cd-item dt {
    font-family: var(--fm);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tx3);
}
.cd-item dd  { font-size: .95rem; color: var(--tx); font-style: normal; }
.cd-item a   { color: var(--tx); text-decoration: none; transition: color .2s; }
.cd-item a:hover { color: var(--amber); }

.form-wrap {
    background: var(--bg-c);
    border: 1px solid var(--bdr);
    border-radius: 6px;
    padding: 38px;
}
.fg { margin-bottom: 20px; }
.fg label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tx3);
    margin-bottom: 7px;
}
.fc {
    width: 100%;
    padding: 11px 15px;
    background: var(--bg-r);
    border: 1px solid var(--bdr);
    border-radius: 6px;
    color: var(--tx);
    font-family: var(--fu);
    font-size: .93rem;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}
.fc:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,160,32,.12); }
.fc::placeholder { color: var(--tx3); }
textarea.fc { min-height: 130px; resize: vertical; font-family: var(--fu); }

/* Honeypot: never visible */
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-status {
    margin-top: 12px;
    font-size: .88rem;
    min-height: 1.4em;
    text-align: center;
    transition: color .2s;
}
.form-status.ok  { color: var(--live); }
.form-status.err { color: #f87171; }

/* ── Footer ───────────────────────────────────────────────────── */
footer { background: var(--bg-r); border-top: 1px solid var(--bdr); padding: 72px 0 36px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 72px; margin-bottom: 56px; }
.footer-brand .logo { display: inline-flex; margin-bottom: 18px; }
.footer-brand p { font-size: .9rem; max-width: 40ch; margin-bottom: 6px; }
.founder-note { font-family: var(--fm) !important; font-size: .7rem !important; color: var(--tx3) !important; letter-spacing: .08em !important; margin-top: 8px; }

.fnav h4 { font-family: var(--fm); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tx3); margin-bottom: 18px; }
.fnav ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fnav a   { font-size: .88rem; color: var(--tx2); text-decoration: none; transition: color .2s; }
.fnav a:hover { color: var(--tx); }

.footer-bottom {
    border-top: 1px solid var(--bdr);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-bottom p { font-size: .78rem; color: var(--tx3); margin: 0; max-width: none; }

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-overline, .w, .hero-desc, .hero-actions {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .platform-grid { grid-template-columns: 1fr; gap: 0; }
    .platform-card { border-bottom: 1px solid var(--bdr); }
    .platform-card:last-child { border-bottom: none; }
    .svc-row { grid-template-columns: 1fr; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    section { padding: 72px 0; }
    .hamburger { display: flex; }
    nav ul {
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: rgba(7,13,26,.98);
        flex-direction: column;
        padding: 30px 24px;
        gap: 22px;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform .3s var(--ease), opacity .3s var(--ease);
        border-bottom: 1px solid var(--bdr);
        z-index: 100;
    }
    nav ul.open { transform: translateY(0); opacity: 1; }
    .nav-cta { width: 100%; text-align: center; justify-content: center; }

    .hero { min-height: auto; }
    .hero-body { padding-top: 56px; padding-bottom: 56px; }

    .stats-row { flex-wrap: wrap; }
    .stat { flex: 1 1 40%; min-width: 110px; }
    .stat-rule { display: none; }

    .contact-grid { grid-template-columns: 1fr; gap: 44px; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }
    .form-wrap { padding: 24px 18px; }
    .impact-card { padding: 26px 22px; }
    .platform-card { padding: 26px 22px; }
    .svc-row { padding: 26px 22px; }
}
