:root {
  --bg: #fffdf7;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #767676;
  --accent: #ffb800;
  --accent-deep: #ff8a00;
  --accent-ink: #1a1a1a;
  --blue: #2f6bff;
  --card: #ffffff;
  --line: #ececec;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(0,0,0,.06);
  --shadow-lift: 0 18px 44px rgba(0,0,0,.12);
  --max: 1120px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.9,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Warm ambient glow behind the page */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(255,184,0,.14), transparent 65%),
    radial-gradient(500px 380px at 0% 40%, rgba(255,138,0,.07), transparent 65%);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Gradient keyword */
.grad {
  background: linear-gradient(92deg, var(--accent-deep), var(--accent) 60%, var(--accent-deep));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,247,.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: #fff !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 700 !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .3px;
  box-shadow: 0 6px 18px rgba(255,184,0,.35);
}
.hero h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  margin: 20px 0 16px;
  letter-spacing: -.025em;
  font-weight: 800;
}
.hero p.lede {
  font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 560px;
}
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); font-weight: 500; }

/* Hero entrance animation */
.anim { opacity: 0; transform: translateY(22px); animation: riseIn .8s var(--ease) forwards; }
.anim-1 { animation-delay: .05s; }
.anim-2 { animation-delay: .16s; }
.anim-3 { animation-delay: .3s; }
.anim-4 { animation-delay: .45s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 600;
  border: 1px solid var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store-btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.store-btn:hover::after { left: 130%; }
.store-btn .small { font-size: 11px; opacity: .8; display: block; line-height: 1; }
.store-btn .big { font-size: 16px; font-weight: 700; }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.store-btn.light:hover { box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.store-btn.disabled {
  background: #efefef; color: var(--muted); border-color: var(--line); cursor: not-allowed;
}
.store-btn.disabled:hover { transform: none; box-shadow: none; }

/* Hero art: floating phone + morphing blob + chips */
.hero-art {
  position: relative; min-height: 540px;
  display: flex; align-items: center; justify-content: center;
}
.phone-frame {
  position: relative; z-index: 2;
  border-radius: 40px;
  padding: 10px;
  background: #111;
  box-shadow: 0 40px 80px rgba(0,0,0,.25), inset 0 0 0 2px #2c2c2c;
  animation: floatY 5.5s ease-in-out infinite;
  will-change: transform;
  transition: transform .15s ease-out;
  max-width: 320px;
}
.phone-frame .phone { display: block; width: 100%; border-radius: 32px; }
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.blob {
  position: absolute; inset: 24px; z-index: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 50% 60% 40% 50% / 50% 50% 60% 50%;
  filter: blur(4px);
  opacity: .5;
  animation: blobMorph 12s ease-in-out infinite alternate;
}
@keyframes blobMorph {
  0%   { border-radius: 50% 60% 40% 50% / 50% 50% 60% 50%; rotate: 0deg; }
  50%  { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; rotate: 4deg; }
  100% { border-radius: 45% 55% 50% 60% / 55% 45% 55% 45%; rotate: -4deg; }
}
.chip {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-lift);
  animation: floatY 6s ease-in-out infinite;
}
.chip-1 { top: 52%; left: 0; animation-delay: .8s; }
.chip-2 { bottom: 18%; right: 0%; animation-delay: 1.6s; }
.chip-3 { top: 40%; right: 4%; animation-delay: 2.4s; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; background: #fff;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; gap: 28px; align-items: center;
  animation: marquee 32s linear infinite;
  font-weight: 700; color: var(--ink-soft); font-size: 15px;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections & scroll reveal ---------- */
.section { padding: 88px 0; }
.section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 12px; letter-spacing: -.02em; font-weight: 800;
}
.section .sub { color: var(--ink-soft); max-width: 640px; margin: 0 0 44px; font-size: 17px; }

/* Hidden state only applies when JS is running (html.js set by main.js) */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }

/* ---------- Problem agitation ---------- */
.problem { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.problem::before {
  content: "";
  position: absolute; top: -180px; right: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,184,0,.14), transparent 70%);
  pointer-events: none;
}
.problem h2 { color: #fff; }
.problem .sub { color: #cfcfcf; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.pain {
  border: 1px solid #333; border-radius: var(--radius);
  padding: 26px; background: #202020;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.pain:hover { transform: translateY(-4px); border-color: var(--accent); }
.pain .mark { font-size: 26px; margin-bottom: 12px; }
.pain h3 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.pain p { margin: 0; color: #bdbdbd; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: stretch;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.feature .copy { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.feature .copy h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; }
.feature .copy p { margin: 0; color: var(--ink-soft); }
.feature img {
  width: 44%; object-fit: cover; object-position: top; align-self: stretch;
  transition: transform .6s var(--ease);
}
.feature:hover img { transform: scale(1.04); }

/* ---------- How it works ---------- */
.how-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); font-weight: 800; margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(255,184,0,.4);
}
.js .step .num {
  transform: scale(.5); opacity: 0;
  transition: transform .5s var(--ease) .3s, opacity .5s var(--ease) .3s;
}
.js .step.in-view .num { transform: scale(1); opacity: 1; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ---------- Founder / About ---------- */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.founder img.face { width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.founder .say p { color: var(--ink-soft); margin: 0 0 14px; max-width: 620px; }
.founder .sign { font-weight: 800; color: var(--ink); margin-top: 6px; }

/* ---------- FAQ (animated accordion) ---------- */
.faq-list { max-width: 760px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  margin-bottom: 12px;
  padding: 0 20px;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--accent); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-weight: 700; font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line);
  font-weight: 700; color: var(--ink-soft);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq-item p {
  margin: 0; padding: 0 0 18px; color: var(--ink-soft);
  animation: faqOpen .35s var(--ease);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Video slot (loom-style demo) ---------- */
.demo-wrap { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.demo-wrap video, .demo-wrap img { display: block; width: 100%; }

/* ---------- CTA strip ---------- */
.cta-strip {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-strip > .cta-glow {
  position: absolute; top: -120px; left: 50%; width: 520px; height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255,184,0,.25), transparent 70%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; font-size: 30px; letter-spacing: -.01em; }
.cta-strip p { margin: 0; color: #cfcfcf; }
.cta-strip > div { position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 28px; margin-bottom: 24px; }
.footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--ink-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Doc pages ---------- */
.doc { padding: 56px 0 80px; max-width: 760px; }
.doc h1 { font-size: 40px; margin: 0 0 8px; letter-spacing: -.02em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { margin-top: 32px; font-size: 22px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc a { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 24px; gap: 24px; }
  /* Copy (headline + CTA) leads on mobile; phone art follows */
  .hero-art { min-height: 420px; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .phone-frame { max-width: 260px; }
  .chip { font-size: 12px; }
  .features { grid-template-columns: 1fr; }
  .feature img { width: 40%; }
  .steps { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder img.face { width: 140px; height: 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.brand-link):not(.nav-cta) { display: none; }
}
@media (max-width: 520px) {
  .feature { flex-direction: column; }
  .feature img { width: 100%; max-height: 260px; }
  .cta-strip { padding: 28px; }
  .chip-3 { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { animation: none; opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .phone-frame, .chip, .blob, .marquee-track, .cta-glow, .grad { animation: none; }
  .step .num { transform: scale(1); opacity: 1; transition: none; }
  * { transition-duration: .01ms !important; }
}
