:root {
  --bg: #ffffff;
  --surface: #fafaf9;
  --ink: #111111;
  --muted: #666662;
  --border: #e5e5e3;
  --accent: #185a44;
  --accent-soft: #edf7f2;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.hero { padding: 56px 0 44px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.hero-title { font-family: 'Caudex', Georgia, serif; font-size: clamp(32px, 5vw, 48px); line-height: 1.12; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero-thesis { max-width: 680px; font-size: 16.5px; line-height: 1.65; color: #363633; margin: 0 0 14px; }
.hero-note { max-width: 680px; font-size: 14px; line-height: 1.6; color: var(--muted); padding: 12px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); cursor: pointer; }
.btn-primary { background: #111111; color: #ffffff; border-color: #111111; }
.btn-secondary { background: #ffffff; color: #111111; }

.section { padding: 52px 0; }
.section-bordered { border-top: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.section-title { font-family: 'Caudex', Georgia, serif; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; margin: 0; }
.section-desc { max-width: 440px; font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }

/* Realistic Desktop Window / Mobile Phone Device Frame */
.device-stage { display: flex; justify-content: center; }
.device-frame {
  width: 100%; max-width: 460px;
  background: #14211b; border-radius: 30px; padding: 10px;
  box-shadow: 0 20px 56px rgba(17, 32, 24, 0.16);
}
.device-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px 10px; color: rgba(255,255,255,0.82); font-size: 12px; font-weight: 600;
}
.window-dots { display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 999px; }
.dot-red { background: #ff5f56; } .dot-amber { background: #ffbd2e; } .dot-green { background: #27c93f; }
.window-address { background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 999px; font-size: 11.5px; color: #fff; }
.device-screen { background: #f4f6f3; border-radius: 22px; overflow: hidden; height: 760px; }
.device-screen iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 520px) { .device-screen { height: 680px; } }

/* 3-beat How it works */
.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .beats { grid-template-columns: 1fr; } }
.beat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.beat-num { display: inline-flex; width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 12px; }
.beat-card h3 { font-family: 'Caudex', Georgia, serif; font-size: 20px; margin: 0 0 8px; }
.beat-card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Bottom GitHub CTA */
.cta-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-box h2 { font-family: 'Caudex', Georgia, serif; font-size: 26px; margin: 0 0 8px; }
.cta-box p { font-size: 14.5px; color: var(--muted); max-width: 560px; margin: 0 0 14px; line-height: 1.55; }
.clone-row {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111111; color: #f4f4f2; padding: 9px 14px; border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; max-width: 100%; overflow-x: auto;
}
.copy-btn { background: rgba(255,255,255,0.14); color: #fff; border: 0; padding: 4px 10px; border-radius: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.footer-links { margin-top: 20px; font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
