/* ============================================
   BRIDGELINK WEBSITE - MODERN CSS
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f0f2f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fc;
    --bg-nav: rgba(255, 255, 255, 0.85);

    --text-primary: #0f1729;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #4f46e5;
    --accent-subtle: rgba(99, 102, 241, 0.08);
    --accent-glow: rgba(99, 102, 241, 0.2);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --gradient-text: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    --gradient-card: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, transparent 100%);
}

[data-theme="dark"] {
    --bg-primary: #0b0f1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2035;
    --bg-card: #151c2e;
    --bg-card-hover: #1a2340;
    --bg-nav: rgba(11, 15, 26, 0.9);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-inverse: #0f1729;

    --accent: #818cf8;
    --accent-light: #a5b4fc;
    --accent-dark: #6366f1;
    --accent-subtle: rgba(129, 140, 248, 0.08);
    --accent-glow: rgba(129, 140, 248, 0.15);

    --border: #1e293b;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);

    --gradient-text: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c4b5fd 100%);
    --gradient-hero: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    --gradient-card: linear-gradient(180deg, rgba(129, 140, 248, 0.03) 0%, transparent 100%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-light);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

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

.nav-links a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--accent-subtle);
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
}

.theme-icon {
    position: absolute;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-icon.sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-icon.moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-icon.sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-icon.moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    animation: float 3s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1.2rem;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Image Placeholders ---------- */
.image-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 12px;
    text-align: center;
    min-height: 240px;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.image-placeholder span {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.image-placeholder small {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.hero-placeholder {
    min-height: 500px;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 32px;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.hero-placeholder::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-text);
    border-radius: 34px;
    z-index: -1;
    opacity: 0.3;
}

.wide-placeholder {
    min-height: 300px;
    margin-top: 40px;
}

.step-placeholder {
    min-height: 180px;
    margin-top: 16px;
}

.diagram-placeholder {
    min-height: 300px;
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.alt-bg {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-subheader {
    text-align: center;
    margin: 60px 0 32px;
}

.section-subheader h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subheader p {
    color: var(--text-secondary);
}

/* ---------- About Section ---------- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.about-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 24px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

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

.feature-card {
    background: var(--bg-card);
    background-image: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-card.featured {
    grid-column: span 2;
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* ---------- Security ---------- */
.security-layers {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.security-layer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.security-layer.reverse {
    direction: rtl;
}

.security-layer.reverse > * {
    direction: ltr;
}

.layer-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.layer-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.layer-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-list li {
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.security-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-mono);
}

.reputation-thresholds {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.threshold {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 100px;
}

.threshold-points {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

.threshold-action {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ---------- Groups ---------- */
.groups-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.group-feature {
    margin-bottom: 28px;
}

.group-feature h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.group-feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.groups-screenshots {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- Privacy ---------- */
.privacy-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 60px;
}

.privacy-block.reverse {
    direction: rtl;
}

.privacy-block.reverse > * {
    direction: ltr;
}

.privacy-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.privacy-info > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent);
}

.option-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-group li {
    padding-left: 16px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.option-group li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.send-modes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.send-mode {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s ease;
}

.send-mode:hover {
    border-color: var(--accent);
}

.send-mode.default {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.mode-name {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.mode-default {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--accent);
    color: white;
    border-radius: 100px;
    margin-left: 8px;
    font-weight: 600;
}

.mode-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.privacy-extras {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.privacy-extra-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
}

.privacy-extra-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.privacy-extra-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.privacy-extra-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ---------- Mesh Network ---------- */
.mesh-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.mesh-mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.mesh-mode-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.mesh-mode-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mesh-mode-icon {
    font-size: 1.75rem;
}

.mesh-mode-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.mesh-mode-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.mesh-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mesh-spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.spec-compare {
    display: flex;
    gap: 12px;
}

.spec-normal {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.spec-hub {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.overnight-features ul,
.postman-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.overnight-features li,
.postman-features li {
    padding-left: 16px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.overnight-features li::before,
.postman-features li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.network-health {
    text-align: center;
}

.network-health h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.network-health > p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
}

/* ---------- Settings ---------- */
.settings-nav {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 32px;
    overflow-x: auto;
}

.settings-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.settings-tab:hover {
    color: var(--text-primary);
}

.settings-tab.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.settings-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.settings-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.settings-info > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.setting-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.setting-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.setting-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.setting-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---------- Specs ---------- */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.spec-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.spec-category h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.spec-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.spec-key {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.spec-val {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: right;
    color: var(--text-primary);
}

/* Delivery Flow */
.delivery-flow {
    text-align: center;
}

.delivery-flow h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 180px;
}

.flow-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.flow-dot.active {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.flow-label {
    font-weight: 700;
    font-size: 0.95rem;
}

.flow-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

.flow-connector {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin-top: 10px;
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--accent-subtle);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-icon {
    font-size: 1.2em;
}

/* ---------- Hero Actions ---------- */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-donate {
    display: flex;
    align-items: center;
}

/* ---------- Download Section ---------- */
.download-section {
    position: relative;
    background: var(--bg-secondary);
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 100px;
}

.download-bg-mesh {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 50% at 25% 50%, var(--accent-glow) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 75% 50%, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.download-section .container {
    position: relative;
    z-index: 1;
}

/* -- Download Grid -- */
.dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto 48px;
}

/* -- Download Cards -- */
.dl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 44px 36px 36px;
    border-radius: 20px;
    border: 2px solid var(--border);
    background: var(--bg-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.dl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Play Store card – accent treatment */
.dl-card--play {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-subtle) 0%, var(--bg-card) 40%);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 30px rgba(99, 102, 241, 0.12);
}

.dl-card--play:hover {
    box-shadow: 0 0 0 1px var(--accent), 0 16px 48px rgba(99, 102, 241, 0.22);
}

/* APK card */
.dl-card--apk {
    background: var(--bg-card);
}

.dl-card--apk:hover {
    border-color: var(--accent-light);
}

/* Recommended badge */
.dl-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.4);
}

/* Icon circles */
.dl-card-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.dl-card-icon-wrap--play {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.dl-card-icon-wrap--apk {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    color: var(--accent);
}

.dl-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dl-card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 340px;
}

/* -- Download Buttons -- */
.dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 280px;
    padding: 15px 28px;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    margin-top: 4px;
}

.dl-btn--play {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.dl-btn--play:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.dl-btn--apk {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.dl-btn--apk:hover {
    border-color: var(--accent);
    background: var(--accent-subtle);
    color: var(--accent);
    transform: translateY(-1px);
}

.dl-card-footnote {
    color: var(--text-tertiary);
    font-size: 0.78rem;
}

.dl-card-footnote a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* -- Hash Verification Block -- */
.dl-hashes {
    width: 100%;
    margin-top: 10px;
    padding: 16px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
}

.dl-hashes-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--text-tertiary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dl-hashes-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.dl-hash-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.dl-hash-row:last-child {
    margin-bottom: 0;
}

.dl-hash-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 48px;
    text-align: right;
    flex-shrink: 0;
}

.dl-hash-code {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    word-break: break-all;
    user-select: all;
    cursor: text;
    line-height: 1.5;
}

/* -- System Requirements -- */
.dl-requirements {
    max-width: 900px;
    margin: 0 auto 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 36px;
}

.dl-requirements-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: 22px;
}

.dl-req-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dl-req-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: border-color 0.2s ease;
}

.dl-req-item:hover {
    border-color: var(--accent);
}

.dl-req-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-subtle);
    color: var(--accent);
    flex-shrink: 0;
}

/* -- Support / Donate -- */
.dl-support {
    max-width: 600px;
    margin: 0 auto;
}

.dl-support-inner {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.dl-support-inner > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.dl-support-bmc {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---------- Nav Download Button ---------- */
.nav-download {
    background: var(--accent) !important;
    color: white !important;
    border-radius: var(--radius-sm) !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
}

.nav-download:hover {
    background: var(--accent-dark) !important;
    color: white !important;
}

/* ---------- Footer BMC ---------- */
.footer-bmc {
    margin-top: 8px;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    gap: 16px;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon {
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card.featured {
        grid-column: span 1;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mesh-modes {
        grid-template-columns: 1fr;
    }

    .privacy-extras {
        grid-template-columns: repeat(2, 1fr);
    }

    .dl-req-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .dl-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .dl-req-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-placeholder {
        max-width: 280px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-screenshots {
        grid-template-columns: 1fr;
    }

    .security-layer,
    .security-layer.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .groups-layout {
        grid-template-columns: 1fr;
    }

    .privacy-block,
    .privacy-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .privacy-extras {
        grid-template-columns: 1fr;
    }

    .settings-content {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        flex-direction: column;
        align-items: center;
    }

    .flow-connector {
        width: 2px;
        height: 40px;
        margin-top: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .reputation-thresholds {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .settings-nav {
        gap: 2px;
    }

    .settings-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dl-req-grid {
        grid-template-columns: 1fr;
    }

    .dl-card {
        padding: 36px 24px 28px;
    }

    .dl-requirements {
        padding: 24px 20px;
    }
}

/* ---------- Scroll Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Selection & Scrollbar ---------- */
::selection {
    background: var(--accent);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}
