/* ============================================================
   STARLOADER DESIGN SYSTEM v2
   Professional SaaS UI — refined neutrals, disciplined accents
   ============================================================ */

:root {
    --bg: #08090c;
    --surface: #0d0f13;
    --surface-2: #11141a;
    --line: #1c2129;
    --line-2: #262d38;
    --txt: #e8ecf1;
    --muted: #9aa4b2;
    --faint: #626d7b;
    --accent: #5b8cff;
    --accent-2: #8b5cf6;
    --ok: #34d399;
    --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .35);
    --shadow-glow: 0 0 0 1px rgba(91, 140, 255, .25), 0 12px 40px rgba(91, 140, 255, .12);
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.65;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(91, 140, 255, .35); color: #fff; }

main { flex: 1; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ---------- EYEBROW LABELS ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--accent); opacity: .6; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad); color: #fff;
    font-weight: 600; font-size: 14.5px; line-height: 1;
    padding: 12px 24px; border-radius: 10px;
    border: 0; cursor: pointer; font-family: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.18);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(91, 140, 255, .35); }
.btn:active { transform: translateY(0); }
.btn-outline {
    background: transparent; color: var(--txt);
    border: 1px solid var(--line-2);
    box-shadow: none;
}
.btn-outline:hover { border-color: var(--accent); box-shadow: none; background: rgba(91, 140, 255, .06); }
.btn-lg { padding: 15px 30px; font-size: 15.5px; border-radius: 12px; }

/* ---------- NAV ---------- */
nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(8, 9, 12, .78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { font-family: 'Space Grotesk', Inter, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    background: var(--grad);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 14px rgba(91, 140, 255, .45);
    position: relative;
}
.logo-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 3px; border: 1.5px solid rgba(255,255,255,.9); border-bottom: 0; border-right: 0; opacity: .9; }

.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .15s; }
.nav-links a:hover { color: var(--txt); }
.nav-links a.active { color: var(--txt); }
.nav-links a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--grad); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    display: none; background: transparent; border: 1px solid var(--line-2);
    color: var(--txt); font-size: 17px; border-radius: var(--r-sm);
    width: 38px; height: 38px; cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- HERO ---------- */
header.hero {
    text-align: center; padding: 96px 0 40px; position: relative;
}
header.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 50% 42% at 50% 0%, rgba(91, 140, 255, .13), transparent 70%),
        radial-gradient(ellipse 30% 25% at 80% 15%, rgba(139, 92, 246, .07), transparent 70%);
}
.hero > * { position: relative; }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 500; color: #c7d6ff;
    background: rgba(91, 140, 255, .08);
    border: 1px solid rgba(91, 140, 255, .28);
    border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

h1 {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: clamp(34px, 5.8vw, 62px);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
    max-width: 820px; margin: 0 auto;
}
h1 .grad, .grad {
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero p.lead {
    margin: 22px auto 0; max-width: 640px;
    color: var(--muted); font-size: 17px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--faint); letter-spacing: .02em; }

/* ---------- LOGO STRIP ---------- */
.logo-strip {
    display: flex; justify-content: center; align-items: center;
    gap: clamp(20px, 5vw, 56px); flex-wrap: wrap;
    padding: 26px 0 0; color: var(--faint);
    font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}

/* ---------- PAGE HEAD (inner pages) ---------- */
.page-head { text-align: center; padding: 72px 0 16px; position: relative; }
.page-head::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 45% 60% at 50% 0%, rgba(91, 140, 255, .1), transparent 70%);
}
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); }
.page-head p { color: var(--muted); max-width: 620px; margin: 16px auto 0; font-size: 16px; }
.page-head .eyebrow { justify-content: center; }
.page-head .eyebrow::after { content: ''; width: 18px; height: 1px; background: var(--accent); opacity: .6; }

/* ---------- SECTIONS ---------- */
section { padding: 52px 0; }
section .sec-head, .sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: clamp(25px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.025em;
}
.sec-head p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.sec-eyebrow {
    display: block; text-align: center; font-size: 11.5px; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* ---------- CARDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    border-color: rgba(91, 140, 255, .4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.card .ico {
    width: 42px; height: 42px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    background: rgba(91, 140, 255, .09);
    border: 1px solid rgba(91, 140, 255, .22);
    margin-bottom: 18px;
}
.card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 13.8px; line-height: 1.7; }

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.step::before {
    counter-increment: step; content: counter(step);
    font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #fff;
    background: var(--grad); width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.8px; }

/* ---------- STATS ---------- */
.stats {
    display: flex; justify-content: space-around; gap: 24px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 38px 28px;
}
.stat { text-align: center; min-width: 120px; }
.stat .n {
    font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -.02em;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { font-size: 11.5px; color: var(--faint); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }

/* ---------- PRICING ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 30px 26px;
    display: flex; flex-direction: column; position: relative;
    transition: border-color .2s, transform .2s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.price-card.featured {
    border-color: rgba(91, 140, 255, .5);
    box-shadow: var(--shadow-glow);
    background: linear-gradient(180deg, rgba(91, 140, 255, .05), transparent 40%), var(--surface);
}
.price-card .tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700;
    letter-spacing: .1em; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(91, 140, 255, .35);
}
.price-card h3 { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.price-card .amount { font-family: 'Space Grotesk', sans-serif; font-size: 38px; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.02em; }
.price-card .amount small { font-size: 14px; color: var(--faint); font-weight: 400; }
.price-card ul { list-style: none; margin: 20px 0 26px; flex: 1; }
.price-card li { font-size: 13.5px; color: #c4ccd6; padding: 7px 0; display: flex; gap: 10px; align-items: baseline; }
.price-card li::before {
    content: '\2713'; color: var(--ok); font-weight: 700; font-size: 12px;
    width: 16px; height: 16px; border-radius: 50%; background: rgba(52, 211, 153, .12);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    transform: translateY(2px);
}
.price-card .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 740px; margin: 0 auto; }
.faq details {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 10px;
    transition: border-color .2s;
}
.faq details[open], .faq details:hover { border-color: var(--line-2); }
.faq summary {
    cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none;
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; color: var(--accent); font-size: 19px; font-weight: 400;
    transition: transform .2s; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 13.8px; margin-top: 12px; }

/* ---------- PROSE (legal) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 20px 0 60px; }
.prose h2 { font-size: 20px; margin: 36px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--txt); }
.prose a { color: var(--accent); }
.prose .updated { font-size: 12.5px; color: var(--faint); margin-bottom: 28px; }

/* ---------- CONTACT ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-bottom: 12px; }
.contact-info p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.contact-line { font-size: 14px; color: #c4ccd6; padding: 7px 0; display: flex; gap: 10px; }

form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 16px; }
form label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 7px; font-weight: 500; }
form input, form textarea {
    width: 100%; background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 10px; padding: 12px 14px; color: var(--txt); font-size: 14px; font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .15); }
form textarea { min-height: 116px; resize: vertical; }

/* ---------- CTA BAND ---------- */
.cta-band {
    text-align: center; position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 22px; padding: 56px 30px;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(91, 140, 255, .16), transparent 70%);
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin-bottom: 12px; letter-spacing: -.02em; }
.cta-band p { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.cta-band > * { position: relative; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 44px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.foot-desc { color: var(--faint); font-size: 13px; line-height: 1.8; margin-top: 12px; max-width: 300px; }
.foot-col h4 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--faint); font-size: 13.5px; padding: 4.5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--txt); }
.foot-bottom {
    margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
    font-size: 12.5px; color: var(--faint);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- 404 ---------- */
.err { text-align: center; padding: 110px 0; }
.err .code {
    font-family: 'Space Grotesk', sans-serif; font-size: 96px; font-weight: 700; letter-spacing: -.03em;
    background: linear-gradient(100deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err p { color: var(--muted); margin: 12px 0 28px; }

/* ---------- HERO VISUAL (dashboard mock) ---------- */
.hero-visual { max-width: 880px; margin: 64px auto 0; position: relative; }
.hv-window {
    background: var(--surface); border: 1px solid var(--line-2);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.02);
    text-align: left;
}
.hv-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.hv-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.hv-bar span:first-child { background: rgba(255, 95, 87, .7); }
.hv-bar span:nth-child(2) { background: rgba(254, 188, 46, .7); }
.hv-bar span:nth-child(3) { background: rgba(40, 200, 64, .7); }
.hv-body { display: grid; grid-template-columns: 150px 1fr; }
.hv-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 4px; align-content: start; }
.hv-item { font-size: 12px; color: var(--faint); padding: 7px 12px; border-radius: 7px; }
.hv-item.active { background: rgba(91, 140, 255, .12); color: var(--accent); font-weight: 500; }
.hv-main { padding: 16px 18px; }
.hv-row {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--muted);
    padding: 9px 4px; border-bottom: 1px solid var(--line);
}
.hv-row:last-of-type { border-bottom: 0; }
.hv-row span { flex: 1; color: var(--txt); }
.hv-row em { font-style: normal; color: var(--faint); }
.hv-row i { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.hv-row i.ok { color: var(--ok); background: rgba(52, 211, 153, .1); }
.hv-row i.up { color: var(--accent); background: rgba(91, 140, 255, .1); }
.hv-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 16px; padding: 0 4px; }
.hv-bars i { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(139, 92, 246, .35)); border-radius: 4px 4px 0 0; opacity: .85; }
.hv-float {
    position: absolute; font-size: 12px; font-weight: 600; color: var(--txt);
    background: var(--surface-2); border: 1px solid var(--line-2);
    padding: 9px 16px; border-radius: 11px; box-shadow: var(--shadow-md);
}
.hv-float small { display: block; font-weight: 400; color: var(--faint); font-size: 10.5px; }
.hv-f1 { top: 30%; left: -26px; }
.hv-f2 { bottom: -18px; right: -14px; }
.hv-f2 b { color: var(--ok); }

/* ---------- REVEAL ---------- */
/* Visible by default; only hidden when JS is running (html.js) so content
   can never be lost to a failed/timed-out script. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
    .grid-3, .steps, .pricing, .contact-wrap, .foot-grid, .grid-2 { grid-template-columns: 1fr; }
    .menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        flex-direction: column; gap: 0; padding: 8px 24px 16px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 11px 0; border-bottom: 1px solid var(--line); }
    .nav-links a.active::after { display: none; }
    header.hero { padding: 64px 0 30px; }
    .hv-body { grid-template-columns: 1fr; }
    .hv-side { display: none; }
    .hv-float { display: none; }
    section { padding: 40px 0; }
}
