/* =========================================================
   CRESVERN, Design System
   "Rising to the crest"
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette */
  --ink-900: #05070f;
  --ink-800: #0a0e1a;
  --ink-700: #0f1424;
  --ink-600: #161c30;
  --ink-500: #1e2740;

  --paper: #ffffff;
  --paper-2: #f6f8fc;
  --paper-3: #eef1f8;

  --violet: #7c5cff;
  --indigo: #4f46e5;
  --cyan: #22d3ee;
  --mint: #34d9a8;

  --brand: #6d5efc;
  --brand-2: #22d3ee;
  --brand-grad: linear-gradient(120deg, #7c5cff 0%, #4f46e5 42%, #22d3ee 100%);
  --brand-grad-soft: linear-gradient(120deg, rgba(124,92,255,.16), rgba(34,211,238,.16));

  --text-strong: #0b1020;
  --text: #2a3350;
  --text-soft: #5b647f;
  --text-invert: #eef1fb;
  --text-invert-soft: #a9b2cf;

  --line: #e6eaf3;
  --line-dark: rgba(255, 255, 255, 0.08);

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

  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 2px 8px rgba(11, 16, 32, .05);
  --shadow: 0 10px 30px rgba(11, 16, 32, .10);
  --shadow-lg: 0 30px 70px rgba(11, 16, 32, .18);
  --glow: 0 20px 60px rgba(109, 94, 252, .35);

  --container: 1200px;
  --nav-h: 76px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 800;
}
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}
.eyebrow--invert { color: var(--brand-2); }

/* Technology pills (AI page) */
.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, color .2s;
}
.tech-tag:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* Floating WhatsApp button (injected site-wide by main.js) */
.wa-float {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  z-index: 90;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 42px rgba(37, 211, 102, .6); }
.wa-float svg { width: 30px; height: 30px; }
@media print { .wa-float { display: none; } }

.h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-soft);
  max-width: 60ch;
}
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .98rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background .25s var(--ease), color .25s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 12px 30px rgba(109, 94, 252, .35);
}
.btn--primary:hover { box-shadow: 0 18px 44px rgba(109, 94, 252, .5); }

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--invert {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.btn--invert:hover { background: rgba(255, 255, 255, .16); }

.btn--light { background: #fff; color: var(--ink-800); }
.btn--light:hover { box-shadow: var(--shadow); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
    border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 30px rgba(11, 16, 32, .06);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name {
  font-size: 1.28rem;
  letter-spacing: .02em;
  color: #fff;                 /* light over the dark hero at the top */
  transition: color .3s var(--ease);
}
.brand__name b { color: var(--brand-2); transition: color .3s var(--ease); }
.nav.is-scrolled .brand__name { color: var(--text-strong); }
.nav.is-scrolled .brand__name b { color: var(--brand); }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-weight: 600;
  font-size: .97rem;
  color: rgba(255, 255, 255, .82);   /* readable over the dark hero */
  position: relative;
  padding: .3rem 0;
  transition: color .3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav.is-scrolled .nav__link { color: var(--text); }
.nav.is-scrolled .nav__link:hover { color: var(--brand); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: #fff; }
.nav.is-scrolled .nav__link.is-active { color: var(--text-strong); }

/* Products dropdown */
.nav__item--menu { position: relative; display: inline-flex; align-items: center; }
.nav__link--parent { display: inline-flex; align-items: center; gap: .28rem; }
.nav__caret { transition: transform .3s var(--ease); opacity: .85; }
.nav__item--menu:hover .nav__caret,
.nav__item--menu:focus-within .nav__caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  min-width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 100;
}
.nav__menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* bridges the hover gap */
.nav__item--menu:hover .nav__menu,
.nav__item--menu:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu-link {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .8rem; border-radius: 12px;
  color: var(--text-strong);
  transition: background .2s var(--ease);
}
.nav__menu-link:hover { background: var(--paper-2); }
.nav__menu-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-grad); color: #fff; }
.nav__menu-txt { display: flex; flex-direction: column; line-height: 1.25; }
.nav__menu-txt b { font-size: .98rem; color: var(--text-strong); }
.nav__menu-txt small { font-size: .82rem; color: var(--text-soft); }
.nav__menu-all {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .8rem; margin-top: .25rem;
  border-top: 1px solid var(--line);
  color: var(--brand); font-weight: 700; font-size: .9rem;
}

.nav__cta { display: flex; align-items: center; gap: .8rem; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background .3s;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: rotate(-45deg) translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px));
  padding-bottom: clamp(60px, 10vw, 130px);
  background: radial-gradient(1200px 700px at 78% -10%, #131a33 0%, transparent 60%),
    radial-gradient(900px 600px at 6% 110%, #10233a 0%, transparent 55%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  color: var(--text-invert);
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  animation: float 14s ease-in-out infinite;
}
.hero__glow--1 { width: 460px; height: 460px; background: #6d5efc; top: -120px; right: 4%; }
.hero__glow--2 { width: 380px; height: 380px; background: #22d3ee; bottom: -140px; left: -60px; animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, 26px) scale(1.06); }
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}
/* Animated aurora — drifting, colour-shifting light behind hero sections.
   Pure CSS, GPU-friendly, no images. Applies to home + inner-page heroes. */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  background:
    radial-gradient(38% 38% at 22% 28%, rgba(124, 92, 255, .40), transparent 62%),
    radial-gradient(32% 32% at 80% 22%, rgba(34, 211, 238, .34), transparent 62%),
    radial-gradient(42% 42% at 62% 82%, rgba(16, 185, 129, .26), transparent 62%),
    radial-gradient(36% 36% at 30% 78%, rgba(79, 70, 229, .30), transparent 62%);
  filter: blur(48px) saturate(125%);
  opacity: .85;
  animation: aurora 22s ease-in-out infinite alternate,
             aurora-hue 34s linear infinite;
  will-change: transform, filter;
  pointer-events: none;
}
@keyframes aurora {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.05) rotate(-4deg); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.18) rotate(6deg); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.10) rotate(-2deg); }
}
@keyframes aurora-hue {
  0%, 100% { filter: blur(48px) saturate(125%) hue-rotate(0deg); }
  50%      { filter: blur(48px) saturate(125%) hue-rotate(30deg); }
}
.page-hero { isolation: isolate; }

/* Rotating offering / industry words in the hero chip.
   Auto width — words size to their content for natural spacing. The text
   swaps while faded out, so the width change isn't visible. */
.rotator {
  color: var(--brand-2);
  font-weight: 700;
  display: inline-block;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.rotator.is-out { opacity: 0; transform: translateY(-.35em); }

.hero h1 { color: #fff; }
.hero .lead { color: var(--text-invert-soft); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-invert);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 1.6rem;
  max-width: 100%;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__meta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
}
.hero__meta .num {
  font-size: 2rem; font-weight: 800; color: #fff;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__meta .lbl { font-size: .85rem; color: var(--text-invert-soft); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  padding-block: 1.5rem;
}
.marquee__label {
  text-align: center; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-soft); font-weight: 700;
  margin-bottom: 1.1rem;
}
.marquee__track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: scroll 26s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-weight: 700; font-size: 1.15rem; color: var(--text-soft);
  white-space: nowrap; opacity: .8;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--brand-grad-soft);
  color: var(--brand);
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--text-soft); margin-bottom: 0; }
.card__link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.2rem; font-weight: 700; color: var(--brand);
  font-size: .95rem;
}
.card__link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

/* feature card with number */
.step { position: relative; }
.step__num {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9; margin-bottom: .6rem;
}

/* ---------- Section header ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.text-center { margin-inline: auto; }

/* ---------- Stats band ---------- */
.stats {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-700));
  color: #fff;
}
.stats .stat__num {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats .stat__lbl { color: var(--text-invert-soft); font-weight: 500; margin-top: .4rem; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media {
  border-radius: var(--radius-xl);
  background: var(--brand-grad);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__media .glass {
  position: absolute; inset: auto 8% 8% 8%;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px; padding: 1.2rem 1.4rem; color: #fff;
  z-index: 2;
}
/* Decorative device/graphic mockup that fills the gradient panel */
.split__media .media-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 9% 9% 30%;
  pointer-events: none; z-index: 1;
}
.split__media .media-art svg {
  width: 100%; height: auto; max-height: 100%;
  filter: drop-shadow(0 24px 48px rgba(6, 10, 25, .3));
}
.checklist li {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .55rem 0; color: var(--text); font-weight: 500;
}
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--mint); margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: radial-gradient(700px 400px at 80% 20%, rgba(124,92,255,.4), transparent 60%),
    linear-gradient(120deg, var(--ink-700), var(--ink-800));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--text-invert-soft); margin-inline: auto; }

/* ---------- Contact / Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .5rem; color: var(--text-strong); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--text-strong);
  background: var(--paper-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 94, 252, .14);
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid {
  border-color: #d64545; background: #fff;
}
.field input.is-invalid:focus, .field select.is-invalid:focus, .field textarea.is-invalid:focus {
  border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-note { font-size: .85rem; color: var(--text-soft); margin-top: 1rem; }
.form-note a { color: var(--brand); text-decoration: underline; }
.field-hint { display: block; font-size: .8rem; color: var(--text-soft); margin-top: .35rem; text-align: right; }
.field-hint.is-over { color: #d64545; font-weight: 600; }
.form-status {
  display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(52, 217, 168, .14); color: #0f7a5a; border: 1px solid rgba(52,217,168,.4); }
.form-status.is-error { background: rgba(255, 90, 90, .12); color: #b42318; border: 1px solid rgba(255,90,90,.35); }

.contact-aside .card { background: var(--paper-2); }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--brand-grad-soft); color: var(--brand);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { margin: 0 0 .15rem; font-size: 1rem; }
.contact-item a, .contact-item p { color: var(--text-soft); margin: 0; font-weight: 500; }
.contact-item a:hover { color: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.1rem; color: var(--text-strong);
  padding: 1.4rem 3rem 1.4rem 0; position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--brand); transition: transform .3s var(--ease);
}
.faq__item.is-open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { color: var(--text-soft); padding-bottom: 1.4rem; margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 90px));
  padding-bottom: clamp(48px, 7vw, 90px);
  background: radial-gradient(900px 500px at 85% -20%, #16203c 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  color: var(--text-invert);
  position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--text-invert-soft); }
.breadcrumb { font-size: .85rem; color: var(--text-invert-soft); margin-bottom: 1rem; display: flex; gap: .5rem; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Values / small icon rows ---------- */
.value { display: flex; gap: 1rem; align-items: flex-start; }
.value__icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--brand-grad-soft); color: var(--brand);
}
.value__icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.value p { color: var(--text-soft); margin: 0; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.is-featured {
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border-color: transparent; color: #fff; position: relative;
}
.price-card.is-featured h3, .price-card.is-featured .price { color: #fff; }
.price-card.is-featured p, .price-card.is-featured .checklist li { color: var(--text-invert-soft); }
.badge-pop {
  position: absolute; top: 1.4rem; right: 1.4rem;
  background: var(--brand-grad); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; letter-spacing: .04em;
}
.price { font-size: 2.4rem; font-weight: 800; color: var(--text-strong); margin: .4rem 0 0; }
.price span { font-size: .95rem; font-weight: 500; color: var(--text-soft); }
.price-card .checklist { flex: 1; margin: 1.4rem 0; }
.price-card .checklist li { font-size: .95rem; padding: .4rem 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: var(--text-invert-soft);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer .brand__name { color: #fff; }
.footer__about { max-width: 34ch; margin-top: 1rem; font-size: .95rem; }
.footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 1.2rem; text-transform: uppercase; }
.footer li { margin-bottom: .7rem; }
.footer a { font-size: .95rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff;
  transition: background .25s, transform .25s;
}
.footer__social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .88rem;
}
.footer__legal { display: flex; gap: .6rem; align-items: center; }
.footer__legal a { color: var(--text-invert-soft); }
.footer__legal a:hover { color: #fff; }

/* ---------- Legal / prose pages (Terms, Privacy) ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--brand); text-decoration: underline; }
.legal__updated { color: var(--text-soft); font-size: .9rem; margin-bottom: 2rem; }

/* ---------- Services explorer (tabbed) ---------- */
.svc-explorer {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
}
.svc-tablist {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.svc-tab {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  text-align: left;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--text-strong);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .25s var(--ease), background .25s var(--ease),
    box-shadow .25s var(--ease), transform .25s var(--ease);
}
.svc-tab:hover { border-color: var(--brand); transform: translateX(2px); }
.svc-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.svc-tab[aria-selected="true"] {
  border-color: transparent;
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--glow);
}
.svc-tab__ic {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-grad-soft);
  color: var(--brand);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.svc-tab__ic svg { width: 22px; height: 22px; }
.svc-tab[aria-selected="true"] .svc-tab__ic { background: rgba(255,255,255,.18); color: #fff; }
.svc-tab__txt { min-width: 0; }
.svc-tab__label { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.svc-tab__tag { font-size: .82rem; opacity: .7; margin-top: 2px; }
.svc-tab[aria-selected="true"] .svc-tab__tag { opacity: .9; }

.svc-stage { position: relative; min-height: 380px; }
.svc-panel {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.svc-panel[hidden] { display: none; }
.js .svc-panel:not([hidden]) { animation: svc-fade .5s var(--ease) both; }
@keyframes svc-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.svc-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.svc-panel__head .eyebrow { margin-bottom: .6rem; }
.svc-panel__head h3 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin-bottom: .7rem; color: var(--text-strong); }
.svc-panel__lead { color: var(--text-soft); max-width: 62ch; }
.svc-panel__cta { flex: none; white-space: nowrap; }
.svc-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-bottom: 1.6rem;
}
.svc-sub {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.svc-sub:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.svc-sub__t { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--text-strong); margin-bottom: .35rem; }
.svc-sub__t::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); flex: none; }
.svc-sub p { font-size: .88rem; color: var(--text-soft); line-height: 1.5; }
.svc-panel__tags { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .9rem; }
.ind-card {
  padding: 1.3rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  text-align: center;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.ind-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.ind-card__ic {
  width: 46px; height: 46px;
  margin: 0 auto .7rem;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-grad-soft);
  color: var(--brand);
}
.ind-card__ic svg { width: 24px; height: 24px; }
.ind-card__n { font-weight: 700; color: var(--text-strong); font-size: .98rem; margin-bottom: .2rem; }
.ind-card__d { font-size: .8rem; color: var(--text-soft); line-height: 1.45; }

@media (max-width: 900px) {
  .svc-explorer { grid-template-columns: 1fr; }
  .svc-tablist {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: .5rem;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .svc-tab { width: auto; flex: 0 0 auto; scroll-snap-align: start; }
  .svc-tab__tag { display: none; }
  .svc-panel__head { flex-direction: column; gap: 1rem; }
  .svc-subgrid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .svc-subgrid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Product pages ---------- */
.prod-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; text-align: left; }
.prod-hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.badge-soon { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .75rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .8rem; font-weight: 600; }
.badge-soon svg { width: 15px; height: 15px; }

/* Phone mockup */
.device { position: relative; width: min(270px, 74%); margin-inline: auto; aspect-ratio: 9 / 19; border-radius: 36px; background: #0b1020; border: 3px solid rgba(255,255,255,.4); box-shadow: var(--shadow-lg); padding: 9px; }
.device__screen { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #fff; }
.device__screen svg, .device__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.device__notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 36%; height: 15px; border-radius: 0 0 11px 11px; background: rgba(255,255,255,.4); z-index: 2; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); max-width: 900px; margin-inline: auto; }
.shot-grid .device { width: 100%; }

/* Supported platforms */
.platform-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; max-width: 760px; margin-inline: auto; }
.platform-chip { display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 82px; }
.platform-chip__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--paper-2); border: 1px solid var(--line); color: var(--text-strong); }
.platform-chip__ic svg { width: 26px; height: 26px; }
.platform-chip b { font-size: .8rem; color: var(--text-strong); }
.platform-chip .soon-tag { font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); font-weight: 800; }
.platform-chip.is-soon .platform-chip__ic { opacity: .5; }

/* Privacy / security cards */
.sec-card .card__icon { background: var(--brand-grad-soft); color: var(--brand); }

/* Products overview cards */
.pill-soon { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 999px; background: var(--brand-grad-soft); color: var(--brand); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.prod-mini { display: flex; align-items: center; gap: .55rem; color: var(--text-soft); margin-top: .2rem; }
.prod-mini svg { width: 20px; height: 20px; }
.prod-card--soon { border-style: dashed; background: var(--paper-2); }
.prod-card--soon .card__icon { background: var(--paper-3); color: var(--text-soft); }

/* Get-the-app: store badges + QR */
.get-app { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; }
.store-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.05rem; border-radius: 13px; background: #0b1020; color: #fff; min-width: 172px; }
.store-badge svg { width: 27px; height: 27px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: .64rem; opacity: .82; letter-spacing: .02em; }
.store-badge b { font-size: 1.02rem; }
.qr { width: 150px; height: 150px; flex: none; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.qr svg { width: 118px; height: 118px; }
.get-app__note { font-size: .82rem; color: var(--text-soft); margin-top: .7rem; }

@media (max-width: 900px) {
  .prod-hero { grid-template-columns: 1fr; }
  .prod-hero .device { order: -1; }
  .shot-grid { grid-template-columns: 1fr; max-width: 300px; }
  .get-app { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ----------
   Only hidden when JS is available (html.js). Without JS the content
   shows immediately, so the site is fully readable regardless. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    padding: 1rem clamp(20px, 5vw, 40px) 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav.is-open .nav__links { transform: none; }
  .nav__link { width: 100%; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-scrolled, .nav { background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--line); }
  /* On mobile the bar is always light, so keep text dark for contrast */
  .nav .brand__name, .nav.is-scrolled .brand__name { color: var(--text-strong); }
  .nav .brand__name b, .nav.is-scrolled .brand__name b { color: var(--brand); }
  .nav .nav__link, .nav.is-scrolled .nav__link { color: var(--text); }
  .nav .nav__link.is-active, .nav.is-scrolled .nav__link.is-active { color: var(--text-strong); }

  /* Products dropdown becomes an always-expanded sub-list on mobile */
  .nav__item--menu { display: block; width: 100%; }
  .nav__link--parent { display: flex; width: 100%; }
  .nav__caret { display: none; }
  .nav__menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: .2rem 0 .5rem; margin: 0;
    background: transparent; border: 0; box-shadow: none;
  }
  .nav__menu::before { display: none; }
  .nav__menu-link { padding: .6rem .2rem; }
  .nav__menu-all { border-top: 0; padding: .5rem .2rem; }
}
@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .hero__meta { gap: 1.5rem; }
  .hero__actions .btn { width: 100%; }
}
