/* ═══════════════════════════════════════════════════════════════════════════
   mPhant v2 — Landing Page
   Dark. Clean. Trustworthy. Mobile-first.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --bg: #0a0a0f;
    --surface: #111118;
    --primary: #00d4aa;
    --secondary: #7c5cfc;
    --text: #e8e8ed;
    --text-muted: #8888a0;
    --danger: #ff4757;
    --border: #1e1e2e;
    --radius: 12px;
    --max-w: 1100px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.85; }
img { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.accent { color: var(--primary); }
.danger { color: var(--danger); }
.center-text { text-align: center; }
.center-desc { margin-left: auto; margin-right: auto; }

/* ── Nav ───────────────────────────────────────────────────────────────── */

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

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

.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.btn-sm {
    background: var(--primary) !important; color: var(--bg) !important;
    padding: 8px 18px !important; border-radius: 8px;
    font-weight: 600; font-size: 0.8rem !important;
    transition: transform 0.2s, opacity 0.2s;
}
.btn-sm:hover { transform: translateY(-1px); opacity: 0.9 !important; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 0 60px; }

.hero .container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}

.hero-tag {
    display: inline-block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--primary); margin-bottom: 16px;
    border: 1px solid rgba(0,212,170,0.3); padding: 4px 12px; border-radius: 20px;
}

.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; }
.hero-sub { font-size: 1.3rem; color: var(--text-muted); margin-top: 10px; }

.hero-desc {
    font-size: 1.05rem; color: var(--text-muted); margin-top: 20px;
    max-width: 500px; line-height: 1.7;
}

.hero-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-logo {
    max-width: 380px; width: 100%; height: auto;
    filter: drop-shadow(0 0 50px rgba(0, 212, 170, 0.12));
    animation: float 6s ease-in-out infinite;
}

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

/* ── Waitlist Form ─────────────────────────────────────────────────────── */

.waitlist-form { display: flex; gap: 10px; margin-top: 28px; max-width: 440px; }

.waitlist-form input {
    flex: 1; padding: 13px 18px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-size: 0.95rem; outline: none;
    transition: border-color 0.2s;
}
.waitlist-form input:focus { border-color: var(--primary); }
.waitlist-form input::placeholder { color: var(--text-muted); }

.waitlist-form button {
    padding: 13px 24px; background: var(--primary); color: var(--bg);
    border: none; border-radius: 10px; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: transform 0.2s, opacity 0.2s; white-space: nowrap;
}
.waitlist-form button:hover { transform: translateY(-1px); opacity: 0.9; }

.waitlist-bottom { max-width: 480px; margin: 28px auto 0; }

/* ── Sections ──────────────────────────────────────────────────────────── */

.section { padding: 80px 0; }
.section-dark { background: var(--surface); }

.section-label {
    text-transform: uppercase; font-size: 0.75rem; letter-spacing: 3px;
    color: var(--primary); margin-bottom: 14px;
}

.section-title {
    font-size: 2.2rem; font-weight: 800; line-height: 1.15;
    letter-spacing: -0.8px; margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem; color: var(--text-muted); max-width: 560px; line-height: 1.7;
    margin-bottom: 32px;
}

.section-desc-wide {
    font-size: 1.05rem; color: var(--text-muted); max-width: 700px;
    line-height: 1.7; margin-bottom: 36px;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

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

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--danger); transform: translateY(-3px); }
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h4 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Quote ──────────────────────────────────────────────────────────────── */

.quote {
    border-left: 3px solid var(--primary); padding: 20px 28px;
    background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.05rem; font-style: italic; color: var(--text); max-width: 680px;
}

/* ── Lock-in Section ───────────────────────────────────────────────────── */

.lockin-grid { margin-top: 32px; }

.lockin-text {
    max-width: 700px; margin-bottom: 36px;
}
.lockin-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; }

.lockin-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.compare-card {
    border-radius: var(--radius); padding: 28px; font-size: 0.95rem;
}
.compare-card h4 { font-size: 1.1rem; margin-bottom: 16px; }
.compare-card ul { list-style: none; }
.compare-card li { padding: 6px 0; color: var(--text-muted); }
.compare-card li::before { margin-right: 8px; }

.compare-them {
    background: rgba(255,71,87,0.06); border: 1px solid rgba(255,71,87,0.2);
}
.compare-them h4 { color: var(--danger); }
.compare-them li::before { content: "✗"; color: var(--danger); }

.compare-us {
    background: rgba(0,212,170,0.06); border: 1px solid rgba(0,212,170,0.2);
}
.compare-us h4 { color: var(--primary); }
.compare-us li::before { content: "✓"; color: var(--primary); }

/* ── Solution Grid ─────────────────────────────────────────────────────── */

.solution-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px;
}

.solution-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    transition: border-color 0.3s;
}
.solution-item:hover { border-color: var(--primary); }
.solution-icon { font-size: 2rem; margin-bottom: 14px; }
.solution-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.solution-item p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; }

.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.step h4 { font-size: 1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ── Segments ──────────────────────────────────────────────────────────── */

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

.segment {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 16px; text-align: center;
    font-size: 0.88rem; font-weight: 600; transition: border-color 0.3s;
}
.segment:hover { border-color: var(--primary); }
.seg-icon { margin-right: 4px; }

/* ── MCN Example ───────────────────────────────────────────────────────── */

.mcn-example {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; margin-bottom: 36px;
}
.mcn-example h4 { color: var(--primary); margin-bottom: 8px; }
.mcn-desc { color: var(--text-muted); margin-bottom: 18px; font-size: 0.9rem; }

.mcn-example pre {
    background: #080810; border-radius: 8px; padding: 18px; overflow-x: auto;
}
.mcn-example code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.82rem; color: var(--primary); line-height: 1.8;
}

/* ── Stats Row ─────────────────────────────────────────────────────────── */

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ── Products ──────────────────────────────────────────────────────────── */

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

.product {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.product:hover { border-color: var(--primary); transform: translateY(-3px); }
.product-icon { font-size: 2.4rem; margin-bottom: 14px; }
.product h4 { font-size: 1.1rem; margin-bottom: 8px; }
.product p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 12px; line-height: 1.5; }

.product-tag {
    display: inline-block; font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--primary); border: 1px solid var(--primary);
    padding: 3px 10px; border-radius: 20px;
}

/* ── Flow Diagram ──────────────────────────────────────────────────────── */

.flow-diagram { margin: 40px 0 20px; }

.flow-targets-row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px;
}
.flow-target {
    background: var(--surface); border: 1px solid var(--border);
    padding: 8px 18px; border-radius: 8px; font-size: 0.88rem;
}

.flow-center { text-align: center; margin: 10px 0; }
.flow-arrow-up, .flow-arrow-down { font-size: 1.4rem; color: var(--primary); }

.flow-node {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg); padding: 14px 32px; border-radius: var(--radius);
    font-weight: 700; font-size: 1.1rem; margin: 8px 0;
}
.flow-label { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; }

/* ── Investor Grid ─────────────────────────────────────────────────────── */

.investor-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px;
}

.investor-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.investor-card h4 { color: var(--primary); margin-bottom: 10px; font-size: 1.05rem; }
.investor-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.traction {
    background: linear-gradient(135deg, rgba(0,212,170,0.08), rgba(124,92,252,0.08));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.traction h4 { color: var(--primary); margin-bottom: 10px; }
.traction p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── CTA Section ───────────────────────────────────────────────────────── */

.cta-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
    padding: 80px 0;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

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

.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy p { color: var(--text-muted); font-size: 0.75rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 20px auto 0; }
    .hero-visual { margin-top: 32px; }
    .hero-logo { max-width: 300px; }
    .waitlist-form { margin: 28px auto 0; }
    .cards { grid-template-columns: 1fr; }
    .solution-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .segments { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .products { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .investor-grid { grid-template-columns: 1fr; }
    .lockin-comparison { grid-template-columns: 1fr; }
    .nav-links a:not(.btn-sm) { display: none; }
}

@media (max-width: 640px) {
    html { font-size: 15px; }
    .section { padding: 60px 0; }
    .hero { padding: 80px 0 40px; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }
    .hero-sub { font-size: 1.1rem; }
    .hero-desc { font-size: 0.95rem; }
    .hero-logo { max-width: 240px; }
    .section-title { font-size: 1.7rem; }
    .section-desc, .section-desc-wide { font-size: 0.95rem; }
    .steps { grid-template-columns: 1fr; }
    .segments { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .segment { padding: 12px 8px; font-size: 0.8rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stat-num { font-size: 1.1rem; }
    .waitlist-form { flex-direction: column; }
    .waitlist-form button { width: 100%; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .quote { padding: 16px 20px; font-size: 0.95rem; }
    .mcn-example { padding: 20px; }
    .mcn-example code { font-size: 0.75rem; }
    .flow-target { padding: 6px 14px; font-size: 0.8rem; }
    .compare-card { padding: 20px; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.9rem; }
    .section-title { font-size: 1.5rem; }
    .nav-inner { padding: 12px 16px; }
    .logo { font-size: 1.2rem; }
}
