:root {
  --bg: #0c0e0d;
  --bg-alt: #131614;
  --surface: #181b19;
  --border: #262b27;
  --text: #f3f3f0;
  --text-dim: #9a9f9b;
  --accent: #ffb648;
  --accent-dim: #3a2d18;
  --green: #5fe39a;
  --radius: 14px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }

a { color: var(--accent); text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #1a1200;
}
.btn--primary:hover {
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.btn--small {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

.btn--large {
  padding: 0.95rem 2.1rem;
  font-size: 1.05rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 13, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 1.5rem 6rem;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
}

.hero__sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin: 1.3rem 0 2rem;
  max-width: 36rem;
}

.hero__actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }

.hero__note { color: var(--text-dim); font-size: 0.9rem; margin: 0; }

/* ---------- Recipe card visual ---------- */
.hero__visual { display: flex; justify-content: center; }

.recipe-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}

.recipe-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.recipe-card__mic {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}

.recipe-card__title { display: flex; flex-direction: column; }
.recipe-card__title strong { font-size: 1.02rem; }
.recipe-card__title span { color: var(--text-dim); font-size: 0.85rem; }

.recipe-card__steps {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.recipe-card__steps li {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
}

.recipe-card__steps li.done {
  color: var(--text-dim);
  text-decoration: line-through;
  opacity: 0.6;
}

.recipe-card__steps li.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
  font-weight: 600;
}

.recipe-card__bubble {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

/* ---------- How it works ---------- */
.how {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.how h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 3rem; }

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.how__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: left;
}

.how__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1200;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.how__step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.how__step p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ---------- Demo video ---------- */
.demo {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.demo__copy .eyebrow { margin-bottom: 0.9rem; }
.demo__copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.demo__copy p { color: var(--text-dim); margin: 0; font-size: 1.08rem; max-width: 34rem; }

.demo__device { display: flex; justify-content: center; }

/* iPhone frame */
.phone {
  position: relative;
  width: 300px;
  max-width: 78vw;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border: 2px solid #2a2f2c;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #000 inset,
    0 30px 70px -20px rgba(0, 0, 0, 0.75);
}

/* Side buttons */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: #1c211e;
}
.phone::before { top: 120px; height: 34px; }             /* volume up */
.phone::after  { top: 172px; height: 34px; }             /* volume down */

/* Dynamic island */
.phone__island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
  background: #000;
  display: block;
}

/* ---------- Features ---------- */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

.features h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 3rem; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature__icon { font-size: 1.6rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.feature p { color: var(--text-dim); margin: 0; font-size: 0.92rem; }

/* ---------- Spotlight sections ---------- */
.spotlight {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spotlight--alt { background: var(--bg); }

.spotlight__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.spotlight__copy .eyebrow { margin-bottom: 0.9rem; }
.spotlight__copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.spotlight__copy p { color: var(--text-dim); margin: 0; font-size: 1.02rem; max-width: 34rem; }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.chips li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ---------- Signup ---------- */
.signup {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  text-align: center;
}

.signup h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.7rem; }
.signup > .signup__inner > p { color: var(--text-dim); margin-bottom: 2.2rem; }

.signup__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }

.form-row label { font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }

.form-row input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-row input:focus { border-color: var(--accent); }

.signup__form .btn { margin-top: 0.3rem; width: 100%; }

.form-note { color: var(--text-dim); font-size: 0.85rem; text-align: center; margin: 0.2rem 0 0; }

.form-error {
  color: #ff6b6b;
  font-size: 0.88rem;
  text-align: center;
  margin: 0;
  min-height: 1.2em;
}

.signup__success {
  background: var(--surface);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  text-align: center;
}

.signup__success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #04140c;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.signup__success p { color: var(--text); font-size: 1.05rem; margin: 0; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.footer p { margin: 0.3rem 0; }

/* ---------- Scroll fade-in ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .how__steps { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .demo__inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .demo__copy p { margin: 0 auto; }
}

@media (max-width: 560px) {
  .hero { padding: 3rem 1.2rem 4rem; }
  .features__grid { grid-template-columns: 1fr; }
  .hero__actions { align-items: stretch; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .signup__form { padding: 1.6rem; }
  .logo { font-size: 0.95rem; }
}
