/* Tease Zone — vibrant, professional landing system. */

:root {
  color-scheme: light;

  /* base */
  --bg: #ffffff;
  --bg-soft: #f7f8ff;
  --ink: #0e1124;
  --ink-2: #3a3f5c;
  --muted: #6b7090;
  --faint: #9aa0bf;
  --line: #eceaf6;
  --line-strong: #ddd9ee;

  /* brand color system */
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --fuchsia: #d946ef;
  --pink: #fb5b8f;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --lime: #a3e635;

  --accent: #6d3cf5;
  --accent-ink: #5a2fe0;
  --accent-soft: #f1ecff;

  --grad-brand: linear-gradient(110deg, #6366f1 0%, #8b5cf6 38%, #d946ef 72%, #fb5b8f 100%);
  --grad-brand-soft: linear-gradient(110deg, #eef0ff, #f6ecff 55%, #ffeef7);
  --grad-cta: radial-gradient(120% 160% at 85% -30%, rgba(217, 70, 239, 0.5), transparent 55%),
    radial-gradient(120% 160% at 0% 120%, rgba(34, 211, 238, 0.4), transparent 50%),
    linear-gradient(120deg, #1a1340, #2a1a63 55%, #3a1b6e);

  --dark: #0c0a1f;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(20, 16, 50, 0.06), 0 2px 6px rgba(20, 16, 50, 0.06);
  --shadow-md: 0 12px 30px rgba(40, 24, 90, 0.1);
  --shadow-lg: 0 30px 70px rgba(40, 24, 110, 0.18);
  --shadow-glow: 0 20px 60px rgba(109, 60, 245, 0.28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, p, figure {
  margin: 0;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(139, 92, 246, 0.22);
}

/* ---------- Layout primitives ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  padding-block: clamp(68px, 9vw, 120px);
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #e4dbff;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow .pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fuchsia);
}

.eyebrow .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--fuchsia);
  opacity: 0.45;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.125rem;
}

.section-head.center p {
  margin-inline: auto;
  max-width: 560px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding-inline: 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,
    border-color 160ms ease, color 160ms ease;
}

.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: var(--shadow-glow);
  animation: shift 8s ease infinite;
}

@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(109, 60, 245, 0.4);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--violet);
  color: var(--accent-ink);
}

.btn-on-dark {
  background: #fff;
  color: var(--dark);
}

.btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,0.3); }

.btn-outline-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-dark:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(40, 24, 90, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(109, 60, 245, 0.32));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}

.nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 140ms ease;
}

.nav a:hover { color: var(--accent-ink); }

.header-cta { display: flex; align-items: center; gap: 18px; }

.header-cta .link {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
}

.header-cta .link:hover { color: var(--ink); }

.header-cta .btn { height: 42px; padding-inline: 20px; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 100px);
  background: linear-gradient(180deg, #fbfaff, var(--bg) 70%);
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 16s ease-in-out infinite;
}

.blob-1 { width: 460px; height: 460px; top: -160px; right: -80px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%); }
.blob-2 { width: 420px; height: 420px; top: 40px; left: -120px;
  background: radial-gradient(circle, #22d3ee, transparent 70%); animation-delay: -4s; }
.blob-3 { width: 380px; height: 380px; bottom: -180px; left: 40%;
  background: radial-gradient(circle, #fb5b8f, transparent 70%); animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(28px, -34px) scale(1.07); }
  66% { transform: translate(-22px, 20px) scale(0.96); }
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(44px, 5vw, 76px);
}

.hero h1 {
  margin-top: 24px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero .lead {
  margin-top: 24px;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat {
  min-width: 0;
  padding-left: clamp(16px, 2.2vw, 26px);
  border-left: 1px solid var(--line);
}

.stat .num { white-space: nowrap; }

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat .num {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat .lbl {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}

/* ---------- Product visual ---------- */

.hero-visual { position: relative; }

.panel {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfbff, #f7f6ff);
}

.panel-bar .label { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }

.panel-bar .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  color: #0c8f7e;
  font-size: 0.72rem;
  font-weight: 700;
}

.panel-bar .tag .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #14b8a6;
}

.panel-body { padding: 20px; }

.panel-chart { width: 100%; height: auto; border-radius: 12px; }

.panel-rows { display: grid; gap: 4px; margin-top: 16px; }

.panel-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  transition: background 140ms ease;
}

.panel-row.is-lead {
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.1), rgba(217, 70, 239, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.panel-row .name {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 550; color: var(--ink);
}

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.panel-row .delta {
  font-family: var(--mono);
  font-size: 0.8125rem; font-weight: 600; color: var(--muted);
}

.panel-row.is-lead .delta { color: var(--fuchsia); }

.floaty {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: bob 5s ease-in-out infinite;
}

.floaty .ic {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px; color: #fff;
}

.floaty .t1 { font-size: 0.72rem; color: var(--muted); }
.floaty .t2 { font-size: 0.9rem; font-weight: 650; letter-spacing: -0.01em; }

.floaty-a { top: -22px; left: -26px; }
.floaty-a .ic { background: linear-gradient(135deg, #22d3ee, #6366f1); }
.floaty-b { bottom: -22px; right: -22px; animation-delay: -2.5s; }
.floaty-b .ic { background: linear-gradient(135deg, #fb5b8f, #d946ef); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Marquee ---------- */

.marquee-wrap {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 28px;
}

.marquee-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 20px;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: scroll-x 28s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee-track .badge {
  width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-items: center; color: #fff; font-size: 0.7rem; font-weight: 700;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 28px)); }
}

/* ---------- Bento feature grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.feature {
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(139, 92, 246, 0.08), transparent 55%),
    #fff;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.card-icon svg { width: 23px; height: 23px; }

.ic-indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.ic-cyan { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.ic-pink { background: linear-gradient(135deg, #fb5b8f, #d946ef); }
.ic-amber { background: linear-gradient(135deg, #fbbf24, #fb7185); }
.ic-teal { background: linear-gradient(135deg, #2dd4bf, #22d3ee); }

.card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card.feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.card p {
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.96875rem;
}

.card.feature p { font-size: 1.0625rem; }

.feature-list { margin-top: 22px; display: grid; gap: 12px; }

.feature-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  list-style: none;
  font-size: 0.96875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.feature-list .check {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: var(--accent-soft); color: var(--accent);
}

.feature-list .check svg { width: 13px; height: 13px; }

.feature-art {
  border-radius: var(--radius);
  background: var(--grad-cta);
  min-height: 230px;
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

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

.how { background: var(--bg-soft); border-block: 1px solid var(--line); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.step .num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  counter-increment: step;
}

.step .num::before { content: counter(step); }

.step h3 {
  margin-top: 20px;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.step p { margin-top: 10px; color: var(--muted); font-size: 0.96875rem; }

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-block: clamp(64px, 9vw, 110px);
  padding: clamp(44px, 6vw, 84px);
  background: var(--grad-cta);
  color: #fff;
  text-align: center;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}

.cta > * { position: relative; z-index: 1; }

.cta .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cta h2 {
  margin-top: 20px;
  margin-inline: auto;
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.cta p {
  margin-top: 18px;
  margin-inline: auto;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

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

.site-footer { border-top: 1px solid var(--line); background: var(--bg); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 34px;
}

.footer-brand { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 0.9375rem; }

.footer-links { display: flex; align-items: center; gap: 24px; }

.footer-links a { color: var(--muted); font-size: 0.9375rem; transition: color 140ms ease; }

.footer-links a:hover { color: var(--accent-ink); }

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(48px, 6vw, 84px); }

.legal-shell { max-width: 720px; margin-inline: auto; }

.legal-shell h1 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.legal-date { margin-top: 12px; color: var(--faint); font-size: 0.9375rem; }

.legal-shell section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.legal-shell h2 {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-shell p { margin-top: 12px; color: var(--ink-2); font-size: 1.0125rem; line-height: 1.72; }

.legal-shell a {
  color: var(--accent-ink);
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 540px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span-3, .card.span-2 { grid-column: span 1; }
  .card.feature { grid-column: span 2; grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav { display: none; }
  .header-cta .link { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card.span-3, .card.span-2, .card.feature { grid-column: span 1; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .floaty-a { left: -8px; }
  .floaty-b { right: -8px; }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat .num { font-size: 1.5rem; }
  .stat .lbl { font-size: 0.78rem; }
}
