/* Orbsen site template — design tokens stamped at scaffold time.
   The agent customizes from here; keep the custom properties as the source
   of truth for brand colours and fonts. */

:root {
    /* Brand DNA — purple keep, deep indigo ink, near-white lilac page. */
    --primary: #593196;
    --primary-2: #7a4fc0;
    --accent: #2ee6a6;          /* signal green — "sealed / verified" */
    --nav-bg: #1b0847;
    --ink: #1b0847;
    --muted: #5a5170;
    --bg: #f8f7fb;
    --surface: #ffffff;
    --line: #e7e2f2;
    --dark: #150636;
    --dark-2: #241150;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
    --radius: 16px;
    --shadow: 0 18px 40px -24px rgba(27, 8, 71, .45);
    --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* --- nav ------------------------------------------------------------- */
header.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    flex-wrap: wrap;
}

header.nav .brand {
    font-weight: 700;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

header.nav .brand img { max-height: 38px; }
header.nav .brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--primary), var(--primary-2));
    font-size: 1rem;
}
header.nav .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
header.nav .bt { font-weight: 700; }
header.nav .bs { font-size: .7rem; opacity: .85; font-weight: 400; }

header.nav .links { display: flex; gap: 4px; flex-wrap: wrap; }
header.nav .item { position: relative; }

header.nav .item > a {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    opacity: .85;
    font-size: .95rem;
    padding: 6px 8px;
}

header.nav .item > a:hover { opacity: 1; }

header.nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--nav-bg);
    padding: 8px;
    border-radius: 0 0 8px 8px;
    min-width: 170px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
    z-index: 20;
}

header.nav .item:hover .sub,
header.nav .item:focus-within .sub { display: flex; }

header.nav .sub a {
    color: #fff;
    opacity: .85;
    text-decoration: none;
    font-size: .9rem;
    padding: 4px 6px;
}

header.nav .sub a:hover { opacity: 1; }

.nt { display: none; }

.hamb {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    user-select: none;
}

@media (max-width: 768px) {
    .hamb { display: block; }
    header.nav .links { display: none; flex-basis: 100%; flex-direction: column; gap: 6px; }
    .nt:checked ~ .links { display: flex; }
    header.nav .sub { position: static; display: flex; padding: 2px 0 2px 16px; box-shadow: none; background: transparent; }
}

header.nav .item > a.cta {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
    opacity: 1;
    border-radius: 999px;
    padding: 8px 18px;
    margin-left: 6px;
}
header.nav .item > a.cta:hover { filter: brightness(1.06); }

/* --- layout helpers --------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 24px; }
.section > .wrap { padding: 0; }
.eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-2);
    margin: 0 0 14px;
}
.eyebrow.on-dark { color: var(--accent); }

/* --- hero ------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 600px at 78% -10%, rgba(122, 79, 192, .55), transparent 60%),
        radial-gradient(800px 500px at 0% 110%, rgba(46, 230, 166, .18), transparent 55%),
        linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 60%, #2d1560 100%);
    color: #fff;
    padding: 108px 24px 96px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin: 0 0 18px;
    font-weight: 800;
}
.hero h1 .hl {
    background: linear-gradient(90deg, var(--accent), #8fe9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, .82);
    max-width: 46ch;
    margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; }

/* --- buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: .98rem;
    transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-2); }

/* --- terminal / proof card in hero ------------------------------------ */
.terminal {
    background: rgba(10, 3, 28, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    font-family: var(--mono);
    font-size: .84rem;
    overflow: hidden;
    backdrop-filter: blur(4px);
}
.terminal .bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.terminal .bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #4a3a6e; }
.terminal .bar .name { margin-left: 8px; color: rgba(255, 255, 255, .55); font-size: .78rem; }
.terminal .body { padding: 18px 20px; color: #cec7e6; line-height: 1.75; }
.terminal .body .c-key { color: #8fe9ff; }
.terminal .body .c-store { color: #ff9db8; }
.terminal .body .c-ok { color: var(--accent); }
.terminal .body .c-dim { color: rgba(255, 255, 255, .38); }

/* --- badges strip ----------------------------------------------------- */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
    font-weight: 500;
}
.badges .tick { color: var(--accent); font-weight: 800; }

/* --- generic page head ------------------------------------------------ */
.page-head {
    background: linear-gradient(160deg, var(--dark), var(--dark-2));
    color: #fff;
    padding: 64px 24px;
    text-align: center;
}
.page-head h1 { margin: 0; font-size: 2.2rem; }

/* --- section headings ------------------------------------------------- */
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* --- cards ------------------------------------------------------------ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
}
.card .icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--primary), var(--primary-2));
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

/* --- how it works steps ----------------------------------------------- */
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    counter-reset: step;
}
.step { position: relative; padding: 30px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.step .num {
    counter-increment: step;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
    margin-bottom: 16px;
}
.step .num::before { content: counter(step); }
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* --- proof / falsification panel -------------------------------------- */
.proof {
    background: linear-gradient(160deg, var(--dark), #2a1258);
    color: #fff;
}
.proof .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.proof h2 { color: #fff; }
.proof p { color: rgba(255, 255, 255, .8); }
.proof .checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.proof .checklist li {
    display: flex; gap: 12px; align-items: flex-start;
    color: rgba(255, 255, 255, .9);
}
.proof .checklist li::before {
    content: "✓"; color: var(--dark); background: var(--accent);
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800;
    flex: 0 0 auto; margin-top: 2px;
}
.callout {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    padding: 20px 22px;
    color: rgba(255, 255, 255, .85);
    font-size: .96rem;
}
.callout strong { color: #fff; }

/* --- final CTA -------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .section-head { margin-bottom: 26px; }

/* --- prose ------------------------------------------------------------ */
.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px;
}
.prose h2 { margin-top: 0; }
.prose a { color: var(--primary); }

/* --- footer ------------------------------------------------------------ */
footer.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    color: var(--muted);
    font-size: .85rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
}
footer.foot .tag { opacity: .8; }

/* --- responsive ------------------------------------------------------- */
@media (max-width: 860px) {
    .hero .grid { grid-template-columns: 1fr; gap: 40px; }
    .proof .grid { grid-template-columns: 1fr; gap: 32px; }
    .hero { padding: 84px 24px 72px; }
    .section { padding: 56px 24px; }
}
