*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
:root {
  --bg: #ffffff; --bg2: #f7f8f9; --dark: #0f0e1a;
  --accent: #06b6d4; --accent2: #0891b2; --accent3: #67e8f9;
  --muted: #7878a0; --muted2: #b4b4cc;
  --border: rgba(0,0,0,0.07); --border2: #e5e7eb;
  --nav-h: 52px; --max-w: 960px;
}
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; }
.nav-logo img { height: 36px; display: block; }
.nav-btn { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 20px; border-radius: 10px; transition: opacity .15s; white-space: nowrap; }
.nav-btn:hover { opacity: .88; }

/* HERO */
.hero { padding: 96px 48px 88px; text-align: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(6,182,212,.08); border: 1px solid rgba(6,182,212,.2); border-radius: 100px; padding: 5px 14px; margin-bottom: 24px; font-size: 12px; font-weight: 600; color: var(--accent2); }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(42px, 6vw, 68px); font-weight: 800; letter-spacing: -3px; line-height: 1.05; color: var(--dark); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2vw, 18px); color: var(--muted); line-height: 1.8; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-sub strong { color: var(--dark); font-weight: 700; }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; padding: 15px 32px; border-radius: 12px; transition: opacity .15s; white-space: nowrap; }
.hero-btn-primary:hover { opacity: .88; }
.hero-btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--dark); font-size: 16px; font-weight: 700; padding: 15px 32px; border-radius: 12px; border: 1.5px solid var(--border2); transition: all .15s; white-space: nowrap; }
.hero-btn-secondary:hover { border-color: var(--accent); color: var(--accent2); }
.hero-note { font-size: 12px; color: var(--muted2); margin-bottom: 28px; }
.hero-note span { color: var(--accent); font-weight: 600; }

/* APP DEMO */
.app-demo { background: var(--dark); border-radius: 16px; padding: 16px; max-width: 620px; margin: 0 auto; text-align: left; }
.app-chrome { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.app-chrome-dot { width: 9px; height: 9px; border-radius: 50%; }
.app-inner { background: #1a1f2e; border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 130px 1fr; }
.app-sidebar { background: #131825; padding: 10px 6px; display: flex; flex-direction: column; gap: 2px; }
.app-nav-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 7px; color: #7878a0; font-size: 10px; }
.app-nav-item.active { background: var(--accent); color: #fff; }
.app-nav-item.bugs { color: #f87171; }
.app-main { padding: 14px; }
.app-title { font-size: 13px; font-weight: 700; color: #e2e8f0; margin-bottom: 2px; }
.app-subtitle { font-size: 9px; color: #7878a0; margin-bottom: 10px; }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.app-stat { background: var(--dark); border-radius: 8px; padding: 8px 10px; }
.app-stat-label { font-size: 7px; color: #7878a0; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.app-stat-num { font-size: 22px; font-weight: 800; color: #e2e8f0; }
.app-stat-num.red { color: #f87171; }
.app-stat-sub { font-size: 7px; color: #7878a0; }
.app-flow-list { display: flex; flex-direction: column; gap: 2px; }
.app-flow-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border-radius: 6px; background: var(--dark); font-size: 10px; color: #94a3b8; }
.app-flow-item.broken { background: rgba(248,113,113,.12); color: #fca5a5; }
.app-flow-ok { width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; flex-shrink: 0; }
.app-flow-bad { font-size: 8px; font-weight: 700; color: #fff; background: #dc2626; padding: 2px 8px; border-radius: 100px; flex-shrink: 0; }
.app-flow-warn { font-size: 8px; font-weight: 700; color: #fff; background: #f59e0b; padding: 2px 8px; border-radius: 100px; flex-shrink: 0; }

/* SECTIONS */
.section { padding: 80px 48px; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section.bg2 { background: var(--bg2); }
.section.dark { background: var(--dark); }
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 10px; }
.section-label.light { color: var(--accent3); }
.section-h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -1.5px; color: var(--dark); line-height: 1.1; margin-bottom: 10px; }
.section-h2.light { color: #fff; }
.section-h2 em { font-style: normal; color: var(--accent); }
.section-h2.light em { color: var(--accent3); }
.section-desc { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.65; margin-bottom: 44px; }
.section-desc.light { color: #7878a0; }

/* PAIN GRID */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain-card { background: var(--bg); border: 0.5px solid var(--border2); border-radius: 16px; padding: 24px; }
.pain-icon { width: 40px; height: 40px; border-radius: 10px; background: #ecfeff; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pain-title { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; letter-spacing: -.3px; }
.pain-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }
.pain-eg { font-size: 12px; color: #dc2626; background: #fef2f2; border: 0.5px solid rgba(220,38,38,.15); border-radius: 6px; padding: 5px 10px; margin-top: 10px; font-style: italic; display: inline-block; }

/* MAGICPOD CARD */
.mp-card { background: var(--bg); border: 0.5px solid var(--border2); border-radius: 20px; padding: 40px; display: flex; align-items: flex-start; gap: 40px; }
.mp-left { flex: 1; }
.mp-badge { display: inline-flex; align-items: center; gap: 6px; background: #ecfeff; border: 0.5px solid rgba(6,182,212,.25); border-radius: 100px; padding: 4px 12px; font-size: 10px; font-weight: 700; color: var(--accent2); margin-bottom: 14px; }
.mp-title { font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; color: var(--dark); letter-spacing: -1px; margin-bottom: 12px; line-height: 1.2; }
.mp-desc { font-size: 14px; color: var(--muted); line-height: 1.75; }
.mp-right { flex-shrink: 0; width: 200px; display: flex; flex-direction: column; gap: 8px; }
.mp-item { background: var(--bg2); border: 0.5px solid var(--border2); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.mp-item-icon { width: 28px; height: 28px; border-radius: 8px; background: #ecfeff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mp-item-text { font-size: 12px; font-weight: 700; color: var(--dark); }

/* HOW IT WORKS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before { content: ''; position: absolute; top: 20px; left: calc(16.66% + 10px); right: calc(16.66% + 10px); height: 1px; background: var(--accent); opacity: .25; }
.step { text-align: center; padding: 0 20px; }
.step-num { width: 40px; height: 40px; background: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; margin: 0 auto 16px; }
.step-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: #7878a0; line-height: 1.65; }
.step-tag { display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 700; color: var(--accent); background: rgba(6,182,212,.1); border: 0.5px solid rgba(6,182,212,.25); padding: 3px 10px; border-radius: 100px; }

/* FINAL CTA */
.fcta { text-align: center; padding: 96px 48px; }
.fcta-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -2px; color: #fff; line-height: 1.1; margin-bottom: 14px; }
.fcta-sub { font-size: 15px; color: #7878a0; margin-bottom: 32px; line-height: 1.65; }
.fcta-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; padding: 16px 40px; border-radius: 14px; transition: opacity .15s; }
.fcta-btn:hover { opacity: .88; }

/* FOOTER */
.footer { padding: 24px 48px; border-top: 1px solid var(--border); background: var(--bg2); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted2); transition: color .15s; }
.footer-links a:hover { color: var(--dark); }

/* REVEAL */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr; }
  .mp-card { flex-direction: column; }
  .mp-right { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .app-inner { grid-template-columns: 90px 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .section { padding: 52px 16px; }
  .hero { padding: 64px 16px 72px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-btn-primary, .hero-btn-secondary { justify-content: center; font-size: 15px; padding: 14px 24px; }
  .fcta { padding: 64px 16px; }
  .footer { padding: 20px 16px; flex-direction: column; align-items: flex-start; }
}
