/* ============================================
   TORNADO CASH MIXER — Design Tokens
   ============================================ */
:root {
    --c-primary: #94f7b3;
    --c-primary-dim: rgba(148, 247, 179, 0.12);
    --c-primary-glow: rgba(148, 247, 179, 0.25);
    --c-accent: #5ce890;
    --c-bg: #060d09;
    --c-bg-alt: #0c1610;
    --c-surface: #121f17;
    --c-surface-hover: #182a1f;
    --c-border: rgba(148, 247, 179, 0.1);
    --c-border-strong: rgba(148, 247, 179, 0.2);
    --c-text: #dceee3;
    --c-text-muted: #7ea68d;
    --c-text-bright: #ffffff;

    --f-heading: 'Space Grotesk', system-ui, sans-serif;
    --f-body: 'Inter', system-ui, sans-serif;

    --w-container: 1140px;
    --w-narrow: 780px;
    --r-card: 10px;
    --r-btn: 6px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--c-text-bright);
}

a:focus-visible, button:focus-visible, details summary:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 3px;
}

h1, h2, h3, h4 {
    font-family: var(--f-heading);
    font-weight: 600;
    color: var(--c-text-bright);
    line-height: 1.2;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: var(--w-narrow);
}

.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-intro {
    color: var(--c-text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin-bottom: 56px;
    line-height: 1.75;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 13, 9, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--c-text-bright);
}

.logo:hover {
    color: var(--c-primary);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--c-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-family: var(--f-heading);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--r-btn);
    transition: all 0.25s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--c-primary);
    color: var(--c-bg);
}

.btn-primary:hover {
    background: var(--c-accent);
    color: var(--c-bg);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(148, 247, 179, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--c-primary);
    border: 1px solid var(--c-border-strong);
}

.btn-ghost:hover {
    background: var(--c-primary-dim);
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: var(--w-container);
    margin: 0 auto;
    padding: 100px 24px 60px;
    position: relative;
}

.hero-bg-glow {
    position: absolute;
    top: 10%;
    left: 30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(148, 247, 179, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out) 0.2s forwards;
}

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

#hero-heading {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-accent {
    color: var(--c-primary);
}

.hero-sub {
    color: var(--c-text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.75;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: heroFadeIn 0.8s var(--ease-out) 0.5s forwards;
}

.hero-svg {
    width: 100%;
    max-width: 360px;
}

/* Shield draw animation */
.shield-path {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: drawShield 2s var(--ease-out) 0.8s forwards;
}

@keyframes drawShield {
    to { stroke-dashoffset: 0; }
}

.tornado-spiral {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawSpiral 1.8s var(--ease-out) 1.4s forwards;
}

@keyframes drawSpiral {
    to { stroke-dashoffset: 0; }
}

.orbit-dot {
    animation: orbitFloat 3s ease-in-out infinite;
}

.orbit-dot-2 {
    animation: orbitFloat 4s ease-in-out 0.5s infinite;
}

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

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

.step-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.step-card:hover {
    border-color: var(--c-border-strong);
    transform: translateY(-3px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-primary-dim);
    color: var(--c-primary);
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 18px;
    border: 1px solid var(--c-border-strong);
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--c-text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
}

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

.feature-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.feature-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

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

/* ============================================
   Networks
   ============================================ */
.networks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.network-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    padding: 32px 24px;
    transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.network-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-3px);
}

.network-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.network-card p {
    color: var(--c-text-muted);
    font-size: 0.93rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.network-tag {
    display: inline-block;
    font-family: var(--f-heading);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--c-primary);
    background: var(--c-primary-dim);
    border: 1px solid var(--c-border-strong);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ============================================
   Prose (Technical Section)
   ============================================ */
.prose p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--c-text);
    line-height: 1.8;
    max-width: 68ch;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-item {
    border: 1px solid var(--c-border);
    border-radius: var(--r-card);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item[open] {
    border-color: var(--c-border-strong);
}

.faq-item summary {
    padding: 20px 24px;
    font-family: var(--f-heading);
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--c-text-bright);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-item summary:hover {
    background: var(--c-surface);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--c-primary);
    font-weight: 300;
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-body {
    padding: 0 24px 20px;
}

.faq-body p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--c-bg);
    border-top: 1px solid var(--c-border);
    padding: 60px 0 32px;
}

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

.footer-logo {
    font-family: var(--f-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--c-text-bright);
}

.footer-brand p {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-nav h4,
.footer-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.footer-nav ul,
.footer-info ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-info li {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--c-primary);
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--c-text-muted);
}

/* ============================================
   Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        order: -1;
    }

    .hero-svg {
        max-width: 260px;
    }

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

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

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

    .section {
        padding: 64px 0;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(6, 13, 9, 0.96);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--c-border);
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

    #hero-heading {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .btn {
        padding: 11px 22px;
        font-size: 0.9rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
