/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Milo brand colors — warm dark background, vivid orange accent */
  --bg: #0d0d0a;
  --bg2: #111109;
  --bg3: #181810;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #f0efe8;
  --text2: #9a9880;
  --orange: #F97316;       /* Milo primary — vivid orange */
  --orange2: #FB923C;      /* Milo lighter orange */
  --orange-dark: #C2410C;  /* Milo dark orange */
  --blue: #2563eb;         /* secondary accent */
  --green: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 25px 50px rgba(0,0,0,0.6);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Android app colors */
  --app-bg: #1C1B1F;
  --app-surface: #2B2930;
  --app-topbar: #1C1B1F;
  --app-primary: #D0BCFF;   /* M3 primary on dark */
  --app-bottom: #1E1B26;
}

html { scroll-behavior: smooth; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  background: rgba(249,115,22,0.15);
  color: var(--orange2);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88em;
}

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Gradient text (orange) ──────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section label ───────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

/* ── Section header ──────────────────────────────────────────────────────── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text2); line-height: 1.7; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(249,115,22,0.4);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 0 44px rgba(249,115,22,0.6); }

.btn-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.06);
  color: var(--text2);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  cursor: default;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 18px rgba(249,115,22,0.35);
}
.btn-nav:hover { opacity: 0.85; transform: translateY(-1px); }

/* Store buttons */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-store .store-sub { display: block; font-size: 0.72rem; font-weight: 400; opacity: 0.75; }
.btn-store .store-name { display: block; font-size: 1.15rem; font-weight: 700; }
.btn-play {
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%);
  color: #fff;
  box-shadow: 0 0 28px rgba(249,115,22,0.4);
}
.btn-play:hover { transform: translateY(-3px); box-shadow: 0 0 44px rgba(249,115,22,0.6); }
.btn-apple-soon {
  background: rgba(255,255,255,0.05);
  color: var(--text2);
  border: 1px solid var(--border2);
  cursor: default;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,10,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.nav-logo-img { width: 32px; height: 32px; min-width: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: block; flex-shrink: 0; }
.nav-links { display: flex; list-style: none; gap: 4px; flex: 1; }
.nav-links a { font-size: 0.92rem; color: var(--text2); padding: 7px 14px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; padding: 16px 24px 24px; gap: 4px; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--text2); padding: 10px 14px; border-radius: 10px; font-size: 1rem; transition: background 0.2s, color 0.2s; }
.nav-mobile a:hover { background: var(--surface); color: var(--text); }
.nav-mobile .btn-nav { align-self: flex-start; margin-top: 8px; }
@media (max-width: 768px) {
  .nav-links, #nav .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Orbs ────────────────────────────────────────────────────────────────── */
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  gap: 70px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb-1 { width: 600px; height: 600px; background: rgba(249,115,22,0.12); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: rgba(194,65,12,0.1); top: 50px; right: -100px; }
.orb-3 { width: 400px; height: 400px; background: rgba(251,146,60,0.06); bottom: -100px; left: 35%; }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,200,100,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,200,100,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.5), transparent 75%);
}

.hero-content { flex: 1; position: relative; z-index: 1; max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.84rem;
  color: var(--orange2);
  font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: pulse 2s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title { font-size: clamp(2.8rem, 6vw, 4.2rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero-subtitle { font-size: 1.18rem; color: var(--text2); line-height: 1.75; margin-bottom: 36px; max-width: 520px; }
.hero-subtitle strong { color: var(--text); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; align-items: center; }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { text-align: center; }
.stat-value { display: block; font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--orange), var(--orange2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.82rem; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: var(--border2); }

/* ── Android phone mockup ─────────────────────────────────────────────────── */
.hero-phone { position: relative; z-index: 1; flex-shrink: 0; }
.phone-frame {
  width: 300px;
  height: 620px;
  background: var(--app-bg);
  border-radius: 28px;
  border: 1.5px solid rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 90px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}

/* Android status bar — no notch, punch-hole camera */
.phone-statusbar {
  height: 28px;
  background: var(--app-bg);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  flex-shrink: 0;
}
.sb-time { font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.sb-icons { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.sb-battery {
  width: 22px; height: 11px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 2.5px;
  padding: 1.5px;
  position: relative;
}
.sb-battery::after {
  content: '';
  position: absolute;
  right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 0 1px 1px 0;
}
.sb-battery-fill { height: 100%; width: 75%; background: rgba(255,255,255,0.8); border-radius: 1px; }

/* Punch-hole camera — centered at top */
.phone-punchhole {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  background: #000;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

/* Top app bar */
.phone-topbar {
  height: 56px;
  background: var(--app-topbar);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.topbar-title { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.topbar-logo { width: 24px; height: 24px; min-width: 24px; max-width: 24px; max-height: 24px; object-fit: contain; display: block; flex-shrink: 0; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* Screen content area */
.phone-screen-content {
  flex: 1;
  background: var(--app-bg);
  padding: 12px;
  overflow: hidden;
  position: relative;
}

/* Book cover grid */
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 0;
}
.book-cover {
  height: 150px;
  border-radius: 4px 10px 10px 4px;
  display: flex;
  overflow: hidden;
  box-shadow: 3px 4px 12px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.2s;
}
.book-cover:hover { transform: translateY(-2px); }
.book-spine {
  width: 14px;
  flex-shrink: 0;
  background: var(--book-dark);
  border-right: 1px solid rgba(0,0,0,0.2);
}
.book-front {
  flex: 1;
  background: linear-gradient(160deg, var(--book-color), var(--book-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
}
.book-emoji { font-size: 1.6rem; }
.book-name { font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.95); text-align: center; line-height: 1.2; }
.book-count { font-size: 0.52rem; color: rgba(255,255,255,0.55); }

/* FAB */
.phone-fab {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(249,115,22,0.5);
}

/* Bottom navigation */
.phone-bottom-nav {
  height: 68px;
  background: var(--app-bottom);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  flex-shrink: 0;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  flex: 1;
  cursor: pointer;
}
.nav-item span {
  font-size: 0.48rem;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
}
.nav-item.active span { color: var(--orange2); }
.nav-label-active { color: var(--orange2) !important; }
.nav-milo-icon {
  width: 20px; height: 20px;
  min-width: 20px; max-width: 20px; max-height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  opacity: 0.45;
  filter: grayscale(100%) brightness(2);
}

/* Home bar */
.phone-home-bar {
  height: 20px;
  background: var(--app-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-home-bar::after {
  content: '';
  width: 120px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.phone-glow {
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 120px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.25) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 960px) { .hero { flex-direction: column; align-items: flex-start; padding-bottom: 60px; } .hero-phone { display: none; } }

/* ── Features ────────────────────────────────────────────────────────────── */
.features { padding: 120px 0; position: relative; z-index: 1; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.feature-card:hover { border-color: rgba(249,115,22,0.35); background: var(--surface2); transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; color: var(--text2); line-height: 1.65; }
.feature-demo-tree { margin-top: 20px; background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: var(--mono); font-size: 0.75rem; line-height: 1.8; }
.demo-row { color: var(--text2); }
.demo-row.nb { color: var(--text); font-weight: 600; }
.demo-row.note { color: rgba(255,255,255,0.35); }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ── AI ──────────────────────────────────────────────────────────────────── */
.ai-section { padding: 120px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%); position: relative; z-index: 1; }
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.ai-text h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.ai-text > p { color: var(--text2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 40px; }
.ai-features { display: flex; flex-direction: column; gap: 28px; }
.ai-feature { display: flex; gap: 16px; align-items: flex-start; }
.ai-feature-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.ai-feature h4 { font-size: 0.97rem; font-weight: 600; margin-bottom: 5px; }
.ai-feature p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }

/* Chat window */
.chat-window { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); overflow: hidden; }
.chat-milo-icon { width: 36px; height: 36px; min-width: 36px; max-width: 36px; max-height: 36px; object-fit: contain; display: block; flex-shrink: 0; background: rgba(249,115,22,0.15); border-radius: 50%; padding: 4px; border: 1px solid rgba(249,115,22,0.3); }
.chat-header-name { font-size: 0.9rem; font-weight: 700; }
.chat-header-sub { font-size: 0.72rem; color: var(--text2); margin-top: 1px; }
.chat-status-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; margin-left: auto; animation: pulse 2s ease infinite; }
.chat-messages { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { display: flex; gap: 10px; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar { width: 32px; height: 32px; min-width: 32px; max-width: 32px; max-height: 32px; background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.chat-avatar img { width: 26px; height: 26px; max-width: 26px; max-height: 26px; object-fit: contain; display: block; flex-shrink: 0; padding: 2px; }
.chat-bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 0.84rem; line-height: 1.55; }
.chat-msg.user .chat-bubble { background: linear-gradient(135deg, var(--orange-dark), var(--orange)); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-msg.assistant .chat-bubble { background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: 16px 16px 16px 4px; }
.priority-high { background: rgba(239,68,68,0.2); color: #f87171; padding: 1px 7px; border-radius: 5px; font-size: 0.8em; font-weight: 600; }
.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); }
.chat-input { flex: 1; font-size: 0.84rem; color: var(--text2); font-style: italic; }
.chat-send { width: 32px; height: 32px; background: linear-gradient(135deg, var(--orange-dark), var(--orange)); border: none; border-radius: 50%; color: #fff; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (max-width: 900px) { .ai-inner { grid-template-columns: 1fr; gap: 48px; } }

/* ── Access ──────────────────────────────────────────────────────────────── */
.access-section { padding: 120px 0; position: relative; z-index: 1; }
.access-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.access-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: border-color 0.3s, transform 0.3s; }
.access-card:hover { border-color: rgba(249,115,22,0.35); transform: translateY(-4px); }
.access-card--featured { background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(194,65,12,0.08)); border-color: rgba(249,115,22,0.35); }
.access-icon { font-size: 2.2rem; margin-bottom: 16px; }
.access-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.access-card p { font-size: 0.9rem; color: var(--text2); line-height: 1.65; margin-bottom: 18px; }
.access-url { font-family: var(--mono); font-size: 0.78rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--green); word-break: break-all; }
.url-hash { color: var(--orange2); }
.access-badge { margin-top: 10px; font-size: 0.75rem; color: var(--orange2); font-weight: 500; }
.pwa-banner { display: flex; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 32px; }
.pwa-icon { font-size: 2.5rem; flex-shrink: 0; }
.pwa-text { flex: 1; }
.pwa-text h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.pwa-text p { font-size: 0.88rem; color: var(--text2); }
.pwa-browsers { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.pwa-browsers span { font-size: 0.78rem; font-weight: 600; background: var(--surface2); border: 1px solid var(--border2); border-radius: 100px; padding: 4px 12px; color: var(--text2); }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; } .pwa-banner { flex-direction: column; align-items: flex-start; } }

/* ── API ─────────────────────────────────────────────────────────────────── */
.api-section { padding: 120px 0; background: var(--bg2); position: relative; z-index: 1; }
.api-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.code-window { background: #09090a; border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.code-header { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-title { font-size: 0.8rem; color: var(--text2); }
.code-body { padding: 24px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.85; color: #b8b0a0; overflow-x: auto; white-space: pre; }
.code-body .c { color: #5a5040; }
.code-body .cm { color: #7ec8e3; }
.code-body .s { color: #a8d878; }
.code-body .k { color: #e8a060; }
.api-text h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.api-text > p { color: var(--text2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }
.api-features { display: flex; flex-direction: column; gap: 12px; }
.api-feature { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--text2); }
.api-check { color: var(--orange); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
@media (max-width: 900px) { .api-inner { grid-template-columns: 1fr; gap: 48px; } }

/* ── Privacy ─────────────────────────────────────────────────────────────── */
.privacy-section { padding: 120px 0; position: relative; z-index: 1; }
.privacy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.privacy-text h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.privacy-text > p { color: var(--text2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 10px; }
.privacy-text > p em { color: var(--text); }
.privacy-points { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.privacy-point { display: flex; gap: 16px; align-items: flex-start; }
.privacy-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.privacy-point h4 { font-size: 0.97rem; font-weight: 600; margin-bottom: 5px; }
.privacy-point p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.privacy-diagram { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative; }
.diagram-phone, .diagram-relay, .diagram-browser { background: var(--surface2); border: 1px solid var(--border2); border-radius: 14px; padding: 20px 28px; text-align: center; width: 100%; }
.diag-icon { font-size: 2rem; margin-bottom: 8px; }
.diag-label { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.diag-sub { font-size: 0.78rem; color: var(--text2); }
.diagram-arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0; }
.arrow-line { width: 2px; height: 24px; background: linear-gradient(180deg, var(--orange), var(--orange2)); }
.arrow-label { font-size: 0.72rem; color: var(--orange2); font-weight: 500; font-family: var(--mono); }
.diagram-no-cloud { position: absolute; top: 20px; right: 20px; font-size: 0.75rem; color: #f87171; font-weight: 600; text-align: center; }
.cloud-strike { font-size: 1.5rem; text-decoration: line-through; opacity: 0.6; }
@media (max-width: 900px) { .privacy-inner { grid-template-columns: 1fr; gap: 48px; } .privacy-diagram { display: none; } }

/* ── Tech ────────────────────────────────────────────────────────────────── */
.tech-section { padding: 80px 0; background: var(--bg2); position: relative; z-index: 1; }
.tech-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 18px; font-size: 0.85rem; font-weight: 500; color: var(--text2); transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s; }
.tech-pill:hover { border-color: rgba(249,115,22,0.45); color: var(--text); background: rgba(249,115,22,0.08); box-shadow: 0 0 18px rgba(249,115,22,0.2); }

/* ── Download ────────────────────────────────────────────────────────────── */
.download-section { padding: 140px 0; position: relative; overflow: hidden; z-index: 1; }
.download-bg { position: absolute; inset: 0; pointer-events: none; }
.orb-dl-1 { width: 500px; height: 500px; background: rgba(249,115,22,0.18); top: -100px; left: -100px; }
.orb-dl-2 { width: 500px; height: 500px; background: rgba(194,65,12,0.14); bottom: -100px; right: -100px; }
.download-inner { text-align: center; position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.download-app-icon { width: 100px; height: 100px; max-width: 100px; max-height: 100px; border-radius: 22px; margin-bottom: 28px; box-shadow: 0 0 40px rgba(249,115,22,0.4); display: block; margin-left: auto; margin-right: auto; object-fit: contain; }
.download-inner h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.download-inner > p { color: var(--text2); font-size: 1.1rem; margin-bottom: 40px; }
.download-requirements { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.req { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text2); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 18px; }
.download-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--border); background: var(--bg); position: relative; z-index: 1; }
.footer-inner { display: flex; gap: 60px; margin-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-img { width: 32px; height: 32px; min-width: 32px; max-width: 32px; max-height: 32px; object-fit: contain; display: block; flex-shrink: 0; }
.footer-logo .logo-text { font-size: 1.2rem; font-weight: 700; }
.footer-brand p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.footer-links { display: flex; gap: 60px; flex: 1; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 4px; }
.footer-col a { font-size: 0.9rem; color: var(--text2); transition: color 0.2s; }
.footer-col a:hover { color: var(--orange2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text2); }
.footer-credit { color: var(--orange2); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.footer-credit:hover { color: var(--orange); }
@media (max-width: 768px) { .footer-inner { flex-direction: column; gap: 36px; } .footer-links { justify-content: flex-start; gap: 32px; flex-wrap: wrap; } .footer-bottom { flex-direction: column; gap: 4px; } }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.3); }


/* ── Adaptive Section ───────────────────────────────────────────────────── */
.adaptive-section { padding: 120px 0; position: relative; z-index: 1; }
.adaptive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adaptive-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color 0.3s, transform 0.3s, background 0.3s; }
.adaptive-card:hover { border-color: rgba(249,115,22,0.35); background: var(--surface2); transform: translateY(-4px); }
.adaptive-icon { font-size: 2rem; margin-bottom: 16px; }
.adaptive-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.adaptive-card p { font-size: 0.92rem; color: var(--text2); line-height: 1.65; }
@media (max-width: 900px) { .adaptive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .adaptive-grid { grid-template-columns: 1fr; } }

/* ── Pomodoro Section ────────────────────────────────────────────────────── */
.pomodoro-section { padding: 120px 0; background: var(--bg2); position: relative; z-index: 1; }
.pomodoro-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.pomodoro-text h2 { font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.pomodoro-text > p { color: var(--text2); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }
.pomo-features { display: flex; flex-direction: column; gap: 24px; }
.pomo-feature { display: flex; gap: 16px; align-items: flex-start; }
.pomo-feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.pomo-feature h4 { font-size: 0.97rem; font-weight: 600; margin-bottom: 5px; }
.pomo-feature p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.pomodoro-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pomo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 340px; box-shadow: var(--shadow); }
.pomo-mode-label { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #F97316; }
.pomo-ring-wrap { position: relative; width: 180px; height: 180px; }
.pomo-ring-svg { width: 180px; height: 180px; }
.pomo-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.pomo-time { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--text); }
.pomo-linked { font-size: 0.7rem; color: var(--text2); max-width: 110px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pomo-dots { display: flex; gap: 8px; }
.pomo-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #F97316; }
.pomo-dot--filled { background: #F97316; }
.pomo-dots-label { font-size: 0.72rem; color: var(--text2); margin-top: -4px; }
.pomo-controls { display: flex; gap: 10px; }
.pomo-btn { display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 10px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); cursor: default; }
.pomo-btn--pause { background: var(--surface2); color: var(--text); }
.pomo-btn--stop { background: transparent; color: var(--text2); }
.pomo-notification { width: 100%; max-width: 340px; }
.notif-bar { background: rgba(30,30,30,0.95); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(12px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.notif-app-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.notif-icon { width: 16px; height: 16px; border-radius: 4px; }
.notif-app { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.5); flex: 1; }
.notif-time { font-size: 0.68rem; color: rgba(255,255,255,0.3); }
.notif-title { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 2px; }
.notif-body { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
@media (max-width: 960px) { .pomodoro-inner { grid-template-columns: 1fr; gap: 56px; } .pomodoro-visual { order: -1; } }
