:root {
  --bg: #070a18;
  --surface: rgba(20, 25, 48, 0.75);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text: #f7f9ff;
  --muted: #aab3d1;
  --primary: #6d8bff;
  --primary-strong: #89a1ff;
  --success: #67d29f;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --spot-x: 50%;
  --spot-y: 40%;
  --depth-grid-x: 0px;
  --depth-grid-y: 0px;
  --depth-orb-x: 0px;
  --depth-orb-y: 0px;
  --depth-glow-x: 0px;
  --depth-glow-y: 0px;
  --depth-bento-y: 0px;
  --depth-fore-y: 0px;
  --bento-radius: 20px;
  --bento-gap: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body), system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display), "Segoe UI", sans-serif;
  letter-spacing: -0.025em;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: min(1180px, 94vw);
  margin: 0 auto;
}

/* —— Ambient FX layer —— */
.fx-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.fx-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(60deg) translate3d(var(--depth-grid-x), var(--depth-grid-y), 0);
  animation: grid-drift 28s linear infinite;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 20%, transparent 70%);
  opacity: 0.45;
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: orb-float 18s ease-in-out infinite;
}

.fx-orb-a {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  background: #5f7dff;
  top: -5%;
  right: -5%;
  animation-delay: 0s;
}

.fx-orb-b {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  background: #3ed5b0;
  bottom: 10%;
  left: -8%;
  animation-delay: -6s;
  animation-duration: 22s;
}

.fx-orb-c {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  background: #a78bfa;
  top: 42%;
  left: 35%;
  opacity: 0.35;
  animation-delay: -12s;
  animation-duration: 16s;
}

.fx-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 0.4s steps(4) infinite;
}

.bg-glow {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  z-index: 0;
  mix-blend-mode: screen;
  animation: glow-pulse 10s ease-in-out infinite;
  transform: translate3d(var(--depth-glow-x), var(--depth-glow-y), 0);
}

.glow-one {
  width: 320px;
  height: 320px;
  background: #5f7dff;
  top: -80px;
  right: 8%;
  animation-delay: 0s;
}

.glow-two {
  width: 240px;
  height: 240px;
  background: #3ed5b0;
  bottom: 8%;
  left: -40px;
  animation-delay: -4s;
  animation-duration: 12s;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 0.75rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: clamp(34px, 7.5vw, 46px);
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.brand-typing {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  font-family: var(--font-display), "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #dfe7ff;
  border-right: 2px solid rgba(200, 212, 255, 0.9);
  animation:
    type-once 2s steps(12, end) 0.35s forwards,
    caret-hide 0s linear 2.45s forwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  padding: 0.72rem 1.3rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), #7f66ff);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  overflow: hidden;
  isolation: isolate;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(109, 139, 255, 0.35);
  opacity: 1;
}

.btn-small {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

.btn-ghost {
  background: rgba(12, 16, 36, 0.6);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: btn-sweep 3.5s ease-in-out infinite;
}

.btn-shine span {
  position: relative;
  z-index: 1;
}

.btn-shine-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: btn-sweep 4s ease-in-out infinite;
}

/* —— Bento layout (8-column named areas) —— */
.bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: auto auto minmax(132px, auto) minmax(200px, auto) minmax(200px, auto) auto auto;
  gap: var(--bento-gap);
  padding: 1.5rem 0 3rem;
  align-items: stretch;
  isolation: isolate;
  transform: translate3d(0, var(--depth-bento-y), 0);
  transition: transform 0.35s ease-out;
  grid-template-areas:
    "intro intro intro intro intro phone phone phone"
    "intro intro intro intro intro phone phone phone"
    "stat  stat  stat  t1    t2    t3    gif   gif"
    "f1    f1    f1    f1    f2    f2    f2    f2"
    "f3    f3    f3    f3    f4    f4    f4    f4"
    "faq   faq   faq   faq   faq   faq   faq   faq"
    "beta  beta  beta  beta  beta  beta  beta  beta";
}

.bento-spotlight {
  position: absolute;
  inset: -6% -4% 48%;
  background: radial-gradient(
    520px 420px at var(--spot-x) var(--spot-y),
    rgba(109, 139, 255, 0.18) 0%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translate3d(0, var(--depth-fore-y), 0);
}

.bento-tile {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  background: rgba(30, 32, 48, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--bento-radius);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 12px 40px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.bento-tile--flush {
  padding: 0;
}

.bento-tile--intro {
  grid-area: intro;
  padding: clamp(1.15rem, 3vw, 1.65rem) clamp(1.2rem, 3vw, 1.75rem);
}

.bento-tile--phone {
  grid-area: phone;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 2vw, 1.25rem);
}

.bento-tile--stats {
  grid-area: stat;
  padding: clamp(0.9rem, 2vw, 1.15rem);
}

.bento-tile--thumb-a {
  grid-area: t1;
}
.bento-tile--thumb-b {
  grid-area: t2;
}
.bento-tile--thumb-c {
  grid-area: t3;
}
.bento-tile--thumb-d {
  grid-area: gif;
}

.bento-cluster {
  display: contents;
}

.bento-tile--feat-1 {
  grid-area: f1;
}
.bento-tile--feat-2 {
  grid-area: f2;
}
.bento-tile--feat-3 {
  grid-area: f3;
}
.bento-tile--feat-4 {
  grid-area: f4;
}

.bento-tile--feat-1,
.bento-tile--feat-2 {
  margin-top: clamp(0.4rem, 1.2vw, 0.7rem);
}

.bento-tile--feat-3,
.bento-tile--feat-4 {
  margin-bottom: clamp(0.4rem, 1.2vw, 0.7rem);
}

.bento-tile--faq {
  grid-area: faq;
  padding: clamp(1rem, 2.3vw, 1.35rem);
}

.bento-tile--thumb {
  min-height: 132px;
  overflow: hidden;
}

.bento-tile--thumb:hover {
  transform: scale(1.015);
  border-color: rgba(109, 139, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 16px 44px rgba(0, 0, 0, 0.35);
}

.bento-thumb-img,
.bento-thumb-gif {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.bento-tile--gif .bento-thumb-gif {
  object-position: center;
}

.bento-tile--beta {
  grid-area: beta;
  margin-top: 2px;
  padding: clamp(1.2rem, 3vw, 1.65rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
  overflow: hidden;
}

.bento-tile--beta::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -50px;
  top: -50px;
  background: radial-gradient(circle, rgba(109, 139, 255, 0.16), transparent 70%);
  pointer-events: none;
}

/* Phone + stats: calmer tiles (no rotating border on stats) */
.hero-phone--solo {
  margin: 0;
  width: 100%;
  max-width: 240px;
}

.hero-card-wrap--bento {
  padding: 0;
  border-radius: calc(var(--bento-radius) - 2px);
  overflow: visible;
  opacity: 1;
  animation: none;
  background: transparent;
}

.hero-card-wrap--bento::before,
.hero-card-wrap--bento::after {
  display: none;
}

.hero-card--bento {
  margin: 0;
  border-radius: calc(var(--bento-radius) - 4px);
  animation: none;
  box-shadow: none;
  background: rgba(12, 14, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-card--bento::before {
  display: none;
}

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

.hero-content > * {
  opacity: 0;
  animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.08s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-content > *:nth-child(3) {
  animation-delay: 0.32s;
}
.hero-content > *:nth-child(4) {
  animation-delay: 0.44s;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #b2c2ff;
  letter-spacing: 0.2px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #67d29f, var(--primary));
  box-shadow: 0 0 12px rgba(103, 210, 159, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  margin: 0.7rem 0;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: linear-gradient(
    100deg,
    #fff 0%,
    #c8d4ff 25%,
    var(--primary-strong) 45%,
    #7ee8d3 65%,
    #fff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-gradient-flow 5s ease-in-out infinite;
}

.hero-text {
  margin: 0.95rem 0 1.6rem;
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* —— Hero phone —— */
.hero-phone {
  margin: 0;
  perspective: 900px;
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.hero-phone-frame {
  position: relative;
  width: min(268px, 76vw);
  aspect-ratio: 10 / 19.5;
  padding: 11px;
  border-radius: 38px;
  background: linear-gradient(155deg, #3a4578 0%, #12172e 42%, #070a14 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(109, 139, 255, 0.12);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-phone:hover .hero-phone-frame {
  transform: rotateY(-4deg) rotateX(2deg) scale(1.02);
}

.bento-tile--phone .hero-phone-frame {
  width: min(232px, 78%);
  margin: 0 auto;
}

.hero-phone-bar {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.hero-phone-media {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0a0d1c;
}

.hero-phone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-phone-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(109, 139, 255, 0.06) 45%,
    rgba(62, 213, 176, 0.12) 50%,
    rgba(109, 139, 255, 0.06) 55%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: receipt-scan-story 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.hero-phone-story {
  position: absolute;
  inset: 14px;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  pointer-events: none;
  z-index: 3;
}

.story-badge {
  margin: 0;
  justify-self: start;
  padding: 0.28rem 0.56rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(7, 10, 24, 0.82);
  color: #dce5ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: story-idle 7s ease-in-out infinite;
}

.story-progress {
  position: relative;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: story-progress-track 7s ease-in-out infinite;
}

.story-progress span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(109, 139, 255, 0.95), rgba(62, 213, 176, 0.92));
  animation: story-progress-fill 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.story-items {
  margin: 0.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.story-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
  color: #e2e9ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 9, 21, 0.78);
  border-radius: 8px;
  padding: 0.22rem 0.38rem;
  opacity: 0;
  transform: translateY(6px);
}

.story-items li:nth-child(1) {
  animation: story-item-reveal 7s ease-in-out infinite;
}

.story-items li:nth-child(2) {
  animation: story-item-reveal 7s ease-in-out infinite 0.18s;
}

.story-items li:nth-child(3) {
  animation: story-item-reveal 7s ease-in-out infinite 0.32s;
}

.story-items strong {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.story-settle {
  margin: 0.15rem 0 0;
  padding: 0.34rem 0.52rem;
  border-radius: 10px;
  background: rgba(103, 210, 159, 0.17);
  border: 1px solid rgba(103, 210, 159, 0.46);
  color: #d9ffe9;
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: story-settle 7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* Rotating accent border + floating card */
.hero-card-wrap {
  position: relative;
  z-index: 1;
  padding: 1px;
  border-radius: 22px;
  overflow: hidden;
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero-card-wrap::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 0deg,
    rgba(109, 139, 255, 0.15),
    rgba(109, 139, 255, 0.95),
    rgba(62, 213, 176, 0.85),
    rgba(167, 139, 250, 0.75),
    rgba(109, 139, 255, 0.15)
  );
  animation: conic-spin 5s linear infinite;
  z-index: 0;
}

.hero-card-wrap::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background: linear-gradient(160deg, rgba(10, 14, 32, 0.97), rgba(7, 10, 24, 0.99));
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 2;
  margin: 1px;
  background: var(--surface);
  border-radius: 19px;
  padding: 1.2rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(6, 8, 20, 0.5);
  animation: card-float 5s ease-in-out infinite;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% 40%;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(109, 139, 255, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: card-glow-breathe 4s ease-in-out infinite;
}

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

.mini-title {
  margin: 0 0 0.9rem;
  color: #c8d4ff;
  font-weight: 600;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  color: #dbe2ff;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  animation: row-fade 0.6s ease backwards;
}

.hero-card li:nth-child(1) {
  animation-delay: 0.9s;
}
.hero-card li:nth-child(2) {
  animation-delay: 1s;
}
.hero-card li:nth-child(3) {
  animation-delay: 1.1s;
}
.hero-card li:nth-child(4) {
  animation-delay: 1.2s;
}

.hero-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-card strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(11, 14, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--bento-radius);
  padding: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.22s ease;
  overflow: hidden;
}

.feature-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0d1224;
  border-radius: calc(var(--bento-radius) - 1px) calc(var(--bento-radius) - 1px) 0 0;
  overflow: hidden;
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(0.96);
  transition: filter 0.25s ease;
}

.bento-tile.feature:hover .feature-media img {
  filter: saturate(0.82) contrast(1);
}

.feature-copy {
  padding: 1rem 1.05rem 1.1rem;
}

.feature::before {
  display: none;
}

.bento-tile.feature:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.bento-tile.feature:hover::before {
  display: none;
}

.feature-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 650;
  color: #eef2ff;
}

.feature-copy p {
  margin: 0;
  color: #b9c2df;
  line-height: 1.52;
  font-size: 0.91rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#features > article.reveal:nth-child(1) {
  transition-delay: 0s;
}
#features > article.reveal:nth-child(2) {
  transition-delay: 0.06s;
}
#features > article.reveal:nth-child(3) {
  transition-delay: 0.12s;
}
#features > article.reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.beta-copy {
  position: relative;
  z-index: 1;
}

.beta-copy h2 {
  margin: 0.65rem 0 0.8rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.beta-copy p {
  color: var(--muted);
  margin: 0;
}

.faq-head h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.25rem, 2.25vw, 1.7rem);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 11, 26, 0.58);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  font-weight: 700;
  color: #e7ecff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  width: 0.58rem;
  height: 0.58rem;
  border-right: 2px solid #c8d4ff;
  border-bottom: 2px solid #c8d4ff;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 0.2rem;
}

.faq-item[open] .faq-arrow {
  transform: rotate(225deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0.9rem 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.93rem;
}

.interest-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
}

.form-progress {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.form-step-text {
  margin: 0;
  color: #d8e0ff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.form-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.form-progress-fill {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #67d29f);
  transition: width 0.28s ease;
}

.form-step {
  display: grid;
  gap: 0.85rem;
}

.form-step[hidden] {
  display: none;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.form-nav .btn {
  min-width: 136px;
}

.interest-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #d8e0ff;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: #fff;
  background: rgba(7, 10, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px rgba(109, 139, 255, 0.2);
}

textarea {
  resize: vertical;
}

.form-message {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--success);
}

.site-footer {
  padding: 0 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo {
  display: block;
  height: clamp(28px, 6vw, 36px);
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Keyframes —— */
@keyframes grid-drift {
  0% {
    transform: perspective(500px) rotateX(60deg) translate3d(var(--depth-grid-x), calc(var(--depth-grid-y) + 0px), 0);
  }
  100% {
    transform: perspective(500px) rotateX(60deg) translate3d(var(--depth-grid-x), calc(var(--depth-grid-y) + 64px), 0);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(calc(0% + var(--depth-orb-x)), calc(0% + var(--depth-orb-y))) scale(1);
  }
  33% {
    transform: translate(calc(-6% + var(--depth-orb-x)), calc(8% + var(--depth-orb-y))) scale(1.05);
  }
  66% {
    transform: translate(calc(5% + var(--depth-orb-x)), calc(-5% + var(--depth-orb-y))) scale(0.95);
  }
}

@keyframes noise-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(-1%, 2%);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(var(--depth-glow-x), var(--depth-glow-y), 0) scale(1);
  }
  50% {
    opacity: 0.42;
    transform: translate3d(var(--depth-glow-x), var(--depth-glow-y), 0) scale(1.08);
  }
}

@keyframes btn-sweep {
  0%,
  30% {
    transform: translateX(-120%);
  }
  60%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes type-once {
  from {
    width: 0;
  }
  to {
    width: 10.9ch;
  }
}

@keyframes caret-hide {
  to {
    border-right-color: transparent;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes text-gradient-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

@keyframes conic-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes card-glow-breathe {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes row-fade {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes receipt-scan-story {
  0%,
  18%,
  100% {
    background-position: 0% 0%;
    opacity: 0;
  }
  22%,
  56% {
    opacity: 0.98;
  }
  58% {
    background-position: 0% 100%;
    opacity: 1;
  }
}

@keyframes story-idle {
  0%,
  16% {
    opacity: 1;
    transform: translateY(0);
  }
  24%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes story-progress-track {
  0%,
  20% {
    opacity: 0;
  }
  24%,
  62% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
  }
}

@keyframes story-progress-fill {
  0%,
  24% {
    width: 0%;
  }
  58% {
    width: 100%;
  }
  100% {
    width: 100%;
  }
}

@keyframes story-item-reveal {
  0%,
  36% {
    opacity: 0;
    transform: translateY(6px);
  }
  44%,
  74% {
    opacity: 1;
    transform: translateY(0);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes story-settle {
  0%,
  68% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  76%,
  94% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-2px) scale(0.98);
  }
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: none;
    grid-template-areas:
      "intro intro intro intro"
      "phone phone phone phone"
      "stat  stat  t1    t2"
      "t3    gif gif gif"
      "f1    f1  f1  f1"
      "f2    f2  f2  f2"
      "f3    f3  f3  f3"
      "f4    f4  f4  f4"
      "faq   faq faq faq"
      "beta  beta beta beta";
  }

  .bento-tile--beta {
    grid-template-columns: 1fr;
  }

  .hero-phone-frame {
    transform: rotateY(0deg) rotateX(0deg);
  }

  .bento-tile--phone .hero-phone-frame {
    width: min(260px, 55vw);
  }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "intro intro"
      "phone phone"
      "stat  stat"
      "t1    t2"
      "t3    gif"
      "f1    f1"
      "f2    f2"
      "f3    f3"
      "f4    f4"
      "faq   faq"
      "beta  beta";
  }

  .bento-tile--thumb {
    min-height: 112px;
  }

  .bento-thumb-img,
  .bento-thumb-gif {
    min-height: 112px;
  }

  .form-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .form-nav .btn {
    width: 100%;
  }

  .brand-lockup {
    gap: 0.45rem;
  }

  .brand-typing {
    font-size: clamp(0.94rem, 3.4vw, 1.02rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-grid,
  .fx-orb,
  .fx-noise,
  .bg-glow,
  .btn-shine::after,
  .btn-shine-ghost::after,
  .hero-title-accent,
  .eyebrow-dot,
  .hero-card-wrap::before,
  .hero-card,
  .hero-card::before,
  .hero-card li,
  .hero-phone-scan,
  .story-badge,
  .story-progress,
  .story-progress span,
  .story-items li,
  .story-settle {
    animation: none !important;
  }

  .brand-typing {
    animation: none !important;
    width: auto;
    border-right: 0;
  }

  .hero-content > *,
  .hero-card-wrap:not(.hero-card-wrap--bento),
  .hero-phone {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero-card--bento,
  .hero-card--bento li {
    animation: none !important;
  }

  .hero-phone:hover .hero-phone-frame {
    transform: none;
  }

  .bento-tile--thumb:hover,
  .bento-tile.feature:hover {
    transform: none;
  }

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

  .hero-phone-story > * {
    opacity: 1;
    transform: none;
  }

  .story-progress span {
    width: 100%;
  }
}
