/* ================================================================
   UwebRDP — Premium Website 2026
   Modern dark design with glassmorphism, fluid typography,
   mesh gradients, micro-animations, responsive (mobile → 4K)
   ================================================================ */

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

:root {
    /* Palette */
    --bg:             #06060b;
    --bg-elevated:    #0c0c16;
    --bg-card:        rgba(14, 14, 26, 0.6);
    --bg-glass:       rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --border:         rgba(255, 255, 255, 0.06);
    --border-hover:   rgba(255, 255, 255, 0.12);
    --text:           #e8e8ef;
    --text-secondary: #8b8ba3;
    --text-muted:     #4e4e6a;
    --accent:         #667eea;
    --accent-light:   #8fa4ff;
    --accent-glow:    rgba(102, 126, 234, 0.15);
    --purple:         #764ba2;
    --success:        #34d399;
    --danger:         #f87171;

    /* Layout */
    --max-width:      1200px;
    --max-width-lg:   1400px;
    --radius:         20px;
    --radius-md:      14px;
    --radius-sm:      10px;
    --radius-xs:      6px;

    /* Typography — fluid with clamp */
    --font:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    --fs-hero:    clamp(2.8rem, 5vw + 1rem, 5rem);
    --fs-h1:      clamp(2rem, 3vw + 0.5rem, 3.2rem);
    --fs-h2:      clamp(1.6rem, 2.5vw + 0.3rem, 2.4rem);
    --fs-h3:      clamp(1.1rem, 1.2vw + 0.3rem, 1.3rem);
    --fs-body:    clamp(0.95rem, 0.9vw + 0.2rem, 1.1rem);
    --fs-small:   clamp(0.8rem, 0.7vw + 0.2rem, 0.9rem);
    --fs-tiny:    clamp(0.7rem, 0.6vw + 0.15rem, 0.8rem);

    /* Spacing — fluid */
    --space-xs:   clamp(0.5rem, 1vw, 0.75rem);
    --space-sm:   clamp(0.75rem, 1.5vw, 1.25rem);
    --space-md:   clamp(1.5rem, 3vw, 2.5rem);
    --space-lg:   clamp(3rem, 5vw, 5rem);
    --space-xl:   clamp(5rem, 8vw, 8rem);
    --space-2xl:  clamp(6rem, 10vw, 12rem);
}

/* ================================================================
   THEME: Light
   ================================================================ */
[data-theme="light"] {
    --bg:             #f5f5fa;
    --bg-elevated:    #ffffff;
    --bg-card:        rgba(255, 255, 255, 0.8);
    --bg-glass:       rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --border:         rgba(0, 0, 0, 0.08);
    --border-hover:   rgba(0, 0, 0, 0.15);
    --text:           #1a1a2e;
    --text-secondary: #555570;
    --text-muted:     #8e8ea0;
    --accent:         #4f6af0;
    --accent-light:   #3a56d4;
    --accent-glow:    rgba(79, 106, 240, 0.1);
    --purple:         #7c3aed;
    --success:        #059669;
    --danger:         #dc2626;
}

[data-theme="light"] .mesh-bg__blob--1 {
    background: radial-gradient(circle, rgba(79, 106, 240, 0.12), transparent 70%);
}
[data-theme="light"] .mesh-bg__blob--2 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
}
[data-theme="light"] .mesh-bg__blob--3 {
    background: radial-gradient(circle, rgba(5, 150, 105, 0.08), transparent 70%);
}

[data-theme="light"] .site-header {
    background: rgba(245, 245, 250, 0.8);
}
[data-theme="light"] .site-header__logo { color: #1a1a2e; }
[data-theme="light"] .hero__window {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12), 0 0 60px rgba(79, 106, 240, 0.06);
}
[data-theme="light"] .hero__window-bar {
    background: #f0f0f5;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .hero__title {
    background: linear-gradient(135deg, #1a1a2e 0%, var(--accent) 50%, var(--purple) 100%);
    -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .section__title { color: #1a1a2e; }
[data-theme="light"] .feature h3,
[data-theme="light"] .download-card__title,
[data-theme="light"] .doc-link__title,
[data-theme="light"] .guide-block h3,
[data-theme="light"] .guide-kv__key,
[data-theme="light"] .legal-section h3,
[data-theme="light"] .legal-page h1,
[data-theme="light"] .guide-page h1 { color: #1a1a2e; }
[data-theme="light"] .stat__value {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text; background-clip: text;
}
[data-theme="light"] .screenshot-card__label {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    color: #1a1a2e;
}
[data-theme="light"] .screenshot-card:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .download-card__btn--disabled {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-muted);
}
[data-theme="light"] .site-footer__links a:hover { color: #1a1a2e; }
[data-theme="light"] .site-header__nav a:hover { color: #1a1a2e; }
[data-theme="light"] body::before { opacity: 0.01; }

/* Mobile nav light */
@media (max-width: 640px) {
    [data-theme="light"] .site-header__nav.open {
        background: rgba(245, 245, 250, 0.97);
    }
}

/* ================================================================
   THEME: Pastel
   ================================================================ */
[data-theme="pastel"] {
    --bg:             #fef7f0;
    --bg-elevated:    #fff9f5;
    --bg-card:        rgba(255, 245, 238, 0.7);
    --bg-glass:       rgba(255, 248, 243, 0.75);
    --bg-glass-hover: rgba(255, 252, 249, 0.9);
    --border:         rgba(200, 170, 150, 0.15);
    --border-hover:   rgba(200, 170, 150, 0.3);
    --text:           #3d2c2c;
    --text-secondary: #7a6565;
    --text-muted:     #b8a0a0;
    --accent:         #e07a8f;
    --accent-light:   #c4566e;
    --accent-glow:    rgba(224, 122, 143, 0.1);
    --purple:         #b07cc6;
    --success:        #6dba8a;
    --danger:         #d96b6b;
}

[data-theme="pastel"] .mesh-bg__blob--1 {
    background: radial-gradient(circle, rgba(224, 122, 143, 0.15), transparent 70%);
}
[data-theme="pastel"] .mesh-bg__blob--2 {
    background: radial-gradient(circle, rgba(176, 124, 198, 0.12), transparent 70%);
}
[data-theme="pastel"] .mesh-bg__blob--3 {
    background: radial-gradient(circle, rgba(109, 186, 138, 0.1), transparent 70%);
}

[data-theme="pastel"] .site-header {
    background: rgba(254, 247, 240, 0.8);
}
[data-theme="pastel"] .site-header__logo { color: #3d2c2c; }
[data-theme="pastel"] .hero__window {
    background: #fff9f5;
    border-color: rgba(200, 170, 150, 0.2);
    box-shadow: 0 40px 100px rgba(100, 60, 60, 0.08), 0 0 60px rgba(224, 122, 143, 0.06);
}
[data-theme="pastel"] .hero__window-bar {
    background: #fef0e8;
    border-bottom-color: rgba(200, 170, 150, 0.12);
}
[data-theme="pastel"] .hero__title {
    background: linear-gradient(135deg, #3d2c2c 0%, var(--accent) 50%, var(--purple) 100%);
    -webkit-background-clip: text; background-clip: text;
}
[data-theme="pastel"] .section__title { color: #3d2c2c; }
[data-theme="pastel"] .feature h3,
[data-theme="pastel"] .download-card__title,
[data-theme="pastel"] .doc-link__title,
[data-theme="pastel"] .guide-block h3,
[data-theme="pastel"] .guide-kv__key,
[data-theme="pastel"] .legal-section h3,
[data-theme="pastel"] .legal-page h1,
[data-theme="pastel"] .guide-page h1 { color: #3d2c2c; }
[data-theme="pastel"] .stat__value {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text; background-clip: text;
}
[data-theme="pastel"] .screenshot-card__label {
    background: linear-gradient(to top, rgba(254, 247, 240, 0.95), transparent);
    color: #3d2c2c;
}
[data-theme="pastel"] .screenshot-card:hover {
    box-shadow: 0 30px 80px rgba(100, 60, 60, 0.08);
}
[data-theme="pastel"] .download-card__btn {
    background: linear-gradient(135deg, var(--accent), var(--purple));
}
[data-theme="pastel"] .download-card__btn--disabled {
    background: rgba(200, 170, 150, 0.1);
    color: var(--text-muted);
}
[data-theme="pastel"] .guide-tip {
    background: rgba(224, 122, 143, 0.08);
    border-left-color: var(--accent);
}
[data-theme="pastel"] .guide-warning {
    background: rgba(217, 107, 107, 0.08);
    border-left-color: var(--danger);
}
[data-theme="pastel"] .feature__icon {
    background: var(--accent-glow);
    border-color: rgba(224, 122, 143, 0.15);
}
[data-theme="pastel"] .feature::before {
    background: linear-gradient(90deg, transparent, rgba(224, 122, 143, 0.25), transparent);
}
[data-theme="pastel"] .site-footer__links a:hover { color: #3d2c2c; }
[data-theme="pastel"] .site-header__nav a:hover { color: #3d2c2c; }
[data-theme="pastel"] body::before { opacity: 0.008; }

@media (max-width: 640px) {
    [data-theme="pastel"] .site-header__nav.open {
        background: rgba(254, 247, 240, 0.97);
    }
}

/* ================================================================
   THEME SWITCHER (footer)
   ================================================================ */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-tiny);
    color: var(--text-muted);
}

.theme-switcher__label {
    margin-right: 4px;
    font-weight: 500;
}

.theme-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    padding: 0;
    outline: none;
}
.theme-btn:hover {
    transform: scale(1.15);
    border-color: var(--border-hover);
}
.theme-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.theme-btn--dark  { background: #0a0a14; }
.theme-btn--light { background: #f0f0f8; }
.theme-btn--pastel { background: linear-gradient(135deg, #fce4ec, #f3e5f5, #e8eaf6); }

/* Google Font loading (Inter) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    font-size: var(--fs-body);
    overflow-x: hidden;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: #fff; }

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

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

/* === Utility === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

.container--lg {
    max-width: var(--max-width-lg);
}

/* === Noise texture overlay === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* === Mesh gradient background blob === */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite alternate;
}

.mesh-bg__blob--1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
    top: -200px; left: -100px;
}

.mesh-bg__blob--2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.25), transparent 70%);
    top: 40%; right: -150px;
    animation-delay: -7s;
    animation-duration: 25s;
}

.mesh-bg__blob--3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15), transparent 70%);
    bottom: 10%; left: 20%;
    animation-delay: -12s;
    animation-duration: 22s;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
}

/* ================================================================
   HEADER — Frosted glass navigation
   ================================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 6, 11, 0.7);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

.site-header__inner {
    max-width: var(--max-width-lg);
    margin: 0 auto;
    padding: clamp(10px, 1.5vw, 16px) clamp(16px, 4vw, 48px);
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.site-header__logo:hover { color: #fff; }

.site-header__logo img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.site-header__nav {
    display: flex;
    gap: clamp(16px, 2.5vw, 32px);
    margin-left: auto;
    font-size: var(--fs-small);
    font-weight: 500;
}

.site-header__nav a {
    color: var(--text-secondary);
    transition: color 0.25s;
    position: relative;
}
.site-header__nav a:hover { color: #fff; }
.site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.3s;
}
.site-header__nav a:hover::after { width: 100%; }

/* Mobile hamburger (CSS only) */
.site-header__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* ================================================================
   HERO — Full viewport statement
   ================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl) clamp(16px, 4vw, 48px) var(--space-lg);
    position: relative;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 20px;
    font-size: var(--fs-tiny);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(10px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero__badge-dot {
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero__logo {
    width: clamp(80px, 10vw, 130px);
    height: clamp(80px, 10vw, 130px);
    border-radius: clamp(20px, 3vw, 32px);
    box-shadow:
        0 20px 60px rgba(102, 126, 234, 0.25),
        0 0 0 1px rgba(102, 126, 234, 0.1);
    margin-bottom: var(--space-md);
    animation: hero-logo-float 6s ease-in-out infinite alternate;
}

@keyframes hero-logo-float {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.4;
    margin-bottom: var(--space-sm);
    padding: 0.15em 0.05em;
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 1.5vw + 0.3rem, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-md);
    line-height: 1.7;
    font-weight: 400;
}

/* Platform pills */
.platforms {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.platform {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 10px 24px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: border-color 0.3s, color 0.3s;
}
.platform:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

/* Hero screenshot showcase */
.hero__showcase {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero__screenshot {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 80px rgba(102, 126, 234, 0.1);
    transition: transform 0.5s, box-shadow 0.5s;
}
.hero__screenshot:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 50px 120px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 100px rgba(102, 126, 234, 0.15);
}

/* Window chrome bar on screenshot */
.hero__window {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0e0e1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(102, 126, 234, 0.1);
}

.hero__window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(14, 14, 26, 0.9);
    border-bottom: 1px solid var(--border);
}

.hero__window-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.hero__window-dot--red    { background: #ff5f57; }
.hero__window-dot--yellow { background: #febc2e; }
.hero__window-dot--green  { background: #28c840; }

.hero__window img {
    width: 100%;
    display: block;
}

/* ================================================================
   SECTIONS — Shared section styles
   ================================================================ */
.section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section__label {
    display: inline-block;
    font-size: var(--fs-tiny);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.section__title {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section__desc {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    max-width: 560px;
    margin: var(--space-xs) auto 0;
    line-height: 1.7;
}

/* Divider line between sections */
.section + .section::before {
    content: '';
    display: block;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
    margin: 0 auto var(--space-xl);
}

/* ================================================================
   FEATURES — Bento grid
   ================================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 20px);
}

.feature {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 36px);
    transition: border-color 0.3s, transform 0.4s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-4px);
}
.feature:hover::before { opacity: 1; }

.feature__icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-glow);
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.feature h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Large / spanning cards */
.feature--wide { grid-column: span 2; }
.feature--tall { grid-row: span 2; }

/* ================================================================
   SCREENSHOTS — Floating gallery
   ================================================================ */
.screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2vw, 24px);
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform 0.4s, border-color 0.3s, box-shadow 0.4s;
}
.screenshot-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.screenshot-card img {
    width: 100%;
    display: block;
}

.screenshot-card__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(6, 6, 11, 0.9), transparent);
    font-size: var(--fs-small);
    font-weight: 600;
    color: #fff;
}

/* ================================================================
   DOWNLOAD — Cards with glow
   ================================================================ */
.downloads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.download-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(28px, 3vw, 40px);
    text-align: center;
    transition: border-color 0.3s, transform 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.download-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.download-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
}
.download-card:hover::after { opacity: 1; }

.download-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card__icon img {
    width: 48px;
    height: 48px;
}

.doc-link__icon img {
    width: 32px;
    height: 32px;
}

.download-card__title {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.download-card__desc {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.download-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    color: #fff;
    border-radius: 100px;
    font-weight: 600;
    font-size: var(--fs-small);
    transition: opacity 0.25s, transform 0.25s;
    position: relative;
    z-index: 1;
}
.download-card__btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    color: #fff;
}

.download-card__btn--disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
}

.download-card__version {
    font-size: var(--fs-tiny);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    position: relative;
    z-index: 1;
}

/* ================================================================
   DOCUMENT LINKS — Guide & Legal links
   ================================================================ */
.doc-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
    color: var(--text);
}
.doc-link:hover {
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
    transform: translateY(-3px);
    color: var(--text);
}

.doc-link__icon {
    font-size: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--accent-glow);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.doc-link__title {
    font-weight: 600;
    color: #fff;
    font-size: var(--fs-body);
    letter-spacing: -0.01em;
}

.doc-link__desc {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

/* ================================================================
   STATS — Number highlights
   ================================================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 2vw, 24px);
    max-width: 900px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
}

.stat__value {
    font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__label {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================================================
   FOOTER — Minimal
   ================================================================ */
.site-footer {
    padding: var(--space-lg) 0 var(--space-md);
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
}

.site-footer__inner {
    max-width: var(--max-width-lg);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__copy {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.site-footer__links {
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    font-size: var(--fs-small);
}

.site-footer__links a {
    color: var(--text-secondary);
    transition: color 0.2s;
}
.site-footer__links a:hover { color: #fff; }

/* ================================================================
   LEGAL PAGES — EULA, Privacy
   ================================================================ */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(80px + var(--space-lg)) clamp(16px, 4vw, 48px) var(--space-xl);
}

.legal-page h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.legal-page__date {
    color: var(--text-muted);
    font-size: var(--fs-small);
    margin-bottom: var(--space-lg);
}

.legal-section {
    margin-bottom: var(--space-md);
}

.legal-section h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.8;
}

.legal-section ul, .legal-section ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.legal-section li { margin-bottom: 6px; }

/* ================================================================
   GUIDE PAGES — Instructions
   ================================================================ */
.guide-page {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(80px + var(--space-lg)) clamp(16px, 4vw, 48px) var(--space-xl);
}

.guide-page h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.guide-block {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 32px);
    margin-bottom: clamp(16px, 2vw, 24px);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s;
}
.guide-block:hover {
    border-color: var(--border-hover);
}

.guide-block h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.guide-block p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: var(--fs-body);
    line-height: 1.8;
}

.guide-block ul, .guide-block ol {
    color: var(--text-secondary);
    padding-left: 24px;
    font-size: var(--fs-body);
    line-height: 1.8;
}

.guide-block li { margin-bottom: 6px; }

/* Guide KV table */
.guide-kv { display: grid; gap: 4px; }

.guide-kv__row {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-small);
}
.guide-kv__row:last-child { border-bottom: none; }

.guide-kv__key {
    font-weight: 600;
    color: #fff;
    min-width: 150px;
    flex-shrink: 0;
}

.guide-kv__val { color: var(--text-secondary); }

/* Guide tip / warning callouts */
.guide-tip {
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid var(--accent);
    padding: 14px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 14px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.7;
}

.guide-warning {
    background: rgba(248, 113, 113, 0.08);
    border-left: 3px solid var(--danger);
    padding: 14px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 14px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================================================
   SCROLL ANIMATIONS — Fade in on scroll (CSS only via IntersectionObserver helper)
   ================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger > .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger > .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger > .fade-in:nth-child(4) { transition-delay: 240ms; }
.stagger > .fade-in:nth-child(5) { transition-delay: 320ms; }
.stagger > .fade-in:nth-child(6) { transition-delay: 400ms; }

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

/* Tablet */
@media (max-width: 900px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .feature--wide { grid-column: span 2; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .screenshots { grid-template-columns: 1fr; max-width: 600px; }
}

/* Mobile */
@media (max-width: 640px) {
    .hero { min-height: auto; padding-top: 120px; padding-bottom: var(--space-lg); }
    .features { grid-template-columns: 1fr; }
    .feature--wide { grid-column: span 1; }
    .downloads { grid-template-columns: 1fr; }
    .doc-links { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }

    .site-header__nav { display: none; }
    .site-header__nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 6, 11, 0.95);
        backdrop-filter: blur(20px);
        padding: 16px clamp(16px, 4vw, 48px);
        border-bottom: 1px solid var(--border);
        gap: 12px;
    }
    .site-header__toggle { display: block; margin-left: auto; }

    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .guide-kv__row { flex-direction: column; gap: 4px; }
    .guide-kv__key { min-width: unset; }
}

/* 4K+ — scale up spacing and max widths */
@media (min-width: 2560px) {
    :root {
        --max-width: 1600px;
        --max-width-lg: 1800px;
    }
    .hero__showcase { max-width: 1200px; }
    .screenshots { max-width: 1400px; }
}
