/* ---------- Tokens ---------- */
:root {
  --bg: #0d0c0b;
  --bg-alt: #141310;
  --surface: #1a1815;
  --surface-2: #211f1a;
  --border: #322e27;
  --text: #f3efe8;
  --text-dim: #b8b0a3;
  --text-faint: #837b6f;
  --amber: #e8a33d;
  --amber-soft: #f4c98a;
  --teal: #4fc4b0;
  --rose: #e2724f;
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  --radius: 18px;
  --radius-sm: 10px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }
.section-sub {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* subtle grain overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #221a0c;
  box-shadow: 0 8px 24px -8px rgba(232,163,61,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(232,163,61,0.65); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-soft); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(13,12,11,0.75);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--amber-soft), var(--amber));
  color: #221a0c;
  font-family: 'Space Grotesk', serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.brand-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.08rem; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.92rem; color: var(--text-dim); transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--amber); color: var(--amber-soft) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(232,163,61,0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(79,196,176,0.10), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  margin-bottom: 0.4em;
}
.hero-sub { font-size: 1.1rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
.hero-trio { display: flex; gap: 26px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-faint); }
.hero-trio div { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-a { background: var(--amber); }
.dot-b { background: var(--teal); }
.dot-c { background: var(--rose); }

/* phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 300px;
  border-radius: 34px;
  background: linear-gradient(160deg, #232019, #17150f);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px;
  position: relative;
}
.phone-notch {
  width: 90px; height: 18px;
  background: #0d0c0b;
  border-radius: 12px;
  margin: 0 auto 10px;
}
.phone-screen {
  background: var(--bg-alt);
  border-radius: 22px;
  padding: 16px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.app-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem; }
.app-live { font-size: 0.72rem; color: var(--teal); }

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.app-card p { margin: 0; color: var(--text); font-size: 0.85rem; line-height: 1.4; }
.app-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.app-time { font-size: 0.68rem; color: var(--text-faint); }

.pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
}
.pill-a { background: rgba(232,163,61,0.15); color: var(--amber-soft); }
.pill-b { background: rgba(79,196,176,0.15); color: var(--teal); }
.pill-c { background: rgba(226,114,79,0.15); color: #f0a488; }
.pill-warn { background: rgba(226,114,79,0.22); color: #ffb499; }

.app-card-alert { border-color: rgba(226,114,79,0.4); }
.app-actions { display: flex; gap: 8px; margin-top: 10px; }
.app-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.app-btn-solid { background: var(--amber); color: #221a0c; border-color: var(--amber); }
.app-btn-outline:hover { border-color: var(--text-faint); }

/* ---------- Problem ---------- */
.problem { padding: 90px 0; border-top: 1px solid var(--border); }
.problem h2 { text-align: center; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 680px; margin: 0 auto 48px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.problem-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.problem-item p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.problem-x { color: var(--rose); font-weight: 700; flex-shrink: 0; }
.problem-check { color: var(--teal); font-weight: 700; flex-shrink: 0; }
.problem-item-answer {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(232,163,61,0.08), rgba(79,196,176,0.06));
  border-color: rgba(232,163,61,0.35);
}
.problem-item-answer p { color: var(--text); font-size: 1.02rem; }

/* ---------- Product pillars ---------- */
.product { padding: 100px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--amber); }
.pillar-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar-num-a { background: rgba(232,163,61,0.15); color: var(--amber-soft); }
.pillar-num-b { background: rgba(79,196,176,0.15); color: var(--teal); }
.pillar-num-c { background: rgba(226,114,79,0.15); color: #f0a488; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 2px; }
.pillar-tag { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 14px; }
.pillar ul { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.pillar li {
  font-size: 0.87rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Control ---------- */
.control { padding: 100px 0; }
.control-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.control h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.control-features { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.control-feature { display: flex; gap: 16px; align-items: flex-start; }
.cf-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.control-feature h4 { font-size: 1rem; margin-bottom: 4px; }
.control-feature p { font-size: 0.92rem; margin: 0; }

.control-visual { display: flex; justify-content: center; }
.override-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 360px;
  box-shadow: var(--shadow);
}
.override-head { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-faint); margin-bottom: 14px; }
.override-badge { color: var(--amber-soft); font-weight: 600; }
.override-text { color: var(--text); font-size: 0.98rem; font-style: italic; line-height: 1.5; }
.override-row { display: flex; gap: 10px; margin: 18px 0 16px; flex-wrap: wrap; }
.override-footnote { font-size: 0.78rem; color: var(--text-faint); margin: 0; }

/* ---------- Offers ---------- */
.offers { padding: 100px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.offers h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }

.offers-demo {
  margin: 56px auto 40px;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}
.offer-input, .offer-output {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.offer-input-label, .offer-output-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.offer-input p { color: var(--text); font-style: italic; font-size: 1rem; margin: 0; }
.offer-arrow { font-size: 1.4rem; color: var(--amber); text-align: center; }
.offer-rule { display: flex; flex-direction: column; gap: 10px; }
.offer-rule-row { font-size: 0.9rem; color: var(--text-dim); }
.offer-rule-row em { color: var(--text-faint); font-style: normal; margin-right: 6px; }
.live-tag { color: var(--teal); font-weight: 700; }

.offer-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.offer-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- How it works ---------- */
.how { padding: 100px 0; }
.how h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  border-left: 2px solid var(--border);
  padding-left: 20px;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
}
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; }

/* ---------- Why ---------- */
.why { padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-inner { max-width: 780px; text-align: center; margin: 0 auto; }
.why h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.why p { font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact { padding: 110px 0; }
.contact-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.contact p { font-size: 1.05rem; }
.contact-alt { margin-top: 18px; font-size: 0.9rem; color: var(--text-faint); }
.contact-alt a { color: var(--amber-soft); }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-tag { font-size: 0.88rem; color: var(--text-faint); margin: 0; }
.footer-copy { font-size: 0.8rem; color: var(--text-faint); margin: 0; opacity: 0.7; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .phone { width: 260px; }
  .control-inner { grid-template-columns: 1fr; }
  .control-visual { order: -1; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-item-answer { grid-column: span 2; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offers-demo { grid-template-columns: 1fr; }
  .offer-arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 20px 28px 28px; gap: 18px; transform: translateY(-130%); transition: transform 0.25s ease; }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item-answer { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
