/* AnyFrame — shared stylesheet
   Premium macOS-native aesthetic pushed with color.
   No external fonts; system stack only. No trackers, no CDNs. */

:root {
    --bg:          #fbfbfd;
    --surface:     #ffffff;
    --surface-2:   #f3f4f8;
    --ink:         #0b0b10;
    --ink-2:       #1d1d22;
    --muted:       #54555c;
    --muted-2:     #86868b;
    --line:        rgba(10, 10, 20, 0.08);
    --line-2:      rgba(10, 10, 20, 0.14);

    --blue:        #0071e3;
    --blue-600:    #0060c4;
    --blue-700:    #004fa3;
    --mint:        #00b89c;
    --orange:      #ff7a3d;
    --pink:        #ff5a7a;
    --violet:      #7a5cff;
    --yellow:      #ffcc4a;

    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   22px;
    --radius-xl:   32px;

    --shadow-1: 0 1px 2px rgba(10,10,20,0.04), 0 2px 8px rgba(10,10,20,0.05);
    --shadow-2: 0 4px 12px rgba(10,10,20,0.06), 0 18px 48px rgba(10,10,20,0.08);
    --shadow-3: 0 8px 24px rgba(10,10,20,0.10), 0 32px 80px rgba(10,10,20,0.14);

    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
    --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;

    --max:       1200px;
    --max-doc:   760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 120ms ease;
}
a:hover { color: var(--blue-600); }

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ─── Nav ─────────────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 120ms ease, color 120ms ease;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] {
    background: var(--ink);
    color: #fff;
}
.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-600) !important; color: #fff !important; }

/* ─── Buttons ─────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease, color 120ms ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 113, 227, 0.32);
}
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-light {
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    font-size: 15px;
}
.btn-light:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
    .btn:hover { transform: none; }
}

/* ─── Mac App Store badge link ────────────────────────── */
/* The official Apple badge IS the button — no padding, no
   surrounding background, no border. Only a focus ring and a
   subtle hover lift, both of which Apple's guidelines tolerate
   because they don't recolour or distort the badge itself. */
.app-store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 9px;
    text-decoration: none;
    transition: transform 120ms ease, opacity 120ms ease;
}
.app-store-link:hover { transform: translateY(-1px); opacity: 0.92; }
.app-store-link:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}
.app-store-badge {
    display: block;
    width: auto;
    user-select: none;
    -webkit-user-drag: none;
}
.app-store-link--nav   .app-store-badge { height: 38px; }
.app-store-link--hero  .app-store-badge { height: 56px; }
.app-store-link--final .app-store-badge { height: 72px; }

@media (max-width: 720px) {
    .app-store-link--hero  .app-store-badge { height: 50px; }
    .app-store-link--final .app-store-badge { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .app-store-link:hover { transform: none; }
}

/* ─── Footer (shared) ─────────────────────────────────── */

.site-foot {
    border-top: 1px solid var(--line);
    background: var(--surface);
    margin-top: 80px;
}
.foot-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 36px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
}
.foot-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}
.foot-nav a:hover { color: var(--ink); }
.foot-copy {
    width: 100%;
    color: var(--muted-2);
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* ─── Doc pages (privacy / terms / support / impressum) ─ */

.doc {
    max-width: var(--max-doc);
    margin: 0 auto;
    padding: 48px 24px 40px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.75;
}

.doc-hero {
    position: relative;
    padding: 44px 32px 40px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 400px at 10% 10%, rgba(122, 92, 255, 0.55), transparent 60%),
        radial-gradient(700px 400px at 100% 120%, rgba(0, 184, 156, 0.55), transparent 55%),
        linear-gradient(135deg, #0b0b10, #1a1a2b);
}
.doc-hero[data-accent="mint"] {
    background:
        radial-gradient(700px 400px at 90% 0%, rgba(0, 184, 156, 0.6), transparent 55%),
        radial-gradient(700px 400px at 0% 100%, rgba(0, 113, 227, 0.5), transparent 60%),
        linear-gradient(135deg, #0b0b10, #102225);
}
.doc-hero[data-accent="orange"] {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(255, 122, 61, 0.55), transparent 55%),
        radial-gradient(700px 400px at 0% 100%, rgba(255, 90, 122, 0.5), transparent 60%),
        linear-gradient(135deg, #0b0b10, #201418);
}
.doc-hero[data-accent="blue"] {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(0, 113, 227, 0.65), transparent 55%),
        radial-gradient(700px 400px at 0% 100%, rgba(122, 92, 255, 0.5), transparent 60%),
        linear-gradient(135deg, #0b0b10, #0d1530);
}
.doc-hero .eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
}
.doc-hero h1 {
    font-size: clamp(36px, 5.2vw, 52px);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.05;
    margin: 0 0 16px;
}
.doc-hero .lede {
    font-size: 18px;
    color: rgba(255,255,255,0.82);
    max-width: 58ch;
    margin: 0;
}
.doc-hero .updated {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.doc h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 48px 0 12px;
    color: var(--ink);
}
.doc h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 28px 0 10px;
    color: var(--ink);
}
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 5px;
    color: var(--ink);
}

.mailto-link { cursor: pointer; }
.email-protected::before { content: attr(data-name) "\40" attr(data-domain); }
.phone-protected::before { content: attr(data-phone); }

kbd {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: #fff;
    color: var(--ink);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    box-shadow: 0 1px 0 var(--line-2);
    white-space: nowrap;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 28px 0 12px;
}
.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.info-card h3 {
    margin: 0 0 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
}
.info-card p { color: var(--ink); margin: 0; font-weight: 500; font-size: 16px; }
.info-card small { color: var(--muted); font-size: 13px; font-weight: 400; }

.contact-card {
    margin-top: 44px;
    padding: 28px 32px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.contact-card h3 { color: #fff; margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.contact-card p { color: rgba(255,255,255,0.72); margin: 0; font-size: 15px; }
.contact-card .btn-light { background: #fff; color: var(--ink); }
.contact-card .btn-light:hover { background: #f3f4f8; color: var(--ink); }

.quickstart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 20px 0 32px;
}
.qc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.qc:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--line-2); }
.qc .num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--blue);
    margin-bottom: 10px;
}
.qc h3 { margin: 0 0 6px; font-size: 17px; }
.qc p { margin: 0; font-size: 15px; }

.callout {
    margin: 24px 0 32px;
    padding: 18px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 15.5px;
    color: var(--ink-2);
    line-height: 1.6;
}
.callout .ttl {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    vertical-align: 2px;
}
.callout--mint { background: color-mix(in srgb, var(--mint) 8%, #fff); border-color: color-mix(in srgb, var(--mint) 20%, var(--line)); }
.callout--mint .ttl { background: var(--mint); color: #fff; }
.callout--blue { background: color-mix(in srgb, var(--blue) 6%, #fff); border-color: color-mix(in srgb, var(--blue) 18%, var(--line)); }
.callout--blue .ttl { background: var(--blue); color: #fff; }

.shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0;
    margin: 20px 0 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}
.shortcuts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-2);
}
.shortcuts > div:last-child { border-right: none; }
@media (min-width: 520px) {
    .shortcuts > div:nth-child(2n) { border-right: none; }
}
.shortcuts > div span { font-weight: 500; }

.faq {
    border-bottom: 1px solid var(--line);
    padding: 6px 0;
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 36px 16px 0;
    position: relative;
    font-weight: 600;
    color: var(--ink);
    font-size: 16.5px;
    line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 180ms ease;
}
.faq[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .answer { padding: 0 8px 18px 0; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer a { color: var(--blue); }

/* ─── Landing page ────────────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 24px 40px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 720px;
    z-index: 0;
    background:
        radial-gradient(600px 400px at 15% 20%, rgba(0, 113, 227, 0.28), transparent 60%),
        radial-gradient(500px 400px at 85% 10%, rgba(255, 122, 61, 0.22), transparent 60%),
        radial-gradient(600px 400px at 60% 80%, rgba(122, 92, 255, 0.22), transparent 60%),
        radial-gradient(400px 300px at 5% 90%, rgba(0, 184, 156, 0.18), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    z-index: 1;
}
.tagpill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink-2);
    font-weight: 500;
    box-shadow: var(--shadow-1);
}
.tagpill .tag-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    background: var(--ink);
    color: #fff;
    padding: 4px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    font-weight: 600;
}

.tagpill .tag-chip-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--mint);
    color: #fff;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 84px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: 0;
    max-width: 15ch;
    text-wrap: balance;
}
.hero h1 .grad {
    background: linear-gradient(110deg, var(--blue) 0%, var(--violet) 45%, var(--orange) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .sub {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--muted);
    max-width: 62ch;
    margin: 0 auto;
    line-height: 1.5;
    text-wrap: pretty;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    justify-content: center;
    color: var(--muted);
    font-size: 13.5px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dotgreen { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(0,184,156,0.18); }

.hero-stage {
    position: relative;
    max-width: 1120px;
    width: 100%;
    margin: 16px auto 0;
    padding: 14px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-3);
    backdrop-filter: blur(20px);
}
.hero-stage .window {
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1920 / 810;
    position: relative;
}
.hero-stage video,
.hero-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}
.window-chrome {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0));
    z-index: 2;
    pointer-events: none;
}
.window-chrome .lights { display: flex; gap: 6px; }
.window-chrome .lights i {
    width: 12px; height: 12px; border-radius: 50%;
    display: block;
}
.window-chrome .lights i:nth-child(1) { background: #ff5f57; }
.window-chrome .lights i:nth-child(2) { background: #febc2e; }
.window-chrome .lights i:nth-child(3) { background: #28c840; }
.window-chrome .title {
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
}

.logowall {
    padding: 20px 24px 40px;
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}
.logowall .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 18px;
}
.logowall ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
    align-items: center;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}
.logowall li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-1);
}
.logowall .sq { width: 10px; height: 10px; border-radius: 3px; }

/* Compare section */
.section {
    padding: 80px 24px;
    max-width: var(--max);
    margin: 0 auto;
}
.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 12px;
    max-width: 20ch;
    text-wrap: balance;
}
.section-lede {
    font-size: 19px;
    color: var(--muted);
    max-width: 58ch;
    margin: 0;
}

.compare-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 860px) {
    .compare-grid { grid-template-columns: 1fr; }
}
.cc {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.cc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.cc .cc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.cc .cc-head .pill {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}
.cc.bad .cc-head .pill { background: color-mix(in srgb, var(--pink) 12%, #fff); color: var(--pink); }
.cc.meh .cc-head .pill { background: color-mix(in srgb, var(--yellow) 18%, #fff); color: #9a6e00; }
.cc.good .cc-head .pill { background: color-mix(in srgb, var(--mint) 14%, #fff); color: #007d6a; }
.cc h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--ink);
}
.cc p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.cc .cc-art {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    background: #0b0b10;
    position: relative;
}
.cc .cc-art svg { width: 100%; height: 100%; display: block; }
.cc.good {
    border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
    box-shadow: 0 10px 30px rgba(0,113,227,0.12);
}
.cc.good::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,113,227,0.25), rgba(122,92,255,0.2), rgba(255,122,61,0.22));
    z-index: -1;
    filter: blur(20px);
    opacity: 0.9;
}

/* How */
.how {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.how-inner { max-width: var(--max); margin: 0 auto; padding: 80px 24px; }
.how-steps {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}
@media (max-width: 860px) { .how-steps { grid-template-columns: 1fr; } }
.step {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    counter-increment: step;
}
.step .num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 10px;
}
.step .num::before { content: "0" counter(step) " · "; color: var(--blue); font-weight: 700; }
.step h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step .art {
    aspect-ratio: 4 / 3;
    margin-top: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    overflow: hidden;
    position: relative;
    background: #0b0b10;
}

/* Features */
.features-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr; } }
.feat {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feat .ic {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.feat h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}
.feat p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Showcase */
.showcase {
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}
.showcase-inner { max-width: var(--max); margin: 0 auto; }
.showcase-stage {
    margin-top: 44px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    box-shadow: var(--shadow-3);
    position: relative;
}
.showcase-stage img, .showcase-stage video { width: 100%; display: block; }

/* ── Reveal slider (before/after) ───────────────────── */
.reveal {
    position: relative;
    margin-top: 44px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    box-shadow: var(--shadow-3);
    user-select: none;
    touch-action: none;
    aspect-ratio: 2880 / 1800;
}
.reveal img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}
.reveal .below { z-index: 1; }
.reveal .above {
    z-index: 2;
    clip-path: inset(0 var(--reveal-right, 50%) 0 0);
    will-change: clip-path;
}
.reveal .label {
    position: absolute;
    top: 16px;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reveal .label.left {
    left: 16px;
    background: rgba(255, 90, 122, 0.85);
    color: #fff;
}
.reveal .label.right {
    right: 16px;
    background: rgba(0, 184, 156, 0.9);
    color: #fff;
}
.reveal .label i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #fff; opacity: 0.9;
}
.reveal .handle {
    position: absolute;
    top: 0; bottom: 0;
    left: var(--reveal-x, 50%);
    width: 3px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.9) 100%);
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 8px 28px rgba(0,0,0,0.35);
}
.reveal .knob {
    position: absolute;
    top: 50%;
    left: var(--reveal-x, 50%);
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.08);
    cursor: ew-resize;
    border: none;
    font-family: var(--font-text);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.reveal .knob:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.08); }
.reveal .knob:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.reveal .knob svg { width: 24px; height: 24px; }
.reveal-caption {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}
.reveal-caption kbd { margin: 0 2px; }

@media (prefers-reduced-motion: reduce) {
    .reveal .knob:hover { transform: translate(-50%, -50%); }
}

/* ── Click-to-play video card ───────────────────────── */
.play-card {
    position: relative;
    margin-top: 36px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    box-shadow: var(--shadow-3);
    /* Matches the actual source video (1920×810) so nothing gets
       letterboxed on the sides and — crucially — nothing gets cropped
       from top/bottom either.  Same aspect-ratio as the hero stage. */
    aspect-ratio: 1920 / 810;
    cursor: pointer;
}
.play-card img,
.play-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* `contain` — not `cover` — so the entire 1920×810 frame is always
       visible.  `cover` crops edges to fill the container; `contain`
       fits the whole frame and paints the container bg behind. */
    object-fit: contain;
    display: block;
}
.play-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 100%);
    transition: opacity 200ms ease, background 200ms ease;
}
.play-card:hover .play-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%); }
.play-card .play-btn {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,0,0,0.05);
    transition: transform 200ms ease;
}
.play-card:hover .play-btn { transform: scale(1.06); }
.play-card .play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.play-card .play-meta {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 3;
    color: #fff;
    font-size: 13px;
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    pointer-events: none;
}
.play-card.playing .play-overlay,
.play-card.playing .play-meta { opacity: 0; pointer-events: none; }
.play-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

/* Pricing */
.pricing {
    padding: 80px 24px;
    max-width: var(--max);
    margin: 0 auto;
}
.pricing-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.plan.featured {
    background: linear-gradient(180deg, #0b0b10 0%, #1a1438 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    transform: translateY(-6px);
}
.plan.featured::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--blue), var(--violet), var(--orange));
    z-index: -1;
    filter: blur(24px);
    opacity: 0.55;
}
.plan .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
}
.plan.featured .tag {
    color: #fff;
    background: rgba(255,255,255,0.14);
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.plan h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0;
}
.plan.featured h3 { color: #fff; }
.plan .price {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}
.plan .price small {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}
.plan.featured .price small { color: rgba(255,255,255,0.7); }
.plan .sub { color: var(--muted); margin: 0; font-size: 14.5px; }
.plan.featured .sub { color: rgba(255,255,255,0.75); }
.plan ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
}
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.plan.featured li { color: rgba(255,255,255,0.9); }
.plan li::before {
    content: "";
    width: 14px; height: 14px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--mint) 22%, #fff);
    background-image:
        linear-gradient(135deg, transparent 45%, var(--mint) 45% 55%, transparent 55%),
        linear-gradient(45deg, transparent 55%, var(--mint) 55% 65%, transparent 65%);
}
.plan.featured li::before { background: rgba(255,255,255,0.18); }
.plan .cta { margin-top: auto; }
.plan .cta .btn { width: 100%; }
.plan.featured .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(255,255,255,0.18); }
.plan.featured .btn-primary:hover { background: #f3f4f8; color: var(--ink); }

/* Lifetime / Founding-Supporter variant — warm gold accent */
.plan.founding {
    border-color: color-mix(in srgb, var(--yellow) 55%, transparent);
    box-shadow: 0 18px 48px color-mix(in srgb, var(--yellow) 18%, transparent);
}
.plan.founding .tag {
    color: var(--ink);
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.plan.founding li::before {
    background: color-mix(in srgb, var(--yellow) 28%, #fff);
    background-image:
        linear-gradient(135deg, transparent 45%, var(--orange) 45% 55%, transparent 55%),
        linear-gradient(45deg,  transparent 55%, var(--orange) 55% 65%, transparent 65%);
}
.plan.founding .sub s { color: var(--muted-2); margin-right: 4px; }

.pricing-footnote {
    margin-top: 28px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
}

/* FAQ (landing) */
.faq-section {
    padding: 40px 24px 80px;
    max-width: 820px;
    margin: 0 auto;
}
.faq-section details { padding: 6px 0; border-bottom: 1px solid var(--line); }
.faq-section summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 36px 18px 0;
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    position: relative;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--muted);
    transition: transform 160ms ease;
}
.faq-section details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-section .a { padding: 0 24px 20px 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* CTA strip */
.cta-strip {
    padding: 0 24px 80px;
    max-width: var(--max);
    margin: 0 auto;
}
.cta-strip .box {
    position: relative;
    overflow: hidden;
    padding: 56px 36px;
    border-radius: var(--radius-xl);
    color: #fff;
    background:
        radial-gradient(700px 400px at 10% 0%, rgba(122, 92, 255, 0.55), transparent 60%),
        radial-gradient(600px 400px at 95% 100%, rgba(255, 122, 61, 0.55), transparent 55%),
        linear-gradient(135deg, #0b0b10, #1a1438);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 720px) { .cta-strip .box { grid-template-columns: 1fr; } }
.cta-strip h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0 0 10px;
    text-wrap: balance;
}
.cta-strip p { color: rgba(255,255,255,0.82); margin: 0; font-size: 17px; }
.cta-strip .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 720px) { .cta-strip .actions { justify-content: flex-start; } }
.cta-strip .btn-primary { background: #fff; color: var(--ink); }
.cta-strip .btn-primary:hover { background: #f3f4f8; color: var(--ink); }
.cta-strip .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-strip .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ─── Product-updates signup (tinted card) ──────────── */
.updates-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}
.updates-section .updates-inner {
    background:
        linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, rgba(122, 92, 255, 0.06) 100%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 44px 36px;
    box-shadow: var(--shadow-1);
    text-align: center;
}
.updates-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin: 0 0 10px;
}
.updates-section h3 {
    margin: 0 0 10px;
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.updates-section .updates-lede {
    margin: 0 auto 22px;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 48ch;
}
.updates-form { margin: 0 auto; max-width: 480px; }
.updates-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
}
.updates-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.updates-input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: #fff;
    color: var(--ink);
    font-family: inherit;
    font-size: 15.5px;
    line-height: 1.2;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.updates-input::placeholder { color: rgba(11, 11, 16, 0.42); }
.updates-input:hover { border-color: rgba(11, 11, 16, 0.28); }
.updates-input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.18);
}
.updates-submit {
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 600;
}
.updates-submit[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.updates-submit:disabled { cursor: not-allowed; }
.updates-consent {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    text-align: left;
}
.updates-consent label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    cursor: pointer;
}
.updates-consent input[type="checkbox"] {
    appearance: auto;
    margin-top: 2px;
    accent-color: var(--blue);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.updates-consent a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.updates-consent a:hover { color: var(--blue); }
.updates-honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.updates-status {
    margin: 10px 0 0;
    min-height: 1.3em;
    font-size: 13px;
    color: var(--muted);
    text-align: left;
}
.updates-status.updates-status-error {
    color: #c0392b;
}
.updates-success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(0, 184, 156, 0.12);
    border: 1px solid rgba(0, 184, 156, 0.35);
    color: var(--ink);
    font-size: 14.5px;
    outline: none;
}
.updates-success[hidden] { display: none; }
.updates-success svg { color: var(--mint); flex-shrink: 0; }
.updates-success:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 184, 156, 0.25);
}
@media (max-width: 540px) {
    .updates-section .updates-inner { padding: 30px 22px 28px; border-radius: 16px; }
    .updates-row { grid-template-columns: 1fr; }
    .updates-submit { width: 100%; }
}

/* small-screen tweaks */
@media (max-width: 720px) {
    .nav-inner { padding: 12px 16px; }
    .nav-links { gap: 2px; }
    .nav-links a { padding: 7px 10px; font-size: 14px; }
    .hero { padding: 40px 16px 24px; }
    .section, .pricing, .faq-section, .updates-section, .cta-strip, .how-inner, .showcase { padding-left: 16px; padding-right: 16px; }
    .doc-hero { padding: 32px 22px; }
    .contact-card { padding: 22px; }
}


/* ─── Ambient color clouds (tweakable) ───────────────── */
:root {
    --cloud-opacity: 0.55;
    --cloud-speed: 1;          /* 0.25 (slow) – 3 (fast) multiplier */
    --cloud-hue: 0deg;
    --cloud-blur: 90px;
    --cloud-scale: 1;
}
.cloud-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: blur(var(--cloud-blur)) hue-rotate(var(--cloud-hue));
    opacity: var(--cloud-opacity);
    transition: opacity 240ms ease;
    contain: strict;
}
.cloud-layer .cloud {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    will-change: transform;
    transform: translate3d(0,0,0) scale(var(--cloud-scale));
}
.cloud-layer .c1 {
    width: 55vw; height: 55vw;
    left: -10vw; top: -10vw;
    background: radial-gradient(circle at 40% 40%, rgba(0,113,227,0.42), rgba(0,113,227,0) 68%);
    animation: cloudDrift1 calc(64s / var(--cloud-speed)) ease-in-out infinite alternate;
}
.cloud-layer .c2 {
    width: 48vw; height: 48vw;
    right: -12vw; top: -8vw;
    background: radial-gradient(circle at 60% 50%, rgba(255,122,61,0.38), rgba(255,122,61,0) 68%);
    animation: cloudDrift2 calc(78s / var(--cloud-speed)) ease-in-out infinite alternate;
}
.cloud-layer .c3 {
    width: 60vw; height: 60vw;
    left: 20vw; top: 35vh;
    background: radial-gradient(circle at 50% 50%, rgba(122,92,255,0.36), rgba(122,92,255,0) 70%);
    animation: cloudDrift3 calc(92s / var(--cloud-speed)) ease-in-out infinite alternate;
}
.cloud-layer .c4 {
    width: 42vw; height: 42vw;
    left: -8vw; bottom: -12vw;
    background: radial-gradient(circle at 50% 50%, rgba(0,184,156,0.34), rgba(0,184,156,0) 68%);
    animation: cloudDrift4 calc(70s / var(--cloud-speed)) ease-in-out infinite alternate;
}
.cloud-layer .c5 {
    width: 44vw; height: 44vw;
    right: -10vw; bottom: -14vw;
    background: radial-gradient(circle at 50% 50%, rgba(255,90,122,0.32), rgba(255,90,122,0) 70%);
    animation: cloudDrift5 calc(86s / var(--cloud-speed)) ease-in-out infinite alternate;
}
.cloud-layer .hue-wrap {
    position: absolute;
    inset: 0;
    animation: cloudHue calc(220s / var(--cloud-speed)) linear infinite;
}

@keyframes cloudDrift1 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(12vw, 8vh, 0) scale(1.15); }
    100% { transform: translate3d(-6vw, 18vh, 0) scale(0.95); }
}
@keyframes cloudDrift2 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-14vw, 10vh, 0) scale(1.1); }
    100% { transform: translate3d(-4vw, 22vh, 0) scale(1.25); }
}
@keyframes cloudDrift3 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-10vw, -12vh, 0) scale(0.9); }
    100% { transform: translate3d(14vw, -4vh, 0) scale(1.1); }
}
@keyframes cloudDrift4 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(16vw, -10vh, 0) scale(1.2); }
    100% { transform: translate3d(4vw, -20vh, 0) scale(1); }
}
@keyframes cloudDrift5 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-12vw, -6vh, 0) scale(1.15); }
    100% { transform: translate3d(-20vw, -18vh, 0) scale(0.95); }
}
@keyframes cloudHue {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* keep all real content above the cloud layer */
.nav, main, footer { position: relative; z-index: 1; }
/* let hero's own color blobs coexist; they're already z-index 1+ above cloud */

@media (prefers-reduced-motion: reduce) {
    .cloud-layer .cloud,
    .cloud-layer .hue-wrap { animation: none !important; }
}

/* ─── Tweaks panel ───────────────────────────────────── */
.tweaks-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    width: 280px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-3);
    padding: 14px 16px 16px;
    font-family: var(--font-text);
    color: var(--ink);
    display: none;
}
.tweaks-panel.is-open { display: block; }
.tweaks-panel h4 {
    margin: 0 0 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tweaks-panel h4 .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 0 3px rgba(122,92,255,0.18);
}
.tweaks-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.tweaks-row label {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tweaks-row label b {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
}
.tweaks-row input[type=range] {
    width: 100%;
    accent-color: var(--violet);
}
.tweaks-row.toggle {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0 2px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}
.tweaks-row.toggle label { color: var(--ink); font-size: 13px; font-weight: 500; }
.tweaks-row.toggle input { accent-color: var(--violet); }
