/* Lumen Studio LTDA — Unified Design System v5.0 (Precision Studio Edition) */
:root {
    --bg-deep: #050912;
    --bg-elevated: #0a101d;
    --bg-surface: rgba(13, 20, 36, 0.76);
    --bg-surface-strong: rgba(11, 17, 31, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.085);
    --border-strong: rgba(255, 255, 255, 0.17);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent: #38bdf8;
    --accent-2: #22c55e;
    --accent-glow: rgba(56, 189, 248, 0.20);
    --accent-ink: #04131c;

    --emerald: #10b981;
    --cyan: #38bdf8;
    --amber: #f59e0b;
    --coral: #f58c56;
    --gold: #ffd638;
    --indigo: #818cf8;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --max-w: 1220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 75% 50% at 18% -5%, var(--accent-glow), transparent 62%),
        radial-gradient(ellipse 60% 42% at 88% 5%, rgba(56, 189, 248, 0.11), transparent 60%),
        radial-gradient(ellipse 75% 45% at 50% 102%, rgba(16, 185, 129, 0.07), transparent 65%);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Architectural dot/grid backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 25%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, #000 25%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--font-mono); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Bilingual visibility */
body.lang-pt [data-lang="en"] { display: none !important; }
body:not(.lang-pt) [data-lang="pt"] { display: none !important; }

/* Top Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 400;
    pointer-events: none;
}
.scroll-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    will-change: transform;
}

/* Sticky Glass Navbar */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    background: rgba(5, 9, 18, 0.78);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nav-wrap.scrolled {
    background: rgba(5, 9, 18, 0.94);
    border-bottom-color: var(--border-strong);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 13px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px var(--accent-glow);
    flex-shrink: 0;
}

.brand-mark svg { width: 17px; height: 17px; }
.brand-name span { color: var(--accent); }

.app-nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    font-weight: 700;
}
.app-nav-badge img { width: 22px; height: 22px; border-radius: 6px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-links > a { transition: color 0.16s ease; }
.nav-links > a:hover { color: var(--text-primary); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    transition: color 0.16s ease;
}
.nav-dropdown-btn:hover { color: var(--text-primary); }
.nav-dropdown-btn svg { transition: transform 0.2s var(--ease-out); }
.nav-dropdown.open .nav-dropdown-btn svg { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 540px;
    max-width: calc(100vw - 32px);
    background: rgba(9, 14, 27, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.75);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.2s var(--ease-out), visibility 0.18s;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-col-title {
    font-size: 0.71rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 11px;
    transition: background 0.15s ease;
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.065); }
.dropdown-item img { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; }
.dropdown-item strong { display: flex; align-items: center; gap: 6px; font-size: 0.87rem; color: var(--text-primary); line-height: 1.2; }
.dropdown-item small { display: block; font-size: 0.74rem; color: var(--text-secondary); }
.dd-tag {
    font-size: 0.64rem;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
    font-weight: 700;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.cmdk-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 11px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.cmdk-trigger:hover { border-color: var(--border-strong); color: var(--text-primary); background: rgba(255, 255, 255, 0.09); }
.cmdk-trigger kbd {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.lang-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 13px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
    white-space: nowrap;
}
.lang-btn:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.11); }

@media (max-width: 860px) {
    .nav-links a.hide-sm { display: none; }
    .cmdk-trigger span { display: none; }
    .nav-dropdown-menu { left: -40px; width: 340px; grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .app-nav-badge { display: none; }
    .nav-dropdown-menu { left: -80px; width: calc(100vw - 24px); }
}

/* Main Container */
main {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 56px 24px 88px;
    flex: 1;
}

/* Badges & Eyebrows */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-strong);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    animation: pulseGlow 2.6s ease-in-out infinite;
}
@keyframes pulseGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-soon { background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.34); color: #fbbf24; }
.badge-live { background: rgba(16, 185, 129, 0.13); border-color: rgba(16, 185, 129, 0.36); color: #34d399; }

/* Hero */
.hero {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 56px;
}

.hero h1 {
    font-size: clamp(2.45rem, 5.2vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.042em;
    line-height: 1.06;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    font-size: 1.14rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 28px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 11px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    font-weight: 600;
    color: #e2e8f0;
}
.stat-chip strong { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Interactive 8-App Launcher Dock in Hero */
.app-dock {
    margin: 34px auto 0;
    max-width: 820px;
    background: rgba(11, 17, 32, 0.85);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
    .app-dock { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 13px;
    border: 1px solid transparent;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-subtle);
}

.dock-item img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    object-fit: cover;
}

.dock-item span {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}
.dock-item:hover span { color: var(--text-primary); }

/* Clean, Rock-Solid Buttons (Zero Slippery Movement) */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: filter 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.btn-primary {
    padding: 11px 21px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
    font-weight: 800;
    box-shadow: 0 8px 22px var(--accent-glow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 28px var(--accent-glow); }

.btn-secondary {
    padding: 11px 19px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 700;
}
.btn-secondary:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.10); }

.btn-muted {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 19px;
    border-radius: 11px;
    background: rgba(245, 158, 11, 0.10);
    border: 1px dashed rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: default;
}

/* Filter Tabs */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border-radius: 13px;
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.filter-btn:hover:not(.active) { color: var(--text-primary); background: rgba(255, 255, 255, 0.05); }
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--accent-ink);
}

/* Section Headers */
.section-head {
    margin: 56px 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 6px;
}

.section-title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-sub { color: var(--text-secondary); font-size: 0.98rem; max-width: 720px; margin-top: 6px; }

/* Cursor Spotlight Surface */
.spotlight-card { position: relative; overflow: hidden; --mx: 50%; --my: 50%; }
.spotlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(460px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.055), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}
.spotlight-card:hover::after { opacity: 1; }
.spotlight-card > * { position: relative; z-index: 2; }

/* Bento Grid for 8 Apps */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

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

.app-card {
    position: relative;
    background: linear-gradient(160deg, rgba(16, 24, 42, 0.92), rgba(8, 13, 24, 0.96));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--card-accent, var(--accent)), transparent);
    opacity: 0.85;
}

.app-card:hover {
    border-color: var(--card-accent, var(--accent));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.app-card.hidden-suite { display: none; }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.app-identity { display: flex; align-items: center; gap: 14px; }

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.app-title { font-size: 1.42rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.app-meta { font-size: 0.78rem; font-weight: 700; color: var(--card-accent, var(--accent)); margin-top: 3px; }
.app-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.62; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
}

.card-preview-box {
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: rgba(4, 8, 17, 0.88);
    overflow: hidden;
    position: relative;
}

.card-preview-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}
.card-preview-img:hover { opacity: 0.94; }

/* Sleek Titanium Dual-Portrait Device Showcase */
.card-preview-box.portrait-showcase {
    height: 236px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 18px;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.065), rgba(4, 8, 17, 0.95));
}

.card-preview-box.portrait-showcase .card-preview-img {
    width: auto;
    height: 100%;
    max-width: 46%;
    object-fit: contain;
    border-radius: 13px;
    border: 2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.62);
}

.app-card-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.doc-links-inline { display: flex; gap: 12px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.doc-links-inline a:hover { color: var(--text-primary); text-decoration: underline; }

/* Ecosystem Synergy Strip */
.synergy-banner {
    margin-top: 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(56, 189, 248, 0.07), rgba(129, 140, 248, 0.08));
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 24px 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) { .synergy-banner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .synergy-banner { grid-template-columns: 1fr; } }

.synergy-step { display: flex; flex-direction: column; gap: 4px; }
.synergy-num { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.synergy-step strong { font-size: 0.96rem; font-weight: 800; color: var(--text-primary); }
.synergy-step p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }

/* Product Page Hero Grid */
.product-hero {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 920px) { .product-hero { grid-template-columns: 1fr; } }

.product-hero-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.product-hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }

.product-icon-xl {
    width: 82px;
    height: 82px;
    border-radius: 21px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 38px var(--accent-glow);
    object-fit: cover;
    flex-shrink: 0;
}

.product-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 14px;
}

.product-hero .lead { font-size: 1.06rem; color: var(--text-secondary); margin-bottom: 24px; }

/* Showcase / Gallery */
.showcase-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 18px;
}

.showcase-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 11px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.79rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.tab-btn.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--accent);
    color: #fff;
}

.shot-stage img {
    width: 100%;
    border-radius: 13px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.52);
    cursor: zoom-in;
}

.shot-stage.phone-frame { max-width: 320px; margin: 0 auto; }
.shot-panel { display: none; animation: fadeSlideIn 0.24s var(--ease-out); }
.shot-panel.active { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grids & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 48px; }

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.93rem; }

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--accent);
}

/* Interactive Sandbox Mockups (Blitz / Defuse / Glyde) */
.ui-mockup {
    background: #040811;
    border: 1px solid var(--border-strong);
    border-radius: 15px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
}

.term-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.74rem;
    flex-wrap: wrap;
}

.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.term-dots span:nth-child(1) { background: #ef4444; }
.term-dots span:nth-child(2) { background: #f59e0b; }
.term-dots span:nth-child(3) { background: #22c55e; }

.sandbox-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sandbox-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-subtle);
    color: #e2e8f0;
    padding: 3px 9px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.71rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.sandbox-btn:hover { border-color: var(--accent); color: #fff; }
.sandbox-btn.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.term-body { padding: 14px 16px; line-height: 1.58; color: #cbd5e1; }
.term-ok { color: #34d399; }
.term-accent { color: #38bdf8; }
.term-warn { color: #fbbf24; }
.term-muted { color: #64748b; }

.dag-bar-wrap {
    margin-top: 10px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.dag-bar-fill {
    height: 100%;
    width: 98.4%;
    background: linear-gradient(90deg, #f59e0b, #34d399);
    border-radius: 999px;
    transition: width 0.45s var(--ease-out);
}

/* Defuse Wipe Stage */
.defuse-wipe-stage {
    position: relative;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-top: 10px;
    background-color: #0b1322;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.03) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.03) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.03) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    user-select: none;
}
.defuse-wipe-overlay {
    position: absolute;
    inset: 0;
    width: 52%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(244, 63, 94, 0.25));
    border-right: 2px solid #38bdf8;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-size: 0.72rem;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}
.defuse-wipe-label-r {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Glyde Fluent Menu */
.fluent-menu {
    padding: 10px;
    background: linear-gradient(160deg, rgba(22, 30, 46, 0.97), rgba(14, 20, 32, 0.99));
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-main);
}

.fluent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #e2e8f0;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.fluent-row-left { display: inline-flex; align-items: center; gap: 9px; }
.fluent-row-left svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.fluent-row:hover, .fluent-row.active {
    background: rgba(129, 140, 248, 0.16);
    border-color: rgba(129, 140, 248, 0.38);
    color: #fff;
}
.fluent-sep { height: 1px; background: var(--border-subtle); margin: 4px 8px; }
.fluent-kbd { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

/* Code Box + Copy */
.code-wrap { position: relative; margin-top: 12px; }
.code-box {
    background: #040812;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 76px 16px 16px;
    font-family: var(--font-mono);
    font-size: 0.83rem;
    color: #a7f3d0;
    overflow-x: auto;
    white-space: pre-wrap;
    margin-top: 12px;
}
.code-wrap .code-box { margin-top: 0; }
.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #e2e8f0;
    padding: 4px 10px;
    border-radius: 7px;
    font-family: var(--font-main);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.copy-code-btn:hover { border-color: var(--accent); color: #fff; }
.copy-code-btn.copied { background: rgba(16, 185, 129, 0.22); border-color: #10b981; color: #34d399; }

/* Legal & FAQ Cards */
.doc-container { max-width: 900px; margin: 0 auto; }

.doc-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.doc-card h1 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.025em; }
.doc-card h2 { font-size: 1.24rem; font-weight: 800; margin: 26px 0 10px; color: var(--accent); }
.doc-card h3 { font-size: 1.05rem; font-weight: 700; margin: 18px 0 8px; color: #f1f5f9; }
.doc-card p, .doc-card li { color: #cbd5e1; font-size: 0.96rem; margin-bottom: 10px; }
.doc-card ul, .doc-card ol { padding-left: 22px; margin-bottom: 14px; }
.doc-card code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 5px; font-size: 0.86em; color: #bae6fd; }

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: border-color 0.18s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item h3::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    transition: transform 0.2s var(--ease-out);
    flex-shrink: 0;
}
.faq-item.open h3::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-secondary); font-size: 0.94rem; margin-top: 10px; display: none; }
.faq-item.open p { display: block; animation: fadeSlideIn 0.22s var(--ease-out); }

/* Balanced 4-Column Compliance Matrix (2 x 4 Apps = Zero Orphans) */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1040px) { .compliance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .compliance-grid { grid-template-columns: 1fr; } }

.compliance-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 18px;
    transition: border-color 0.18s ease;
}
.compliance-card:hover { border-color: var(--border-strong); }
.compliance-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; font-size: 0.96rem; }
.compliance-head img { width: 26px; height: 26px; border-radius: 7px; }
.compliance-links { display: flex; flex-wrap: wrap; gap: 6px; }
.compliance-links a {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #cbd5e1;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.compliance-links a:hover { border-color: var(--accent); color: #fff; background: rgba(255, 255, 255, 0.09); }

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(4, 8, 17, 0.82);
    padding: 44px 24px 64px;
    margin-top: auto;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { max-width: var(--max-w); margin: 28px auto 0; padding-top: 20px; padding-right: 64px; border-top: 1px solid var(--border-subtle); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-muted); }

/* Helpers & iOS Trio */
.metric-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.94rem; }
.slider { width: 100%; accent-color: var(--emerald); margin: 14px 0; cursor: pointer; }
.table-wrap { overflow-x: auto; }
table.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.spec-table th, table.spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); }
table.spec-table th { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; }

.icon-trio { display: inline-flex; align-items: center; gap: 10px; margin-left: 0; }
.icon-mini-tile {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--border-strong); object-fit: cover;
    transition: border-color 0.18s ease;
    cursor: pointer;
}
.icon-mini-tile:hover { border-color: var(--accent); }

.shot-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 48px; }
.shot-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 12px;
    transition: border-color 0.2s ease;
}
.shot-card:hover { border-color: var(--accent); }
.shot-card img { width: 100%; border-radius: 12px; border: 1px solid var(--border-subtle); cursor: zoom-in; }
.shot-caption { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-align: center; margin-top: 10px; }
.price-tag { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin: 10px 0 14px; }
ul.list-check { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
ul.list-check li { position: relative; padding-left: 22px; color: #cbd5e1; font-size: 0.93rem; }
ul.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Smooth Reveal */
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.48s var(--ease-out) var(--stagger, 0ms), transform 0.52s var(--ease-out) var(--stagger, 0ms);
}

/* Command Palette Modal */
.cmdk-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(3, 6, 13, 0.78);
    backdrop-filter: blur(12px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 16px 24px;
}
.cmdk-backdrop.open { display: flex; animation: fadeSlideIn 0.18s var(--ease-out); }
.cmdk-dialog {
    width: 100%;
    max-width: 580px;
    background: rgba(10, 16, 30, 0.98);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.78);
    overflow: hidden;
}
.cmdk-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); }
.cmdk-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-family: inherit; font-size: 1rem; font-weight: 600; }
.cmdk-list { max-height: 380px; overflow-y: auto; padding: 8px; }
.cmdk-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 0.9rem; color: #e2e8f0;
    transition: background-color 0.12s ease;
}
.cmdk-item.active, .cmdk-item:hover { background: rgba(56, 189, 248, 0.14); color: #fff; }
.cmdk-item-left { display: flex; align-items: center; gap: 10px; }
.cmdk-item img { width: 24px; height: 24px; border-radius: 6px; }
.cmdk-tag { font-size: 0.72rem; font-family: var(--font-mono); color: var(--text-muted); }

/* Screenshot Lightbox Modal */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 550;
    background: rgba(2, 5, 11, 0.88);
    backdrop-filter: blur(16px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lightbox-backdrop.open { display: flex; animation: fadeSlideIn 0.18s var(--ease-out); }
.lightbox-img {
    max-width: 92vw;
    max-height: 78vh;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
}
.lightbox-bar { margin-top: 14px; display: flex; align-items: center; gap: 12px; color: #e2e8f0; font-size: 0.9rem; font-weight: 600; }
.lightbox-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-strong);
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}
.lightbox-btn:hover { border-color: var(--accent); }

/* Toast Stack & Back-to-Top */
.toast-stack { position: fixed; bottom: 24px; left: 24px; z-index: 600; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.lumen-toast {
    background: rgba(11, 18, 34, 0.96);
    border: 1px solid var(--accent);
    color: #f8fafc;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    animation: fadeSlideIn 0.2s var(--ease-out);
}

.back-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 450;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 16, 30, 0.94);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.back-top-btn.visible { opacity: 1; pointer-events: auto; }
.back-top-btn:hover { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .reveal-pending { opacity: 1; transform: none; }
}
