:root {
    --bg: #0b0b0d;
    --bg-alt: #121216;
    --card: rgba(23, 23, 28, .82);
    --card-hover: rgba(30, 30, 37, .92);
    --line: #2a2a33;
    --text: #f5f5f7;
    --muted: #b4b4bd;
    --accent: #ffffff;
    --accent-ink: #0b0b0d;
    --glow: rgba(120, 140, 255, .18);
    --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    margin: 0;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(40% 35% at 85% 20%, rgba(110, 90, 255, .10), transparent 70%),
        radial-gradient(45% 40% at 10% 75%, rgba(60, 120, 255, .08), transparent 70%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid #8fa0ff; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* Header */
header.site {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 11, 13, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; align-items: center; }
nav a { font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s; }
nav a:hover { color: #fff; }
nav a.nav-cta { color: var(--accent-ink); background: var(--accent); padding: .5rem 1.1rem; border-radius: 999px; font-weight: 600; }
nav a.nav-cta:hover { background: #dcdcff; color: var(--accent-ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }

/* Hero */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
    background:
        radial-gradient(60% 55% at 85% 0%, var(--glow), transparent 70%);
}
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.08; margin: 0 0 1.4rem; font-weight: 800; letter-spacing: -.02em; max-width: 16ch; }
.hero h1 span { color: var(--muted); }
.hero h1 .nowrap { white-space: nowrap; color: inherit; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 56ch; margin: 0 0 2.2rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.8rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #dcdcff; }
.btn-ghost { border-color: #4a4a57; color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; }
.chat-cta { margin-top: 1.25rem; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.alt { background: rgba(18, 18, 22, .55); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1rem; letter-spacing: -.01em; line-height: 1.2; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.about h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1.2rem; line-height: 1.2; }
.about p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1rem; }
.pillars { display: grid; gap: 1rem; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.pillar strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.pillar span { color: var(--muted); font-size: .95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem; transition: transform .25s, background .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); background: var(--card-hover); border-color: #46465a; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: #23232c; display: grid; place-items: center; margin-bottom: 1.3rem; }
.icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 0 0 .6rem; font-size: 1.2rem; }
.service p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 1.8rem 1.5rem; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 800; font-size: 1.6rem; color: #fff; margin-bottom: .6rem; }
.step h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1rem; line-height: 1.2; }
.contact p { color: var(--muted); margin: 0 0 1rem; }
.contact-card { display: grid; gap: 1.1rem; justify-items: start; background: var(--card); border: 1px solid var(--line); padding: 2.2rem; border-radius: var(--radius); }
.contact-card .eyebrow { margin-bottom: 0; }
.contact-email { font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; color: #fff; word-break: break-all; }
.contact-email:hover { color: #dcdcff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.copy-note { font-size: .9rem; min-height: 1.4em; margin: 0; color: #7ee2a8; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.foot ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin: 0; padding: 0; }
.foot a:hover { color: #fff; }

/* Starfield */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
    .about, .contact { grid-template-columns: 1fr; gap: 2rem; }
    .menu-btn { display: grid; place-items: center; }
    nav ul {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: #0b0b0d; border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.2rem;
        display: none; align-items: stretch;
    }
    nav ul.open { display: flex; }
    nav li a { display: block; padding: .9rem 0; }
    nav a.nav-cta { text-align: center; margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .service { transition: none; }
}