/* ═══════════════════════════════════════════
   OptionSpace Landing — Dark Financial Theme
   ═══════════════════════════════════════════ */

:root {
    --bg-primary: #07070d;
    --bg-secondary: #0e0e18;
    --bg-card: #111122;
    --bg-card-hover: #161630;
    --border: #1c1c3a;
    --border-light: #2a2a50;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    --accent: #4f8fff;
    --accent-hover: #3a7aee;
    --accent-glow: rgba(79, 143, 255, 0.15);
    --green: #22c55e;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ─────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 7, 13, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.3px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--accent);
    color: white;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 32px rgba(79, 143, 255, 0.25);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Hero ─────────────────────────────────── */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 143, 255, 0.08) 0%, transparent 60%);
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 30%, #8888a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Section Titles ──────────────────────── */
.section-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.8px;
    text-align: center;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 520px;
    margin: 0 auto 56px;
}

/* ── Features ────────────────────────────── */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.25s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

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

/* ── Screenshots ─────────────────────────── */
.screenshots {
    padding: 100px 0;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.screenshot-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.25s;
}

.screenshot-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-placeholder {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0d0d20 100%);
    padding: 48px 28px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screenshot-placeholder span {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent);
}

.screenshot-placeholder p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Pricing ─────────────────────────────── */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    position: relative;
    text-align: center;
    transition: all 0.25s;
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-tier {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

/* ── Story ────────────────────────────────── */
.story {
    padding: 100px 0;
}

.story-content {
    max-width: 680px;
    margin: 0 auto;
}

.story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.story-content blockquote {
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    border-left: 3px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    line-height: 1.6;
}

.story-content p:last-child {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 28px;
}

/* ── Waitlist ────────────────────────────── */
.waitlist {
    padding: 100px 0;
    text-align: center;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    padding: 14px 18px;
    font-size: 15px;
    font-family: var(--font);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.waitlist-form input:focus {
    border-color: var(--accent);
}

.waitlist-status {
    margin-top: 16px;
    font-size: 14px;
    min-height: 20px;
}

.waitlist-status.success { color: var(--green); }
.waitlist-status.error { color: #ef4444; }

/* ── Footer ──────────────────────────────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.footer-brand .logo-text {
    font-size: 15px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* ── Responsive ──────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 120px 24px 80px; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .section-title { font-size: 28px; }
    .features, .screenshots, .pricing, .waitlist { padding: 72px 0; }
    .pricing-grid, .features-grid, .screenshot-grid {
        grid-template-columns: 1fr;
    }
    .waitlist-form {
        flex-direction: column;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
