* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #627EEA;
    --primary-hover: #4E67D9;
    --secondary-color: #6C757D;

    --background: #0F1419;
    --background-muted: #111822;
    --surface: #1A1F29;
    --surface-elevated: #242B38;
    --border-color: #2D3748;

    --text-primary: #F7FAFC;
    --text-secondary: #A0AEC0;
    --text-muted: #718096;

    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;
}

body.theme-light {
    --background: #FFFFFF;
    --background-muted: #F8F9FA;
    --surface: #FFFFFF;
    --surface-elevated: #F8F9FA;
    --border-color: #E5E7EB;

    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", sans-serif;
    background: radial-gradient(circle at top, #182135 0, #0F1419 45%, #05070A 100%);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

body.theme-light {
    background: radial-gradient(circle at top, #F0F4FF 0, #FFFFFF 45%, #F8F9FA 100%);
}

body.theme-light .app-preview {
    background: radial-gradient(circle at top left, rgba(98,126,234,0.08) 0, #FFFFFF 38%, #F8F9FA 100%);
    border: 1px solid var(--border-color);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.08),
        0 0 0 1px rgba(148,163,184,0.1);
}

body.theme-light .stat-card {
    background: rgba(248,249,250,0.85);
    border: 1px solid var(--border-color);
}

body.theme-light .logo-mark {
    background: radial-gradient(circle at top, #627EEA 0, #E0E7FF 60%, #F8F9FA 100%);
    border: 1px solid rgba(98, 126, 234, 0.2);
}

body.theme-light .section-alt {
    background: linear-gradient(to right, rgba(248,249,250,0.9), rgba(243,244,246,0.95));
    border: 1px solid var(--border-color);
}

body.theme-light .watch-card {
    background: radial-gradient(circle at top left, rgba(98,126,234,0.06) 0, rgba(255,255,255,0.98) 40%, #F8F9FA 100%);
}

body.theme-light .cta-box {
    background: rgba(248,249,250,0.95);
}

body.theme-light .pill {
    background: rgba(98,126,234,0.1);
    border-color: rgba(98,126,234,0.2);
}

body.theme-light .hero-label {
    background: rgba(240, 244, 255, 0.8);
    border: 1px solid rgba(98,126,234,0.25);
}

body.theme-light .badge-version {
    background: rgba(243,244,246,0.85);
    border: 1px solid var(--border-color);
}

body.theme-light .btn-ghost {
    background: rgba(255,255,255,0.95);
}

body.theme-light .btn-ghost:hover {
    border-color: rgba(98,126,234,0.7);
    background: rgba(240, 244, 255, 0.95);
}

body.theme-light .btn-platform {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border-color);
}

body.theme-light .btn-platform:hover {
    border-color: rgba(98,126,234,0.9);
    background: rgba(240, 244, 255, 0.98);
    box-shadow: 0 10px 28px rgba(98,126,234,0.15);
}

body.theme-light .platform-icon {
    background: linear-gradient(135deg, rgba(98,126,234,0.15), rgba(56,189,248,0.12));
    color: rgba(98,126,234,0.9);
}

body.theme-light .btn-platform-win .platform-icon {
    background: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(59,130,246,0.15));
    color: #3B82F6;
}

body.theme-light .btn-platform-mac .platform-icon {
    background: linear-gradient(135deg, rgba(148,163,184,0.2), rgba(100,116,139,0.15));
    color: #64748B;
}

body.theme-light .btn-platform:hover .platform-icon {
    color: var(--primary-color);
}

body.theme-light .btn-platform-win {
    border-color: rgba(96,165,250,0.3);
}

body.theme-light .btn-platform-win:hover {
    border-color: rgba(59,130,246,0.6);
}

body.theme-light .btn-platform-mac {
    border-color: rgba(148,163,184,0.3);
}

body.theme-light .btn-platform-mac:hover {
    border-color: rgba(100,116,139,0.5);
}

body.theme-light .platform-label {
    color: var(--text-primary);
}

body.theme-light .platform-sub {
    color: var(--text-secondary);
}

body.theme-light .validator-list-preview {
    border: 1px solid var(--border-color);
    background: rgba(248,249,250,0.9);
}

body.theme-light .validator-row {
    border-bottom: 1px solid var(--border-color);
}

body.theme-light .validator-health-pill {
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.8);
}

body.theme-light .notifications-strip {
    border: 1px solid var(--border-color);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}

body.theme-light .notifications-icon {
    background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(98,126,234,0.15));
    border: 1px solid rgba(56,189,248,0.3);
}

body.theme-light .notifications-pulse {
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 0 2px rgba(148,163,184,0.15);
}

body.theme-light .notifications-dot {
    box-shadow: 0 0 4px rgba(34,197,94,0.3);
}

body.theme-light .watch-icon-inner {
    border: 2px solid rgba(248,249,250,1);
}

body.theme-light .footer {
    border-top: 1px solid var(--border-color);
}

body.theme-light .notifications-badge {
    background: rgba(240, 244, 255, 0.9);
    border: 1px solid rgba(98,126,234,0.3);
}

body.theme-light .theme-toggle {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border-color);
}

body.theme-light .theme-toggle:hover {
    background: rgba(240, 244, 255, 0.95);
    border-color: var(--primary-color);
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Navigation */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: radial-gradient(circle at top, #627EEA 0, #1A1F29 60%, #05070A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(98, 126, 234, 0.35);
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav-right {
    display: flex;
    gap: 18px;
}

.nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(98,126,234,0), rgba(98,126,234,0.9), rgba(98,126,234,0));
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle {
    background: var(--surface-elevated);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(98,126,234,0.2);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 32px 0 40px;
}

.hero-left {
    max-width: 540px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(36, 43, 56, 0.8);
    border: 1px solid rgba(98,126,234,0.35);
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Buttons */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: none;
    outline: none;
    background: linear-gradient(135deg, #627EEA, #4E67D9);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(98,126,234,0.4);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6f8bff, #4E67D9);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(98,126,234,0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: rgba(26,31,41,0.7);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
    border-color: rgba(98,126,234,0.7);
    background: rgba(26,31,41,0.95);
    color: var(--text-primary);
}

/* Platform download buttons */

.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(55,65,81,0.9);
    background: rgba(15,20,25,0.9);
    color: var(--text-secondary);
    font-size: 12px;
    text-decoration: none;
    min-width: 160px;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.btn-platform:hover {
    border-color: rgba(98,126,234,0.9);
    background: rgba(17,24,39,0.98);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15,23,42,0.7);
}

.btn-platform-win {
    border-color: rgba(96,165,250,0.7);
}

.btn-platform-mac {
    border-color: rgba(148,163,184,0.7);
}

.btn-platform .platform-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(148,163,184,0.25), rgba(15,23,42,0.95));
    color: var(--text-secondary);
}

.btn-platform .platform-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.platform-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.platform-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* App Preview Card */

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.app-preview {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top left, rgba(98,126,234,0.25) 0, #1A1F29 38%, #10141E 100%);
    border-radius: 20px;
    border: 1px solid rgba(37, 49, 80, 0.9);
    padding: 16px 16px 18px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.65),
        0 0 0 1px rgba(148,163,184,0.08);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.app-logo-small {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: linear-gradient(135deg, #627EEA, #4E67D9);
}

.badge-version {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,20,25,0.85);
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 11px;
    color: var(--text-secondary);
}

.app-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.stat-card {
    background: rgba(15,20,25,0.85);
    border-radius: 12px;
    padding: 10px 10px 9px;
    border: 1px solid rgba(45,55,72,0.9);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-sub {
    font-size: 11px;
    color: var(--success-color);
    margin-top: 2px;
}

.stat-bar {
    margin-top: 6px;
    height: 4px;
    border-radius: 999px;
    background: rgba(15,20,25,1);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10B981, #627EEA);
}

/* Validator list preview */

.validator-list-preview {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(45,55,72,0.9);
    background: rgba(10,12,18,0.9);
}

.validator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(30,36,50,0.9);
}

.validator-row:last-child {
    border-bottom: none;
}

.validator-name {
    font-size: 13px;
    font-weight: 500;
}

.validator-index {
    font-size: 11px;
    color: var(--text-muted);
    font-family: "Courier New", monospace;
}

.validator-row.muted {
    font-size: 11px;
    color: var(--text-muted);
    justify-content: center;
}

.validator-health-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(55,65,81,0.95);
    background: rgba(15,20,25,0.95);
}

.validator-health-pill .pill-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.validator-health-pill .pill-score {
    font-size: 13px;
    font-weight: 600;
    font-family: "Courier New", monospace;
}

.health-good .pill-score {
    color: var(--success-color);
}

.health-warning .pill-score {
    color: var(--warning-color);
}

/* Sections */

.section {
    padding: 32px 0 24px;
}

.section-alt {
    background: linear-gradient(to right, rgba(26,31,41,0.9), rgba(15,20,25,0.95));
    border-radius: 18px;
    padding: 28px 20px 26px;
    margin-top: 8px;
}

.section-header {
    max-width: 620px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.section-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Notifications strip */

.notifications-strip {
    margin-top: 8px;
    padding: 20px 20px 18px;
    border-radius: 18px;
    border: 1px solid rgba(45,55,72,0.9);
    background: radial-gradient(circle at top left, rgba(56,189,248,0.18), rgba(11,14,20,0.98));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.6),
        0 0 0 1px rgba(15,23,42,0.9);
}

.notifications-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(56,189,248,0.55), rgba(15,23,42,1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.notifications-pulse {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid rgba(15,23,42,0.95);
    box-shadow: 0 0 0 2px rgba(148,163,184,0.55);
}

.notifications-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22C55E;
    box-shadow: 0 0 12px rgba(34,197,94,0.8);
}

.notifications-content h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.notifications-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    max-width: 640px;
}

.notifications-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.notifications-item p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.notifications-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.55);
    font-size: 11px;
    color: var(--text-primary);
    margin-bottom: 4px;
    background: var(--surface-elevated);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 16px 16px 18px;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Watch-only card */

.watch-card {
    margin-top: 8px;
    padding: 18px 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: radial-gradient(circle at top left, rgba(98,126,234,0.18) 0, rgba(11,14,20,0.98) 40%, #05070A 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.watch-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(98,126,234,0.6), rgba(15,20,25,1));
}

.watch-icon-inner {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(15,20,25,1);
    box-shadow: 0 0 0 2px rgba(148,163,184,0.5);
}

.watch-content h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.watch-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.watch-item h3 {
    font-size: 13px;
    margin-bottom: 4px;
}

.watch-item p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Open source pills */

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(15,20,25,0.9);
}

/* CTA */

.cta-box {
    margin-top: 8px;
    padding: 20px 20px 18px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: rgba(11,14,20,0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.cta-box h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.cta-box p {
    font-size: 13px;
    color: var(--text-secondary);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* FAQ Section */

.faq-grid {
    margin-top: 8px;
}

/* Footer */

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(30,36,50,0.9);
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 880px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .hero-right {
        justify-content: flex-start;
    }

    .app-preview {
        max-width: 100%;
    }

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

    .watch-card {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

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

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}


