/* ============================================
   oneMenu Landing Page — Neumorphic Glass
   ============================================ */

:root {
    color-scheme: dark;

    /* Base palette */
    --bg-deep: #0a0e0c;
    --bg-base: #0f1612;
    --bg-raised: #151d18;
    --bg-high: #1a231e;

    /* Glass surfaces */
    --glass-strong: rgba(22, 31, 26, 0.78);
    --glass-medium: rgba(22, 31, 26, 0.58);
    --glass-light: rgba(255, 255, 255, 0.06);
    --glass-wash: rgba(255, 255, 255, 0.10);

    /* Neumorphic shadows — raised */
    --neu-dark: 6px 6px 14px rgba(0, 0, 0, 0.48), 2px 2px 6px rgba(0, 0, 0, 0.36);
    --neu-light: -2px -2px 6px rgba(255, 255, 255, 0.025), -1px -1px 3px rgba(126, 224, 195, 0.04);
    --neu-raised: var(--neu-dark), var(--neu-light);
    --neu-raised-strong: 8px 8px 20px rgba(0, 0, 0, 0.54), 3px 3px 8px rgba(0, 0, 0, 0.4), -2px -2px 8px rgba(255, 255, 255, 0.03);

    /* Neumorphic shadows — inset (pressed / sunken) */
    --neu-inset: inset 3px 3px 8px rgba(0, 0, 0, 0.42), inset -1px -1px 4px rgba(255, 255, 255, 0.03);
    --neu-inset-soft: inset 2px 2px 5px rgba(0, 0, 0, 0.28), inset -1px -1px 2px rgba(255, 255, 255, 0.04);

    /* Glass edges */
    --glass-edge: rgba(255, 255, 255, 0.10);
    --glass-edge-bright: rgba(255, 255, 255, 0.16);
    --glass-edge-top: rgba(255, 255, 255, 0.18);
    --glass-line: rgba(255, 255, 255, 0.06);

    /* Accent */
    --accent: #ff8b5f;
    --accent-strong: #ff6b3a;
    --accent-soft: rgba(255, 139, 95, 0.18);
    --accent-glow: rgba(255, 139, 95, 0.32);
    --mint: #7ee0c3;
    --mint-soft: rgba(126, 224, 195, 0.14);
    --mint-glow: rgba(126, 224, 195, 0.28);
    --blue: #7ab8ff;
    --green: #8ee69f;
    --amber: #f2c36d;

    /* Typography */
    --ink: #fbfff8;
    --ink-muted: rgba(251, 255, 248, 0.68);
    --ink-soft: rgba(251, 255, 248, 0.46);
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

    /* Metrics */
    --radius: 12px;
    --radius-lg: 18px;
    --max: 1180px;

    /* Springs */
    --spring: cubic-bezier(0.17, 1.32, 0.29, 1);
    --spring-slow: cubic-bezier(0.22, 1.08, 0.38, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 10%, rgba(126, 224, 195, 0.10), transparent 50%),
        radial-gradient(ellipse 60% 50% at 85% 60%, rgba(255, 139, 95, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(122, 184, 255, 0.06), transparent 50%),
        linear-gradient(180deg, #0f1612 0%, #0a0e0c 100%);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture overlay */
body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

:focus-visible {
    outline: 3px solid rgba(126, 224, 195, 0.42);
    outline-offset: 4px;
}

/* ============================================
   BACKGROUND ORBS
   ============================================ */

.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.orb-1 {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -100px;
    background: radial-gradient(circle, rgba(126, 224, 195, 0.18), transparent 70%);
}

.orb-2 {
    width: 400px;
    height: 400px;
    bottom: 20%;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 139, 95, 0.14), transparent 70%);
}

.orb-3 {
    width: 350px;
    height: 350px;
    top: 50%;
    right: 15%;
    background: radial-gradient(circle, rgba(122, 184, 255, 0.10), transparent 70%);
}

.orb-4 {
    width: 280px;
    height: 280px;
    bottom: -60px;
    right: 30%;
    background: radial-gradient(circle, rgba(242, 195, 109, 0.10), transparent 70%);
}

/* ============================================
   GLASS PARTICLES (floating in background)
   ============================================ */

.glass-particles {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    will-change: transform;
}

.p-1 { width: 18px; height: 18px; top: 18%; left: 12%; }
.p-2 { width: 12px; height: 12px; top: 32%; right: 22%; }
.p-3 { width: 22px; height: 22px; bottom: 38%; left: 28%; }
.p-4 { width: 10px; height: 10px; top: 62%; right: 15%; }
.p-5 { width: 16px; height: 16px; bottom: 22%; right: 35%; }
.p-6 { width: 8px; height: 8px; top: 44%; left: 8%; }

/* ============================================
   CURSOR FOLLOWER
   ============================================ */

.cursor-follower {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 80;
    display: none;
    width: 1px;
    height: 1px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-80px, -80px, 0);
    transition: opacity 180ms ease;
}

.cursor-halo,
.cursor-core,
.cursor-ring {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-halo {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(126, 224, 195, 0.35);
    background: radial-gradient(circle, rgba(126, 224, 195, 0.10), rgba(126, 224, 195, 0.02));
    box-shadow:
        0 0 40px rgba(126, 224, 195, 0.14),
        inset 0 0 20px rgba(126, 224, 195, 0.06);
    transition: width 280ms var(--spring), height 280ms var(--spring), border-color 220ms ease, background 220ms ease;
}

.cursor-core {
    width: 6px;
    height: 6px;
    background: var(--accent);
    box-shadow:
        0 0 16px rgba(255, 139, 95, 0.7),
        0 0 4px rgba(255, 139, 95, 0.5);
}

.cursor-ring {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 139, 95, 0.28);
    opacity: 0;
    transition: width 340ms var(--spring), height 340ms var(--spring), opacity 220ms ease;
}

html.cursor-enabled .cursor-follower { display: block; }
html.cursor-ready .cursor-follower { opacity: 1; }

html.cursor-active .cursor-halo {
    width: 90px;
    height: 90px;
    border-color: rgba(255, 139, 95, 0.48);
    background: radial-gradient(circle, rgba(255, 139, 95, 0.12), rgba(255, 139, 95, 0.02));
}

html.cursor-active .cursor-ring {
    width: 40px;
    height: 40px;
    opacity: 0.6;
}

/* ============================================
   HEADER — Neumorphic glass
   ============================================ */

.site-header {
    position: sticky;
    top: 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 10px 10px 10px 16px;
    border: 1px solid var(--glass-edge);
    border-top-color: var(--glass-edge-top);
    border-radius: var(--radius-lg);
    background: var(--glass-strong);
    box-shadow:
        var(--neu-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
}

.brand,
.header-actions,
.nav-links,
.hero-actions,
.release-strip,
.panel-head,
.download-panel-actions,
.site-footer {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 800;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.32),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-links {
    gap: 4px;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.header-actions { gap: 8px; }

.nav-links a,
.language-toggle,
.header-download,
.checksum-link,
.copy-button,
.install-step a {
    min-height: 40px;
    border-radius: var(--radius);
    transition: background 240ms ease, color 240ms ease, transform 420ms var(--spring), border-color 240ms ease, box-shadow 240ms ease;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
}

.nav-links a:hover {
    background: var(--glass-light);
    color: var(--ink);
}

.language-toggle {
    display: inline-flex;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-edge);
    background: var(--glass-light);
    color: var(--ink-muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--neu-inset-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.language-toggle:hover {
    border-color: rgba(126, 224, 195, 0.3);
    background: var(--mint-soft);
    color: var(--ink);
    box-shadow: 0 0 20px var(--mint-glow);
}

.header-download,
.download-button,
.copy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.header-download {
    padding: 0 16px;
    border: 1px solid rgba(255, 139, 95, 0.45);
    background: linear-gradient(135deg, rgba(255, 139, 95, 0.92), rgba(255, 196, 170, 0.72));
    color: #1a0d07;
    box-shadow:
        0 6px 22px rgba(255, 139, 95, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-download:hover,
.download-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(255, 139, 95, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    gap: clamp(34px, 5vw, 76px);
    width: min(calc(100% - 32px), var(--max));
    min-height: calc(100svh - 110px);
    margin: 0 auto;
    padding: clamp(62px, 8vw, 112px) 0 clamp(44px, 6vw, 74px);
    align-items: center;
}

.hero-copy,
.product-visual,
.section,
.site-footer {
    animation: enter 820ms var(--spring) both;
}

.product-visual { animation-delay: 120ms; }

/* Data attribute for parallax JS */
[data-parallax] {
    will-change: transform;
}

/* Floating animation for menu bar and panel */
[data-float] {
    animation: float 6s ease-in-out infinite;
  animation-delay: calc(var(--float-delay, 0) * 1s);
}

[data-float="-2"] { animation-delay: -2s; }
[data-float="3"] { animation-delay: -3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.01em;
}

h1 {
    max-width: 640px;
    margin-bottom: 24px;
    font-size: clamp(2.72rem, 6.4vw, 5.25rem);
    background: linear-gradient(135deg, var(--ink) 0%, rgba(251, 255, 248, 0.78) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    max-width: 780px;
    margin-bottom: 0;
    font-size: clamp(2.05rem, 4vw, 3.75rem);
}

h3 {
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.3;
}

html[lang="en"] h1 {
    max-width: 760px;
    font-size: clamp(3rem, 6.2vw, 5.45rem);
}

html[lang="en"] h2 {
    max-width: 820px;
    font-size: clamp(2rem, 3.8vw, 3.65rem);
}

.hero-lede {
    max-width: 600px;
    margin-bottom: 28px;
    color: var(--ink-muted);
    font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.download-button,
.copy-button {
    min-height: 52px;
    border-radius: var(--radius);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.download-button {
    padding: 0 24px;
    border: 1px solid rgba(255, 139, 95, 0.48);
    background: linear-gradient(135deg, rgba(255, 139, 95, 0.94), rgba(255, 196, 170, 0.68));
    color: #1a0d07;
    box-shadow:
        0 8px 28px rgba(255, 139, 95, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.download-button.compact {
    min-height: 46px;
    padding: 0 18px;
}

.checksum-link,
.install-step a {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 800;
}

.checksum-link:hover,
.install-step a:hover {
    color: var(--mint);
}

/* Release strip — neumorphic inset */
.release-strip {
    width: min(100%, 540px);
    align-items: stretch;
    border: 1px solid var(--glass-edge);
    border-top-color: var(--glass-edge-top);
    border-radius: var(--radius);
    background: var(--glass-light);
    box-shadow:
        var(--neu-inset-soft),
        0 4px 16px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.release-strip div {
    flex: 1;
    padding: 14px 16px;
}

.release-strip div + div {
    border-left: 1px solid var(--glass-line);
}

.release-strip dt {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.release-strip dd {
    margin: 2px 0 0;
    font-weight: 800;
}

/* ============================================
   3D SPRING CARD BASE
   ============================================ */

[data-spring-card] {
    transform:
        perspective(960px)
        translate3d(var(--spring-x, 0px), var(--spring-y, 0px), 0)
        rotateX(var(--spring-rx, 0deg))
        rotateY(var(--spring-ry, 0deg))
        scale(var(--spring-scale, 1));
    transform-style: preserve-3d;
    will-change: transform;
}

/* ============================================
   PRODUCT VISUAL — Hero mockup
   ============================================ */

.product-visual {
    position: relative;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--glass-edge);
    border-top-color: rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
        rgba(18, 31, 24, 0.52);
    box-shadow:
        var(--neu-raised-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    overflow: hidden;
}

/* Glass reflection diagonal stripe */
.glass-reflection {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.10) 0%,
        transparent 30%,
        transparent 60%,
        rgba(255, 255, 255, 0.04) 100%
    );
}

/* Shared card style — neumorphic glass */
.menubar,
.status-panel,
.provider,
.feature-card,
.install-step,
.security-help,
.download-panel,
.checksum,
.settings-window,
.warning-dialog {
    border: 1px solid var(--glass-edge);
    border-top-color: var(--glass-edge-top);
    border-radius: var(--radius);
    background: var(--glass-light);
    box-shadow:
        var(--neu-inset-soft);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

/* ============================================
   MENU BAR MOCKUP
   ============================================ */

.menubar-float {
    position: relative;
    z-index: 2;
}

.menubar {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(74px, 1fr) minmax(0, auto);
    gap: 12px;
    align-items: center;
    min-height: 46px;
    padding: 8px 14px;
    background: rgba(5, 9, 7, 0.62);
    box-shadow:
        var(--neu-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--ink);
}

.window-controls,
.menubar-modules {
    display: flex;
    align-items: center;
}

.window-controls { gap: 7px; }

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.red {
    background: #ff765f;
    box-shadow: 0 0 8px rgba(255, 118, 95, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.amber {
    background: var(--amber);
    box-shadow: 0 0 8px rgba(242, 195, 109, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.green {
    background: var(--green);
    box-shadow: 0 0 8px rgba(142, 230, 159, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.menubar-title {
    min-width: 0;
    color: var(--ink-muted);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menubar-modules {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.menubar-pill {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    background: var(--glass-wash);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: var(--neu-inset-soft);
}

.pill-dot {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 10px rgba(126, 224, 195, 0.5);
}

.menubar-pill.gpt-pill {
    border-color: rgba(126, 224, 195, 0.24);
    background: rgba(126, 224, 195, 0.10);
}

.menubar-pill.gpt-pill .pill-dot {
    background: var(--mint);
    box-shadow: 0 0 10px rgba(126, 224, 195, 0.6);
}

.menubar-pill.claude-pill {
    border-color: rgba(255, 139, 95, 0.28);
    background: rgba(255, 139, 95, 0.10);
}

.menubar-pill.claude-pill .pill-dot {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(255, 139, 95, 0.5);
}

.menubar-pill.weather-pill .pill-dot {
    background: var(--amber);
    box-shadow: 0 0 10px rgba(242, 195, 109, 0.5);
}

.menubar-pill.hardware-pill .pill-dot {
    background: var(--mint);
    box-shadow: 0 0 10px rgba(126, 224, 195, 0.5);
}

.menubar-pill.countdown-pill .pill-dot {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(255, 139, 95, 0.5);
}

/* ============================================
   STATUS PANEL (in hero)
   ============================================ */

.status-panel {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    padding: clamp(18px, 3vw, 28px);
    background: var(--glass-wash);
    box-shadow:
        var(--neu-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-head {
    gap: 16px;
    margin-bottom: 24px;
}

.panel-head img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.36),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

.panel-kicker,
.panel-label,
.session-list p {
    margin-bottom: 3px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.panel-state {
    margin: 0;
    font-size: clamp(1.28rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.2;
}

/* Provider grid */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.provider {
    display: flex;
    min-width: 0;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    background: var(--glass-light);
    box-shadow: var(--neu-inset-soft);
}

.provider-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
}

.provider.running .provider-dot {
    background: var(--mint);
    box-shadow: 0 0 12px var(--mint-glow);
}

.provider-dot.pulsing {
    animation: providerPulse 2.4s ease-in-out infinite;
}

.provider.idle .provider-dot { background: var(--green); }
.provider.weather .provider-dot { background: var(--amber); }
.provider.hardware .provider-dot { background: var(--mint); }
.provider.countdown .provider-dot { background: var(--accent); }

.provider strong,
.provider span {
    display: block;
}

.provider span {
    overflow-wrap: anywhere;
    color: var(--ink-muted);
    font-size: 0.88rem;
}

/* Session list */
.session-list {
    padding-top: 18px;
    border-top: 1px solid var(--glass-line);
}

.session-row {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-line);
}

.session-row span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.session-badge {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(126, 224, 195, 0.12);
    color: var(--mint);
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(126, 224, 195, 0.2);
}

.session-badge.configurable {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink-muted);
    border-color: var(--glass-line);
}

.session-row.muted {
    color: var(--ink-muted);
}

/* ============================================
   SECTIONS — General
   ============================================ */

.section {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: clamp(62px, 9vw, 104px) 0;
}

.band {
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100% - var(--max)) / 2));
    border-top: 1px solid var(--glass-line);
    border-bottom: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-heading {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 36px;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-grid,
.install-grid {
    display: grid;
    gap: 14px;
}

.feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.feature-card,
.install-step {
    overflow: hidden;
    box-shadow:
        var(--neu-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-card {
    min-height: 260px;
    background: var(--glass-light);
    transition: border-color 260ms ease, box-shadow 420ms var(--spring), transform 420ms var(--spring);
}

.feature-card:hover,
.feature-card.is-expanded {
    border-color: rgba(126, 224, 195, 0.28);
    background: rgba(255, 255, 255, 0.10);
    box-shadow:
        var(--neu-raised-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 0 30px rgba(126, 224, 195, 0.08);
}

.feature-card-toggle {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 260px;
    padding: 22px;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.feature-card-toggle p,
.card-expansion p,
.install-step p,
.download-panel p,
.privacy-copy p {
    margin-bottom: 0;
    color: var(--ink-muted);
}

.feature-index {
    display: block;
    margin-bottom: 58px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    opacity: 0.7;
}

.expand-glyph {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: 1px solid var(--glass-edge);
    border-radius: 50%;
    background: var(--glass-light);
    box-shadow: var(--neu-inset-soft);
}

.expand-glyph::before,
.expand-glyph::after {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--mint);
    transform: translate(-50%, -50%);
    transition: transform 380ms var(--spring);
}

.expand-glyph::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.feature-card.is-expanded .expand-glyph::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.card-expansion {
    display: grid;
    grid-template-rows: 0fr;
    border-top: 1px solid transparent;
    transition: grid-template-rows 540ms var(--spring), border-color 260ms ease;
}

.card-expansion > div {
    overflow: hidden;
}

.card-expansion p {
    padding: 0 22px 22px;
}

.feature-card.is-expanded .card-expansion {
    grid-template-rows: 1fr;
    border-color: var(--glass-line);
}

/* ============================================
   PRIVACY SECTION
   ============================================ */

.privacy {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(26px, 7vw, 90px);
    align-items: start;
}

.privacy-copy {
    position: relative;
    overflow: hidden;
    padding: 26px;
    background: var(--glass-light);
    box-shadow:
        var(--neu-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.privacy-list {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.privacy-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--ink-muted);
}

.privacy-list li > span:first-child {
    width: 9px;
    height: 9px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow:
        0 0 14px var(--mint-glow),
        0 0 4px rgba(126, 224, 195, 0.3);
    flex: 0 0 auto;
}

.privacy-list li > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.privacy-list code {
    padding: 2px 6px;
    border: 1px solid var(--glass-line);
    border-radius: 4px;
    background: var(--glass-wash);
    color: var(--ink);
    font-size: 0.88rem;
}

/* Local badge */
.local-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 22px;
    padding: 8px 14px;
    border: 1px solid rgba(126, 224, 195, 0.2);
    border-radius: 999px;
    background: var(--mint-soft);
    color: var(--mint);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(126, 224, 195, 0.08);
}

.local-icon {
    font-size: 0.6rem;
    color: var(--mint);
    text-shadow: 0 0 8px var(--mint-glow);
    animation: providerPulse 2.4s ease-in-out infinite;
}

/* ============================================
   INSTALL SECTION
   ============================================ */

.install-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 14px;
}

.install-step {
    min-height: 214px;
    padding: 22px;
    background: var(--glass-light);
}

.install-step > span {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 36px;
    place-items: center;
    border: 1px solid var(--glass-edge);
    border-radius: 50%;
    color: var(--accent);
    font-weight: 800;
    box-shadow: var(--neu-inset-soft);
}

/* ============================================
   GATEKEEPER / SECURITY HELP
   ============================================ */

.security-help {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 20px;
    margin: 14px 0;
    padding: 28px;
    background: var(--glass-wash);
    box-shadow:
        var(--neu-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.security-copy h3 {
    max-width: 520px;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.04;
}

.security-copy p {
    color: var(--ink-muted);
}

.security-steps {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: security-step;
}

.security-steps li {
    position: relative;
    min-height: 34px;
    padding-left: 44px;
    color: var(--ink-muted);
}

.security-steps li::before {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--glass-edge);
    border-radius: 50%;
    color: var(--accent);
    content: counter(security-step);
    counter-increment: security-step;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: var(--neu-inset-soft);
}

/* Settings window visual */
.settings-visual {
    position: relative;
    min-height: 350px;
}

.settings-window,
.warning-dialog {
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 56px rgba(0, 0, 0, 0.32),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.settings-window {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 292px;
    overflow: hidden;
}

.settings-sidebar {
    display: grid;
    gap: 9px;
    align-content: start;
    padding: 18px 14px;
    border-right: 1px solid var(--glass-line);
    background: var(--glass-light);
}

.settings-sidebar span,
.settings-sidebar strong {
    display: block;
    min-height: 24px;
    border-radius: 6px;
}

.settings-sidebar span {
    background: var(--glass-wash);
}

.settings-sidebar strong {
    padding: 4px 8px;
    background: var(--mint-soft);
    color: var(--ink);
    font-size: 0.82rem;
}

.settings-panel {
    padding: 22px;
}

.settings-title {
    margin-bottom: 48px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.gatekeeper-card {
    padding: 16px;
    border: 1px solid rgba(255, 139, 95, 0.18);
    border-radius: var(--radius);
    background: var(--glass-light);
    box-shadow: var(--neu-inset-soft);
}

.gatekeeper-card p {
    margin-bottom: 14px;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.gatekeeper-card button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 139, 95, 0.45);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 139, 95, 0.88), rgba(255, 139, 95, 0.72));
    color: #1a0d07;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(255, 139, 95, 0.2);
}

.warning-dialog {
    position: absolute;
    right: 18px;
    bottom: 0;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    width: min(86%, 360px);
    padding: 14px;
}

.warning-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #1a0d07;
    font-weight: 800;
    box-shadow: 0 0 16px var(--accent-glow);
}

.warning-dialog p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
}

/* ============================================
   DOWNLOAD PANEL
   ============================================ */

.download-panel {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(255, 139, 95, 0.08), rgba(126, 224, 195, 0.04)),
        var(--glass-light);
    box-shadow:
        var(--neu-raised),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--ink);
}

.download-panel h3 {
    margin-bottom: 6px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.download-panel .panel-label {
    color: var(--accent);
}

.download-panel .download-button {
    border-color: rgba(255, 139, 95, 0.48);
    background: linear-gradient(135deg, rgba(255, 139, 95, 0.94), rgba(255, 196, 170, 0.68));
    color: #1a0d07;
}

.copy-button {
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--glass-edge);
    background: var(--glass-light);
    color: var(--ink);
    box-shadow: var(--neu-inset-soft);
}

.copy-button.is-copied {
    border-color: rgba(126, 224, 195, 0.3);
    background: var(--mint-soft);
    box-shadow: 0 0 20px var(--mint-glow);
}

.checksum {
    overflow-x: auto;
    margin: 14px 0 0;
    padding: 14px;
    color: var(--ink-muted);
    font-size: 0.86rem;
    white-space: pre;
    box-shadow: var(--neu-inset-soft);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    justify-content: space-between;
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 30px 0 42px;
    border-top: 1px solid var(--glass-line);
    color: var(--ink-muted);
}

.site-footer span {
    color: var(--ink);
    font-weight: 800;
}

.site-footer a {
    color: var(--accent);
    font-weight: 800;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    translate: 0 28px;
    filter: blur(6px);
    transition: opacity 720ms ease, translate 820ms var(--spring-slow), filter 720ms ease;
}

.reveal.is-visible {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
}

/* ============================================
   KEYFRAMES
   ============================================ */

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
        filter: blur(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes providerPulse {
    0%, 100% {
        box-shadow: 0 0 8px var(--mint-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--mint-glow), 0 0 32px rgba(126, 224, 195, 0.14);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
    .site-header {
        width: min(calc(100% - 20px), var(--max));
    }

    .hero,
    .section {
        width: min(calc(100% - 28px), var(--max));
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 58px;
    }

    .product-visual {
        max-width: 720px;
    }

    .section-heading,
    .privacy,
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .install-grid {
        grid-template-columns: 1fr;
    }

    .security-help {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        align-items: stretch;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
    }

    .header-actions { gap: 8px; }

    .language-toggle,
    .header-download {
        min-height: 36px;
    }

    h1 {
        font-size: clamp(2.65rem, 12vw, 3.6rem);
    }

    h2,
    html[lang="en"] h2 {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    html[lang="en"] h1 {
        font-size: clamp(2.75rem, 11vw, 3.65rem);
    }

    .release-strip,
    .provider-grid,
    .section-heading,
    .privacy,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .release-strip {
        display: grid;
    }

    .menubar {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .menubar-modules {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .release-strip div + div {
        border-top: 1px solid var(--glass-line);
        border-left: 0;
    }

    .download-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .security-help {
        padding: 18px;
    }

    .settings-visual {
        min-height: 390px;
    }

    .settings-window {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        grid-template-columns: 1fr 1fr;
        border-right: 0;
        border-bottom: 1px solid var(--glass-line);
    }

    .settings-title {
        margin-bottom: 22px;
    }

    .warning-dialog {
        right: 10px;
        width: calc(100% - 20px);
    }

    .download-panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .download-panel-actions > * {
        width: 100%;
    }

    .session-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (pointer: coarse) {
    .cursor-follower {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-spring-card] {
        transform: none !important;
    }

    [data-parallax] {
        transform: none !important;
    }

    [data-float] {
        animation: none !important;
    }
}
