:root {
  --bg: #0b0b0d;
  --card: #151519;
  --line: rgba(255,255,255,.08);
  --text: #f4f3f1;
  --muted: #a09ea6;
  --red: #ee383d;
  --red-2: #ff7f78;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --spring: cubic-bezier(.34,1.45,.64,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
b { font-weight: 600; color: var(--text); }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0 7px; text-align: center; font: 600 .9em var(--font); color: var(--text);
  background: linear-gradient(#2c2c33, #1d1d22); border: 1px solid rgba(255,255,255,.14); border-bottom-width: 3px; border-radius: 7px; line-height: 1.45;
}
.red { background: linear-gradient(120deg, var(--red-2), var(--red)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, calc((100vw - 1080px) / 2));
  background: rgba(11,11,13,.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 650; border-radius: 999px;
  background: linear-gradient(180deg, #ff5a5c, var(--red) 55%, #d42a31);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px -10px rgba(238,56,61,.7); transition: transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }
.btn-small { padding: 7px 16px; font-size: 14px; }
.btn-big { padding: 16px 30px; font-size: 18px; }

/* HERO */
.hero { max-width: 1080px; margin: 0 auto; padding: 48px 16px 24px; display: grid; justify-items: center; text-align: center; gap: 44px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 16px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 30ch; margin: 0 auto 28px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Screen mockup */
.screen {
  --menubar: 46px;
  position: relative; width: min(760px, 100%); aspect-ratio: 2 / 1; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 115%, #ff6a5a 0%, transparent 55%),
    radial-gradient(100% 80% at 100% 100%, #7b3cff 0%, transparent 60%),
    radial-gradient(90% 70% at 55% 25%, #2a5bd7 0%, transparent 70%), #121426;
  border: 10px solid #0f0f12; box-shadow: 0 0 0 1px #2b2b31, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 120px -50px rgba(238,56,61,.5);
}
.menubar {
  position: absolute; inset: 0 0 auto; height: var(--menubar); display: flex; justify-content: space-between; align-items: center;
  padding: 0 18px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9); background: rgba(20,20,30,.3);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.apple { width: 11px; height: 13px; background: currentColor; border-radius: 50% 50% 45% 45%; display: inline-block; }
.wave-icon { display: inline-flex; align-items: center; gap: 1.5px; height: 12px; }
.wave-icon i { width: 2px; background: currentColor; border-radius: 2px; height: 5px; }
.wave-icon i:nth-child(2) { height: 11px; } .wave-icon i:nth-child(3) { height: 8px; }

/* Notch + buddy. Positions and sizes are set from script.js using the app's own geometry. */
.notch-wrap { position: absolute; top: 0; left: 50%; width: 30%; height: var(--menubar); transform: translateX(-50%); }
.notch, .buddy, .hand { position: absolute; top: 0; left: 50%; }
.notch {
  z-index: 2; width: 100%; height: 100%; transform: translateX(-50%); background: #000; border-radius: 0 0 12px 12px;
  transition: width .42s var(--spring), height .42s var(--spring);
}
.buddy {
  z-index: 1; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4));
  transition: transform .45s var(--spring), width .42s var(--spring), height .42s var(--spring);
}
.pupil { transition: transform .18s ease-out; }
.lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: blink 3.7s infinite; }
@keyframes blink { 0%, 94% { transform: scaleY(0); } 97% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.hand {
  z-index: 3; border-radius: 99px; background: linear-gradient(#ff807a, #d92e33); opacity: 0;
  transition: transform .45s var(--spring), opacity .2s, width .42s, height .42s;
}

/* Answer panel dropping out of the notch */
.island {
  position: absolute; z-index: 4; top: 0; left: 50%; width: 200%; transform: translateX(-50%) scale(.6, .2); transform-origin: top center;
  opacity: 0; padding: 38px 18px 16px; border-radius: 0 0 26px 26px; background: #000; color: #fff;
  font-size: clamp(12px, 1.5vw, 15px); line-height: 1.4; transition: transform .45s var(--spring), opacity .2s; pointer-events: none;
}
.screen.talking .island { transform: translateX(-50%) scale(1); opacity: 1; }
.island-q { color: #8e8c93; font-size: .9em; margin-bottom: 6px; }
.island-a { min-height: 2.8em; }
.island-a .w, .island-q .w { opacity: .18; transition: opacity .15s; }
.island-a .w.on, .island-q .w.on { opacity: 1; }
.bars { display: flex; gap: 3px; justify-content: center; align-items: center; height: 14px; margin-top: 10px; }
.bars i { width: 3px; height: 4px; border-radius: 3px; background: var(--red); }
.screen.speaking .bars i { animation: eq .9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.2s; } .bars i:nth-child(3) { animation-delay: -.5s; }
.bars i:nth-child(4) { animation-delay: -.1s; } .bars i:nth-child(5) { animation-delay: -.65s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* Demo props */
.cursor {
  position: absolute; z-index: 6; top: 0; left: 0; width: 22px; height: 24px; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); transition: transform var(--dur, 1s) cubic-bezier(.45,.05,.25,1), opacity .35s;
}
.cursor.on { opacity: 1; }
.keycap {
  position: absolute; z-index: 5; left: 50%; bottom: 7%; display: grid; justify-items: center; gap: 6px;
  transform: translateX(-50%) translateY(8px); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.keycap.on { opacity: 1; transform: translateX(-50%); }
.keycap kbd {
  font-size: 30px; min-width: 64px; height: 60px; line-height: 50px; border-radius: 12px; border-bottom-width: 7px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); transition: transform .12s, border-bottom-width .12s, box-shadow .12s, color .12s;
}
.keycap span { font: 600 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.keycap.down kbd { transform: translateY(5px); border-bottom-width: 2px; color: var(--red-2); box-shadow: 0 0 0 2px rgba(238,56,61,.6), 0 0 28px rgba(238,56,61,.55); }
.screen.listening .bars i { animation: eq .6s ease-in-out infinite; }

/* SECTIONS */
.section { max-width: 720px; margin: 0 auto; padding: 64px 16px; }
.section h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 24px; text-align: center; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--red); }
.steps h3 { font-size: 18px; margin: 6px 0 4px; }
.steps p { color: var(--muted); font-size: 16px; }
.mock {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  background: #232328; border: 1px solid #34343b; border-radius: 12px; font-size: 13.5px; color: #e5e5e8;
}
.mock-btn { flex: none; padding: 4px 11px; border-radius: 7px; background: #3b3b42; color: #fff; box-shadow: 0 0 0 2px var(--red), 0 0 16px rgba(238,56,61,.5); }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

.footer { border-top: 1px solid var(--line); padding: 28px 16px 40px; text-align: center; color: #6f6d75; font-size: 13px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 28px; gap: 32px; }
  .screen { --menubar: 32px; border-width: 6px; border-radius: 16px; aspect-ratio: 4 / 3; }
  .menubar { font-size: 12px; padding: 0 12px; }
  .mb-left { visibility: hidden; }
  .notch-wrap { width: 36%; }
  .keycap kbd { font-size: 22px; min-width: 46px; height: 44px; line-height: 36px; border-bottom-width: 5px; }
  .keycap.down kbd { transform: translateY(4px); }
  .island { width: 260%; padding: 36px 14px 12px; }
  .btn-big { width: 100%; }
  .steps li { padding: 16px; gap: 12px; }
  .mock { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
