/* ============================================
   Clash Website - Dark Tech Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Core Colors */
    --bg-void: #030712;
    --bg-dark: #0a0f1c;
    --bg-card: #0f172a;
    --bg-card-hover: #131d32;
    --bg-surface: #1e293b;
    --bg-input: #0d1424;

    /* Brand - Neon Cyan */
    --primary: #00d4ff;
    --primary-dim: rgba(0, 212, 255, 0.12);
    --primary-glow: rgba(0, 212, 255, 0.25);
    --primary-dark: #00a8cc;

    /* Accent - Electric Purple */
    --accent: #a855f7;
    --accent-dim: rgba(168, 85, 247, 0.12);

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #475569;
    --text-dim: #2d3748;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-bright: rgba(0, 212, 255, 0.3);
    --border-glow: rgba(0, 212, 255, 0.5);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    --grad-bg: linear-gradient(180deg, #030712 0%, #0a0f1c 50%, #030712 100%);
    --grad-card: linear-gradient(145deg, rgba(15, 23, 42, 0.8) 0%, rgba(8, 15, 30, 0.9) 100%);
    --grad-glow: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
    --shadow-glow-strong: 0 0 60px rgba(0, 212, 255, 0.25);

    /* Layout */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Typography */
    --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --max-width: 1200px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-void);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #fff;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Animated Background Grid
   ============================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(3, 7, 18, 0.95);
    border-bottom-color: var(--border-bright);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-icon svg circle,
.logo-icon svg path {
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    position: relative;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-dim);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    transition: all var(--transition);
}

.lang-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.lang-sep {
    color: var(--text-dim);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--primary-dim);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(0, 212, 255, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem 0.375rem 0.75rem;
    background: var(--primary-dim);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-void);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: #fff;
    color: var(--bg-void);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-bright);
}

.btn-outline:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

/* Hero Visual - Dashboard Panel */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--grad-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-glow), var(--shadow);
    backdrop-filter: blur(10px);
}

.dashboard-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), transparent 50%, rgba(168, 85, 247, 0.3));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dash-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dash-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

.dash-status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.dash-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.dash-proxy-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-bright);
    color: var(--primary);
    flex-shrink: 0;
}

.dash-proxy-info {
    flex: 1;
    min-width: 0;
}

.dash-proxy-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.dash-proxy-region {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dash-proxy-speed {
    text-align: right;
}

.dash-speed-val {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
}

.dash-speed-unit {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.dash-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.dash-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.dash-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition);
}

.dash-toggle.active::after {
    transform: translateX(24px);
}

.dash-nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dash-node {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.dash-node:hover {
    border-color: var(--border-bright);
    background: var(--primary-dim);
}

.dash-node.selected {
    border-color: var(--primary);
    background: var(--primary-dim);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.dash-node-flag {
    font-size: 1rem;
    flex-shrink: 0;
}

.dash-node-info {
    min-width: 0;
}

.dash-node-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-node-ping {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.dash-node-badge {
    margin-left: auto;
    padding: 0.125rem 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-fast {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-new {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent);
}

.badge-pro {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.dash-stats {
    display: flex;
    gap: 0.75rem;
}

.dash-stat {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.dash-stat-val {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary);
    margin-bottom: 0.125rem;
}

.dash-stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.section-alt {
    background: rgba(10, 15, 28, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    position: relative;
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Platform Grid
   ============================================ */
.platform-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: default;
}

.platform-item:hover {
    border-color: var(--border-bright);
    color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-2px);
}

.platform-item svg {
    opacity: 0.6;
    transition: opacity var(--transition);
}

.platform-item:hover svg {
    opacity: 1;
}

.platform-item span {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* ============================================
   Download Cards
   ============================================ */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.download-card {
    position: relative;
    background: var(--grad-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition);
    overflow: hidden;
}

.download-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.download-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    color: var(--primary);
    flex-shrink: 0;
}

.download-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.download-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.download-info {
    padding: 1rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.download-info-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.375rem 0;
}

.download-info-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.download-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 60px;
    flex-shrink: 0;
}

.download-info-value {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.download-actions {
    display: flex;
    gap: 0.75rem;
}

.download-actions .btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   Guide Steps
   ============================================ */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.guide-step {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.guide-step:hover {
    border-color: var(--border-bright);
    background: var(--primary-dim);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: var(--bg-void);
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    border-radius: var(--radius-sm);
    margin-bottom: 0.875rem;
}

.step-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.step-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-cta {
    text-align: center;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: all var(--transition);
    background: var(--bg-card);
}

.faq-item:hover {
    border-color: var(--border-bright);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    background: transparent;
    transition: all var(--transition);
    gap: 1rem;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.footer-logo:hover {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.footer-disclaimer {
    color: var(--text-dim) !important;
    font-size: 0.75rem !important;
}

/* ============================================
   Inner Page Common
   ============================================ */
.page-hero {
    position: relative;
    z-index: 1;
    padding: 8rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.page-hero .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.content-section {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.content-section:nth-child(even) {
    background: rgba(10, 15, 28, 0.5);
}

.section-block {
    margin-bottom: 3rem;
}

.section-block:last-child {
    margin-bottom: 0;
}

.section-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-bright);
    display: inline-block;
}

.section-block h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.section-block p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.section-block ul,
.section-block ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.section-block li {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.375rem;
    list-style: disc;
}

.section-block ol li {
    list-style: decimal;
}

.download-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.download-item:hover {
    border-color: var(--border-bright);
    background: var(--primary-dim);
}

.download-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dim);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.download-item-info {
    flex: 1;
    min-width: 0;
}

.download-item-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.download-item-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.125rem 0.5rem;
    color: var(--primary);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50% { box-shadow: var(--shadow-glow-strong); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .dashboard-panel {
        max-width: 480px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        gap: 0.25rem;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-badge {
        margin-bottom: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .dash-nodes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .platform-grid {
        gap: 0.75rem;
    }

    .platform-item {
        padding: 0.75rem 1rem;
    }

    .platform-item svg {
        width: 28px;
        height: 28px;
    }

    .feature-card,
    .download-card {
        padding: 1.25rem;
    }

    .download-actions {
        flex-direction: column;
    }

    .download-actions .btn {
        width: 100%;
    }
}
