:root {
  --color-electric-lime: #beff50;
  --color-off-black-ink: #14140f;
  --color-off-white-canvas: #f5f5eb;
  --color-pure-white: #ffffff;
  --color-ash: #d2d2c8;
  --color-graphite: #6e6e64;
  --color-deep-charcoal: #30302a;
  --color-stone: #919183;
  --color-smoke: #b9b9b7;

  --font-otsono: 'OTSono', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-eyebrow: 10px;
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 22px;
  --text-heading: 28px;
  --text-heading-lg: 60px;
  --text-display: 90px;

  --radius-cards: 28px;
  --radius-inner: 18px;
  --radius-pills: 9999px;
  --radius-inputs: 8px;
  --radius-buttons: 28px;

  --page-max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-otsono);
  font-weight: 400;
  color: var(--color-off-black-ink);
  background: var(--color-pure-white);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-otsono);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary {
  background: var(--color-electric-lime);
  color: var(--color-off-black-ink);
  border-radius: var(--radius-buttons);
  padding: 16px 16px 16px 24px;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(190, 255, 80, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-off-black-ink);
  border-radius: var(--radius-pills);
  padding: 12px 16px;
  font-weight: 500;
  font-size: 14px;
}

.btn-underline {
  background: transparent;
  border-bottom: 1px solid var(--color-off-black-ink);
  padding-bottom: 2px;
  font-weight: 500;
  font-size: 16px;
  border-radius: 0;
}

.btn-underline:hover { opacity: 0.6; }

/* ---------- Scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 50;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-electric-lime);
}

/* ---------- Parallax ---------- */

.parallax-wrap {
  will-change: transform;
}

/* ---------- Scroll-reveal motion ---------- */

[data-animate] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

[data-animate="fade-up"] { transform: translateY(32px); }
[data-animate="fade-right"] { transform: translateX(-32px); }
[data-animate="fade-left"] { transform: translateX(32px); }
[data-animate="scale-in"] { transform: scale(0.94); }

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .flow-step { transition: none; }
}

/* ---------- Nav ---------- */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-scrolled {
  background: rgba(245, 245, 235, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-ash);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}

.logo-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo .dot { color: var(--color-electric-lime); }

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-logo-img {
  height: 24px;
}

.footer-logo-img {
  height: 36px;
  margin-bottom: 4px;
}

.logo-sub {
  font-size: 11px;
  color: var(--color-graphite);
  letter-spacing: 0;
}

.logo-sub-link {
  color: var(--color-graphite);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.logo-sub-link:hover {
  color: var(--color-off-black-ink);
  border-color: var(--color-off-black-ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a.btn-ghost { transition: color 0.2s ease, transform 0.2s ease; }
.nav-links a.btn-ghost:hover { color: var(--color-graphite); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
  background: var(--color-off-white-canvas);
  padding: 120px 0 96px;
  overflow-x: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-off-black-ink);
  background: var(--color-electric-lime);
  border-radius: var(--radius-pills);
  padding: 6px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 60px;
  line-height: 1;
  letter-spacing: -1.8px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: var(--text-subheading);
  line-height: 1.4;
  color: var(--color-graphite);
  margin-bottom: 32px;
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-visual {
  background: transparent;
  padding: 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 170%;
  max-width: none;
  height: auto;
}

.qr-card {
  background: var(--color-pure-white);
  border-radius: var(--radius-inner);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.qr-box {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background:
    repeating-conic-gradient(var(--color-off-black-ink) 0% 25%, transparent 0% 50%) 0 0/22px 22px,
    var(--color-pure-white);
  flex-shrink: 0;
}

.qr-meta .qr-label {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-graphite);
  margin-bottom: 6px;
}

.qr-meta .qr-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero-stat {
  background: var(--color-off-black-ink);
  color: var(--color-off-white-canvas);
  border-radius: var(--radius-inner);
  padding: 16px 20px;
  flex: 1;
}

.hero-stat .num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.56px;
}

.hero-stat .label {
  font-size: var(--text-caption);
  color: var(--color-smoke);
  margin-top: 4px;
}

/* ---------- Section shared ---------- */

section { padding: 96px 0; }

.section-label {
  font-size: var(--text-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-graphite);
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--text-heading-lg);
  line-height: 1;
  letter-spacing: -1.8px;
  font-weight: 500;
  max-width: 20ch;
  margin-bottom: 20px;
}

.section-sub {
  font-size: var(--text-subheading);
  color: var(--color-graphite);
  max-width: 56ch;
  line-height: 1.4;
}

.section-head {
  margin-bottom: 64px;
}

/* ---------- How it works ---------- */

.how {
  background: var(--color-pure-white);
}

.how-head {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.how-head-copy {
  margin-bottom: 0;
}

.how-illustration {
  width: 100%;
  height: auto;
}

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.track-card {
  background: var(--color-off-white-canvas);
  border-radius: var(--radius-cards);
  padding: 40px;
  transition: transform 0.3s ease;
}

.track-card:hover { transform: translateY(-6px); }

.track-card.dark {
  background: var(--color-deep-charcoal);
  color: var(--color-off-white-canvas);
}

.track-card .track-eyebrow {
  font-size: var(--text-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-graphite);
  margin-bottom: 12px;
}

.track-card.dark .track-eyebrow { color: var(--color-smoke); }

.track-card h3 {
  font-size: var(--text-heading);
  font-weight: 500;
  letter-spacing: -0.56px;
  margin-bottom: 24px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--color-electric-lime);
  color: var(--color-off-black-ink);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text .step-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.step-text .step-desc {
  font-size: var(--text-body-sm);
  color: var(--color-graphite);
}

.track-card.dark .step-text .step-desc { color: var(--color-smoke); }

/* ---------- Device flow demo ---------- */

.flow {
  background: var(--color-pure-white);
}

.flow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.flow-copy { margin-bottom: 0; }

.flow-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone {
  position: relative;
  width: 300px;
  height: 560px;
  background: var(--color-off-black-ink);
  border-radius: 40px;
  padding: 14px;
  box-sizing: border-box;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: var(--color-off-black-ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-off-white-canvas);
  border-radius: 28px;
  overflow: hidden;
}

.flow-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 28px;
  text-align: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.flow-step.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.flow-icon-wrap {
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  background: var(--color-pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon-wrap-lime { background: var(--color-electric-lime); }

.flow-icon { width: 40px; height: 40px; }

.flow-title {
  font-size: var(--text-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-off-black-ink);
}

.flow-desc {
  font-size: var(--text-body-sm);
  color: var(--color-graphite);
  line-height: 1.5;
  max-width: 30ch;
}

.flow-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.flow-chip {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-off-black-ink);
  background: var(--color-pure-white);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-pills);
  padding: 6px 14px;
}

.flow-dots {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--color-ash);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
}

.flow-dot.is-active {
  background: var(--color-electric-lime);
  width: 28px;
}

/* ---------- Feature grid ---------- */

.features {
  background: var(--color-off-white-canvas);
}

.dashboard-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-top: 32px;
}

.dashboard-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-body-sm);
  color: var(--color-graphite);
  line-height: 1.5;
}

.dashboard-points .point-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--color-off-black-ink);
  line-height: 1.5;
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.dashboard-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-illustration {
  width: 100%;
  height: auto;
}

/* ---------- Chat card ---------- */

.chat-card {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-ash);
  margin-bottom: 20px;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--color-electric-lime);
  color: var(--color-off-black-ink);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-title {
  font-weight: 500;
  font-size: var(--text-body);
  letter-spacing: -0.02em;
}

.chat-sub {
  font-size: var(--text-caption);
  color: var(--color-graphite);
  margin-top: 2px;
}

.chat-badge {
  font-size: var(--text-caption);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-off-black-ink);
  background: var(--color-electric-lime);
  border-radius: var(--radius-pills);
  padding: 4px 12px;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 78%;
}

.msg-row.them { align-items: flex-start; align-self: flex-start; }
.msg-row.me { align-items: flex-end; align-self: flex-end; }

.msg-time {
  font-size: 11px;
  color: var(--color-graphite);
  margin-bottom: 4px;
  padding: 0 4px;
}

.bubble {
  padding: 12px 16px;
  font-size: var(--text-body-sm);
  line-height: 1.4;
  word-break: break-word;
}

.bubble-them {
  background: var(--color-off-white-canvas);
  color: var(--color-off-black-ink);
  border-radius: 20px 20px 20px 4px;
}

.bubble-me {
  background: var(--color-electric-lime);
  color: var(--color-off-black-ink);
  border-radius: 20px 20px 4px 20px;
}

.bubble.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
}

.typing-row { margin-top: -4px; }

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--color-graphite);
  display: inline-block;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-ash);
}

.chat-input-placeholder {
  font-size: var(--text-body-sm);
  color: var(--color-graphite);
}

.chat-call-btn {
  padding: 10px 20px;
  font-size: var(--text-body-sm);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .typing-dot { animation: none; opacity: 0.6; }
}

/* ---------- Privacy / lime accent band ---------- */

.privacy-band {
  background: var(--color-electric-lime);
  padding: 80px 0;
}

.privacy-inner {
  text-align: center;
}

.privacy-inner .eyebrow {
  background: var(--color-off-black-ink);
  color: var(--color-electric-lime);
}

.privacy-band h2 {
  font-size: 80px;
  line-height: 0.9;
  letter-spacing: -2.7px;
  font-weight: 500;
  margin: 0 auto 32px;
  max-width: 18ch;
}

.privacy-band .btn-underline {
  margin: 0 auto;
  display: table;
}

/* ---------- How it's working ---------- */

.working {
  background: var(--color-pure-white);
  padding: 64px 0;
}

.working-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.working-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.working-illustration {
  width: 80%;
  height: auto;
}

.working-points {
  margin-top: 24px;
  grid-template-columns: 1fr;
}

/* ---------- Pricing-ish CTA / final CTA ---------- */

.final-cta {
  background: var(--color-pure-white);
  text-align: center;
}

.final-cta .section-title {
  margin: 0 auto 32px;
  max-width: 18ch;
}

.final-cta .section-sub {
  margin: 0 auto 40px;
}

.final-cta-ctas {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Pre-register form ---------- */

.preregister-form {
  max-width: 560px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preregister-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.preregister-input {
  background: var(--color-pure-white);
  color: var(--color-off-black-ink);
  border: 1px solid var(--color-ash);
  border-radius: var(--radius-inputs);
  padding: 14px 16px;
  font-family: var(--font-otsono);
  font-size: var(--text-body);
  width: 100%;
  transition: border-color 0.2s ease;
}

.preregister-input::placeholder { color: var(--color-stone); }

.preregister-input:focus {
  outline: none;
  border-color: var(--color-off-black-ink);
}

.preregister-submit {
  width: 100%;
  margin-top: 4px;
}

.preregister-note {
  font-size: var(--text-caption);
  color: var(--color-graphite);
  text-align: center;
}

.preregister-note.is-success {
  color: var(--color-off-black-ink);
  font-weight: 500;
}

/* ---------- Footer ---------- */

footer {
  background: var(--color-off-black-ink);
  color: var(--color-off-white-canvas);
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.footer-brand .logo { color: var(--color-off-white-canvas); margin-bottom: 16px; }

.footer-brand p {
  color: var(--color-smoke);
  font-size: var(--text-body-sm);
  max-width: 32ch;
}

.footer-brand-sub {
  font-size: var(--text-caption);
  margin-top: 12px;
}

.footer-brand-link {
  color: var(--color-smoke);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-brand-link:hover {
  color: var(--color-electric-lime);
  border-color: var(--color-electric-lime);
}

.footer-col h5 {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--color-ash);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: var(--text-body-sm);
  color: var(--color-off-white-canvas);
}

.footer-col a:hover { color: var(--color-electric-lime); }

.footer-bottom {
  border-top: 1px solid var(--color-deep-charcoal);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: var(--text-caption);
  color: var(--color-stone);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .how-head { grid-template-columns: 1fr; }
  .how-illustration { max-width: 320px; margin: 0 auto; }
  .tracks { grid-template-columns: 1fr; }
  .dashboard-split { grid-template-columns: 1fr; }
  .working-split { grid-template-columns: 1fr; }
  .flow-split { grid-template-columns: 1fr; text-align: center; }
  .flow-demo { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 44px; }
  .privacy-band h2 { font-size: 48px; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .dashboard-points { grid-template-columns: 1fr; }
  .preregister-row { grid-template-columns: 1fr; }
  .chat-footer { flex-direction: column; align-items: stretch; }
  .chat-call-btn { justify-content: center; }
  .phone { width: 260px; height: 480px; }
  .nav-links .btn-ghost { display: none; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 40px; }
}
