/* ==========================================================================
   Salina Labs - shared design system
   Dark is the default. Light theme is applied via <html data-theme="light">.
   ========================================================================== */
:root {
    color-scheme: dark;
    --bg-color: #070913;
    --bg-alt: #0a0e1d;
    --surface-color: #0f172a;
    --surface-hover: #172036;
    --surface-border: #1e293b;
    --accent-primary: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --heading: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-body: #cbd5e1;
    --nav-bg: rgba(7, 9, 19, 0.8);
    --glow-1: rgba(59, 130, 246, 0.22);
    --glow-2: rgba(6, 182, 212, 0.14);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    --callout-bg: rgba(59, 130, 246, 0.08);
    --callout-border: #3b82f6;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --warning-border: #f59e0b;
    --warning-text: #fde68a;
    --success-bg: rgba(16, 185, 129, 0.08);
    --success-border: #10b981;
    --success-text: #6ee7b7;
    --grad: linear-gradient(135deg, #60a5fa 0%, #06b6d4 100%);
    --radius: 20px;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg-color: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface-color: #ffffff;
    --surface-hover: #f1f5f9;
    --surface-border: #e2e8f0;
    --accent-primary: #2563eb;
    --accent-cyan: #0891b2;
    --heading: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-body: #334155;
    --nav-bg: rgba(248, 250, 252, 0.85);
    --glow-1: rgba(59, 130, 246, 0.16);
    --glow-2: rgba(6, 182, 212, 0.12);
    --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --callout-bg: rgba(37, 99, 235, 0.06);
    --warning-bg: rgba(245, 158, 11, 0.1);
    --warning-text: #92400e;
    --success-bg: rgba(16, 185, 129, 0.1);
    --success-text: #047857;
    --grad: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-primary); }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; border-radius: 6px; }
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--accent-primary); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ---------- Header / nav ---------- */
header.site-header {
    border-bottom: 1px solid var(--surface-border);
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 50;
}
.nav-container {
    max-width: 1160px; margin: 0 auto; padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand-logo {
    font-size: 19px; font-weight: 800; letter-spacing: -0.5px; color: var(--heading);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand-logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--heading); }
.nav-links a.nav-cta {
    background: var(--accent-primary); color: #fff; padding: 9px 18px; border-radius: 10px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #2563eb; color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    background: transparent; border: 1px solid var(--surface-border); color: var(--text-secondary);
    width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; transition: all .2s ease;
}
.icon-btn:hover { color: var(--heading); border-color: var(--accent-primary); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 12px; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: all .2s ease; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.35); }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(59,130,246,.5); }
.btn-secondary { background: var(--surface-color); color: var(--heading); border-color: var(--surface-border); }
.btn-secondary:hover { border-color: var(--accent-primary); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section.block { padding: 96px 0; }
section.block.alt { background: var(--bg-alt); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent-cyan); margin-bottom: 10px; }
.section-title { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--heading); line-height: 1.15; margin-bottom: 14px; }
.section-lead { font-size: 18px; color: var(--text-secondary); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; padding: 84px 0 96px;
    background:
        radial-gradient(60% 50% at 20% 0%, var(--glow-1), transparent 70%),
        radial-gradient(50% 45% at 90% 20%, var(--glow-2), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.studio-badge {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(59,130,246,.1); color: var(--accent-primary);
    font-size: 13px; font-weight: 700; letter-spacing: .6px; padding: 6px 14px; border-radius: 9999px;
    border: 1px solid rgba(59,130,246,.25); margin-bottom: 22px;
}
h1.hero-title { font-size: 58px; font-weight: 800; letter-spacing: -2px; line-height: 1.06; color: var(--heading); margin-bottom: 22px; }
p.hero-lead { font-size: 20px; color: var(--text-secondary); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--text-secondary); font-size: 14px; }
.hero-trust span::before { content: "\2713"; color: var(--accent-emerald); font-weight: 800; margin-right: 8px; }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.hero-visual .phone { position: absolute; }
.hero-visual .phone.p1 { width: 250px; left: 6%; top: 40px; transform: rotate(-5deg); z-index: 2; }
.hero-visual .phone.p2 { width: 230px; right: 4%; top: 0; transform: rotate(5deg); }

/* ---------- Phone mockup ---------- */
.phone {
    background: #05070f; border-radius: 34px; padding: 8px; border: 1px solid rgba(148,163,184,.25);
    box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.phone img { display: block; width: 100%; border-radius: 27px; }
:root[data-theme="light"] .phone { box-shadow: 0 30px 60px rgba(15,23,42,.25); }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 3; }
.stat {
    background: var(--surface-color); border: 1px solid var(--surface-border); border-radius: 16px;
    padding: 22px; text-align: center; box-shadow: var(--card-shadow);
}
.stat strong { display: block; font-size: 22px; color: var(--heading); letter-spacing: -.4px; }
.stat span { font-size: 13px; color: var(--text-secondary); }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 110px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media::before {
    content: ""; position: absolute; inset: 8% 10%; background: var(--glow-1); filter: blur(60px); border-radius: 50%; z-index: 0;
}
.feature-media .phone { width: 270px; position: relative; z-index: 1; cursor: zoom-in; transition: transform .3s ease; }
.feature-media .phone:hover { transform: translateY(-6px); }
.feature-copy h3 { font-size: 32px; letter-spacing: -.8px; color: var(--heading); line-height: 1.18; margin-bottom: 14px; }
.feature-copy p { font-size: 17px; color: var(--text-secondary); margin-bottom: 20px; }
.feature-bullets { list-style: none; }
.feature-bullets li { font-size: 15px; color: var(--text-body); margin-bottom: 12px; display: flex; gap: 12px; align-items: flex-start; }
.feature-bullets li::before {
    content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; background: var(--grad); border-radius: 50%;
}
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent-cyan); margin-bottom: 10px; }

/* ---------- Card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
    background: var(--surface-color); border: 1px solid var(--surface-border); border-radius: 18px; padding: 28px;
    transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.5); }
.card .ico {
    width: 46px; height: 46px; border-radius: 12px; background: rgba(59,130,246,.12); color: var(--accent-primary);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h4 { font-size: 18px; color: var(--heading); margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-secondary); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.price-card { background: var(--surface-color); border: 1px solid var(--surface-border); border-radius: 24px; padding: 38px; position: relative; }
.price-card.pro { border-color: var(--accent-primary); box-shadow: 0 0 0 1px var(--accent-primary), var(--card-shadow); }
.price-card .tag {
    position: absolute; top: -13px; right: 28px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 9999px; letter-spacing: .5px;
}
.price-card h4 { font-size: 22px; color: var(--heading); }
.price { font-size: 44px; font-weight: 800; color: var(--heading); letter-spacing: -1.5px; margin: 10px 0 4px; }
.price small { font-size: 15px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }
.price-note { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; }
.price-card ul { list-style: none; margin-bottom: 26px; }
.price-card li { font-size: 14.5px; color: var(--text-body); margin-bottom: 11px; padding-left: 26px; position: relative; }
.price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-emerald); font-weight: 800; }
.price-card .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-cat { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent-cyan); margin: 40px 0 14px; }
details.faq { background: var(--surface-color); border: 1px solid var(--surface-border); border-radius: 14px; margin-bottom: 12px; transition: border-color .2s ease; }
details.faq[open] { border-color: rgba(59,130,246,.5); }
details.faq summary {
    cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px; color: var(--heading); list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--accent-primary); transition: transform .2s ease; flex: 0 0 auto; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 22px 20px; color: var(--text-body); font-size: 15px; }
details.faq .answer p { margin-bottom: 10px; }
details.faq .answer ol, details.faq .answer ul { padding-left: 20px; margin-bottom: 10px; }
details.faq .answer li { margin-bottom: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
    text-align: center; padding: 72px 24px; border-radius: 28px; border: 1px solid var(--surface-border);
    background: radial-gradient(70% 120% at 50% 0%, var(--glow-1), transparent 70%), var(--surface-color);
}
.cta-band h2 { font-size: 36px; letter-spacing: -1px; color: var(--heading); margin-bottom: 12px; }
.cta-band p { color: var(--text-secondary); font-size: 18px; margin-bottom: 28px; }

/* ---------- Support page ---------- */
.page-hero { padding: 72px 0 40px; text-align: center; background: radial-gradient(60% 80% at 50% 0%, var(--glow-1), transparent 70%); }
.page-hero h1 { font-size: 46px; letter-spacing: -1.4px; color: var(--heading); margin-bottom: 12px; }
.page-hero p { color: var(--text-secondary); font-size: 18px; max-width: 620px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 8px; }
.contact-card { background: var(--surface-color); border: 1px solid var(--surface-border); border-radius: 18px; padding: 26px; }
.contact-card h4 { color: var(--heading); margin-bottom: 6px; font-size: 17px; }
.contact-card p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 10px; }
.faq-search {
    width: 100%; max-width: 820px; display: block; margin: 0 auto 8px; padding: 16px 20px; border-radius: 14px;
    border: 1px solid var(--surface-border); background: var(--surface-color); color: var(--heading); font-size: 16px;
}
.faq-search::placeholder { color: var(--text-secondary); }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--surface-border); padding: 56px 24px 40px; font-size: 14px; color: var(--text-secondary); }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 280px; font-size: 14px; color: var(--text-secondary); }
.footer-col h5 { color: var(--heading); font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: var(--heading); }
.copyright-line { max-width: 1160px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--surface-border); color: var(--text-secondary); font-size: 13px; text-align: center; }
.footer-links { margin-bottom: 16px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--heading); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(2,4,10,.88); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Legal / document pages ---------- */
.main-wrapper { max-width: 880px; margin: 48px auto 80px; padding: 0 24px; }
.doc-card { background: var(--surface-color); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 48px; box-shadow: var(--card-shadow); }
.doc-header { border-bottom: 1px solid var(--surface-border); padding-bottom: 28px; margin-bottom: 36px; }
.doc-badge {
    display: inline-block; background: rgba(59,130,246,.12); color: var(--accent-primary); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px; padding: 5px 12px; border-radius: 9999px;
    border: 1px solid rgba(59,130,246,.25); margin-bottom: 14px;
}
.doc-card h1 { font-size: 34px; font-weight: 800; color: var(--heading); letter-spacing: -.8px; margin-bottom: 10px; }
.meta-line { color: var(--text-secondary); font-size: 14px; }
.doc-card h2 { font-size: 21px; color: var(--heading); font-weight: 700; margin-top: 40px; margin-bottom: 16px; letter-spacing: -.3px; border-bottom: 1px solid var(--surface-border); padding-bottom: 8px; }
.doc-card h3 { font-size: 17px; color: var(--heading); font-weight: 600; margin-top: 24px; margin-bottom: 10px; }
.doc-card p { font-size: 15px; color: var(--text-body); margin-bottom: 16px; line-height: 1.7; }
.doc-card ul, .doc-card ol { padding-left: 22px; margin-bottom: 18px; }
.doc-card li { font-size: 15px; color: var(--text-body); margin-bottom: 10px; line-height: 1.7; }
.doc-card li strong { color: var(--heading); }
.callout-box, .warning-box, .success-box { padding: 20px 24px; border-radius: 0 14px 14px 0; margin: 28px 0; color: var(--text-body); font-size: 15px; }
.callout-box { background: var(--callout-bg); border-left: 4px solid var(--callout-border); }
.warning-box { background: var(--warning-bg); border-left: 4px solid var(--warning-border); }
.success-box { background: var(--success-bg); border-left: 4px solid var(--success-border); }
.callout-box strong, .warning-box strong, .success-box strong { display: block; margin-bottom: 6px; font-size: 15px; color: var(--heading); }
.warning-box strong { color: var(--warning-text); }
.success-box strong { color: var(--success-text); }
.table-responsive { overflow-x: auto; margin: 24px 0; border: 1px solid var(--surface-border); border-radius: 12px; }
.doc-card table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.doc-card th, .doc-card td { padding: 14px 18px; border-bottom: 1px solid var(--surface-border); }
.doc-card th { background: var(--surface-hover); color: var(--heading); font-weight: 600; }
.doc-card td { color: var(--text-body); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    p.hero-lead { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-visual { min-height: 460px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 36px; text-align: left; margin-bottom: 80px; }
    .feature-row.reverse .feature-media { order: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .menu-toggle { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 0; background: var(--bg-color); border-bottom: 1px solid var(--surface-border); padding: 8px 24px 20px;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--surface-border); }
    .nav-links a.nav-cta { text-align: center; margin-top: 14px; border-bottom: 0; }
    h1.hero-title { font-size: 40px; letter-spacing: -1.2px; }
    .section-title { font-size: 30px; }
    section.block { padding: 72px 0; }
    .pricing-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 34px; }
    .doc-card { padding: 28px 20px; }
    .doc-card h1 { font-size: 26px; }
    .hero-visual .phone.p1 { width: 200px; }
    .hero-visual .phone.p2 { width: 185px; }
    .hero-visual { min-height: 420px; }
}
