/* ============================================
   FeynmanLM — Landing Page Styles (v2)
   ============================================ */

:root {
    --bg: #09090b;
    --bg-subtle: #111114;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c22;
    --border: #27272a;
    --border-subtle: #1e1e22;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.3);
    --gradient-start: #6366f1;
    --gradient-mid: #a78bfa;
    --gradient-end: #c084fc;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */

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

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

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

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

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

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

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
    font-weight: 500;
}

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

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* ---- Hero ---- */

.hero {
    position: relative;
    padding: 160px 0 40px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-subtitle em {
    color: var(--text);
    font-style: italic;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-free-note {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 0;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 40px var(--accent-glow-strong);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-dim);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: 16px;
}

.btn svg {
    flex-shrink: 0;
}

/* ---- Demo Video ---- */

.demo {
    padding: 60px 0 80px;
}

.demo-video-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.demo-video-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.demo-video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
}

.demo-video-placeholder:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.demo-play-btn {
    width: 72px;
    height: 72px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    box-shadow: 0 0 40px var(--accent-glow-strong);
    transition: all var(--transition);
}

.demo-play-btn svg {
    margin-left: 3px;
}

.demo-video-placeholder:hover .demo-play-btn {
    transform: scale(1.1);
}

.demo-video-placeholder p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    position: relative;
}

.demo-video-placeholder span {
    font-size: 13px;
    color: var(--text-dim);
    position: relative;
}

/* ---- Section Headers ---- */

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

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- App Screenshot ---- */

.app-screenshot {
    padding: 0 0 40px;
}

.screenshot-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

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

/* ---- Feature Highlights ---- */

.feature-highlights {
    padding: 36px 0 72px;
}

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

.feature-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: var(--accent-light);
    margin-bottom: 16px;
}

.feature-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

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

/* ---- Schedule Preview ---- */

.schedule-preview {
    padding: 0 0 96px;
}

.schedule-showcase {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 28px;
    align-items: center;
}

.schedule-copy h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.schedule-copy p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.schedule-proof-list {
    display: grid;
    gap: 12px;
}

.schedule-proof-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

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

.proof-dot-blue {
    background: #60a5fa;
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.45);
}

.proof-dot-green {
    background: #34d399;
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.45);
}

.proof-dot-amber {
    background: #fbbf24;
    box-shadow: 0 0 18px rgba(251, 191, 36, 0.42);
}

.product-screenshot-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 28px 80px rgba(0,0,0,0.35);
    overflow: hidden;
}

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

.product-caption {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}

.product-caption span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

/* ---- How It Works (Flow Steps) ---- */

.how-it-works {
    padding: 100px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.flow-step {
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step:hover {
    border-color: var(--text-dim);
}

.flow-step-label {
    margin-bottom: 24px;
}

.flow-step-label:last-child {
    margin-bottom: 0;
}

.step-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    display: block;
}

.flow-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.flow-step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.flow-step p em {
    color: var(--text);
    font-style: italic;
}

/* Source Tags */

.source-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.source-tag svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

/* Search Demo */

.search-demo {
    max-width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 15px;
}

.search-bar svg {
    color: var(--text-dim);
    flex-shrink: 0;
}

.search-shortcut {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-dim);
    background: rgba(255,255,255,0.06);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
}

/* MCP Visual (horizontal) */

.mcp-visual {
    display: flex;
    align-items: center;
    gap: 0;
}

.mcp-node {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.mcp-node-app {
    background: var(--accent-glow);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-light);
}

.mcp-arrow {
    padding: 0 10px;
    color: var(--text-dim);
    font-size: 18px;
}

/* Integration Cards */

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.integration-card:hover {
    border-color: var(--brand, var(--text-dim));
    background: color-mix(in srgb, var(--brand, var(--accent)) 5%, var(--bg));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.integration-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand, var(--accent)) 12%, transparent);
    color: var(--brand, var(--text));
}

.integration-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Coming Soon / Future Step */

.flow-step-future {
    border-style: dashed;
    opacity: 0.7;
}

.coming-soon-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

/* Callout */

.callout {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 24px 32px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.callout p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

/* Inline links */

.inline-link {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition);
}

.inline-link:hover {
    text-decoration-color: var(--accent-light);
}

/* ---- Platforms ---- */

.platforms {
    padding: 100px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-dim);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.platform-screenshot-wrap {
    margin: -40px -32px 24px;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
}

.platform-mockup {
    max-width: 85%;
    max-height: 240px;
    height: auto;
    display: block;
    margin: 16px auto;
    object-fit: contain;
}

.platform-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.platform-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.platform-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

.platforms-also {
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 24px;
}

.platforms-also strong {
    color: var(--text-muted);
}

/* ---- Pricing / CTA ---- */

.pricing {
    padding: 100px 0;
}

.pricing-inner {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.pricing-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 32px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.pricing h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
}

.pricing-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    position: relative;
    line-height: 1.7;
}

.pricing-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.pricing-option {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    width: 260px;
    transition: all var(--transition);
    position: relative;
}

.pricing-option:hover {
    border-color: var(--text-dim);
    background: rgba(255,255,255,0.05);
}

.pricing-option-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-option h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.pricing-price {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-option p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ---- Footer ---- */

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
}

.footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color var(--transition);
}

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

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

/* ---- Animations ---- */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .schedule-showcase {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
    }

    .platforms-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .mcp-visual {
        flex-direction: column;
    }

    .mcp-arrow {
        transform: rotate(90deg);
        padding: 6px 0;
    }

    .mcp-node {
        width: 100%;
        justify-content: center;
    }

    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .schedule-preview {
        padding-bottom: 72px;
    }

    .product-caption {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .pricing-inner {
        padding: 60px 24px;
    }

    .pricing-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
