/* ═══════════════════════════════════════════
   CipherGuard — Landing Page Styles
   Dark cybersecurity theme with neon accents
   ═══════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────── */
:root {
    /* Colors */
    --bg-primary: #06080f;
    --bg-secondary: #0c1020;
    --bg-card: rgba(14, 20, 40, 0.6);
    --bg-card-hover: rgba(20, 28, 55, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-primary: #e8ecf4;
    --text-secondary: #8892a8;
    --text-muted: #5a6380;

    --accent-blue: #4f8fff;
    --accent-blue-glow: rgba(79, 143, 255, 0.15);
    --accent-cyan: #00e5ff;
    --accent-cyan-glow: rgba(0, 229, 255, 0.12);
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.12);
    --accent-green: #22c55e;
    --accent-green-glow: rgba(34, 197, 94, 0.12);
    --accent-orange: #f59e0b;
    --accent-orange-glow: rgba(245, 158, 11, 0.12);
    --accent-pink: #ec4899;
    --accent-pink-glow: rgba(236, 72, 153, 0.12);
    --accent-red: #ef4444;

    --gradient-primary: linear-gradient(135deg, #4f8fff 0%, #00e5ff 50%, #a855f7 100%);
    --gradient-hover: linear-gradient(135deg, #6ba1ff 0%, #33ecff 50%, #b96ef8 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(79, 143, 255, 0.2), rgba(168, 85, 247, 0.1), rgba(0, 229, 255, 0.2));

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(79, 143, 255, 0.3);

    /* Spacing */
    --section-gap: 120px;
    --container-width: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 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;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: rgba(79, 143, 255, 0.3);
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Particle Canvas ────────────────────── */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ─── Navigation ─────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
    backdrop-filter: blur(0px);
}

#navbar.scrolled {
    padding: 10px 0;
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 1001;
}

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

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

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

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

.nav-link-cta {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 8px 20px;
    font-weight: 600;
}

.nav-link-cta:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(79, 143, 255, 0.3);
}

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

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

/* ─── Hero Section ───────────────────────── */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.4;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 143, 255, 0.25), transparent 70%);
    top: -100px;
    left: -100px;
    animation: glowFloat 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
    bottom: -50px;
    right: -100px;
    animation: glowFloat 10s ease-in-out infinite reverse;
}

@keyframes glowFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-green); }
    50% { opacity: 0.6; box-shadow: 0 0 16px var(--accent-green); }
}

#hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* ─── Buttons ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 143, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(79, 143, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ─── Hero Stats ─────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* ─── Hero Terminal ──────────────────────── */
.hero-terminal {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    margin: 56px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(10, 14, 28, 0.9);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 2;
    min-height: 200px;
}

.terminal-line {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-line.hidden {
    display: none;
}

.terminal-prompt {
    color: var(--accent-green);
    flex-shrink: 0;
}

.terminal-text {
    color: var(--text-primary);
}

.terminal-comment {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-danger {
    color: var(--accent-red);
    font-weight: 600;
}

.terminal-success {
    color: var(--accent-green);
    font-weight: 600;
}

.blink {
    animation: blink-anim 1s step-end infinite;
}

@keyframes blink-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing::after {
    content: '█';
    animation: blink-anim 0.8s step-end infinite;
    color: var(--accent-green);
}

/* ─── Section Shared ─────────────────────── */
section {
    position: relative;
    z-index: 1;
}

#features, #how-it-works, #modules, #download {
    padding: var(--section-gap) 0;
}

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

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--accent-blue-glow);
    border: 1px solid rgba(79, 143, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

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

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

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

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-blue {
    background: var(--accent-blue-glow);
    color: var(--accent-blue);
    border: 1px solid rgba(79, 143, 255, 0.15);
}

.feature-icon-purple {
    background: var(--accent-purple-glow);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.feature-icon-green {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.feature-icon-orange {
    background: var(--accent-orange-glow);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.feature-icon-cyan {
    background: var(--accent-cyan-glow);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.feature-icon-pink {
    background: var(--accent-pink-glow);
    color: var(--accent-pink);
    border: 1px solid rgba(236, 72, 153, 0.15);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

/* ─── How It Works ───────────────────────── */
#how-it-works {
    background: var(--bg-secondary);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.step:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    flex-shrink: 0;
    line-height: 1;
}

.step-content {
    flex: 1;
}

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

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-visual {
    flex-shrink: 0;
}

.step-icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    margin-left: 82px;
}

.connector-line {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(79, 143, 255, 0.3), rgba(168, 85, 247, 0.3));
}

.connector-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-blue);
}

/* ─── Modules Deep Dive ──────────────────── */
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
    transition: var(--transition-base);
    overflow: hidden;
}

.module-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.25);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.module-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.module-icon-blue {
    background: var(--accent-blue-glow);
    border: 1px solid rgba(79, 143, 255, 0.2);
}

.module-icon-purple {
    background: var(--accent-purple-glow);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.module-icon-green {
    background: var(--accent-green-glow);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.module-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.module-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.tag-blue {
    background: var(--accent-blue-glow);
    color: var(--accent-blue);
    border: 1px solid rgba(79, 143, 255, 0.2);
}

.tag-purple {
    background: var(--accent-purple-glow);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.tag-green {
    background: var(--accent-green-glow);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.module-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.module-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.module-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.module-list li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ─── Module Demo Previews ───────────────── */
.demo-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-box {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
}

.demo-box-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.demo-box-success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.demo-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.demo-box-danger .demo-label { color: var(--accent-red); }
.demo-box-success .demo-label { color: var(--accent-green); }

.demo-text {
    font-size: 1rem;
    font-weight: 600;
    word-break: break-all;
}

.demo-box-danger .demo-text { color: var(--accent-red); }
.demo-box-success .demo-text { color: var(--accent-green); }

/* Alert Preview */
.alert-preview {
    background: rgba(10, 14, 28, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.alert-header-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.alert-icon-preview {
    font-size: 1.1rem;
}

.alert-body-preview {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-row {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    align-items: flex-start;
}

.alert-key {
    color: var(--text-muted);
    flex-shrink: 0;
    min-width: 70px;
}

.alert-val {
    word-break: break-all;
}

.alert-val-good { color: var(--accent-green); }
.alert-val-bad { color: var(--accent-red); }

/* Vault Preview */
.vault-preview {
    background: rgba(10, 14, 28, 0.8);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.vault-header-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.06);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
}

.vault-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 3px 10px;
    border-radius: 100px;
}

.vault-entry-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

.vault-entry-preview:last-child {
    border-bottom: none;
}

.vault-entry-preview:hover {
    background: var(--bg-glass);
}

.vault-entry-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.vault-entry-text {
    flex: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.vault-entry-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ─── Download Section ───────────────────── */
#download {
    background: var(--bg-secondary);
}

.download-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 143, 255, 0.08), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.download-options {
    text-align: center;
    margin-bottom: 48px;
}

.download-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.download-version {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.requirements {
    margin-bottom: 40px;
}

.requirements h4,
.install-steps h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

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

.req-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.req-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.req-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.req-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Code Block ─────────────────────────── */
.code-block {
    background: rgba(10, 14, 28, 0.9);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 12px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-glass);
}

.code-block pre {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 2;
    overflow-x: auto;
}

.code-block code {
    font-family: inherit;
}

.code-comment {
    color: var(--text-muted);
}

.code-prompt {
    color: var(--accent-green);
    user-select: none;
}

/* ─── Footer ─────────────────────────────── */
#footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
}

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

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 360px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links-group a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ─── Scroll Animations ──────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .module-body {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-gap: 80px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 8, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        z-index: 1000;
    }

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

    .nav-links .nav-link {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    #hero {
        padding: 100px 20px 60px;
    }

    #hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .stat-divider {
        width: 40px;
        height: 1px;
    }

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

    .step {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .step-connector {
        margin-left: 0;
    }

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

    .download-card {
        padding: 40px 24px;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

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

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 16px 28px;
    }

    .code-block pre {
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════
   Interactive Demo Section Styles
   ═══════════════════════════════════════════ */
#live-demo {
    padding: var(--section-gap) 0;
    position: relative;
    background: var(--bg-secondary);
}

.demo-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.demo-section:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(79, 143, 255, 0.1);
}

.demo-section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.demo-section-icon {
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.demo-icon-blue {
    color: var(--accent-blue);
    border-color: rgba(79, 143, 255, 0.2);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.demo-icon-purple {
    color: var(--accent-purple);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 15px var(--accent-purple-glow);
}

.demo-section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.demo-interactive-panel {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.demo-input-side, .demo-output-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-panel-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-label-safe {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.demo-label-danger {
    color: var(--accent-red);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.demo-input-field {
    background: rgba(6, 8, 15, 0.8);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.demo-input-field:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(79, 143, 255, 0.15);
}

.demo-output-field {
    background: rgba(6, 8, 15, 0.9);
    border: 1.5px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--accent-red);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    min-height: 56px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    word-break: break-all;
    user-select: all;
    transition: border-color 0.3s;
}

.demo-output-placeholder {
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.95rem;
}

.demo-arrow-divider {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.demo-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-hint-danger {
    color: rgba(239, 68, 68, 0.7);
}

.demo-algo-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

.demo-algo-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.demo-algo-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-algo-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.demo-algo-btn.active {
    background: rgba(79, 143, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
    box-shadow: 0 0 10px rgba(79, 143, 255, 0.15);
}

/* ClipGuard Demo Specifics */
.demo-clipguard-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-clip-address {
    background: rgba(6, 8, 15, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.demo-clip-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-clip-code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    word-break: break-all;
}

.demo-clip-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-clip-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    min-height: 100px;
}

.timeline-step {
    background: rgba(255, 255, 255, 0.01);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    border-left: 4px solid var(--border-subtle);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(10px);
    animation: slideInUp 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.timeline-step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-step-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-step-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Timeline status styling */
.step-copy {
    border-left-color: var(--accent-blue);
    background: rgba(79, 143, 255, 0.02);
}
.step-copy .timeline-step-title { color: var(--accent-blue); }

.step-hijack {
    border-left-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.02);
    animation: shake 0.5s ease-in-out;
}
.step-hijack .timeline-step-title { color: var(--accent-red); }

.step-alert {
    border-left-color: var(--accent-orange);
    background: rgba(245, 158, 11, 0.02);
}
.step-alert .timeline-step-title { color: var(--accent-orange); }

.step-restore {
    border-left-color: var(--accent-green);
    background: rgba(34, 197, 94, 0.02);
}
.step-restore .timeline-step-title { color: var(--accent-green); }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .demo-interactive-panel {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .demo-arrow-divider {
        transform: rotate(90deg);
        margin: 8px 0;
    }
    
    .demo-clip-btn {
        width: 100%;
        justify-content: center;
    }
}

