:root {
  --bg: #0b0b0d;
  --surface: #151518;
  --border: #26262b;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --mint: #5fd8b6;
  --mint-ink: #06281f;
  --pink: #ff6b9a;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: Fredoka, Inter, sans-serif; font-weight: 600; line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
p { margin: 0 0 16px; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
img { max-width: 100%; display: block; }

.sr-only, .hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.btn {
  display: inline-block;
  background: var(--mint);
  color: var(--mint-ink);
  font: 600 1rem Inter, sans-serif;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(95, 216, 182, .35); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: .9rem; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.2rem Fredoka, sans-serif; }

main { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero { text-align: center; padding: 24px 0 56px; }
.lede { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: 1.15rem; }
.fine { color: var(--muted); font-size: .85rem; margin-top: 14px; }

.screen {
  position: relative;
  height: 200px;
  margin: 0 auto 40px;
  max-width: 760px;
  border-radius: 22px 22px 0 0;
  background: radial-gradient(120% 140% at 50% 0%, #2b3a55 0%, #121826 55%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-bottom: 0;
  overflow: hidden;
}
.menubar { position: absolute; inset: 0 0 auto 0; height: 34px; background: rgba(255, 255, 255, .06); }
.notch {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 210px; height: 34px;
  background: #000;
  border-radius: 0 0 14px 14px;
  transition: width .5s cubic-bezier(.2, .9, .3, 1.2);
}
.notch.hatched { width: 300px; }
.notch.peek { width: 360px; }
.pet { position: absolute; left: 10px; top: 2px; width: 30px; height: 30px; overflow: visible; }
.notch-right {
  position: absolute; right: 14px; top: 0; height: 34px;
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: var(--text);
  opacity: 0; transition: opacity .3s;
}
.notch.peek .notch-right { opacity: 1; transition-delay: .25s; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; }
.caption { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; color: #c9d3e0; font-size: .9rem; opacity: .8; }

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

/* Demo */
.demo { padding: 8px 0 72px; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px; margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px; text-align: center;
  color: var(--muted);
  background: rgba(11, 11, 13, .55);
  backdrop-filter: blur(2px);
}
.video-frame.has-video .video-placeholder { display: none; }

/* Features */
.features { display: grid; gap: 88px; padding-bottom: 96px; }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature img { border-radius: var(--radius); border: 1px solid var(--border); background: #000; }
.feature-text p:not(.eyebrow) { color: var(--muted); }
.eyebrow { color: var(--mint); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto 72px; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Signup */
.signup {
  text-align: center;
  padding: 56px 24px;
  margin-bottom: 72px;
  border-radius: 28px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(95, 216, 182, .16), transparent 60%), var(--surface);
  border: 1px solid var(--border);
}
.signup > p { color: var(--muted); }
#signup-form { display: flex; gap: 10px; justify-content: center; max-width: 480px; margin: 24px auto 0; }
#signup-form input[type=email] {
  flex: 1; min-width: 0;
  font: inherit; color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 20px;
}
#signup-form input[type=email]:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.form-status { min-height: 1.6em; margin-top: 14px; font-weight: 500; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: var(--pink); }

footer {
  max-width: 1100px; margin: 0 auto; padding: 24px 20px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  color: var(--muted); font-size: .85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-text { order: 0; }
  .features { gap: 64px; }
  #signup-form { flex-direction: column; }
  .screen { height: 150px; }
  .notch.hatched, .notch.peek { width: 62%; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .notch, .notch-right { transition: none; }
  .video-placeholder img { animation: none; }
  html { scroll-behavior: auto; }
}

.video-placeholder img { margin: 0 auto 14px; animation: hop 3s ease-in-out infinite; }
.video-placeholder p { margin: 0; max-width: 420px; }

/* Nav */
.topbar nav { display: flex; align-items: center; gap: 20px; }
.navlink { color: var(--muted); text-decoration: none; font-weight: 500; }
.navlink:hover { color: var(--text); }
footer a { color: inherit; }
.muted { color: var(--muted); }

/* Blog */
.blog-list, .post { max-width: 720px; margin: 0 auto; padding: 32px 0 80px; }
.lede-left { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.blog-list ul { list-style: none; padding: 0; margin: 0; }
.blog-list li { border-top: 1px solid var(--border); }
.blog-list li a { display: block; padding: 24px 0; color: inherit; text-decoration: none; }
.blog-list li a:hover h2 { color: var(--mint); }
.blog-list h2 { font-size: 1.5rem; margin: 6px 0 8px; transition: color .15s; }
.blog-list p { color: var(--muted); margin: 0; }
time { color: var(--muted); font-size: .85rem; }
.draft { color: var(--pink); font-size: .8rem; font-family: Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; }

.post .back { display: block; width: fit-content; color: var(--muted); text-decoration: none; margin-bottom: 24px; font-size: .9rem; }
.post .back:hover { color: var(--text); }
.post h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-top: 8px; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose a { color: var(--mint); }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); margin: 28px 0; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.post-cta { margin-top: 56px; padding: 28px; text-align: center; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.post-cta p { font: 600 1.3rem Fredoka, sans-serif; margin-bottom: 16px; }

@media (max-width: 760px) {
  .topbar nav { gap: 14px; }
}
