:root {
    color-scheme: light;
    --background: #FAFAF9;
    --surface: #FFFFFF;
    --surface-muted: #F4F4F2;
    --header-bg: rgba(250, 250, 249, 0.82);
    --text: #18181B;
    --text-strong: #09090B;
    --muted: #71717A;
    --muted-strong: #52525B;
    --border: #EDEDEA;
    --border-strong: #D4D4D0;
    --accent: #4F46E5;
    --accent-soft: #EEF0FE;
    --accent-strong: #4338CA;
    --btn-primary-bg: #18181B;
    --btn-primary-color: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.04);
    --shadow-md: 0 6px 24px rgba(15, 15, 20, 0.06), 0 2px 6px rgba(15, 15, 20, 0.04);
    --shadow-lg: 0 24px 60px rgba(15, 15, 20, 0.1), 0 4px 12px rgba(15, 15, 20, 0.05);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 28px;
    --container: 1080px;
    --container-narrow: 760px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --background: #0B0B0E;
    --surface: #141418;
    --surface-muted: #1B1B20;
    --header-bg: rgba(11, 11, 14, 0.78);
    --text: #E4E4E7;
    --text-strong: #FAFAFA;
    --muted: #A1A1AA;
    --muted-strong: #D4D4D8;
    --border: #26262C;
    --border-strong: #3A3A42;
    --accent: #818CF8;
    --accent-soft: rgba(129, 140, 248, 0.14);
    --accent-strong: #A5B4FC;
    --btn-primary-bg: #FAFAFA;
    --btn-primary-color: #0B0B0E;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-strong);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

p {
    margin: 0 0 16px;
}

/* Layout */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 28px;
}

section {
    padding: 88px 0;
}

@media (max-width: 720px) {
    section { padding: 64px 0; }
}

/* Site header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header .container,
.site-header .container-narrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.brand:hover {
    color: var(--text-strong);
    text-decoration: none;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
    background: var(--accent);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
}

.site-nav a {
    color: var(--muted-strong);
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--text-strong);
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    color: var(--text-strong);
}

@media (max-width: 560px) {
    .site-nav { gap: 18px; font-size: 14px; }
    .site-header .container,
    .site-header .container-narrow { height: 56px; }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    color: var(--btn-primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-strong);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    color: var(--text-strong);
    background: var(--surface);
}

/* Hero */

.hero {
    padding: 88px 0 56px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 22px;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
}

.hero h1 {
    margin: 0 auto 18px;
    font-size: clamp(44px, 7vw, 84px);
    max-width: 14ch;
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 700;
}

.hero .lede {
    margin: 0 auto 32px;
    max-width: 58ch;
    color: var(--muted-strong);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.5;
}

.hero-ctas {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-meta {
    color: var(--muted);
    font-size: 14px;
}

/* Hero device mockup */

.hero-stage {
    margin: 56px auto 0;
    max-width: 980px;
    position: relative;
    padding: 0 28px;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 30px 60px auto 60px;
    height: 320px;
    background: radial-gradient(60% 60% at 50% 40%, rgba(99, 102, 241, 0.28), transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.device-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    align-items: end;
    justify-items: center;
}

.device {
    position: relative;
    border-radius: 38px;
    padding: 8px;
    background: #1A1A1F;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 260px;
}

.device::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #0A0A0C;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.device img {
    border-radius: 30px;
    width: 100%;
    height: auto;
    display: block;
}

.device-grid .device:nth-child(1) { transform: translateY(20px) rotate(-3deg); }
.device-grid .device:nth-child(2) { transform: translateY(-12px); z-index: 2; }
.device-grid .device:nth-child(3) { transform: translateY(20px) rotate(3deg); }

@media (max-width: 720px) {
    .hero-stage { margin-top: 36px; }
    .device-grid { grid-template-columns: 1fr; gap: 28px; }
    .device-grid .device { max-width: 280px; transform: none !important; }
    .device-grid .device:nth-child(n+2) { display: none; }
}

/* Theme toggle */

.theme-toggle {
    appearance: none;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-strong);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--text-strong);
    border-color: var(--text-strong);
    background: var(--surface);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 560px) {
    .theme-toggle { width: 32px; height: 32px; margin-left: 4px; }
}

/* Section heading */

.section-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 14px;
    letter-spacing: -0.025em;
    font-weight: 700;
}

.section-lede {
    color: var(--muted-strong);
    font-size: 18px;
    max-width: 60ch;
    margin: 0 0 48px;
}

.section-head {
    text-align: left;
    max-width: 720px;
}

/* Features */

.features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 880px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
}

.feature {
    padding: 28px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature h3 {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.feature p {
    margin: 0;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.55;
}

/* Screenshots */

.shots {
    overflow: hidden;
}

.shots-scroll {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 880px) {
    .shots-scroll {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 12px;
        margin: 0 -28px;
        padding-left: 28px;
        padding-right: 28px;
    }
    .shots-scroll .shot {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }
}

.shot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.shot img {
    width: 100%;
    height: auto;
    display: block;
}

.shot-caption {
    padding: 14px 16px 16px;
    font-size: 14px;
    color: var(--muted-strong);
}

.shot-caption strong {
    display: block;
    color: var(--text-strong);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

/* FAQ */

.faq {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-list {
    display: grid;
    gap: 12px;
}

details.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--background);
    padding: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

details.faq-item[open] {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

details.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--text-strong);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

details.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

details.faq-item .faq-answer {
    padding: 0 20px 20px;
    color: var(--muted-strong);
    font-size: 15px;
    line-height: 1.6;
}

/* CTA block */

.cta {
    text-align: center;
}

.cta-card {
    background: linear-gradient(160deg, #1F1B3D 0%, #2A2467 50%, #4338CA 100%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 64px 32px;
    box-shadow: var(--shadow-lg);
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(40% 40% at 30% 20%, rgba(255,255,255,0.18), transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    color: #fff;
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.025em;
    font-weight: 700;
    position: relative;
}

.cta-card p {
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    margin: 0 auto 28px;
    max-width: 52ch;
    position: relative;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--text-strong);
    position: relative;
}

.cta-card .btn-primary:hover {
    background: #fff;
    color: var(--text-strong);
}

/* Article (Privacy/Terms/Support content pages) */

.article {
    padding: 56px 0 32px;
}

.article h1 {
    font-size: clamp(36px, 5vw, 52px);
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.article .meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.article h2 {
    font-size: 22px;
    margin: 36px 0 10px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.article p,
.article li {
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.65;
}

.article ul {
    padding-left: 22px;
    margin: 0 0 18px;
}

.article .lede {
    font-size: 19px;
    color: var(--text);
}

.callout {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin: 24px 0;
}

.callout h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.callout p {
    margin: 0;
    font-size: 15px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--background);
    padding: 48px 0 36px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 720px) {
    .site-footer .container { grid-template-columns: 1fr; }
}

.footer-brand {
    color: var(--muted);
    font-size: 14px;
    max-width: 36ch;
}

.footer-brand .brand {
    margin-bottom: 12px;
}

.footer-col h4 {
    font-family: var(--font);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-col a {
    color: var(--muted-strong);
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--text-strong);
    text-decoration: none;
}

.footer-legal {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
