/* ============================================
   DUCT — Distributed Networks Landing
   Modern CSS with variables, grid, flexbox
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-bg-primary: #050508;
    --color-bg-secondary: #0a0a0f;
    --color-bg-elevated: #101018;
    --color-bg-card: #0d0d14;
    --color-accent-cyan: #00d4ff;
    --color-accent-cyan-bright: #00f0ff;
    --color-accent-purple: #7b2ff7;
    --color-accent-purple-bright: #9d4eff;
    --color-text-primary: #ffffff;
    --color-text-secondary: #e0e0e0;
    --color-text-muted: #8888a0;
    --color-text-dim: #555566;
    --color-border: #1a1a2e;
    --color-border-hover: #2a2a40;
    --color-success: #00ff88;
    --color-warning: #ffaa00;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --shadow-glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.1);
    --shadow-glow-purple: 0 0 20px rgba(123, 47, 247, 0.3), 0 0 60px rgba(123, 47, 247, 0.1);
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max: 1200px;
    --container-padding: 24px;
}

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

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

body {
    font-family: var(--font-primary);
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-medium), padding var(--transition-medium);
}

.header--scrolled {
    padding: 12px 0;
    background: rgba(5, 5, 8, 0.9);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo__bracket {
    color: var(--color-accent-cyan);
    opacity: 0.7;
}

.logo__text {
    color: var(--color-text-primary);
    margin: 0 4px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    transition: color var(--transition-fast);
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-purple));
    transition: width var(--transition-medium);
    border-radius: 2px;
}

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

.nav__link:hover::after {
    width: 100%;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.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 SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, transparent 0%, var(--color-bg-primary) 70%),
        radial-gradient(ellipse at 80% 50%, rgba(123, 47, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent-cyan);
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease 0.4s both;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--color-accent-cyan);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__description {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease 1s both;
}

/* Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.8s ease 1.2s both;
}

.stat {
    text-align: center;
}

.stat__value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.stat__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 1s ease 1.5s both;
}

.hero__scroll-text {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-dim);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-dim), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn--large {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn--glow {
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    color: #fff;
    box-shadow: var(--shadow-glow-cyan);
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn--glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple), var(--color-accent-cyan));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: gradient-shift 3s ease infinite;
    filter: blur(8px);
    opacity: 0.6;
}

.btn__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 80px;
}

.section__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section__description {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   NETWORK SECTION
   ============================================ */
.network {
    background: var(--color-bg-secondary);
}

.network__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.network__canvas-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    min-height: 420px;
}

.network__canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.network__canvas-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.network__canvas-dot {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: pulse 2s ease infinite;
}

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

.network__feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
    flex: 1;
}

.network__feature:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.network__feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--color-accent-cyan);
}

.network__feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.network__feature-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ============================================
   PROTOCOL SECTION
   ============================================ */
.protocol {
    background: var(--color-bg-primary);
}

.protocol__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.protocol__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.protocol__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-cyan), transparent);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.protocol__card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.protocol__card:hover::before {
    opacity: 1;
}

.protocol__card-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-purple);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.protocol__card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.protocol__card-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.protocol__card-code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--color-accent-cyan);
    overflow-x: auto;
}

.protocol__card-code code {
    background: none;
    padding: 0;
}

/* ============================================
   GAME SECTION
   ============================================ */
.game {
    background: var(--color-bg-secondary);
}

.game__wrapper {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.game__container {
    position: relative;
    width: 100%;
    min-height: 480px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.game__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    cursor: crosshair;
}

.game__ui {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.game__score,
.game__level {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.game__score-label,
.game__level-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-dim);
}

.game__score-value,
.game__level-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-cyan);
}

.game__status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: rgba(5, 5, 8, 0.8);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.game__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(8px);
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

.game__overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.game__overlay-content {
    text-align: center;
    max-width: 400px;
    padding: 24px;
}

.game__overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.game__overlay-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Game Instructions */
.game__instructions {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.game__instructions-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.game__instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.game__instruction {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game__instruction-step {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-purple));
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
}

.game__instruction-text {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.game__tips {
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.game__tip {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.game__tip-icon {
    margin-right: 6px;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
}

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

.footer__tagline {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: 16px;
    max-width: 280px;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.footer__link {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent-cyan);
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.footer__social:hover {
    color: var(--color-accent-cyan);
    border-color: var(--color-accent-cyan);
    background: rgba(0, 212, 255, 0.08);
    transform: translateY(-2px);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer__copyright {
    font-size: 0.8125rem;
    color: var(--color-text-dim);
}

.footer__legal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--color-text-dim);
}

.footer__legal-link {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--color-accent-cyan);
}

/* ============================================
   GLITCH EFFECT
   ============================================ */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.glitch::before {
    color: var(--color-accent-cyan);
    animation: glitch-1 4s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: var(--color-accent-purple);
    animation: glitch-2 5s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--shadow-glow-cyan); }
    50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.2); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

@keyframes glitch-1 {
    0%, 90%, 100% { opacity: 0; transform: translate(0); }
    91% { opacity: 0.8; transform: translate(-2px, 1px); }
    92% { opacity: 0; transform: translate(0); }
    93% { opacity: 0.6; transform: translate(2px, -1px); }
    94% { opacity: 0; transform: translate(0); }
    95% { opacity: 0.7; transform: translate(-1px, 2px); }
    96% { opacity: 0; transform: translate(0); }
}

@keyframes glitch-2 {
    0%, 85%, 100% { opacity: 0; transform: translate(0); }
    86% { opacity: 0.6; transform: translate(2px, -1px); }
    87% { opacity: 0; transform: translate(0); }
    88% { opacity: 0.8; transform: translate(-2px, 1px); }
    89% { opacity: 0; transform: translate(0); }
    90% { opacity: 0.5; transform: translate(1px, -2px); }
    91% { opacity: 0; transform: translate(0); }
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .protocol__features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .network__grid {
        grid-template-columns: 1fr;
    }
    
    .network__canvas-wrap {
        min-height: 320px;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px var(--container-padding);
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav__link {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }
    
    .nav__link:last-child {
        border-bottom: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .network__feature {
        padding: 20px;
    }
    
    .protocol__features {
        grid-template-columns: 1fr;
    }
    
    .game__instructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .game__instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn--large {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
