:root {
  --navy: #0f172a;
  --navy-700: #1e3a5f;
  --indigo: #4338ca;
  --indigo-mid: #6366f1;
  --indigo-light: #e0e7ff;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --surface: #f8fafc;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ────────────────────────────────────────── */
nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* Desktop nav links (hidden below 768px) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--indigo);
  text-decoration: none;
}
.nav-link:hover { text-decoration: underline; }

/* Hamburger button (hidden above 768px) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: opacity 0.15s;
}

/* Mobile dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 61px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-link {
  display: block;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-link:last-child { border-bottom: none; }
.nav-dropdown-link:hover { background: #f8f9ff; }

@media (max-width: 767px) {
  .nav-links    { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
}
.btn-primary:hover { background: #3730a3; }

.btn-secondary {
  background: var(--indigo-light);
  color: var(--indigo);
}
.btn-secondary:hover { background: #c7d2fe; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); }

.btn-large { padding: 15px 32px; font-size: 16px; border-radius: 12px; }

/* ── Section titles ─────────────────────────────── */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 48px;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: 88px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

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

.hero-technical {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: left;
}

.hero-technical p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-technical a { color: var(--indigo); text-decoration: none; }
.hero-technical a:hover { text-decoration: underline; }

/* ── How It Works ───────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--indigo);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-icon {
  color: var(--indigo);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

.step-connector {
  width: 60px;
  flex-shrink: 0;
  height: 2px;
  background: var(--border);
  margin-top: 52px;
  align-self: flex-start;
}

/* ── Use Cases ──────────────────────────────────── */
.use-cases {
  padding: 80px 0;
}

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

.use-case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.use-case-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 24px rgba(67,56,202,0.07);
}

.use-case-icon {
  width: 44px;
  height: 44px;
  background: var(--indigo-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  margin-bottom: 16px;
}

.use-case-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.use-case-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Platforms ──────────────────────────────────── */
.platforms {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.platform-icon {
  width: 56px;
  height: 56px;
  background: var(--indigo-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.platform-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.platform-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.platform-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-light);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ── Install CTA ────────────────────────────────── */
.install-cta {
  padding: 96px 0;
  text-align: center;
}

.install-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.install-cta > .container > p {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
}

.install-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-links a:hover { color: #fff; }

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-bottom a:hover { color: #fff; }

.footer-bottom strong { color: rgba(255,255,255,0.75); font-weight: 600; }

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

  .steps {
    flex-direction: column;
    gap: 40px;
  }
  .step-connector { display: none; }
  .step { padding: 0 8px; }

  .use-case-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: 1fr; }

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

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 16px; }

  .section-title { font-size: 22px; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 40px; }
  .btn-large { padding: 13px 24px; font-size: 15px; }
}

/* ── Why This Matters ───────────────────────────── */
.why-matters {
  padding: 80px 0;
}

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

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stat-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 24px rgba(67,56,202,0.07);
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.stat-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.stat-citation {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.stat-citation a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stat-citation a:hover { color: var(--indigo); }

/* ── What It Looks Like ─────────────────────────── */
.real-world {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.real-world-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.mockups-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mockup-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mockup {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13px;
}

/* Tweet mockup */
.mockup-tweet { padding: 16px; }

.tweet-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.tweet-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--indigo-light);
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tweet-identity { line-height: 1.3; }
.tweet-name { font-weight: 700; color: var(--navy); font-size: 13px; }
.tweet-handle { font-size: 12px; color: var(--muted); }

.tweet-text {
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
  font-size: 13px;
}

.tweet-image-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.tweet-image-placeholder {
  height: 110px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tweet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  gap: 8px;
}
.tweet-actions {
  display: flex;
  gap: 12px;
}
.tweet-actions span {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
}

/* Video mockup */
.mockup-video { padding: 16px; }

.video-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.video-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fde68a;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.video-name { font-weight: 700; font-size: 13px; color: var(--navy); line-height: 1.3; }
.video-sub { font-size: 11px; color: var(--muted); }

.video-frame {
  position: relative;
  background: #1e293b;
  border-radius: 10px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.video-face {
  opacity: 0.4;
}
.video-play-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.video-text-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 11px;
  font-style: italic;
  line-height: 1.4;
}
.video-meta {
  font-size: 11px;
  color: var(--muted);
}

/* Verified badge (shared) */
.verified-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(34, 197, 94, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.01em;
}

/* Real-world text column */
.real-world-text {
  padding-top: 40px;
}
.real-world-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}
.real-world-sub {
  font-size: 13.5px !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
}

/* ── Combined section (use cases + platforms) ───── */
.combined-section {
  padding: 80px 0;
}

.combined-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.use-case-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.combined-col .use-case-card {
  display: flex;
  flex-direction: column;
}
.combined-col .use-case-card .platform-tag {
  margin-top: 10px;
}

/* ── Responsive additions ────────────────────────── */
@media (max-width: 900px) {
  .real-world-layout {
    grid-template-columns: 1fr;
  }
  .real-world-text {
    padding-top: 0;
  }
  .combined-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr; }
  .mockups-row { grid-template-columns: 1fr; }
  .why-matters { padding: 56px 0; }
  .real-world { padding: 56px 0; }
  .combined-section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .stat-number { font-size: 22px; }
}
