/* =========================================================
   I-Link POS Solutions — Stylesheet
   Uses tokens from design-tokens.css (Omoway purple/lime spec)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

/* themed text selection */
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
::-moz-selection { background: var(--color-accent); color: var(--color-accent-ink); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; line-height: var(--lh-heading); color: var(--color-text); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-pad-y); }
.section--subtle { background: var(--color-bg-subtle); }

.section__head { text-align: center; max-width: 620px; margin: 0 auto var(--space-12); }
.section__head h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); letter-spacing: -0.02em; }
.section__head p { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--fs-body-lg); }

.hl { color: var(--color-purple); position: relative; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.32em;
  background: var(--color-accent); z-index: -1; border-radius: 2px; opacity: .85;
}

.grid { display: grid; gap: var(--grid-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: var(--fw-semibold); font-size: var(--fs-small);
  padding: 12px 22px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 15px 28px; font-size: var(--fs-body); }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-purple); color: var(--color-text-invert); }
.btn--primary:hover { background: var(--color-purple-dark); box-shadow: var(--shadow-card); }
.btn--accent { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--accent:hover { filter: brightness(.96); }
.btn--outline { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--outline:hover { border-color: var(--color-purple); color: var(--color-purple); }
.btn--ghost { background: transparent; color: var(--color-text); }
.btn--ghost:hover { color: var(--color-purple); }
.btn--ghost-invert { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-invert:hover { background: rgba(255,255,255,.2); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: var(--fw-semibold); letter-spacing: .01em;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--color-bg-muted); color: var(--color-text-muted);
}
.chip--accent { background: var(--color-accent); color: var(--color-accent-ink); }

.link-arrow { color: var(--color-purple); font-weight: var(--fw-semibold); font-size: var(--fs-small); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-card);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner { display: flex; align-items: center; gap: var(--space-6); height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); font-size: 1.05rem; flex-shrink: 0; }
.brand__mark { display: inline-flex; }
.brand__name b { color: var(--color-purple); }
.brand__logo { height: 36px; width: auto; max-width: none; display: block; }
.nav__cta { display: none; }
.nav__links { display: flex; gap: var(--space-6); margin-inline: auto; }
.nav__links a { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--color-text-muted); }
.nav__links a:hover { color: var(--color-text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px); overflow: hidden; background: #fbfbfd; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(680px 380px at 88% 14%, #f2f0fb 0%, transparent 62%),
    radial-gradient(520px 300px at 60% 2%, #f6f6f9 0%, transparent 55%); }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: var(--space-12); align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 15px 6px 6px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-pill);
  font-size: 13px; color: var(--color-text-muted); box-shadow: 0 2px 10px rgba(20,20,40,.05); }
.badge__ico { width: 26px; height: 26px; border-radius: 50%; background: var(--color-purple-soft); display: grid; place-items: center; }
.badge b { color: var(--color-ink); font-weight: 700; }

.hero__copy h1 { font-family: var(--font-display); font-size: var(--fs-display); font-weight: 700;
  line-height: 1.03; letter-spacing: -0.02em; color: var(--color-ink); margin: var(--space-6) 0 var(--space-5); }
.lead { font-size: var(--fs-body-lg); color: var(--color-text-muted); max-width: 44ch; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--space-8); }
.hero__cta .arrow { font-size: 1.15em; line-height: 1; }

/* Hero visual — overlapping cards */
.hero__visual { position: relative; min-height: 490px; }
.hcard { position: absolute; background: #fff; border-radius: 18px;
  box-shadow: 0 20px 55px rgba(30,22,70,.13); border: 1px solid rgba(20,20,40,.04); }

.hcard--avatars { top: 0; right: 0; width: 258px; padding: 15px 20px; display: flex; z-index: 4; }
.ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 12px; border: 2px solid #fff; position: relative; }
.hcard--avatars .ava { margin-left: -12px; }
.hcard--avatars .ava:first-child { margin-left: 0; }
.ava--1 { background: linear-gradient(135deg,#8a6cf0,#5b3fd6); }
.ava--2 { background: linear-gradient(135deg,#f0a860,#e0743c); }
.ava--3 { background: linear-gradient(135deg,#5bc48a,#2fa56b); }
.ava--4 { background: linear-gradient(135deg,#4b2e9e,#2e1c63); }
.ava__check { position: absolute; right: -4px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--color-ink); display: grid; place-items: center; border: 2px solid #fff; }
.ava__check svg { width: 9px; height: 9px; }

.hcard--perf { top: 76px; right: 22px; width: 338px; padding: 22px; z-index: 2; }
.perf__label { font-weight: 700; color: var(--color-ink); font-size: 15px; }
.perf__body { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; }
.perf__sub { font-size: 12px; color: var(--color-text-muted); }
.ava-cluster { display: flex; margin: 10px 0; }
.ava-cluster .ava { width: 26px; height: 26px; font-size: 9px; margin-left: -9px; }
.ava-cluster .ava:first-child { margin-left: 0; }
.perf__num { font-size: 1.9rem; font-weight: 800; color: var(--color-ink); letter-spacing: -.02em; }
.perf__pct { font-weight: 700; color: var(--color-ink); margin: 6px 0 16px; }
.perf__btn { padding: 9px 16px; font-size: 12px; border-radius: 10px; }

.hcard--offered { bottom: 42px; left: 0; width: 248px; padding: 18px; z-index: 5; display: grid; gap: 12px; }
.offered__head { display: flex; justify-content: space-between; align-items: center; color: var(--color-ink); font-size: 15px; }
.grid-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--color-accent); color: var(--color-accent-ink); display: grid; place-items: center; }
.grid-ic svg { width: 14px; height: 14px; }
.offered__row { display: flex; align-items: center; gap: 10px; }
.offered__row .ava { width: 34px; height: 34px; font-size: 10px; }
.offered__row b { display: block; font-size: 13px; color: var(--color-ink); }
.offered__row small { color: var(--color-text-muted); font-size: 11px; }
.brand-badge { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.brand-badge--v { background: #1a1f71; }
.brand-badge--m { background: #eb6c1c; }

.hcard--download { bottom: 30px; right: 22px; width: 208px; padding: 18px 20px; background: var(--color-accent);
  border: none; z-index: 3; box-shadow: 0 18px 42px rgba(170,200,40,.4); }
.dl__head { display: flex; justify-content: space-between; align-items: center; color: var(--color-accent-ink); font-size: 13px; font-weight: 600; }
.dl__ic { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.dl__ic svg { width: 15px; height: 15px; }
.dl__num { font-size: 2rem; font-weight: 800; color: var(--color-accent-ink); letter-spacing: -.02em; margin-top: 22px; }
.dl__dots { display: flex; gap: 5px; margin-top: 8px; }
.dl__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(20,20,20,.22); }
.dl__dots i.on { width: 16px; border-radius: 3px; background: var(--color-accent-ink); }

/* Shared bases still used elsewhere (value/CTA cards, terminals) */
.float-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-float); padding: 18px 20px; }
.up { color: var(--color-success); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.up svg { width: 13px; height: 13px; }

/* Device mockups (terminal cards) */
.device { background: linear-gradient(160deg, #2a1a5e, var(--color-purple)); border-radius: 22px; padding: 14px; box-shadow: var(--shadow-float); }
.device__screen { background: #fff; border-radius: 12px; padding: 16px; min-height: 120px; }
.device__keys { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.device__keys i { width: 22px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.35); }

/* ---------- Trust bar ---------- */
.trustbar { padding-block: var(--space-16) 0; text-align: center; }
.trustbar__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 600; color: var(--color-ink); letter-spacing: -.02em; }
.trustbar__title span { font-weight: 800; }
.trustbar__logos { display: flex; align-items: center; margin-top: var(--space-12); }
.tlogo { flex: 1; display: flex; align-items: center; justify-content: center; }
.tlogo img { height: 34px; width: auto; max-width: 84%; object-fit: contain; display: block; }
.trustbar__wave { display: block; width: 100%; height: 26px; margin-top: 6px; }

/* ---------- How we work (features) ---------- */
.hww__head { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; align-items: start; gap: var(--space-8); margin-bottom: var(--space-12); }
.hww__title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--color-ink); max-width: 15ch; }
.hww__intro { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.6; max-width: 30ch; justify-self: end; margin-top: 8px; }
.sticker { position: absolute; top: 92px; left: 150px; z-index: 5;
  background: var(--color-accent); color: var(--color-accent-ink);
  font-size: 14px; font-weight: 700; letter-spacing: -.01em; padding: 10px 18px;
  border-radius: 12px; transform: rotate(-14deg);
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 22px rgba(120,150,20,.35), inset 0 1px 0 rgba(255,255,255,.5);
  white-space: nowrap; cursor: grab; user-select: none; touch-action: none;
  transition: box-shadow .15s ease, transform .15s ease; }
/* peeled corner for a real sticker feel */
.sticker::after { content: ""; position: absolute; bottom: -1px; right: -1px;
  border-width: 0 0 14px 14px; border-style: solid;
  border-color: transparent transparent rgba(0,0,0,.12) transparent;
  border-bottom-right-radius: 12px; }
.sticker.is-dragging { cursor: grabbing; transform: rotate(-3deg) scale(1.06); z-index: 60;
  box-shadow: 0 22px 44px rgba(20,20,40,.28), inset 0 1px 0 rgba(255,255,255,.55); }

/* Realistic peel-off: curl from the corner, lift, then fall away */
.sticker--peeling {
  z-index: 70; pointer-events: none;
  transform-origin: 82% 88%;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  animation: stickerPeel .95s cubic-bezier(.34, .2, .2, 1) forwards;
}
/* underside shows as it curls */
.sticker--peeling::before {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: linear-gradient(160deg, #b9d94a, #93b62f);
  transform: rotateX(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
@keyframes stickerPeel {
  0%   { transform: perspective(700px) rotate(-14deg) rotateX(0deg) translate(0,0) scale(1);
         box-shadow: 0 10px 22px rgba(120,150,20,.35), inset 0 1px 0 rgba(255,255,255,.5); }
  22%  { transform: perspective(700px) rotate(-11deg) rotateX(58deg) translate(3px,-10px) scale(1.03);
         box-shadow: 0 30px 40px rgba(20,20,40,.3); }
  45%  { transform: perspective(700px) rotate(-7deg) rotateX(96deg) translate(9px,-6px) scale(1.01);
         box-shadow: 0 24px 34px rgba(20,20,40,.22); }
  62%  { transform: perspective(700px) rotate(2deg) rotateX(120deg) translate(14px, 12px) scale(.98);
         box-shadow: 0 18px 30px rgba(20,20,40,.16); }
  100% { transform: perspective(700px) rotate(46deg) rotateX(150deg) translate(46px, 300px) scale(.72);
         opacity: 0; box-shadow: 0 40px 50px rgba(20,20,40,.04); }
}
@media (prefers-reduced-motion: reduce) {
  .sticker--peeling { animation: none; opacity: 0; transition: opacity .2s ease; }
}

.hww__grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: var(--grid-gap); align-items: stretch; }
.hww-col { display: flex; flex-direction: column; gap: var(--grid-gap); height: 100%; }
.hww-col > :last-child { margin-top: auto; }

.hww__num { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--color-text-muted); }
.hww__hint { font-size: var(--fs-small); color: var(--color-text-muted); line-height: 1.5; margin-top: 8px; }
.hww-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--color-ink); }
.hww__more { border-radius: var(--radius-pill); align-self: flex-start; }

/* Flat text blocks (no box) */
.hww-card--flat { background: none; border: none; box-shadow: none; padding: 8px 4px; display: flex; flex-direction: column; gap: 14px; }

/* White visual cards */
.hww-card--light { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; box-shadow: var(--shadow-card); padding: var(--space-8); }

/* Column 1 — dark card */
.hww-card--dark { position: relative; overflow: hidden; height: 100%;
  background: radial-gradient(120% 90% at 100% 0%, #5b3fc0 0%, #3a2384 45%, #2a1a63 100%);
  border: none; border-radius: 22px; padding: var(--space-8); color: #fff;
  display: flex; flex-direction: column; gap: var(--space-6); box-shadow: 0 24px 60px rgba(46,28,99,.3); }
.hww-card--dark .hww__num { color: rgba(255,255,255,.55); }
.hww-card--dark .hww__hint { color: rgba(255,255,255,.7); }
.hww-card--dark h3 { color: #fff; font-size: 1.85rem; }
.hww-card__top { display: flex; flex-direction: column; gap: 0; }
.btn--outline-invert { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-invert:hover { background: rgba(255,255,255,.12); }

/* Nested job/product card inside dark card */
.joblet { margin-top: auto; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(2px); }
.joblet__head { display: flex; justify-content: space-between; align-items: center; }
.joblet__head b { font-size: 1.05rem; font-weight: 700; }
.joblet__date { font-size: 12px; color: rgba(255,255,255,.6); }
.joblet__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.joblet__tags span { font-size: 11px; font-weight: 500; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 5px 12px; border-radius: var(--radius-pill); }
.joblet__loc { font-size: 12px; color: rgba(255,255,255,.55); }

/* Promo (logos) card */
.promo { text-align: center; }
.promo__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 14px 0 26px; }
.plogo { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(20,20,40,.1); }
.plogo svg { width: 24px; height: 24px; }
.plogo--dark { background: var(--color-purple); }
.plogo--soft { background: var(--color-purple-soft); }
.plogo--lime { width: 40px; height: 40px; background: var(--color-accent); margin: 0 -10px; box-shadow: 0 5px 14px rgba(170,200,40,.45); }
.promo__input { border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 12px 18px; font-size: var(--fs-small); color: var(--color-text-muted); }

/* Pipeline card */
.pipe__tabs { display: flex; gap: 6px; background: var(--color-bg-subtle); border-radius: var(--radius-pill); padding: 5px; margin-bottom: var(--space-6); }
.pipe__tabs span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--color-text-muted); padding: 8px 0; border-radius: var(--radius-pill); }
.pipe__tabs .on { background: #fff; color: var(--color-ink); box-shadow: 0 2px 8px rgba(20,20,40,.1); }
.pipe__row { display: flex; align-items: center; gap: 12px; }
.pipe__who { flex: 1; }
.pipe__who b { display: block; font-size: 14px; color: var(--color-ink); }
.pipe__who small { color: var(--color-text-muted); font-size: 12px; }
.pipe__notes { font-size: 12px; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 6px; }
.pipe__meta { display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.pipe__meta span { font-size: 12px; color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 6px; }
.pipe__notes svg, .pipe__meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.pipe__via { color: var(--color-purple) !important; font-weight: 600; }

/* ---------- Terminals ---------- */
.terminal { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.terminal__media {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-md); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #fff; padding: 16px;
}
.terminal__media img { max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply; }
.terminal h3 { font-size: var(--fs-h3); }
.terminal p { color: var(--color-text-muted); font-size: var(--fs-small); flex: 1; }
.device--sm { width: 92px; transform: rotate(-4deg); }
.device--station { width: 130px; }
.device--station .device__screen { min-height: 84px; }
.device--go { width: 60px; padding: 8px; }
.device--go .device__screen { min-height: 70px; }

/* ---------- Stats card ---------- */
.stats { padding-block: var(--space-16); }
.stats__card { position: relative; overflow: hidden; color: #fff;
  border-radius: 36px; padding: clamp(32px, 4.5vw, 60px);
  background: radial-gradient(90% 150% at 68% 0%, #6d51d4 0%, #4a2ea0 42%, #2c1a66 100%);
  box-shadow: 0 30px 70px rgba(44,26,102,.35); }
.stats__wave { position: absolute; top: 32px; right: 24px; width: min(54%, 620px); height: auto; pointer-events: none; }
.stats__title { position: relative; font-family: var(--font-display); font-weight: 500; color: #f3f1fb;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; max-width: 22ch; }
.stats__divider { height: 1px; background: rgba(255,255,255,.16); margin: clamp(28px, 4vw, 48px) 0; }

.stats__row { display: flex; align-items: center; }
.stat { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stat__ico { color: #fff; }
.stat__ico svg { width: 30px; height: 30px; display: block; }
.stat__ico--lime { color: var(--color-accent); }
.stat__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -.01em; }
.stat__lbl { font-size: var(--fs-small); color: rgba(255,255,255,.6); }

.stat__badge { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 clamp(8px, 2vw, 28px);
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #b9a8f0; }
.stat__badge svg { width: 20px; height: 20px; }

/* ---------- Flow (how it works: hub + cards) ---------- */
.flow__stage { position: relative; display: grid; align-items: center;
  grid-template-columns: 1fr minmax(180px, 0.8fr) 1fr; grid-template-rows: auto auto;
  gap: clamp(80px, 13vw, 170px) clamp(40px, 8vw, 130px);
  background: linear-gradient(180deg, #f7f6fc, #f2f0fa); border-radius: 32px;
  padding: clamp(56px, 7vw, 100px) clamp(28px, 4vw, 56px); }

.flow-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--color-border);
  border-radius: 18px; box-shadow: var(--shadow-card); padding: clamp(20px, 2vw, 28px); }
.flow-card--tl { grid-column: 1; grid-row: 1; }
.flow-card--tr { grid-column: 3; grid-row: 1; }
.flow-card--bl { grid-column: 1; grid-row: 2; }
.flow-card--br { grid-column: 3; grid-row: 2; }
.flow-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.flow-card__ico { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--color-purple);
  display: grid; place-items: center; }
.flow-card__ico svg { width: 24px; height: 24px; }
.flow-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--color-ink); }
.flow-card p { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.6; }

/* dashed connector lines from the cards into the hub */
.flow__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* central brand hub */
.flow__hub { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / span 2;
  justify-self: center; align-self: center;
  width: clamp(140px, 15vw, 188px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f4f2fc 75%, #ece9f8 100%);
  box-shadow: 0 20px 45px rgba(46,28,99,.1), inset 0 0 0 1px rgba(75,46,158,.06); }
.flow__logo { width: clamp(84px, 9vw, 116px); height: auto; display: block; }

/* ---------- Steps ---------- */
.steps .step { padding: var(--space-6); }
.step__num { font-size: 1.4rem; font-weight: 800; color: var(--color-purple); background: var(--color-purple-soft); width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--space-4); }
.step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.step p { color: var(--color-text-muted); font-size: var(--fs-small); }

/* ---------- Split / value ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.split__copy h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); margin: var(--space-4) 0; letter-spacing: -.02em; }
.split__copy > p { color: var(--color-text-muted); font-size: var(--fs-body-lg); margin-bottom: var(--space-6); }
.ticks { display: grid; gap: 10px; margin-bottom: var(--space-8); }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; font-size: var(--fs-small); }
.ticks li::before { content: ""; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.float-card--pricecard { max-width: 380px; margin-inline: auto; display: grid; gap: 12px; }
.pc__row { display: flex; justify-content: space-between; font-size: var(--fs-small); }
.pc__row span { color: var(--color-text-muted); }
.pc__row .ok { color: var(--color-success); }
.pc__bar { height: 10px; background: var(--color-bg-muted); border-radius: 6px; overflow: hidden; }
.pc__bar i { display: block; height: 100%; background: var(--color-purple); }
.pc__note { font-size: 12px; color: var(--color-text-muted); }

/* ---------- Reviews / Testimonials ---------- */
.rev__head { position: relative; text-align: center; margin-bottom: var(--space-12); }
.rev__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; color: var(--color-ink); }
.rev__head .sticker { top: 42px; left: calc(50% - 58px); }

.rev__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.rev-item { border-radius: 30px; padding: 14px; }
.rev-item--lavender { background: linear-gradient(180deg, #eef0fb, #e7e9f8); box-shadow: 0 26px 55px rgba(120,120,205,.16); }
.rev-item--lime { background: linear-gradient(180deg, #f2f9d4, #e8f5b8); box-shadow: 0 26px 55px rgba(180,210,60,.26); }

.rev-card { background: #fff; border-radius: 20px; padding: clamp(26px, 2.6vw, 38px); height: 100%;
  display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(20,20,40,.04); }
.rev-card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.25; color: var(--color-ink); letter-spacing: -.01em; }
.rev-card > p { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.65; margin-top: 14px; }

.stars { display: inline-flex; gap: 2px; color: var(--color-ink); }
.stars svg { width: 15px; height: 15px; }

.rev-card__person { display: flex; align-items: center; gap: 12px; margin-top: var(--space-8);
  padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.rev-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, #8a6cf0, #5b3fd6); box-shadow: 0 0 0 3px rgba(139,108,240,.16); }
.rev-avatar--alt { background: linear-gradient(135deg, #f0a860, #e0743c); box-shadow: 0 0 0 3px rgba(240,168,96,.18); }
.rev-card__who { flex: 1; }
.rev-card__who b { display: block; font-size: 14px; color: var(--color-ink); }
.rev-card__who small { color: var(--color-text-muted); font-size: 12px; }
.rev-card__rating { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rev-card__score { font-size: 13px; font-weight: 700; color: var(--color-ink); }
.rev-card__score em { font-style: normal; font-weight: 500; color: var(--color-text-muted); }

.rev-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: var(--space-8); }
.rev-card__metric { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1; color: var(--color-ink); letter-spacing: -.02em; }
.rev-card__metric span { font-weight: 500; }
.rev-card__growth { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--color-ink); text-align: right; }
.rev-card__growth svg { width: 20px; height: 20px; color: var(--color-ink); }

.rev-nav { display: flex; justify-content: center; gap: 14px; margin-top: var(--space-12); }
.rev-nav__btn { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--color-border); color: var(--color-ink); cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.rev-nav__btn svg { width: 20px; height: 20px; }
.rev-nav__btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.rev-nav__btn--primary { background: var(--color-purple); border-color: var(--color-purple); color: #fff; }
.rev-nav__btn--primary:hover { background: var(--color-purple-dark); }


/* ---------- FAQ ---------- */
.faq-panel { background: linear-gradient(180deg, #f7f6fc, #f1eff9); border-radius: 32px; padding: clamp(32px, 4.5vw, 64px); }
.faq-head { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: start; gap: var(--space-8); margin-bottom: var(--space-12); }
.faq-head__left { position: relative; }
.faq-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(2rem, 4vw, 3.2rem); color: var(--color-ink); max-width: 12ch; }
.faq-head__right { justify-self: end; max-width: 34ch; }
.faq-head__right p { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.6; margin-bottom: var(--space-6); }

.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item { background: #fff; border-radius: 14px; box-shadow: 0 6px 22px rgba(30,22,70,.06); overflow: hidden; }
.faq__q { width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  padding: 22px clamp(20px, 2.5vw, 30px); font-family: var(--font-display); font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600; color: var(--color-ink); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq__ic { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: #efedfa; transition: background .25s ease; }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px;
  background: var(--color-purple); border-radius: 2px; transform: translate(-50%, -50%); transition: opacity .25s ease, background .25s ease; }
.faq__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__ic { background: var(--color-purple); }
.faq__q[aria-expanded="true"] .faq__ic::before { background: #fff; }
.faq__q[aria-expanded="true"] .faq__ic::after { opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq__a p { padding: 0 clamp(20px, 2.5vw, 30px) 24px; margin-top: -4px; color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.6; max-width: 92%; }

/* ---------- CTA ---------- */
.cta { padding-block: var(--space-16); }
.cta__card { position: relative; overflow: hidden; color: #fff; border-radius: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(36px, 5vw, 72px);
  background: radial-gradient(110% 140% at 18% -10%, #6d51d4 0%, #4a2ea0 45%, #2a1a63 100%);
  box-shadow: 0 30px 70px rgba(44,26,102,.35); }
.cta__left h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; color: #f3f1fb;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; max-width: 14ch; }
.cta__left p { color: rgba(255,255,255,.8); font-size: var(--fs-small); line-height: 1.6; margin-top: var(--space-5); max-width: 42ch; }
.cta__btn { margin-top: var(--space-8); }
.nowrap { white-space: nowrap; }

.cta-dash { background: #fff; color: var(--color-text); border-radius: 20px; padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 30px 60px rgba(20,10,50,.3); }
.cta-dash__top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.cta-dash__label { font-size: 12px; color: var(--color-text-muted); }
.cta-dash__avatars { display: flex; margin: 10px 0; }
.ava-sm { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px;
  display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 700; }
.ava-sm:first-child { margin-left: 0; }
.ava-sm.a1 { background: linear-gradient(135deg,#8a6cf0,#5b3fd6); }
.ava-sm.a2 { background: linear-gradient(135deg,#f0a860,#e0743c); }
.ava-sm.a3 { background: linear-gradient(135deg,#5bc48a,#2fa56b); }
.ava-sm.a4 { background: linear-gradient(135deg,#4b2e9e,#2e1c63); }
.cta-dash__big { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; color: var(--color-ink); letter-spacing: -.02em; }
.cta-dash__spend-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cta-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--color-accent-ink);
  background: var(--color-accent); border-radius: var(--radius-pill); padding: 3px 8px; }
.cta-badge svg { width: 11px; height: 11px; }
.cta-dash__amt { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--color-ink); margin-top: 10px; }
.cta-dash__used { font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.cta-dash__bar { height: 8px; background: var(--color-bg-muted); border-radius: 4px; margin-top: 10px; overflow: hidden; }
.cta-dash__bar i { display: block; height: 100%; width: 34%; background: var(--color-purple); border-radius: 4px; }
.cta-dash__total { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--color-ink);
  letter-spacing: -.02em; margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.cta-dash__trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--color-success); }
.cta-dash__trend svg { width: 12px; height: 12px; }
.cta-dash__chart { display: flex; align-items: flex-end; gap: 8px; height: 88px; margin-top: 16px; }
.cta-dash__chart .bar { flex: 1; background: var(--color-bg-muted); border-radius: 5px 5px 0 0; position: relative; }
.cta-dash__chart .bar--hi { background: linear-gradient(180deg, #7c5fe0, var(--color-purple)); }
.cta-tip { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--color-ink); color: #fff; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.cta-tip::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--color-ink); }
.cta-dash__months { display: flex; gap: 8px; margin-top: 8px; }
.cta-dash__months span { flex: 1; text-align: center; font-size: 10px; color: var(--color-text-muted); }

/* ---------- Footer ---------- */
.footer { background: #14121f; color: #cfcdda; padding-top: var(--space-24); font-size: var(--fs-small); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-8); padding-bottom: var(--space-16); }
.footer .brand { color: #fff; margin-bottom: var(--space-4); }
.footer .brand__name b { color: var(--color-accent); }
.footer__brand p { max-width: 32ch; color: #9d9bad; }
.footer__col h4 { color: #fff; font-size: var(--fs-small); margin-bottom: var(--space-4); }
.footer__col a { display: block; color: #9d9bad; padding: 5px 0; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: var(--space-6); border-top: 1px solid rgba(255,255,255,.08); color: #7d7b8c; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #9d9bad; transition: color .2s, background .2s; }
.footer__social a svg { width: 17px; height: 17px; }
.footer__social a:hover { color: #fff; background: var(--color-purple); border-color: var(--color-purple); }

/* ---------- About page ---------- */
.nav__links a.is-active { color: var(--color-ink); font-weight: 600; }

.page-hero { position: relative; text-align: center; overflow: hidden;
  padding-block: clamp(52px, 8vw, 104px);
  background: radial-gradient(760px 400px at 50% -12%, var(--color-purple-soft), transparent 65%); }
.page-hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero .chip { margin-bottom: var(--space-6); }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: var(--fs-display); line-height: 1.06; color: var(--color-ink);
  text-wrap: balance; max-width: 20ch; margin: 0 0 var(--space-6); }
.page-hero .lead { max-width: 54ch; margin: 0; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* story visual */
.about-visual { position: relative; overflow: hidden; color: #fff; border-radius: 28px;
  padding: clamp(32px, 4vw, 48px);
  background: radial-gradient(90% 150% at 75% 0%, #6d51d4 0%, #4a2ea0 42%, #2c1a66 100%);
  box-shadow: 0 30px 65px rgba(44,26,102,.3); }
.about-visual__wave { position: absolute; top: 26px; right: 20px; width: 60%; height: auto; pointer-events: none; }
.about-visual__brand { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; }
.about-visual__brand b { color: var(--color-accent); }
.about-visual__tag { position: relative; color: rgba(255,255,255,.8); font-size: var(--fs-small); margin-top: 8px; max-width: 26ch; }
.about-visual__facts { position: relative; display: grid; gap: 18px; margin-top: clamp(32px, 5vw, 56px); }
.about-visual__facts > div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.about-visual__facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.af__k { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.af__l { font-size: 12px; color: rgba(255,255,255,.6); }

/* value cards */
.value { text-align: left; }
.value__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-purple-soft); color: var(--color-purple); margin-bottom: var(--space-4); }
.value__ico svg { width: 26px; height: 26px; }
.value h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--color-ink); margin-bottom: 8px; }
.value p { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.6; }

/* team cards */
.team-card { text-align: center; }
.team-card__avatar { width: 72px; height: 72px; font-size: 20px; margin: 0 auto var(--space-4); }
.team-card b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--color-ink); }
.team-card small { color: var(--color-text-muted); font-size: var(--fs-small); }

/* ---------- Terminal catalogue & detail ---------- */
a.terminal { text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease; }
a.terminal:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
a.terminal:hover .link-arrow { text-decoration: underline; }

.crumbs { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.crumbs a:hover { color: var(--color-purple); }
.crumbs span { margin: 0 6px; opacity: .5; }
.crumbs b { color: var(--color-ink); font-weight: 600; }

.tdetail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.tdetail__media { background: #f6f6f9; border-radius: 24px; padding: clamp(28px, 4vw, 56px);
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.tdetail__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.tdetail__info h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--color-ink); margin: 14px 0 10px; }
.tdetail__tag { color: var(--color-text-muted); font-size: var(--fs-body-lg); line-height: 1.6; margin-bottom: var(--space-6); }
.tdetail__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-8); }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--color-border); }
.spec-k { color: var(--color-text-muted); font-size: var(--fs-small); }
.spec-v { color: var(--color-ink); font-weight: 600; font-size: var(--fs-small); text-align: right; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--grid-gap); overflow-x: auto;
  -webkit-overflow-scrolling: touch; padding: 10px 2px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { flex: 0 0 clamp(260px, 31%, 380px); scroll-snap-align: start; }
.carousel__track { cursor: grab; }
.carousel__track.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.carousel__track.is-grabbing a { pointer-events: none; }
.rev-carousel .carousel__item { flex: 0 0 clamp(280px, 47%, 560px); }
.rev-carousel .rev-card { height: 100%; }
.carousel__controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; margin-top: var(--space-8); }
.carousel__nav { display: flex; gap: 12px; }
.carousel__btn { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
  background: #fff; border: 1px solid var(--color-border); color: var(--color-ink);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--color-purple); border-color: var(--color-purple); color: #fff; transform: translateY(-1px); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-info { display: grid; gap: var(--space-6); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: var(--color-purple-soft); color: var(--color-purple); display: grid; place-items: center; }
.contact-item__ico svg { width: 22px; height: 22px; }
.contact-item h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--color-ink); margin-bottom: 3px; }
.contact-item p, .contact-item a { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.5; }
.contact-item a:hover { color: var(--color-purple); }

.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: 20px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--color-ink); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--fs-small); color: var(--color-text);
  background: #fff; border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-purple); box-shadow: 0 0 0 3px rgba(75, 46, 158, .12); }
.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--color-text-muted); text-align: center; margin-top: 12px; }

/* ---------- Legal pages ---------- */
.legal__updated { color: var(--color-text-muted); font-size: var(--fs-small); margin-bottom: var(--space-8); }
.legal__note { background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: 14px;
  padding: 16px 18px; font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-12); }
.legal h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--color-ink);
  letter-spacing: -.01em; margin: var(--space-12) 0 var(--space-4); }
.legal h3 { font-size: 1.05rem; font-weight: 600; color: var(--color-ink); margin: var(--space-6) 0 var(--space-2); }
.legal p, .legal li { color: var(--color-text-muted); font-size: var(--fs-body); line-height: 1.7; }
.legal p { margin-bottom: var(--space-4); }
.legal ul { margin: 0 0 var(--space-4); padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--color-purple); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--color-text); font-weight: 600; }

.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: #7d7b8c; }
.footer__legal a:hover { color: #fff; }

/* ---------- Animations ---------- */
/* Lenis smooth-scroll base styles */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* scroll reveal (the .reveal class is added by JS, so no-JS = visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.22, .61, .36, 1); }
.reveal--in { opacity: 1; transform: none; }

/* hero / page-hero entrance (pure CSS, runs on load, no flash) */
.hero__copy > *, .hero__visual { animation: fadeUp .75s cubic-bezier(.22, .61, .36, 1) both; }
.hero__copy .badge { animation-delay: .05s; }
.hero__copy h1 { animation-delay: .12s; }
.hero__copy .lead { animation-delay: .22s; }
.hero__cta { animation-delay: .3s; }
.hero__visual { animation-delay: .28s; animation-duration: .85s; }
.page-hero .container > * { animation: fadeUp .7s cubic-bezier(.22, .61, .36, 1) both; }
.page-hero .container > *:nth-child(2) { animation-delay: .08s; }
.page-hero .container > *:nth-child(3) { animation-delay: .16s; }
.page-hero .container > *:nth-child(4) { animation-delay: .24s; }

/* hover lifts for content cards */
.value, .team-card, .flow-card { transition: transform .22s ease, box-shadow .22s ease; }
.value:hover, .team-card:hover, .flow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.pay-logo, .tlogo img, .footer__social a svg { transition: transform .2s ease; }

/* ---- Custom animated cursor (mouse only; JS adds .has-cursor) ---- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%); mix-blend-mode: difference; will-change: translate, transform; }
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease; }
.cursor-ring { width: 42px; height: 42px; transition: transform .32s cubic-bezier(.34, 1.45, .5, 1), opacity .22s ease; }
.cursor-ring .cursor-target { display: block; width: 100%; height: 100%; }
@keyframes cursorSpin { to { transform: rotate(360deg); } }
/* hover: reticle grows, spins, and the focal dot fades so the target reads cleanly */
.cursor-hover .cursor-target { animation: cursorSpin 3s linear infinite; }
.cursor-hover .cursor-ring { transform: translate(-50%, -50%) scale(1.55); }
.cursor-hover .cursor-dot { opacity: 0; }
.cursor-down .cursor-ring { transform: translate(-50%, -50%) scale(1.3); }
.cursor-hide .cursor-dot, .cursor-hide .cursor-ring,
.cursor-out .cursor-dot, .cursor-out .cursor-ring { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__copy > *, .hero__visual, .page-hero .container > * {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
/* ---- Tablet / small laptop ---- */
@media (max-width: 960px) {
  .hero__grid, .split, .cta__card { grid-template-columns: 1fr; }
  .hero__visual { min-height: 460px; max-width: 460px; margin: var(--space-8) auto 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hww__head { grid-template-columns: 1fr; }
  .hww__intro { justify-self: start; }
  .hww__grid { grid-template-columns: 1fr; }
  .hww-col { height: auto; }
  .hww-col > :last-child { margin-top: 0; }
  .sticker { top: auto; bottom: -6px; left: auto; right: 12%; }
  .flow__stage { grid-template-columns: 1fr 1fr; }
  .flow-card--tl { grid-column: 1; grid-row: 1; }
  .flow-card--tr { grid-column: 2; grid-row: 1; }
  .flow-card--bl { grid-column: 1; grid-row: 3; }
  .flow-card--br { grid-column: 2; grid-row: 3; }
  .flow__hub { grid-column: 1 / -1; grid-row: 2; }
  .flow__net { display: none; }
  .faq-head { grid-template-columns: 1fr; }
  .faq-head__right { justify-self: start; max-width: 46ch; }
  .tdetail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Collapse nav to hamburger (roomy enough for the 5 links + buttons) ---- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 14px var(--container-pad) 20px; margin: 0; box-shadow: var(--shadow-card);
  }
  .nav__links.is-open a:not(.nav__cta) { padding: 12px 0; font-size: var(--fs-body); border-bottom: 1px solid var(--color-border); }
  .nav__links.is-open a:not(.nav__cta):last-of-type { border-bottom: none; }
  .nav__links.is-open .nav__cta { display: inline-flex; width: 100%; justify-content: center; margin-top: 12px; }
}

/* ---- Small tablet / large phone ---- */
@media (max-width: 720px) {
  .stats__row { flex-wrap: wrap; row-gap: var(--space-8); justify-content: space-between; }
  .stat { flex: 0 0 46%; }
  .stat__badge { display: none; }
  .rev__grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  /* trust bar: let logos wrap and drop the aligned wave */
  .trustbar__logos { flex-wrap: wrap; justify-content: center; gap: var(--space-6) var(--space-8); }
  .trustbar__logos .tlogo { flex: 0 0 auto; }
  .trustbar__wave { display: none; }
  .carousel__controls { justify-content: center; }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow__stage { grid-template-columns: 1fr; }
  .flow-card--tl, .flow-card--tr, .flow-card--bl, .flow-card--br { grid-column: 1; }
  .flow-card--tl { grid-row: 1; } .flow-card--tr { grid-row: 2; }
  .flow__hub { grid-row: 3; } .flow-card--bl { grid-row: 4; } .flow-card--br { grid-row: 5; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero__copy h1 { font-size: 2.2rem; }
  .lead { font-size: 1.05rem; }
  /* hero cards: stop overlapping, stack cleanly */
  .hero__visual { position: static; min-height: 0; max-width: 400px; margin: var(--space-6) auto 0;
    transform: none; display: grid; gap: 14px; }
  .hero__visual .hcard { position: static; inset: auto; width: auto; margin: 0; }
  /* stat: 2-up stays but tidy */
  .stat { flex: 0 0 46%; }
  /* CTA dashboard: stack the two mini panels */
  .cta-dash__top { grid-template-columns: 1fr; gap: 18px; }
  .cta__left h2 { max-width: none; }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
  .stat { flex: 0 0 100%; }
  .cta__card, .stats__card { border-radius: 24px; }
  .hero__copy h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
