/* Classified design system — matches iOS app */

:root {
    --bg: #06060C;
    --surface: #10101C;
    --surface-elevated: #18182A;
    --border: #1E1E32;

    --red: #C0392B;
    --red-glow: #E74C3C;
    --gold: #C9A96E;
    --gold-muted: #8B7A4E;
    --green: #27AE60;

    --text-primary: #E8E6E1;
    --text-secondary: #7A7A8E;
    --text-tertiary: #4A4A5E;

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Menlo", "Monaco", ui-monospace, monospace;
    --font-serif: "New York", "Charter", Georgia, serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

/* Subtle noise texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 1;
}

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

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Nav */
.nav {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(6, 6, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid var(--border);
    z-index: 100;
}

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

.brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--gold);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 13px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--text-primary);
    color: var(--bg);
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.app-store-badge svg {
    width: 22px;
    height: 22px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    background: transparent;
    color: var(--text-secondary);
    border: 0.5px solid var(--border);
    border-radius: 14px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
    opacity: 1;
}

/* Hero visual (app icon) */
.hero-visual {
    margin: 60px auto 0;
    max-width: 200px;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 44px;
    box-shadow:
        0 0 60px rgba(192, 57, 43, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Section */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 16px;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: var(--gold-muted);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(201, 169, 110, 0.1);
    color: var(--gold);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step {
    padding: 28px;
    background: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: 16px;
    position: relative;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 14px;
    display: block;
}

.step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

/* CTA section */
.cta-section {
    padding: 80px 0 100px;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.cta-section p {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Footer */
footer {
    padding: 48px 0 60px;
    border-top: 0.5px solid var(--border);
    color: var(--text-tertiary);
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-muted);
    font-size: 12px;
}

/* Legal pages */
.legal-page {
    padding: 60px 0 100px;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.legal-page .updated {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 48px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

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

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

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 14px;
}

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

.legal-page strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .hero {
        padding: 60px 0 50px;
    }

    .section {
        padding: 60px 0;
    }

    .nav-links {
        gap: 16px;
        font-size: 12px;
    }

    .nav-links a:nth-child(n+3) {
        display: none;
    }
}
