:root {
    --ink: #0f1226;
    --muted: #5a6078;
    --accent: #4b6bf5;
    --accent-dark: #3550d8;
    --bg: #ffffff;
    --bg-alt: #f4f6fc;
    --line: #e3e7f3;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(31, 45, 110, .10);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #eef0fa;
        --muted: #a5abc4;
        --accent: #7d95ff;
        --accent-dark: #6a82f5;
        --bg: #0e1020;
        --bg-alt: #151833;
        --line: #272b4a;
        --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; white-space: nowrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 22px; border-radius: 14px;
    background: var(--accent); color: #fff; text-decoration: none;
    font-weight: 700; border: 2px solid var(--accent);
    box-shadow: 0 8px 20px rgba(75, 107, 245, .30);
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn small { display: block; font-size: .68rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; }
.btn span { display: block; line-height: 1.2; }
.btn-small { padding: 8px 16px; border-radius: 10px; box-shadow: none; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: none; }
.btn-ghost:hover { background: var(--accent); }
.btn-inline { display: inline-block; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent), var(--bg); padding: 56px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 8px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.accent { color: var(--accent); }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 26px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art img { width: auto; height: auto; max-height: 480px; max-width: 100%; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section h2, .page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 10px; font-weight: 800; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 720px; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Screenshots */
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 8px 20px 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots::before, .shots::after { content: ""; flex: 0 0 max(0px, calc((100vw - 1120px) / 2 - 20px)); }
.shot { margin: 0; flex: 0 0 250px; scroll-snap-align: center; }
.shot a { display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.shot img { width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }

/* Highlight */
.highlight { padding-top: 24px; }
.highlight-box {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
    padding: 36px; border-radius: 24px; color: #fff;
    background: linear-gradient(135deg, #3550d8, #6d4bf5);
    box-shadow: var(--shadow);
}
.highlight-box .eyebrow { color: rgba(255,255,255,.8); }
.highlight-box h2 { color: #fff; }
.highlight-box .section-lead { color: rgba(255,255,255,.9); margin: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding: 12px 14px 12px 44px; background: rgba(255,255,255,.14); border-radius: 12px; font-weight: 600; font-size: .95rem; }
.ticks li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #3550d8; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; }
.fineprint { margin: 14px 4px 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .highlight-box { grid-template-columns: 1fr; padding: 26px 22px; } }

/* Gallery arrows */
.gallery { position: relative; }
.gallery-btn {
    position: absolute; top: calc(50% - 30px); z-index: 5;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    box-shadow: var(--shadow); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, opacity .15s ease;
}
.gallery-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gallery-btn[disabled] { opacity: 0; pointer-events: none; }
.gallery-btn svg { width: 22px; height: 22px; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.shots { scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .gallery-btn { width: 40px; height: 40px; } .gallery-prev { left: 6px; } .gallery-next { right: 6px; } }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta-final .note { margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* Inner pages */
.page-head { padding: 48px 0 8px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head .updated { color: var(--muted); margin: 0 0 24px; }
.prose { font-size: 1.02rem; }
.prose h2 { margin: 2.2em 0 .5em; font-size: 1.4rem; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.1rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose ul { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose .toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 8px 0 24px; }
.prose .toc ol { margin: 6px 0 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.prose .toc a { text-decoration: none; }
.prose .callout { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 12px 18px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-alt); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 28px; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin: 8px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-legal p { margin: 0 0 8px; font-size: .8rem; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 6, 16, .88); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: min(92vw, 520px); width: auto; border-radius: 18px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero { padding-top: 36px; }
    .nav a:not(.btn) { display: none; }
    .header-inner { min-height: 60px; gap: 10px; }
    .brand { font-size: .95rem; gap: 8px; }
    .brand img { width: 30px; height: 30px; }
    .prose .toc ol { columns: 1; }
}
