/* WhisperX - Minimal, Cold, Privacy-Centric */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #141414;
    --border-color: #1a1a1a;
    --text-primary: #e5e5e5;
    --text-secondary: #737373;
    --text-muted: #525252;
    --accent: #404040;
    --accent-subtle: #262626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 32px 48px;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.logo {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 48px 80px;
    overflow: hidden;
}

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

.headline {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 48px;
}

.headline-main {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.headline-main:nth-child(2) {
    animation-delay: 0.15s;
}

.subtext {
    margin-bottom: 64px;
}

.subtext p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.subtext p:nth-child(2) {
    animation-delay: 0.5s;
}

.cta {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.7s;
}

.cta:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--accent-subtle);
}

/* Hero Visual - Subtle Grid */
.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 50%;
    pointer-events: none;
    opacity: 0.03;
}

.grid-pattern {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--text-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--text-muted) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Sections */
.section {
    padding: 160px 48px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* What WhisperX Is */
.what-is-content p {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 600px;
}

.what-is-content p:last-child {
    margin-bottom: 0;
}

/* Principles */
.principles-list {
    list-style: none;
}

.principle-item {
    display: flex;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.principle-item:first-child {
    border-top: 1px solid var(--border-color);
}

.principle-item:hover {
    padding-left: 16px;
}

.principle-item:hover .principle-marker {
    background: var(--text-muted);
}

.principle-marker {
    width: 6px;
    height: 6px;
    background: var(--accent-subtle);
    border-radius: 50%;
    margin-right: 24px;
    transition: background 0.3s ease;
}

.principle-text {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Who It's For */
.who-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.who-list li {
    font-size: 16px;
    color: var(--text-muted);
    padding-left: 24px;
    position: relative;
}

.who-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: var(--border-color);
}

/* Tech list */
.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 6px;
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.tech-value {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 300;
}

@media (min-width: 720px) {
    .tech-item {
        flex-direction: row;
        align-items: baseline;
        gap: 32px;
    }
    .tech-label {
        flex: 0 0 240px;
    }
    .tech-value {
        flex: 1;
    }
}

/* Status list */
.status-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-list li {
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-live {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.status-soon {
    background: var(--accent);
}

/* Install steps */
.install-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.install-steps li {
    counter-increment: step;
    padding-left: 36px;
    position: relative;
    font-size: 16px;
    color: var(--text-secondary);
}

.install-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 80px 48px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 24px;
    }

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

    .headline {
        font-size: 40px;
        margin-bottom: 32px;
    }

    .subtext {
        margin-bottom: 48px;
    }

    .subtext p {
        font-size: 16px;
    }

    .section {
        padding: 100px 24px;
    }

    .what-is-content p {
        font-size: 20px;
    }

    .principle-item {
        padding: 20px 0;
    }

    .principle-text {
        font-size: 16px;
    }

    .footer {
        padding: 60px 24px;
    }
}

@media (max-width: 480px) {
    .headline {
        font-size: 32px;
    }

    .what-is-content p {
        font-size: 18px;
    }
}

/* Selection color */
::selection {
    background: var(--accent-subtle);
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

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

/* Legal pages — privacy, terms, account-deletion, wallet-disclosure */
.legal {
    padding: 120px 48px 80px;
    max-width: 760px;
    margin: 0 auto;
}

.legal h1 {
    font-size: 40px;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.legal .legal-meta {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 48px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
}

.legal h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 8px;
}

.legal p,
.legal li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.legal p {
    margin-bottom: 16px;
}

.legal ul,
.legal ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    color: var(--text-primary);
    border-bottom: 1px dotted var(--accent);
    text-decoration: none;
}

.legal a:hover {
    border-bottom-color: var(--text-primary);
}

.legal code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.legal .back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    text-decoration: none;
    border: none;
}

.legal .back-link:hover {
    color: var(--text-primary);
}

/* Footer legal links */
.footer-links {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .legal {
        padding: 100px 24px 60px;
    }
    .legal h1 {
        font-size: 32px;
    }
}
