/* ─── Fonts ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "MonaspaceKrypton";
  src: url("fonts/MonaspaceKrypton-Var.woff2") format("woff2 supports variations"),
       url("fonts/MonaspaceKrypton-Var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MonaspaceNeon";
  src: url("fonts/MonaspaceNeon-Var.woff2") format("woff2 supports variations"),
       url("fonts/MonaspaceNeon-Var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --claw-purple:   #7C6FFF;
  --claw-lavender: #A78BFA;
  --claw-mist:     #C4B5FD;
  --bg-void:       #080810;
  --bg-deep:       #0F0F1C;
  --bg-surface:    #16161F;
  --bg-raised:     #1E1E2E;
  --border:        #2A2A3E;
  --text:          #E8E8F4;
  --muted:         #8080A8;
  --green:         #4AE8A0;
  --red:           #FF4466;
  --amber:         #FFB340;

  --font-title: "MonaspaceKrypton", "SF Mono", monospace;
  --font-body:  "MonaspaceNeon", "SF Mono", monospace;
  --radius:     14px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--claw-lavender); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-title);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none; cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: opacity .15s, transform .1s;
}
.btn:hover { opacity: .82; transform: translateY(-1px); text-decoration: none; }
.btn-lg { padding: 14px 32px; font-size: 0.95rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn:not(.btn-outline) { background: var(--claw-purple); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,16,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  color: var(--text);
}
.logo .mark { color: var(--claw-purple); }
.nav-icon { max-width: 2rem; max-height: 2rem; border-radius: 5px; vertical-align: middle; margin-right: 6px; }
.nav-link { font-family: var(--font-title); font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-github { display: flex; align-items: center; opacity: 0.55; }
.nav-github:hover { opacity: 1; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 110px 24px 80px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(124,111,255,.13) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  max-height: 256px;
  width: auto;
  border-radius: 36px;
  margin-bottom: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
}

.hero-badge {
  font-family: var(--font-title);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.accent { color: var(--claw-lavender); }
.grad {
  background: linear-gradient(135deg, var(--claw-purple), var(--claw-mist));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

/* ─── Hero inline community signup ───────────────────────────────────────── */
.hero-tf {
  width: 100%;
  max-width: 420px;
  margin-bottom: 48px;
  text-align: center;
}
.hero-tf-eyebrow {
  font-family: var(--font-title);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-tf-form { display: flex; flex-direction: column; gap: 8px; }
.hero-tf-row { display: flex; gap: 8px; }
.hero-tf-input {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 8px 18px;
  outline: none;
  transition: border-color .15s;
}
.hero-tf-input::placeholder { color: var(--muted); opacity: .6; }
.hero-tf-input:focus { border-color: var(--claw-purple); }
.hero-tf-submit[disabled] { opacity: .5; cursor: not-allowed; }
.hero-tf-success p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* Watch art */
.hero-art { display: flex; justify-content: center; }
.watch-frame {
  width: 148px; height: 178px;
  border-radius: 46px;
  background: linear-gradient(145deg, var(--bg-raised), var(--bg-void));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(124,111,255,.18), 0 0 0 1px rgba(124,111,255,.08);
}
.watch-screen {
  width: 114px; height: 138px;
  border-radius: 34px;
  background: var(--bg-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.watch-icon {
  width: 54px; height: 54px; border-radius: 12px;
  object-fit: cover;
}
.watch-dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--claw-lavender), var(--claw-purple));
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,111,255,.45); }
  50%      { box-shadow: 0 0 0 12px rgba(124,111,255,0); }
}
.watch-text {
  font-family: var(--font-body);
  font-size: 8.5px;
  color: var(--muted);
  text-align: center;
  padding: 0 10px;
}
.watch-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--claw-purple);
  background: rgba(124,111,255,.08);
}

/* ─── Watch Demo ─────────────────────────────────────────────────────────── */
.watch-demo-section { padding: 88px 24px 72px; text-align: center; }
.demo-eyebrow { font-family: var(--font-title); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--claw-purple); margin-bottom: 10px; }
.demo-title   { font-family: var(--font-title); font-size: clamp(1.6rem,4vw,2.2rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 48px; }

/* Watch body */
.watch-mockup { position: relative; display: inline-block; margin-bottom: 48px; }
.wm-body { display: flex; flex-direction: column; align-items: center; }
.wm-band { width: 52px; height: 56px; background: #1a1a2e; border-radius: 6px; }
.wm-band-top    { border-radius: 8px 8px 0 0; }
.wm-band-bottom { border-radius: 0 0 8px 8px; }
.wm-case { width: 180px; background: #1c1c26; border-radius: 40px; padding: 10px; box-shadow: 0 0 0 1.5px #333, 0 20px 60px rgba(0,0,0,.7); }
.wm-screen { background: #000; border-radius: 30px; width: 160px; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; overflow: hidden; padding: 12px; position: relative; }
.wm-crown-side { position: absolute; right: -8px; top: 72px; width: 7px; height: 32px; background: #2a2a3a; border-radius: 3px; z-index: 2; }
.wm-btn-side   { position: absolute; right: -8px; top: 116px; width: 7px; height: 18px; background: #2a2a3a; border-radius: 3px; z-index: 2; }

/* States */
.wm-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.wm-hidden { display: none !important; }
.wm-hint { font-size: 10px; color: #666; font-family: var(--font-title); letter-spacing: .05em; }

/* Mic ring */
.wm-mic-ring {
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--claw-lavender), var(--claw-purple));
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .3s;
}
.wm-ring-active {
  animation: micPulse 0.9s ease-in-out infinite;
}
@keyframes micPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,111,255,.6); }
  50%      { box-shadow: 0 0 0 14px rgba(124,111,255,0); }
}

/* Demo stage — watch + chat side by side */
.demo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.demo-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 240px;
}
.demo-bubble {
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: bubbleIn .35s ease both;
}
.demo-hidden { display: none !important; }
.demo-bubble-user  { background: var(--claw-purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.demo-bubble-agent { background: #1e1e30; color: var(--text); align-self: flex-start; border-bottom-left-radius: 5px; }

/* Bubbles (small, inside watch — unused but kept for selector stability) */
.wm-bubble {
  max-width: 136px; border-radius: 14px; padding: 7px 10px;
  font-size: 11px; line-height: 1.45; text-align: left;
  animation: bubbleIn .3s ease both;
}
@keyframes bubbleIn {
  from { opacity:0; transform: scale(.85) translateY(6px); }
  to   { opacity:1; transform: none; }
}
.wm-bubble-user  { background: var(--claw-purple); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.wm-bubble-agent { background: #1e1e30; color: var(--text); border-bottom-left-radius: 4px; }

/* Extension rail */
.ext-rail { max-width: 360px; margin: 0 auto; overflow: hidden; border-radius: 20px; }
.ext-track {
  display: flex; gap: 16px;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.ext-card {
  flex: 0 0 360px; height: 220px; border-radius: 20px;
  background: var(--bg-raised) var(--bg) center/cover no-repeat;
  position: relative; overflow: hidden; cursor: default;
}
.ext-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8,8,16,.2) 0%, rgba(8,8,16,.75) 100%); }
.ext-pill {
  position: absolute; top: 16px; left: 16px;
  background: rgba(124,111,255,.85); color: #fff;
  font-family: var(--font-title); font-size: 0.7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.ext-dialog { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; flex-direction: column; gap: 6px; }
.ext-q { font-size: 0.82rem; color: rgba(255,255,255,.7); font-style: italic; }
.ext-a { font-size: 0.85rem; color: #fff; font-weight: 500; line-height: 1.4; }

/* Dots */
.ext-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.ext-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: background .3s; }
.ext-dot-active { background: var(--claw-purple); }

/* ─── Features ───────────────────────────────────────────────────────────── */
.features { padding: 88px 24px; background: var(--bg-deep); }
h2 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--claw-purple); }
.feature-icon { font-size: 1.7rem; margin-bottom: 14px; }
.feature-card h3 {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; }

/* ─── How it works ───────────────────────────────────────────────────────── */
.how { padding: 88px 24px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 30px; max-width: 680px; margin: 0 auto; }
.steps li { display: flex; gap: 22px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--claw-purple);
  display: flex; align-items: center; justify-content: center;
}
.steps li div { padding-top: 6px; font-size: 0.92rem; color: var(--muted); line-height: 1.75; }
.steps li div strong { font-family: var(--font-title); font-weight: 600; color: var(--text); }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq { padding: 88px 24px; background: var(--bg-deep); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
details {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
details[open] { border-color: var(--claw-purple); }
summary {
  padding: 18px 24px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--claw-purple); font-size: 1.3rem; line-height: 1; font-family: var(--font-title); }
details[open] summary::after { content: "−"; }
details p { padding: 0 24px 20px; font-size: 0.88rem; color: var(--muted); line-height: 1.8; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  padding: 52px 24px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
footer .logo { display: block; margin-bottom: 14px; }
footer p { font-family: var(--font-body); font-size: 0.85rem; margin-bottom: 4px; }
.footer-small { font-size: 0.76rem; opacity: .55; margin-top: 30px; text-align: center; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr 1fr;
  gap: 36px;
  align-items: start;
  text-align: left;
  margin-bottom: 8px;
}
.footer-brand { max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 6px 0 12px;
  color: var(--text);
  opacity: 0.9;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 6px 0; }
.footer-col a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.45;
}
.footer-col a:hover { color: var(--claw-purple); }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; text-align: center; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ─── Shortcuts section ──────────────────────────────────────────────────── */
.shortcuts-section { padding: 24px 24px 72px; text-align: center; }
.section-lede {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.8;
}
.section-foot {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 28px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  opacity: .85;
}

/* ─── Standalone capabilities section ────────────────────────────────────── */
.standalone-section { padding: 88px 24px; background: var(--bg-deep); text-align: center; }
.standalone-section h2 { margin-bottom: 18px; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.cap-col {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: left;
}
.cap-col h3 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--claw-purple);
  margin-bottom: 18px;
}
.cap-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cap-list li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}
.cap-tick { color: var(--green);  font-family: var(--font-title); font-weight: 700; flex-shrink: 0; }
.cap-soon { color: var(--muted);  font-family: var(--font-title); font-weight: 700; flex-shrink: 0; }
.cap-list-soon li { color: var(--muted); }

/* ─── TestFlight modal ───────────────────────────────────────────────────── */
.tf-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.tf-modal[hidden] { display: none; }
.tf-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,8,16,.78);
  backdrop-filter: blur(6px) saturate(1.2);
}
.tf-card {
  position: relative; z-index: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 26px;
  max-width: 460px; width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.tf-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: var(--muted); font-size: 1.7rem;
  cursor: pointer; line-height: 1;
  font-family: var(--font-title);
}
.tf-close:hover { color: var(--text); }
.tf-title {
  font-family: var(--font-title);
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.tf-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.7;
}
.tf-form:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
.tf-field {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-title);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tf-field em {
  font-style: normal;
  color: var(--muted);
  opacity: .65;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.tf-field input, .tf-field textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  letter-spacing: normal;
  text-transform: none;
}
.tf-field input::placeholder, .tf-field textarea::placeholder {
  color: var(--muted);
  opacity: .55;
}
.tf-field input:focus, .tf-field textarea:focus {
  border-color: var(--claw-purple);
}
.tf-submit { width: 100%; justify-content: center; margin-top: 6px; }
.tf-submit[disabled] { opacity: .5; cursor: not-allowed; }
.tf-status {
  font-family: var(--font-body);
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-top: 4px;
}
.tf-status.ok  { color: var(--green); }
.tf-status.err { color: var(--red); }

/* Post-submit success panel: shown in place of the form once the user has
   sent their email. Gives them the direct TestFlight join link right away
   instead of waiting for an invite email. The `:not([hidden])` guard makes
   sure `display: flex` doesn't beat the browser's `[hidden] { display: none }`
   on tie — without it, the panel shows on initial modal open. */
.tf-success:not([hidden]) { text-align: center; display: flex; flex-direction: column; gap: 14px; }
.tf-success-headline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 6px 0 0;
  color: var(--green);
}
.tf-success-sub { font-family: var(--font-body); font-size: 0.95rem; margin: 0; }
.tf-success-fine {
  font-family: var(--font-body);
  font-size: 0.78rem;
  opacity: 0.7;
  margin: 0;
}
.tf-install { width: 100%; justify-content: center; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  .hero-cta { flex-direction: column; }
  .btn-lg { justify-content: center; }

  /* On narrow screens flex-wrap creates an empty second row for .demo-chat,
     causing a large vertical gap. Hide chat and tighten stage spacing. */
  .demo-chat { display: none; }
  .demo-stage { gap: 0; margin-bottom: 24px; }
  .watch-mockup { margin-bottom: 0; }

  .tf-card { padding: 28px 22px 22px; }
}
