/* =========================================================================
   XTRND theme styles. Reproduces the 4 mockup PNGs faithfully:
   dark slate background, Orbitron display + Montserrat body, blue→indigo→
   purple gradient on key headlines, orange spot on highlighted process step,
   bento grid for work, numbered grid for process, sticky transparent nav.
   ========================================================================= */

:root {
    --bg:          #0a0e1a;
    --bg-elev:     #11151f;
    --bg-card:     #161b27;
    --line:        #1f2535;
    --line-strong: #2a3247;
    --text:        #ffffff;
    --text-mute:   #94a3b8;
    --text-soft:   #cbd5e1;
    --accent-b:    #3b82f6;
    --accent-i:    #6366f1;
    --accent-p:    #a855f7;
    --accent-o:    #fb923c;
    --accent-g:    #4ade80;

    --grad-headline: linear-gradient(90deg, #3b82f6 0%, #6366f1 50%, #a855f7 100%);
    --grad-blue:     linear-gradient(135deg, #3b82f6, #6366f1);
    --grad-purple:   linear-gradient(135deg, #a855f7, #d946ef);
    --grad-orange:   linear-gradient(135deg, #fb923c, #f97316);
    --grad-green:    linear-gradient(135deg, #4ade80, #22c55e);

    --shadow-pill:   0 0 0 1px rgba(255,255,255,0.12), 0 8px 28px -12px rgba(59,130,246,0.4);
    --container:     1240px;
    --radius-sm:     6px;
    --radius:        14px;
    --radius-lg:     22px;

    --font-display:  'Orbitron', system-ui, sans-serif;
    --font-body:     'Montserrat', system-ui, sans-serif;
}

/* ============================================================== reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent-i); color: #fff; }

/* ============================================================== layout */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; position: relative; }

/* ============================================================== nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(10, 14, 26, 0.55);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 18px;
}
.brand-mark { width: 24px; height: 24px; color: #fff; }
.brand-word { letter-spacing: 0; }
.nav-primary {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    gap: 36px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--text-soft);
}
.nav-primary a { transition: color 180ms ease; }
.nav-primary a:hover { color: var(--text); }

.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.cta-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.4);
    background: rgba(99,102,241,0.08);
    box-shadow: var(--shadow-pill);
}
.cta-pill--lg { padding: 16px 28px; font-size: 14px; }

/* ============================================================== eyebrows */
.eyebrow {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.32em;
    color: var(--text-mute);
    text-transform: uppercase;
    margin: 0 0 24px;
}
.eyebrow--lg  { font-size: 12px; }
.eyebrow--center { text-align: center; margin-top: 80px; }

/* ============================================================== hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 80px 32px 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(99,102,241,0.18), transparent 70%),
        radial-gradient(ellipse 50% 45% at 80% 30%, rgba(168,85,247,0.18), transparent 70%),
        radial-gradient(ellipse 80% 70% at 70% 80%, rgba(59,130,246,0.10), transparent 70%),
        linear-gradient(180deg, #0a0e1a 0%, #0d1221 50%, #0a0e1a 100%);
    z-index: -2;
}
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask: radial-gradient(ellipse 70% 60% at 50% 60%, black, transparent 80%);
}
.hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    z-index: -1;
    animation: floaty 16s ease-in-out infinite;
}
.hero-glow--blue   { background: radial-gradient(circle, rgba(59,130,246,0.4), transparent 70%); top: 10%; left: -10%; }
.hero-glow--purple { background: radial-gradient(circle, rgba(168,85,247,0.35), transparent 70%); bottom: -10%; right: -10%; animation-delay: -8s; }
@keyframes floaty {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.05); }
}

.hero-inner {
    position: relative;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 60px 0;
}
.hero-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(54px, 9vw, 132px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 24px 0 56px;
    text-transform: none;
}
.hero-line { display: block; }
.hero-line--solid { color: var(--text); }
.hero-line--grad {
    background: var(--grad-headline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: filter 320ms ease;
}
.hero-line--grad:hover { filter: hue-rotate(35deg) brightness(1.1); }

.hero-cta { margin-top: 8px; }

.hero-scroll {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 44px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
}
.hero-scroll-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text);
    animation: scrollnudge 1.6s ease-in-out infinite;
}
@keyframes scrollnudge {
    0%, 100% { transform: translateY(-8px); opacity: 0.4; }
    50%      { transform: translateY(8px);  opacity: 1; }
}

/* ============================================================== section */
.section-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 56px;
    max-width: 16ch;
}
.section-headline--center {
    text-align: center;
    margin: 0 auto 32px;
    max-width: 18ch;
}
.section-headline em,
.section-headline .ital {
    font-style: italic;
    font-weight: 400;
    color: var(--text-soft);
}
.section-headline .grad,
.hero-line--grad,
.section-headline:has(em) {
    /* gradient utility */
}
.section-headline .grad {
    background: var(--grad-headline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.section-body {
    font-size: 17px;
    color: var(--text-soft);
    max-width: 56ch;
    margin: 0 0 24px;
    line-height: 1.65;
}
.section-body--center { text-align: center; margin: 0 auto 80px; }

/* ============================================================== why us */
.section--why-us {
    background: linear-gradient(180deg, #0a0e1a 0%, #0d1221 100%);
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 32px 0 64px;
    border-bottom: 1px solid var(--line);
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(56px, 7vw, 96px);
    line-height: 1;
    background: var(--grad-headline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.02em;
}
.stat-label {
    display: block;
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--text-mute);
    text-transform: uppercase;
    line-height: 1.5;
    max-width: 28ch;
    margin-left: auto; margin-right: auto;
}

.reasons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.reason {
    position: relative;
    padding: 36px 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
    transition: transform 200ms ease, border-color 200ms ease;
}
.reason::before {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.18;
    z-index: -1;
    transition: opacity 200ms ease;
}
.reason--blue::before   { background: var(--grad-blue); }
.reason--purple::before { background: var(--grad-purple); }
.reason--orange::before { background: var(--grad-orange); }
.reason--green::before  { background: var(--grad-green); }
.reason:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}
.reason:hover::before { opacity: 0.28; }
.reason-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--text-mute);
    margin-bottom: 14px;
}
.reason-body {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================== work */
.work-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.more-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
    transition: gap 200ms ease, border-color 200ms ease;
}
.more-link:hover {
    gap: 18px;
    border-bottom-color: var(--accent-i);
}
.more-arrow { transition: transform 200ms ease; }
.more-link:hover .more-arrow { transform: translateX(4px); }

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.tile {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
    transition: transform 200ms ease;
}
.tile:hover { transform: translateY(-4px); }
.tile-grad {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.tile-grad--0 { background: var(--grad-blue); }
.tile-grad--1 { background: var(--grad-purple); }
.tile-grad--2 { background: var(--grad-orange); }
.tile-grad--3 { background: var(--grad-green); }
.tile-grad--4 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.tile-grad--5 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.tile-grad--6 { background: linear-gradient(135deg, #fb7185, #ec4899); }
.tile-grad--7 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
    z-index: 0;
}
.tile-meta,
.tile-headline {
    position: absolute;
    z-index: 1;
    color: #fff;
}
.tile-meta {
    top: 18px; left: 20px; right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.92;
}
.tile-headline {
    bottom: 22px; left: 22px; right: 22px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.1;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0,0,0,0.4);
}

/* ============================================================== process */
.section--process {
    background: linear-gradient(180deg, #0a0e1a 0%, #0d1221 50%, #0a0e1a 100%);
}
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px 24px;
    margin-top: 24px;
}
.step {
    padding: 0;
    position: relative;
}
.step-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 64px;
    line-height: 1;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.step--hi .step-num {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.step--hi .step-title { color: var(--accent-o); }
.step-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}
.step-body {
    margin: 0;
    color: var(--text-mute);
    font-size: 13px;
    line-height: 1.55;
}

/* ============================================================== services */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.pillar {
    padding: 40px 36px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.pillar:hover {
    transform: translateY(-3px);
    border-color: var(--accent-i);
    background: linear-gradient(180deg, var(--bg-card), #1a1f30);
}
.pillar-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-blue);
    border-radius: 12px;
    margin-bottom: 24px;
    color: #fff;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    margin: 0 0 12px;
}
.pillar-body { margin: 0; color: var(--text-soft); font-size: 15px; line-height: 1.6; }

/* ============================================================== team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.member { text-align: center; }
.member-photo {
    aspect-ratio: 1;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a1f30, #11151f);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.member-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-headline);
    opacity: 0.08;
}
.member-initial {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 38px;
    background: var(--grad-headline);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.member-name { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.member-role { font-size: 12px; color: var(--text-mute); letter-spacing: 0.04em; margin: 0; }

/* ============================================================== faq */
.faq { margin-top: 32px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
    list-style: none;
    cursor: pointer;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.005em;
    color: var(--text);
    transition: color 180ms ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent-i); }
.faq-icon {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-mute);
    margin-left: 16px;
    transition: transform 220ms ease, color 200ms ease;
}
details[open] .faq-icon { transform: rotate(45deg); color: var(--accent-i); }
.faq-a {
    padding: 0 0 28px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
    max-width: 64ch;
}

/* ============================================================== footer */
.site-footer {
    background: linear-gradient(180deg, #0a0e1a 0%, #07090f 100%);
    padding: 120px 0 60px;
    border-top: 1px solid var(--line);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}
.footer-cta { text-align: center; max-width: 720px; margin: 0 auto 96px; }
.footer-headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
    margin: 16px 0 18px;
}
.footer-body {
    color: var(--text-soft);
    font-size: 17px;
    margin: 0 0 36px;
}
.footer-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
    color: var(--text-mute);
    font-size: 13px;
}
.footer-label {
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    margin: 0 0 12px;
}

/* ============================================================== reveal anim
   Plain on-load fade-up. Scroll-linked reveals were dropped because they
   are unreliable under headless screenshot capture and add complexity
   without enough payoff for an MVP demo. The hero still lands with a
   staggered entrance via per-element --reveal-delay.                       */
.reveal {
    animation: xtrnd-fade-up 700ms cubic-bezier(.22,.61,.36,1) both var(--reveal-delay, 0ms);
}
@keyframes xtrnd-fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    .hero-glow { animation: none; }
    .hero-scroll-dot { animation: none; }
}

/* ============================================================== responsive */
@media (max-width: 1100px) {
    .nav-primary { display: none; }
    .reasons { grid-template-columns: 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .pillars { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-meta { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; gap: 48px; }
    .section { padding: 80px 0; }
}
@media (max-width: 640px) {
    .nav-inner { padding: 14px 20px; gap: 16px; }
    .cta-pill { padding: 10px 14px; font-size: 11px; letter-spacing: 0.12em; }
    .container, .container--narrow { padding: 0 20px; }
    .bento { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* utility */
.text-3xl { font-size: 1.875rem; }
.text-muted { color: var(--text-mute); }
.link { color: var(--accent-i); text-decoration: underline; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.bg-bg { background: var(--bg); }
