/* ============================================================
   Infinity Apps · infinityapps.dev
   Dark premium engineering brand. Accent: brand blue (from the logo gradient).
   Shape system: buttons = pill · cards = 14px · inputs = 10px
   ============================================================ */

/* ---------- Fonts (self-hosted, Fontshare) ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/brand/clash-display-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/brand/clash-display-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/brand/clash-display-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/brand/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/brand/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/brand/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0e15;
  --bg-2: #0e131c;
  --surface: #131927;
  --surface-2: #1a2233;
  --line: rgba(226, 232, 244, 0.08);
  --line-strong: rgba(226, 232, 244, 0.17);
  --ink: #eaeef6;
  --ink-soft: #c4ccdc;
  --muted: #99a3b8;
  --accent: #2f7cf0;
  --accent-bright: #6ba3ff;
  --accent-grad: linear-gradient(135deg, #0c50e8, #1e8af0);
  --accent-soft: rgba(47, 124, 240, 0.13);
  --accent-line: rgba(78, 140, 245, 0.42);
  --accent-ink: #ffffff;
  --display: 'Clash Display', 'Avenir Next', system-ui, sans-serif;
  --body: 'Satoshi', 'Helvetica Neue', system-ui, sans-serif;
  --r-card: 14px;
  --r-input: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* z-scale: nav < menu < cursor */
  --z-nav: 50;
  --z-menu: 60;
  --z-cursor: 100;
}
@supports (color: oklch(0.5 0.1 262)) {
  :root {
    --bg: oklch(0.15 0.018 262);
    --bg-2: oklch(0.18 0.02 262);
    --surface: oklch(0.225 0.026 262);
    --surface-2: oklch(0.27 0.032 262);
    --ink: oklch(0.94 0.008 262);
    --muted: oklch(0.71 0.022 262);
    --accent: oklch(0.6 0.18 259);
    --accent-bright: oklch(0.72 0.15 259);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 140px); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  max-width: 18ch;
}
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }

.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent-bright); }

.btn-sm { padding: 11px 22px; font-size: 0.9375rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 9px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(237, 236, 232, 0.06); }
.nav-cta { display: inline-flex; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 8px;
  cursor: pointer;
}
.nav-burger svg { width: 26px; height: 26px; }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 48px;
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-out);
  visibility: hidden;
}
.menu.is-open { transform: translateY(0); visibility: visible; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 48px; }
.menu-top img { height: 36px; width: auto; }
.menu-close { background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.menu-close svg { width: 26px; height: 26px; }
.menu-links { list-style: none; margin: auto 0; padding: 0; display: grid; gap: 8px; }
.menu-links a {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 6px 0;
  display: inline-block;
}
.menu-links a:hover { color: var(--accent-bright); }
.menu .btn { align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 48px;
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.7vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #4d8df5, #2cc2f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: #4d8df5;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 72vh;
}
.hero-visual canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Marquee ---------- */
.stack-strip {
  border-block: 1px solid var(--line);
  padding-block: 28px;
  overflow: hidden;
}
.stack-strip-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 22px;
}
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  padding-right: clamp(40px, 6vw, 84px);
  flex: none;
  animation: marquee 36s linear infinite;
}
.marquee-track img { height: 30px; width: auto; opacity: 0.75; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Services bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento-cell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.bento-cell:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.bento-cell h3 { font-size: 1.4rem; margin: 0 0 10px; }
.bento-cell p { color: var(--muted); font-size: 1rem; margin: 0; position: relative; }
.bento-icon {
  width: 42px; height: 42px;
  color: var(--accent-bright);
  margin-bottom: 22px;
}
.bento-icon svg { width: 100%; height: 100%; }

.cell-web { grid-column: span 7; }
.cell-mobile { grid-column: span 5; }
.cell-design { grid-column: span 4; }
.cell-cloud { grid-column: span 4; }
.cell-security { grid-column: span 4; }

/* visual variation */
.cell-web {
  background-image: radial-gradient(rgba(237,236,232,0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
}
.cell-mobile {
  background-image: linear-gradient(150deg, rgba(47,124,240,0.18), transparent 55%);
}
.cell-security {
  border-color: var(--accent-line);
  background-image: linear-gradient(180deg, var(--accent-soft), transparent 70%);
}
.cell-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--accent-bright);
}
.cell-link svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.cell-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Apps carousel ---------- */
.apps-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.apps-nav { display: flex; gap: 10px; flex: none; }
.apps-nav button {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.apps-nav button:hover { border-color: var(--accent-line); color: var(--accent-bright); }
.apps-nav button:active { transform: scale(0.94); }
.apps-nav svg { width: 18px; height: 18px; }
.apps-nav .prev svg { transform: rotate(225deg); }
.apps-nav .next svg { transform: rotate(45deg); }

.apps-viewport {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 14px;
  margin: -10px -4px 0;
  scrollbar-width: none;
  cursor: grab;
}
.apps-viewport::-webkit-scrollbar { display: none; }
.apps-viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.apps-viewport.is-dragging .app-card { pointer-events: none; }

.app-card {
  flex: none;
  width: min(380px, 84vw);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.app-card[data-href] { cursor: pointer; }
.app-card:hover { border-color: var(--accent-line); transform: translateY(-4px); }
.app-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-card-top { display: flex; align-items: center; gap: 16px; }
.app-card-top img {
  width: 64px; height: 64px;
  border-radius: 15px;
  border: 1px solid var(--line);
}
.app-card-top h3 { font-size: 1.25rem; margin: 0 0 3px; }
.app-genre { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.app-card > p { color: var(--muted); font-size: 0.9875rem; margin: 0; flex-grow: 1; }
.app-shots { display: flex; gap: 10px; }
.app-shots img {
  width: calc((100% - 20px) / 3);
  border-radius: 10px;
  border: 1px solid var(--line);
}
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.app-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
}
.app-meta .star { color: var(--accent-bright); }
.app-meta .star svg { width: 13px; height: 13px; }
.app-links { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.app-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.app-links a:hover { border-color: var(--accent-line); color: var(--accent-bright); }
.app-links img { width: 15px; height: 15px; }

/* ---------- Reviews wall ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars { display: flex; gap: 3px; color: var(--accent-bright); }
.review-stars svg { width: 16px; height: 16px; }
.review blockquote {
  margin: 0;
  font-size: 1.0313rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.review-meta { font-size: 0.875rem; color: var(--muted); }
.review-meta strong { color: var(--ink); font-weight: 700; display: block; }

/* spotlight hover (set via JS custom props) */
.spot {
  position: relative;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(78, 140, 245, 0.1), transparent 65%);
}
.spot:hover::after { opacity: 1; }

/* rolling review marquee */
.reviews-roll {
  display: grid;
  gap: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rr-row { display: flex; overflow: hidden; }
.rr-row .rr-track {
  display: flex;
  gap: 16px;
  padding-right: 16px;
  flex: none;
  animation: marquee var(--dur, 160s) linear infinite;
}
.rr-row.reverse .rr-track { animation-direction: reverse; }
.rr-card { width: min(360px, 80vw); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .reviews-roll { mask-image: none; -webkit-mask-image: none; }
  .rr-row { overflow-x: auto; }
  .rr-track { animation: none !important; }
  .rr-track[aria-hidden] { display: none; }
}

/* ---------- Mobile deep-dive ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.split-sticky { position: sticky; top: 120px; }
.split-sticky h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.split-sticky > p { color: var(--muted); font-size: 1.125rem; }

.store-row { display: flex; gap: 12px; margin-top: 28px; }
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.store-chip img { height: 18px; width: 18px; }

.feature-list { display: grid; gap: 14px; }
.feature-item {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: 24px 28px;
  transition: border-color 0.3s var(--ease-out);
}
.feature-item:hover { border-color: var(--accent-line); }
.feature-item h3 { font-size: 1.2rem; margin: 0 0 6px; }
.feature-item p { color: var(--muted); font-size: 0.9875rem; margin: 0; }

/* ---------- Security band ---------- */
.security {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.security-grid h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.security-grid .lead { color: var(--muted); font-size: 1.125rem; }
.sec-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sec-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 18px 20px;
  font-size: 0.9875rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.45;
}
.sec-list svg { width: 21px; height: 21px; flex: none; color: var(--accent-bright); margin-top: 1px; }

/* ---------- Process (horizontal pan on desktop) ---------- */
.process-wrap { position: relative; overflow: hidden; }
.process-track {
  display: flex;
  gap: 22px;
  align-items: stretch;
  will-change: transform;
}
.process-card {
  flex: none;
  width: min(420px, 82vw);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.process-num {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1;
}
.process-card h3 { font-size: 1.5rem; margin: 0; }
.process-card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.about-photo {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-grid h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.about-grid .lead { color: var(--muted); font-size: 1.125rem; }

.counters {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  margin-top: 40px;
}
.counter h3 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--accent-bright);
  margin: 0;
  line-height: 1;
}
.counter span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ---------- Engagement models ---------- */
.models { display: grid; gap: 16px; }
.model {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: clamp(26px, 3.5vw, 44px);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.model:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.model-name h3 { font-size: 1.7rem; margin: 0 0 6px; }
.model-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.model-body p { color: var(--muted); margin: 0 0 16px; font-size: 1rem; }
.model-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.model-chips span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
}
.model-cta { text-align: right; }
.model-cta .price {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary svg {
  width: 20px; height: 20px; flex: none;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary svg { transform: rotate(180deg); color: var(--accent-bright); }
.faq details p {
  color: var(--muted);
  padding: 0 4px 26px;
  margin: 0;
  max-width: 62ch;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact-grid h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.contact-grid .lead { color: var(--muted); font-size: 1.125rem; }

.contact-direct { margin-top: 36px; display: grid; gap: 16px; }
.contact-direct a, .contact-direct .line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.contact-direct a:hover { color: var(--accent-bright); }
.contact-direct svg { width: 21px; height: 21px; color: var(--accent-bright); flex: none; }

.form {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: clamp(26px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9375rem; font-weight: 700; }
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #8d929b; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.form-note { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.form-success {
  grid-column: 1 / -1;
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-input);
  color: var(--ink);
  padding: 14px 18px;
  font-weight: 500;
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 80px) 0 36px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 56px;
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.9875rem; max-width: 36ch; }
.footer h4 {
  font-family: var(--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--ink-soft); font-size: 0.9875rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--accent-line); color: var(--accent-bright); }
.footer-socials svg { width: 17px; height: 17px; }

.ink-accent { font-style: normal; color: var(--accent-bright); }

/* ---------- Inner-page head ---------- */
.page-head {
  padding-top: clamp(140px, 18vh, 190px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-head h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-bottom: 20px;
}
.page-head p { color: var(--muted); font-size: 1.1875rem; max-width: 52ch; }

/* ---------- Service blocks (services page) ---------- */
.svc-list { display: grid; gap: 16px; }
.svc-block {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: clamp(26px, 3.5vw, 44px);
  transition: border-color 0.3s var(--ease-out);
}
.svc-block:hover { border-color: var(--accent-line); }
.svc-block .bento-icon { margin-bottom: 16px; }
.svc-block h2 { font-size: 1.7rem; margin: 0; }
.svc-block .svc-copy p { color: var(--muted); margin: 0 0 18px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chips span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
}

/* ---------- App rows (apps page) ---------- */
.app-rows { display: grid; gap: 16px; }
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
  padding: clamp(26px, 3.5vw, 44px);
  transition: border-color 0.3s var(--ease-out);
}
.app-row:hover { border-color: var(--accent-line); }
.app-row.no-shots { grid-template-columns: 1fr; }
.app-row .app-card-top { margin-bottom: 16px; }
.app-row .app-card-top img { width: 72px; height: 72px; border-radius: 17px; }
.app-row .app-card-top h3 { font-size: 1.6rem; }
.app-row p.app-desc { color: var(--muted); margin: 0 0 18px; }
.app-row .app-meta { margin-bottom: 20px; }
.app-row .app-links { border-top: 0; padding-top: 0; }
.app-row-shots { display: flex; gap: 12px; justify-content: flex-end; }
.app-row-shots img {
  width: calc((100% - 24px) / 3);
  max-width: 150px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* ---------- Story timeline (how we work) ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 44px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-strong);
  border-radius: 2px;
}
.timeline-progress {
  position: absolute;
  left: 11px;
  top: 6px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--accent-grad);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
}
.tl-step {
  position: relative;
  padding-bottom: clamp(36px, 5vw, 56px);
}
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-step h3 { font-size: 1.45rem; margin: 0 0 8px; }
.tl-step h3 .tl-tag {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 10px;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 4px 11px;
}
.tl-step p { color: var(--muted); margin: 0; max-width: 58ch; }
.tl-step.tl-final h3 { color: var(--accent-bright); }

/* ---------- CTA band ---------- */
.cta-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(680px 320px at 50% 120%, rgba(47, 124, 240, 0.16), transparent 70%),
    var(--bg-2);
  text-align: center;
  padding-block: clamp(80px, 11vw, 130px);
}
.cta-band h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 22ch;
  margin-inline: auto;
}
.cta-band p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 46ch;
  margin: 0 auto 36px;
}
.cta-band .btn { justify-content: center; }

/* ---------- Ambient tech layer ---------- */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 90;
  pointer-events: none;
}

/* ---------- Cursor trail ---------- */
#trail-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 95;
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent-bright);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--accent-line);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
body.cursor-active { cursor: none; }
body.cursor-active a, body.cursor-active button,
body.cursor-active summary, body.cursor-active label,
body.cursor-active input, body.cursor-active textarea { cursor: none; }
body.cursor-active .cursor-dot, body.cursor-active .cursor-ring { opacity: 1; }
.cursor-ring.is-hover {
  width: 58px; height: 58px;
  border-color: var(--accent-bright);
  background: rgba(47, 124, 240, 0.1);
}
.cursor-ring.is-press { width: 30px; height: 30px; }

/* ---------- Scroll-to-top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: var(--z-nav);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s, border-color 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.to-top svg { width: 18px; height: 18px; transform: rotate(180deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .process-track { flex-direction: column; }
  .process-card { width: 100%; }
}

@media (max-width: 1100px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { padding-top: 110px; align-items: flex-start; }
  .reviews-grid { grid-template-columns: 1fr; }
  .apps-head { flex-direction: column; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .split, .security-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .about-photo { max-width: 420px; }
  .model { grid-template-columns: 1fr; gap: 18px; }
  .model-cta { text-align: left; }
  .bento { grid-template-columns: 1fr; }
  .cell-web, .cell-mobile, .cell-design, .cell-cloud, .cell-security { grid-column: auto; }
  .sec-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .counters { flex-wrap: wrap; }
  .svc-block, .app-row { grid-template-columns: 1fr; }
  .app-row-shots { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}
