/* ============================================
   SRCW Save Manager — Landing Page
   ============================================ */

:root {
    --bg:          #08070f;
    --bg-alt:      #0d0b18;
    --surface:     #12101f;
    --surface-2:   #191630;
    --border:      rgba(167, 159, 200, 0.12);
    --border-hi:   rgba(167, 159, 200, 0.22);
    --text:        #ece9f7;
    --text-soft:   #bdb6d6;
    --muted:       #857ea3;
    --primary:     #7c4dff;
    --primary-hi:  #a78bfa;
    --primary-rgb: 124, 77, 255;
    --accent:      #ff8a1f;
    --accent-rgb:  255, 138, 31;
    --success:     #22c55e;
    --radius:      14px;
    --radius-lg:   20px;
    --shadow:      0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Blurred CrossWorlds backdrop */
body::before {
    content: '';
    position: fixed;
    inset: -40px;          /* oversize to hide blur edges */
    z-index: -1;
    background: url('../assets/images/Background/Background.webp') center / cover no-repeat;
    filter: blur(3px) saturate(115%);
    opacity: 0.25;
    pointer-events: none;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
code {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-hi);
}
::selection { background: rgba(var(--primary-rgb), 0.35); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.muted { color: var(--muted); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 3px; }

.btn-primary {
    background: linear-gradient(180deg, #8b62ff 0%, #6a3ae8 100%);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px -8px rgba(var(--primary-rgb), 0.7);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 32px -10px rgba(var(--primary-rgb), 0.85);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-hi);
    color: var(--text);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148,163,184,0.35); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 16px; min-height: 58px; }
.btn-xl { padding: 16px 30px; font-size: 17px; min-height: 64px; }
.btn i { font-size: 1.15em; }
.btn-lg .fa-windows, .btn-xl .fa-windows { font-size: 22px; }

.btn-stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.btn-stack small { font-size: 12px; font-weight: 500; opacity: 0.75; }

.btn-img-icon { width: 20px; height: 20px; object-fit: contain; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(8, 7, 15, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, #5b21b6 100%);
    color: var(--accent);
    font-size: 15px;
    box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb), 0.8);
}

.nav-logo-img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }

.nav-logo-text { white-space: nowrap; }
.nav-logo-text span { color: var(--muted); font-weight: 500; }

@media (max-width: 420px) {
    .navbar .nav-logo-text span { display: none; }
}

.nav-links { display: flex; gap: 4px; }

.nav-links a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

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

.nav-icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 17px;
    transition: color 0.2s, background 0.2s;
}

.nav-icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-icon-btn .fa-heart { color: #f472b6; font-size: 15px; }

/* Language selector */
.lang { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--text-soft);
    transition: background 0.2s, color 0.2s;
}

.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-btn i { font-size: 10px; transition: transform 0.2s; }
.lang-btn[aria-expanded="true"] i { transform: rotate(180deg); }

.lang-flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-hi); }

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    padding: 6px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border-hi);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.lang-menu.active { opacity: 1; visibility: visible; transform: none; }

.lang-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.lang-menu button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.lang-menu button.selected { color: var(--primary-hi); background: rgba(var(--primary-rgb), 0.1); }

.nav-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
}

.nav-hamburger span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    background: rgba(8, 7, 15, 0.97);
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    padding: 12px 8px;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a .fa-heart { color: #f472b6; margin-right: 6px; }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    padding: 150px 0 110px;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.hero-glow-1 {
    width: 620px; height: 620px;
    top: -220px; left: -120px;
    background: rgba(var(--primary-rgb), 0.28);
}

.hero-glow-2 {
    width: 480px; height: 480px;
    top: 60px; right: -160px;
    background: rgba(var(--accent-rgb), 0.10);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 64px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    margin-bottom: 26px;
    border-radius: 999px;
    border: 1px solid var(--border-hi);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    animation: fadeInUp 0.6s var(--ease) both;
}

.hero-badge:hover { border-color: rgba(var(--primary-rgb), 0.5); background: rgba(var(--primary-rgb), 0.08); }
.hero-badge i { font-size: 11px; color: var(--muted); }

.hero-badge-tag {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--accent);
    color: #1f0e00;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 5.4vw, 64px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
    animation: fadeInUp 0.6s 0.08s var(--ease) both;
}

.gradient-text {
    background: linear-gradient(100deg, #c4b5fd 0%, var(--primary-hi) 35%, var(--accent) 105%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 540px;
    font-size: 18px;
    color: var(--text-soft);
    margin-bottom: 34px;
    animation: fadeInUp 0.6s 0.16s var(--ease) both;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 44px;
    animation: fadeInUp 0.6s 0.24s var(--ease) both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: fadeInUp 0.6s 0.32s var(--ease) both;
}

.hero-stat { display: flex; flex-direction: column; text-align: left; }

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hero-stat-label { font-size: 13px; color: var(--muted); }
.hero-stat-label i { font-size: 11px; margin-left: 3px; }

.hero-stat-click { border-radius: 10px; padding: 4px 8px; margin: -4px -8px; transition: background 0.2s; }
.hero-stat-click:hover { background: rgba(var(--primary-rgb), 0.1); }
.hero-stat-click:hover .hero-stat-label { color: var(--primary-hi); }

.hero-stat-sep { width: 1px; height: 34px; background: var(--border-hi); }

/* Demo window */
.hero-demo {
    position: relative;
    animation: fadeIn 0.9s 0.3s var(--ease) both;
}

.demo-window {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #17132a 0%, #0e0c1b 100%);
    border: 1px solid var(--border-hi);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.03) inset;
    animation: float 6s ease-in-out infinite;
}

.demo-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background 0.6s var(--ease);
}

.demo-titlebar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }

.demo-titlebar-name { flex: 1; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }

.demo-titlebar-ver {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary-hi);
}

.demo-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 16px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.22);
    font-size: 13px;
    font-weight: 500;
    color: #86efac;
}

.demo-banner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
}

.demo-banner-btn {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--text-soft);
}

.demo-body { position: relative; padding: 18px 16px 18px; }

.demo-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.demo-icon-wrap {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 20px;
    transition: background 0.5s, color 0.5s;
}

.demo-category { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; transition: color 0.5s; }
.demo-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }

.demo-toggle {
    --on: var(--primary);
    margin-left: auto;
    width: 42px; height: 24px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #2c2742;
    position: relative;
    transition: background 0.3s;
}

.demo-toggle span {
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s var(--ease);
}

.demo-toggle.on { background: var(--on); }
.demo-toggle.on span { transform: translateX(18px); }

.demo-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    min-width: 0;
}

.demo-field-key { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.demo-field-val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demo-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-soft);
}

.demo-status i { color: var(--success); }

.demo-category, .demo-title, .demo-field-val, .demo-status span {
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.5s;
}

.fading { opacity: 0; transform: translateY(5px); }

.demo-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(18, 16, 31, 0.9);
    border: 1px solid var(--border-hi);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-soft);
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.demo-chip i { color: var(--primary-hi); }
.demo-chip-1 { top: -16px; right: 24px; animation: float 6s 1s ease-in-out infinite; }
.demo-chip-2 { bottom: -18px; left: -18px; animation: float 6s 2s ease-in-out infinite; }

/* ============================================
   Sections
   ============================================ */
.section { padding: 110px 0; position: relative; }

.section-alt {
    background: rgba(13, 11, 24, 0.62);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-hi);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle { font-size: 17px; color: var(--text-soft); }

/* ============================================
   Features
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hi);
    background: var(--surface-2);
}

.feature-icon {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 19px;
    color: rgb(var(--c));
    background: rgba(var(--c), 0.12);
    border: 1px solid rgba(var(--c), 0.22);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.feature-card p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.feature-card strong { color: var(--text-soft); font-weight: 600; }

.highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.highlight {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 22px 24px;
    border-right: 1px solid var(--border);
}

.highlight:last-child { border-right: 0; }
.highlight i { color: var(--accent); font-size: 18px; margin-top: 3px; }
.highlight strong { display: block; font-size: 15px; font-weight: 600; }
.highlight span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ============================================
   Preview / Showcase
   ============================================ */
.showcase { display: flex; flex-direction: column; gap: 96px; }

.showcase-item {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 56px;
    align-items: center;
}

.showcase-item:nth-child(even) .showcase-media { order: 2; }

.window-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0e0c1b;
    border: 1px solid var(--border-hi);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 0 60px -30px rgba(var(--primary-rgb), 0.5);
    transition: transform 0.4s var(--ease);
}

.showcase-media:hover .window-frame { transform: translateY(-4px); }

.window-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #12101f;
    border-bottom: 1px solid var(--border);
}

.window-chrome > span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.window-chrome > span:nth-child(1) { background: #ff5f57; }
.window-chrome > span:nth-child(2) { background: #febc2e; }
.window-chrome > span:nth-child(3) { background: #28c840; }

.window-chrome em {
    margin-left: 10px;
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.showcase-num {
    display: inline-block;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--primary-hi);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.showcase-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.showcase-info p { color: var(--text-soft); font-size: 16px; margin-bottom: 20px; }
.showcase-info strong { color: var(--text); font-weight: 600; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-soft); }

.check-list i {
    width: 20px; height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 10px;
    color: var(--success);
    background: rgba(34, 197, 94, 0.12);
}

/* Preview groups */
.preview-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: -24px auto 72px;
}

.preview-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-hi);
    background: rgba(18, 16, 31, 0.7);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.preview-tabs a i { color: var(--primary-hi); font-size: 13px; }
.preview-tabs a:hover { color: var(--text); border-color: rgba(var(--primary-rgb), 0.5); background: rgba(var(--primary-rgb), 0.1); }

.preview-group + .preview-group { margin-top: 120px; }

.preview-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 48px;
}

.preview-group-num {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: rgba(var(--primary-rgb), 0.45);
}

.preview-group-head h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    white-space: nowrap;
}

.preview-group-count {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.preview-group-line { flex: 1; height: 1px; background: var(--border-hi); }

/* Detail crops inside a preview window */
.shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: #121212;          /* the app's own background, so crops blend in */
}

.shots-uneven { grid-template-columns: 1.4fr 1fr; }

.shot {
    display: flex;
    flex-direction: column;
    align-self: start;
    border-radius: 8px;
    cursor: zoom-in;
    outline-offset: 2px;
}

.shot-wide { grid-column: 1 / -1; }

.shot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: filter 0.3s;
}

.shot:hover img { filter: brightness(1.12); }
.shot:focus-visible { outline: 2px solid var(--primary-hi); }

.shot-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.shot-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-hi); }
.shot:hover .shot-label { color: var(--text); }

/* ============================================
   How it works
   ============================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 30px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
}

.step-num {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
}

.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ============================================
   Download
   ============================================ */
.download-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(var(--primary-rgb), 0.22), transparent 60%),
        radial-gradient(ellipse 50% 60% at 100% 100%, rgba(var(--accent-rgb), 0.08), transparent 60%),
        var(--surface);
    border: 1px solid var(--border-hi);
}

.download-main h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}

.download-main > p { color: var(--text-soft); font-size: 17px; margin-bottom: 30px; max-width: 460px; }

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-soft);
}

.download-meta i { color: var(--primary-hi); margin-right: 6px; }

.download-alt {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.download-alt a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.download-alt a:hover { color: var(--text); }
.download-alt img { width: 16px; height: 16px; object-fit: contain; }

.download-stats { display: flex; flex-direction: column; gap: 12px; }
.dl-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.dl-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    text-align: left;
    transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.dl-stat:hover { border-color: rgba(var(--primary-rgb), 0.45); background: rgba(var(--primary-rgb), 0.06); transform: translateY(-2px); }

.dl-stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.dl-stat-label img { width: 15px; height: 15px; object-fit: contain; }

.dl-stat-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.dl-stat-total { padding: 26px 24px; }
.dl-stat-total .dl-stat-value { font-size: 52px; line-height: 1.05; color: #fff; }
.dl-stat-link { font-size: 13px; color: var(--primary-hi); font-weight: 500; margin-top: 4px; }
.dl-stat-link i { font-size: 11px; margin-left: 4px; transition: transform 0.2s; }
.dl-stat:hover .dl-stat-link i { transform: translateX(3px); }

/* ============================================
   Footer
   ============================================ */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: rgba(13, 11, 24, 0.8); }

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-brand p { margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 320px; }

.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-links a { font-size: 14px; color: var(--text-soft); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-kofi {
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.25);
}

.footer-kofi i { color: #f472b6; margin-right: 4px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 22px;
    font-size: 13px;
    color: var(--muted);
}

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 14px;
    background: rgba(18, 16, 31, 0.96);
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    transform: translate(-50%, 20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    max-width: calc(100vw - 32px);
}

.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast > i { color: var(--success); font-size: 22px; }
.toast strong { display: block; font-size: 14px; }
.toast div span { font-size: 13px; color: var(--muted); }

/* ============================================
   Modals
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.modal.active { opacity: 1; visibility: visible; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 3, 10, 0.78);
    backdrop-filter: blur(6px);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border-hi);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s var(--ease);
}

.modal.active .modal-dialog { transform: none; }
.modal-wide { max-width: 760px; }

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--muted);
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }

.modal-icon {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 20px;
    color: var(--primary-hi);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.modal-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.modal-subtitle { color: var(--muted); font-size: 14px; margin: 4px 0 24px; }

.modal-dialog::-webkit-scrollbar { width: 6px; }
.modal-dialog::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 3px; }

/* Screenshot lightbox */
.modal-zoom {
    position: relative;
    max-width: min(1100px, 100%);
    transform: scale(0.96);
    transition: transform 0.3s var(--ease);
}

.modal.active .modal-zoom { transform: none; }

.modal-zoom img {
    max-width: 100%;
    max-height: calc(100vh - 100px);
    border-radius: var(--radius);
    border: 1px solid var(--border-hi);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}

.modal-zoom .modal-close {
    top: -46px; right: 0;
    background: rgba(18, 16, 31, 0.9);
    border: 1px solid var(--border-hi);
    color: var(--text);
}

/* Breakdown */
.dl-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.dl-summary > div {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
}

.dl-summary span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dl-summary img { width: 13px; height: 13px; object-fit: contain; }
.dl-summary strong { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }

.dl-summary-total { background: rgba(var(--primary-rgb), 0.1) !important; border-color: rgba(var(--primary-rgb), 0.3) !important; }
.dl-summary-total strong { color: var(--primary-hi); }

.dl-table-wrap {
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.dl-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.dl-table th, .dl-table td { padding: 11px 14px; text-align: left; white-space: nowrap; }

.dl-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--border);
}

.dl-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.dl-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.dl-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.dl-table .num-total { position: relative; font-weight: 700; min-width: 120px; }

.dl-table .bar {
    position: absolute;
    right: 8px; top: 50%;
    height: 22px;
    width: calc(var(--w) * 0.85);
    transform: translateY(-50%);
    border-radius: 5px;
    background: rgba(var(--primary-rgb), 0.16);
    z-index: -1;
}

.dl-table td.num-total { isolation: isolate; }

.ver-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.row-note td { font-size: 13px; }

.dl-table tfoot td {
    font-weight: 700;
    background: rgba(var(--primary-rgb), 0.08);
    border-top: 1px solid rgba(var(--primary-rgb), 0.25);
}

.dl-table tfoot .num-total { color: var(--primary-hi); }

.dl-breakdown-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ============================================
   Animations
   ============================================ */
.slide-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.slide-up.visible { opacity: 1; transform: none; }

@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 72px; }
    .hero-demo { max-width: 480px; margin: 0 auto; width: 100%; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .download-card { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 860px) {
    .nav-links, .nav-icon-btn { display: none; }
    .lang-btn { padding: 0 6px; }
    .nav-hamburger { display: flex; }
    .mobile-nav.active { display: flex; }
    .showcase { gap: 64px; }
    .showcase-item { grid-template-columns: 1fr; gap: 28px; }
    .showcase-item:nth-child(even) .showcase-media { order: 0; }
    .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .hero { padding: 116px 0 80px; }
    .hero-desc { font-size: 16px; }
    .hero-buttons .btn { width: 100%; }
    .hero-stats { gap: 16px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 22px; }
    .hero-stat-sep { display: none; }
    .demo-chip-2 { left: 8px; }
    .demo-chip-1 { right: 8px; }
    .section { padding: 80px 0; }
    .section-header { margin-bottom: 40px; }
    .preview-tabs { margin: -12px auto 48px; }
    .preview-group + .preview-group { margin-top: 80px; }
    .preview-group-head { gap: 10px; margin-bottom: 32px; }
    .preview-group-num { font-size: 26px; }
    .preview-group-head h3 { font-size: 18px; white-space: normal; }
    .preview-group-line { display: none; }
    .shots, .shots-uneven { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr; }
    .highlight { border-right: 0; border-bottom: 1px solid var(--border); }
    .highlight:last-child { border-bottom: 0; }
    .download-card { padding: 28px 20px; border-radius: 22px; }
    .download-main .btn { width: 100%; }
    .dl-stat-total .dl-stat-value { font-size: 42px; }
    .modal-dialog { padding: 26px 18px; }
    .dl-summary { grid-template-columns: 1fr; }
    .nav-right .btn-sm { padding: 8px 12px; }
}
