:root {
  --primary: #403ab8;
  --primary-dark: #2f2a9e;
  --primary-soft: #e2dfff;
  --teal: #00687a;
  --teal-soft: #e0f5fa;
  --emerald: #009668;
  --ink: #17171f;
  --ink-soft: #4c4a5e;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #eef0f7;
  --border: #d9d7e6;
  --dark: #14132e;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(23, 23, 47, 0.05), 0 16px 40px -16px rgba(64, 58, 184, 0.18);
}

* { 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(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px rgba(23, 23, 47, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-size: 1.25rem; font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.site-nav a:hover { color: var(--primary); }
.site-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--primary-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 6rem;
  background:
    radial-gradient(720px 380px at 85% -60px, rgba(64, 58, 184, 0.14), transparent 65%),
    radial-gradient(560px 320px at -80px 110%, rgba(0, 104, 122, 0.12), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.eyebrow-light { background: rgba(255, 255, 255, 0.14); color: #c0beff; }

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  margin: 1.4rem 0 2rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--primary-soft); }

.hero-points { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.hero-points li { position: relative; padding-left: 1.7rem; color: var(--ink-soft); font-weight: 500; }
.hero-points li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1.15rem; height: 1.15rem;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800;
  color: var(--emerald);
  background: #e6f7ef;
  border-radius: 50%;
}

/* Hero visual */
.hero-visual { position: relative; }
.kiosk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.kiosk-head { display: flex; align-items: center; gap: 6px; margin-bottom: 1.1rem; }
.kiosk-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-alt); border: 1px solid var(--border); }
.kiosk-title { margin-left: 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-soft); }
.scan-frame {
  position: relative;
  height: 260px;
  border-radius: 14px;
  background: linear-gradient(160deg, #23223f, #14132e);
  display: grid; place-items: center;
  overflow: hidden;
}
.scan-face { width: 92px; height: 92px; color: #9ce8fd; opacity: 0.9; }
.scan-corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--teal); }
.scan-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.scan-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.scan-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.scan-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan-line {
  position: absolute; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, #4cd7f6, transparent);
  animation: sweep 2.8s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { top: 18%; opacity: 0.7; }
  50% { top: 78%; opacity: 1; }
}
.scan-badge {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  color: #a7f3cf; background: rgba(0, 90, 60, 0.55);
  border: 1px solid rgba(167, 243, 207, 0.35);
  padding: 0.3rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.kiosk-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.1rem;
}
.kiosk-name { margin: 0; font-weight: 700; }
.kiosk-meta { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }
.kiosk-status {
  font-size: 0.8rem; font-weight: 700; color: var(--emerald);
  background: #e6f7ef; padding: 0.4rem 0.75rem; border-radius: 999px; white-space: nowrap;
}
.stat-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.75rem 1rem;
  display: flex; flex-direction: column;
}
.stat-chip strong { font-size: 0.98rem; }
.stat-chip span { font-size: 0.78rem; color: var(--ink-soft); }
.chip-a { top: -26px; right: 18px; }
.chip-b { bottom: -24px; left: -14px; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; }
.section-head .eyebrow { margin-bottom: 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: 0 1px 2px rgba(23, 23, 47, 0.04);
}
.step-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--primary);
  opacity: 0.9;
}
.step-card h3 { font-size: 1.15rem; margin: 0.8rem 0 0.6rem; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
.feature-card h3::before {
  content: "";
  display: block;
  width: 34px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  margin-bottom: 1rem;
}
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Demo band ---------- */
.demo-band {
  background: linear-gradient(140deg, #23223f 0%, #14132e 55%, #0d2b33 130%);
  color: #fff;
  padding: 5rem 0;
}
.demo-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.demo-inner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.demo-inner p { color: #c9c7e8; max-width: 36rem; margin: 1rem 0 0; }
.demo-band .btn { flex-shrink: 0; }

/* ---------- Tech ---------- */
.tech-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.tech-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.tech-list strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; }
.tech-list span { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #d8d6f0; padding: 3.5rem 0 2.5rem; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap;
}
.footer-brand .brand-name { color: #fff; font-size: 1.35rem; }
.footer-brand p { margin: 0.5rem 0 0; color: #a5a3c7; max-width: 18rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: #d8d6f0; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-credit { margin: 0; color: #a5a3c7; font-size: 0.92rem; line-height: 1.7; }
.footer-credit strong { color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scan-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 4rem; }
  .steps, .features, .tech-list { grid-template-columns: 1fr 1fr; }
  .chip-b { left: 6px; }
}
@media (max-width: 640px) {
  .steps, .features, .tech-list { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1.5rem 1.2rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 0; }
  .site-nav .nav-cta { text-align: center; margin-top: 0.5rem; }
  .hero { padding: 3.5rem 0 4.5rem; }
  .stat-chip { position: static; margin-top: 1rem; }
  .hero-visual { display: flex; flex-direction: column; }
}
