/* ==========================================================================
   dev.tripplefingers — landing page styles
   ========================================================================== */

/* ---------- Design tokens ---------- */
/* Palette: "Terminal lime". Buttons and the logo are dark-on-light in the
   light theme (lime alone is too pale on light backgrounds) and lime in the
   dark theme. */
:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --bg-soft: #edefe7;
  --surface: #ffffff;
  --surface-2: #f2f4ec;
  --line: rgba(10, 13, 11, 0.1);
  --line-strong: rgba(10, 13, 11, 0.18);
  --text: #0a0d0b;
  --text-2: #50554d;
  --text-3: #5f645b;
  --accent: #c6f135;
  --on-accent: #0a0d0b;
  --accent-text: #3f6212;
  --accent-mark: #5a930f;
  --accent-soft: #ecf6cf;
  --accent-line: rgba(90, 147, 15, 0.5);
  --btn-bg: #0a0d0b;
  --btn-fg: #c6f135;
  --btn-hover: #1f2821;
  --btn-glow: rgba(10, 13, 11, 0.45);
  --logo-bg: #0a0d0b;
  --logo-fg: #c6f135;
  --hl-text: #0a0d0b;
  --hl-marker: #c6f135;
  --grid: rgba(10, 13, 11, 0.055);
  --danger: #c62828;
  --danger-soft: rgba(198, 40, 40, 0.08);
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, 0.1);
  --invert-bg: #0a0d0b;
  --invert-text: #f6f7f2;
  --invert-accent: #c6f135;
  --header-bg: rgba(246, 247, 242, 0.8);
  --shadow-sm: 0 1px 2px rgba(10, 13, 11, 0.05);
  --shadow-md: 0 1px 2px rgba(10, 13, 11, 0.04), 0 10px 30px -8px rgba(10, 13, 11, 0.14);
  --shadow-lg: 0 2px 4px rgba(10, 13, 11, 0.04), 0 28px 64px -16px rgba(10, 13, 11, 0.24);
  --glow: rgba(163, 230, 53, 0.3);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0d0b;
    --bg-soft: #0e120f;
    --surface: #131714;
    --surface-2: #1a1f1b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f1f4ee;
    --text-2: #a6ada2;
    --text-3: #8a9185;
    --accent-text: #c6f135;
    --accent-mark: #c6f135;
    --accent-soft: rgba(198, 241, 53, 0.12);
    --accent-line: rgba(198, 241, 53, 0.45);
    --btn-bg: #c6f135;
    --btn-fg: #0a0d0b;
    --btn-hover: #d5f76a;
    --btn-glow: rgba(198, 241, 53, 0.3);
    --logo-bg: #c6f135;
    --logo-fg: #0a0d0b;
    --hl-text: #c6f135;
    --hl-marker: transparent;
    --grid: rgba(255, 255, 255, 0.045);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, 0.1);
    --success: #4ade80;
    --success-soft: rgba(74, 222, 128, 0.12);
    --invert-bg: #f1f4ee;
    --invert-text: #0a0d0b;
    --invert-accent: #3f6212;
    --header-bg: rgba(10, 13, 11, 0.74);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 70px -12px rgba(0, 0, 0, 0.75);
    --glow: rgba(198, 241, 53, 0.1);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0d0b;
  --bg-soft: #0e120f;
  --surface: #131714;
  --surface-2: #1a1f1b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f4ee;
  --text-2: #a6ada2;
  --text-3: #8a9185;
  --accent-text: #c6f135;
  --accent-mark: #c6f135;
  --accent-soft: rgba(198, 241, 53, 0.12);
  --accent-line: rgba(198, 241, 53, 0.45);
  --btn-bg: #c6f135;
  --btn-fg: #0a0d0b;
  --btn-hover: #d5f76a;
  --btn-glow: rgba(198, 241, 53, 0.3);
  --logo-bg: #c6f135;
  --logo-fg: #0a0d0b;
  --hl-text: #c6f135;
  --hl-marker: transparent;
  --grid: rgba(255, 255, 255, 0.045);
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.1);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.12);
  --invert-bg: #f1f4ee;
  --invert-text: #0a0d0b;
  --invert-accent: #3f6212;
  --header-bg: rgba(10, 13, 11, 0.74);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 30px 70px -12px rgba(0, 0, 0, 0.75);
  --glow: rgba(198, 241, 53, 0.1);
}

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

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn-sm {
  --btn-h: 38px;
  padding: 0 15px;
  font-size: 0.875rem;
}

.btn-lg {
  --btn-h: 54px;
  padding: 0 26px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 22px -10px var(--btn-glow);
}

.btn-primary:hover {
  background: var(--btn-hover);
}

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

.btn-ghost:hover {
  border-color: var(--text-3);
  background: var(--surface-2);
}

.btn-ink {
  background: #0a0d0b;
  color: #f6f7f2;
}

.btn-ink:hover {
  background: #1f2821;
}

.btn-whatsapp {
  background: #25d366;
  color: #0b1f12;
}

.btn-whatsapp:hover {
  background: #3ee07b;
}

.btn.is-loading .icon {
  animation: nudge 0.8s var(--ease) infinite alternate;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.link-btn {
  color: var(--accent-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.bm-bg {
  fill: var(--logo-bg);
}

.bm-bar {
  fill: var(--logo-fg);
}

.brand-dim {
  color: var(--text-3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}

.site-header.is-scrolled,
.nav-open .site-header {
  border-bottom-color: var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.site-nav {
  margin-inline: auto;
}

.site-nav ul {
  display: flex;
  gap: 2px;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:not(.btn):hover {
  background: var(--surface-2);
  color: var(--text);
}

.site-nav a.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle .i-sun,
.nav-toggle .i-close,
.nav-toggle,
.nav-cta {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-toggle .i-moon {
    display: none;
  }
}

@media (max-width: 899.98px) {
  .nav-toggle {
    display: inline-grid;
  }

  .nav-open .nav-toggle .i-menu {
    display: none;
  }

  .nav-open .nav-toggle .i-close {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-md);
  }

  .js .site-nav {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.2s var(--ease);
  }

  html:not(.js) .site-nav {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a:not(.btn) {
    padding: 13px 12px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .nav-cta {
    display: flex;
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 559.98px) {
  .header-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 9vw, 112px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 30%, transparent 78%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-mark);
  opacity: 0.25;
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(2.6rem, 6.1vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.038em;
}

/* Light theme: highlighter stripe behind dark text. Dark theme: lime text. */
.accent-serif {
  padding: 0 0.06em;
  background: linear-gradient(transparent 58%, var(--hl-marker) 58%, var(--hl-marker) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--hl-text);
  font-family: var(--font-serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-lead {
  max-width: 35rem;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof .icon {
  width: 18px;
  height: 18px;
  color: var(--accent-text);
  stroke-width: 2.4;
}

/* Hero visual (decorative mock-up) */
.hero-visual {
  position: relative;
  padding: 0 0 84px 44px;
}

.mock-browser {
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock-browser .dots i:nth-child(1) {
  background: #ff5f57;
}

.mock-browser .dots i:nth-child(2) {
  background: #febc2e;
}

.mock-browser .dots i:nth-child(3) {
  background: #28c840;
}

.mock-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  max-width: 240px;
  height: 26px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.mock-url .icon {
  width: 12px;
  height: 12px;
}

.mock-page {
  display: grid;
  gap: 20px;
  padding: 18px 20px 24px;
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-logo {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-mark);
}

.mock-links {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.mock-links i {
  width: 34px;
  height: 7px;
  border-radius: 99px;
  background: var(--line-strong);
}

.mock-pill {
  width: 64px;
  height: 24px;
  border-radius: 99px;
  background: var(--text);
}

.mock-hero {
  display: grid;
  gap: 11px;
  padding: 16px 0 4px;
}

.mock-line {
  height: 9px;
  border-radius: 99px;
  background: var(--line-strong);
}

.mock-line.lg {
  height: 22px;
  border-radius: 8px;
  background: var(--text);
}

.mock-line.accent {
  background: var(--accent-mark);
}

.w-55 { width: 55%; }
.w-70 { width: 70%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }

.mock-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mock-btn {
  width: 96px;
  height: 30px;
  border-radius: 99px;
  background: var(--btn-bg);
}

.mock-btn.ghost {
  border: 1px solid var(--line-strong);
  background: transparent;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mock-card {
  position: relative;
  height: 92px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.mock-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent-soft);
}

.mock-card::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 22px;
  bottom: 14px;
  height: 7px;
  border-radius: 99px;
  background: var(--line-strong);
  box-shadow: 0 -13px 0 var(--line);
}

.mock-terminal {
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  width: min(320px, 74%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #0d110e;
  box-shadow: var(--shadow-lg);
  color: #d6dcd3;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8a8a93;
}

.term-head .dots i {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.term-body {
  padding: 12px 14px 14px;
  line-height: 1.8;
  white-space: nowrap;
}

.t-line {
  display: block;
}

.t-prompt {
  color: #c6f135;
}

.t-ok {
  color: #4ade80;
}

.t-live {
  color: #f3f3f0;
}

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -2px;
  background: #d6d6dc;
}

.mock-toast {
  position: absolute;
  top: 58px;
  right: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
  line-height: 1.35;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.toast-icon .icon {
  width: 18px;
  height: 18px;
}

.toast-copy {
  display: grid;
}

.toast-copy strong {
  font-weight: 600;
}

.toast-copy span {
  color: var(--text-3);
}

@media (max-width: 979.98px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    max-width: 600px;
  }
}

@media (max-width: 479.98px) {
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 559.98px) {
  .hero-visual {
    padding: 0 0 96px 16px;
  }

  .mock-toast {
    top: auto;
    right: 0;
    bottom: 118px;
  }

  .mock-links i:nth-child(n + 2) {
    display: none;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  align-items: center;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}

.marquee .marquee-list {
  display: flex;
  align-items: center;
  padding-block: 20px;
}

.marquee-list li {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.marquee-list li::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-mark);
  transform: rotate(45deg);
}

.marquee-toggle {
  width: 34px;
  height: 34px;
  margin: 0 var(--gutter) 0 8px;
}

.marquee-toggle .i-play,
.marquee-toggle[aria-pressed="true"] .i-pause {
  display: none;
}

.marquee-toggle[aria-pressed="true"] .i-play {
  display: block;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 116px);
}

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

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
  color: var(--accent-text);
}

.eyebrow-num::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.section-title {
  margin-top: 16px;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  letter-spacing: -0.032em;
}

.section-lead {
  max-width: 36rem;
  margin-top: 18px;
  color: var(--text-2);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

.section-lead a {
  color: var(--accent-text);
  font-weight: 600;
}

/* Scroll reveal (enabled by JS only) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--d, 0s);
  }

  .reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .stagger > :nth-child(2) { --d: 0.07s; }
  .stagger > :nth-child(3) { --d: 0.14s; }
  .stagger > :nth-child(4) { --d: 0.21s; }
  .stagger > :nth-child(5) { --d: 0.28s; }
  .stagger > :nth-child(6) { --d: 0.35s; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 939.98px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599.98px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.services-grid > li {
  display: flex;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

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

.service-card:target {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.service-num {
  position: absolute;
  top: 30px;
  right: 28px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.service-icon,
.why-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.service-icon .icon,
.why-icon .icon {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  margin-top: 22px;
  font-size: 1.35rem;
}

.service-card > p {
  margin-top: 10px;
  color: var(--text-2);
}

.service-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 26px;
  font-size: 0.925rem;
}

.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  border-radius: 1.5px;
  background: var(--accent-mark);
  transform: rotate(45deg);
}

.service-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.service-cta .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.service-cta:hover {
  border-color: var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.service-card:hover .service-cta .icon {
  transform: translateX(3px);
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-list > li {
  display: flex;
}

.process-step {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step-num {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}

.process-step h3 {
  margin-top: 30px;
  font-size: 1.5rem;
}

.process-step > p:not(.step-out) {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.step-out {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 26px;
  font-size: 0.92rem;
  font-weight: 600;
}

.step-out span {
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 999.98px) {
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599.98px) {
  .process-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Why us ---------- */
.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 6vw, 88px);
}

.why-layout .section-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  margin-bottom: 0;
}

.why-cta {
  margin-top: 30px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.why-grid > li {
  display: flex;
}

.why-card {
  width: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.why-icon {
  background: var(--surface-2);
  color: var(--text);
}

.why-card h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

.why-card p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stack-label {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-list li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 899.98px) {
  .why-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-layout .section-head {
    position: static;
  }
}

@media (max-width: 559.98px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- CTA band ---------- */
.cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 48px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-xl);
  background: var(--accent);
  color: #0a0d0b;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  letter-spacing: -0.032em;
}

.cta-box p {
  max-width: 36rem;
  margin-top: 12px;
  color: rgba(10, 13, 11, 0.85);
  font-size: 1.05rem;
}

.cta-mark {
  position: absolute;
  right: -40px;
  bottom: -90px;
  z-index: -1;
  width: 300px;
  height: 300px;
  fill: #0a0d0b;
  opacity: 0.08;
  transform: rotate(-12deg);
}

@media (max-width: 759.98px) {
  .cta-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box .btn {
    justify-self: start;
    white-space: normal;
    text-align: left;
  }
}

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}

.faq-layout .section-head {
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.012em;
  transition: color 0.2s;
}

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

.faq-item summary:hover {
  color: var(--accent-text);
}

.faq-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-icon {
  border-color: var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-body {
  padding: 0 56px 24px 4px;
  color: var(--text-2);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords;
    }

    .faq-item::details-content {
      height: 0;
      overflow: clip;
      transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
    }

    .faq-item[open]::details-content {
      height: auto;
    }
  }
}

@media (max-width: 859.98px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-body {
    padding-right: 4px;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
}

.channels {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.channel:not(.channel-static):hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-sm);
}

.channel-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.channel-body {
  display: grid;
  flex: 1;
  min-width: 0;
}

.channel-label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.channel-value {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

@media (max-width: 479.98px) {
  .channel {
    padding: 12px 14px;
  }

  .channel-value {
    font-size: 0.95rem;
  }
}

a.channel-value::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

a.channel-value:hover {
  color: var(--accent-text);
}

a.channel-value:focus-visible {
  outline: none;
}

a.channel-value:focus-visible::after {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.channel-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-3);
}

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

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.social-link:hover {
  border-color: var(--text-3);
  background: var(--surface);
}

.social-link .icon {
  width: 14px;
  height: 14px;
}

.next-steps {
  margin-top: 28px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.next-steps h3 {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-steps ol {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  counter-reset: next;
}

.next-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
  counter-increment: next;
}

.next-steps li > span {
  padding-top: 2px;
}

.next-steps li::before {
  content: counter(next);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1;
}

@media (max-width: 959.98px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Inquiry form ---------- */
.inquiry-card {
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.form-title {
  font-size: 1.55rem;
}

.form-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.form-sub .icon {
  width: 16px;
  height: 16px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.25s;
}

.stepper-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.stepper-dot .icon {
  display: none;
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

.stepper-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stepper li.is-current {
  color: var(--text);
}

.stepper li.is-current .stepper-dot {
  border-color: var(--invert-bg);
  background: var(--invert-bg);
  color: var(--invert-text);
}

.stepper li.is-done .stepper-dot {
  border-color: var(--accent-mark);
  background: var(--accent);
  color: var(--on-accent);
}

.stepper li.is-done .stepper-n {
  display: none;
}

.stepper li.is-done .stepper-dot .icon {
  display: block;
}

.progress {
  overflow: hidden;
  height: 4px;
  margin-top: 16px;
  border-radius: 99px;
  background: var(--surface-2);
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-mark);
  transform: scaleX(var(--p, 0.25));
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}

html:not(.js) .stepper,
html:not(.js) .progress,
html:not(.js) .counter,
html:not(.js) [data-next],
html:not(.js) .form-step[data-step="4"] {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-step {
  margin-top: 28px;
}

.js .form-step:not(.is-active) {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .form-step.is-active {
    animation: step-in 0.4s var(--ease);
  }
}

.step-title {
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.step-title:focus {
  outline: none;
}

.field {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.step-title + .field {
  margin-top: 0;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.925rem;
  font-weight: 600;
}

.req {
  color: var(--accent-text);
}

.optional {
  color: var(--text-3);
  font-weight: 400;
}

.hint {
  margin: -6px 0 12px;
  color: var(--text-3);
  font-size: 0.83rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.step-title + .field-row {
  margin-top: 0;
}

.field-row .field {
  margin-top: 0;
}

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.input::placeholder {
  color: var(--text-3);
}

.input:hover {
  border-color: var(--text-3);
}

.input:focus {
  outline: none;
  border-color: var(--accent-text);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px var(--danger-soft);
}

textarea.input {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.field-meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.counter {
  margin-left: auto;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.counter.is-near {
  color: var(--accent-text);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.field-meta .field-error {
  margin-top: 0;
}

.field-error::before {
  content: "!";
  content: "!" / "";
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--surface);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

/* Choice chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip span::before {
  content: "";
  flex: none;
  width: 0;
  height: 14px;
  margin-right: 0;
  background: var(--accent-text);
  -webkit-mask: var(--check-mask) center / 14px 14px no-repeat;
  mask: var(--check-mask) center / 14px 14px no-repeat;
  transition: width 0.2s var(--ease), margin-right 0.2s var(--ease);
}

.chip:hover span {
  border-color: var(--text-3);
}

.chip input:checked + span {
  border-color: var(--accent-text);
  background: var(--accent-soft);
}

.chip input:checked + span::before {
  width: 14px;
  margin-right: 7px;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.has-error .chip span {
  border-color: var(--danger);
}

/* Review */
.review {
  display: grid;
  gap: 12px;
}

.review-group {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-head h5 {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review dl {
  display: grid;
  gap: 8px;
}

.review-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  font-size: 0.9rem;
}

.review dt {
  color: var(--text-3);
}

.review dd {
  margin: 0;
  font-weight: 500;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.82rem;
}

.form-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.form-status {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-soft);
  color: var(--danger);
}

.alt-send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 12px 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.alt-send-label {
  margin-right: auto;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-actions-spacer {
  flex: 1;
}

@media (max-width: 559.98px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .form-actions-spacer {
    display: none;
  }

  .form-actions .btn,
  .alt-send .btn {
    flex: 1 1 auto;
  }

  .alt-send-label {
    flex-basis: 100%;
  }

  .stepper li:not(.is-current) .stepper-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .stepper {
    grid-template-columns: auto auto auto auto;
    justify-content: space-between;
  }
}

/* Success state */
.inquiry-success {
  padding: clamp(12px, 3vw, 32px) 0;
  text-align: center;
}

.inquiry-success:focus {
  outline: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.success-icon .icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.4;
}

.inquiry-success h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.inquiry-success > p {
  max-width: 28rem;
  margin: 12px auto 0;
  color: var(--text-2);
}

.inquiry-success .ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 0.82rem;
}

.ref code {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.success-fallback {
  max-width: 30rem;
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 0.875rem;
}

.success-fallback a {
  color: var(--accent-text);
  font-weight: 600;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .inquiry-success:not([hidden]) .success-icon {
    animation: pop 0.5s var(--ease) both;
  }

  .inquiry-success:not([hidden]) .success-icon .icon {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: draw 0.45s var(--ease) 0.25s forwards;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  overflow: hidden;
  padding: clamp(64px, 9vw, 100px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
}

.footer-about p {
  max-width: 22rem;
  margin: 16px 0 22px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.footer-col h2 {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-word {
  margin-top: clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, var(--line-strong), transparent 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: min(15.6vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.85;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--text-2);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text);
}

@media (max-width: 859.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479.98px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--invert-bg);
  box-shadow: var(--shadow-lg);
  color: var(--invert-text);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}

.toast .icon {
  width: 18px;
  height: 18px;
  color: var(--invert-accent);
  stroke-width: 2.4;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.8s var(--ease) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }

  .mock-browser {
    animation: rise 0.9s var(--ease) 0.15s both;
  }

  .mock-nav,
  .mock-hero > *,
  .mock-card {
    animation: build 0.55s var(--ease) both;
  }

  .mock-nav { animation-delay: 0.45s; }
  .mock-hero > :nth-child(1) { animation-delay: 0.6s; }
  .mock-hero > :nth-child(2) { animation-delay: 0.7s; }
  .mock-hero > :nth-child(3) { animation-delay: 0.8s; }
  .mock-hero > :nth-child(4) { animation-delay: 0.88s; }
  .mock-hero > :nth-child(5) { animation-delay: 0.96s; }
  .mock-card:nth-child(1) { animation-delay: 1.1s; }
  .mock-card:nth-child(2) { animation-delay: 1.2s; }
  .mock-card:nth-child(3) { animation-delay: 1.3s; }

  .mock-terminal {
    animation: rise 0.8s var(--ease) 0.5s both;
  }

  .t-line {
    animation: appear 0.25s ease-out both;
  }

  .t-line:nth-child(1) { animation-delay: 1s; }
  .t-line:nth-child(2) { animation-delay: 1.5s; }
  .t-line:nth-child(3) { animation-delay: 1.9s; }
  .t-line:nth-child(4) { animation-delay: 2.3s; }
  .t-line:nth-child(5) { animation-delay: 2.8s; }

  .t-cursor {
    animation: blink 1s steps(1) 2.8s 2;
  }

  .mock-toast {
    animation: pop 0.6s var(--ease) 3.1s both;
  }

  .pulse-dot::after {
    animation: pulse 2s ease-out 0.6s 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }

  .marquee-toggle {
    display: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes build {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes pulse {
  from {
    opacity: 0.5;
    transform: scale(0.6);
  }

  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nudge {
  to {
    transform: translate(3px, -3px);
  }
}

/* ---------- Live demo (lab) ---------- */
.lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.lab-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.2fr) minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 16px 24px;
  align-items: start;
}

.lab-controls .field {
  margin: 0;
}

.lab-controls .chip span {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.85rem;
}

.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  position: relative;
  display: inline-flex;
}

.swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch span {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 0 0 1px var(--line-strong);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.swatch:hover span {
  transform: scale(1.08);
}

.swatch input:checked + span {
  box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 2px var(--text);
  transform: scale(1.08);
}

.swatch input:focus-visible + span {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.lab-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 16px;
  min-width: 0;
}

.lab-code {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0d110e;
  color: #d6dcd3;
}

.lab-code-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8a9185;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.lab-code-head .dots i {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.lab-file {
  color: #d6dcd3;
}

.lab-status {
  margin-left: auto;
  color: #c6f135;
  white-space: nowrap;
  transition: color 0.2s;
}

.lab-status.is-busy {
  color: #f5c542;
}

.lab-pre {
  flex: 1;
  margin: 0;
  padding: 14px 16px 18px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.62;
  tab-size: 2;
}

.lab-pre:focus-visible {
  outline-offset: -3px;
}

.lab-pre code {
  display: block;
  white-space: pre;
}

.code-line {
  display: inline;
  border-radius: 4px;
}

.code-line.is-changed {
  animation: line-flash 1.1s var(--ease);
}

.ln {
  display: inline-block;
  width: 1.6em;
  margin-right: 0.9em;
  color: #4f5a4f;
  text-align: right;
  user-select: none;
}

.tk-key { color: #9fd0ff; }
.tk-str { color: #c6f135; }
.tk-num { color: #f5c542; }
.tk-cmt { color: #6c766c; font-style: italic; }
.tk-kw { color: #ff8fb6; }
.tk-fn { color: #e3c8ff; }

@keyframes line-flash {
  from {
    background: rgba(198, 241, 53, 0.28);
  }
}

.lab-preview {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.lab-site {
  --brand: #c6f135;
  --on-brand: #0a0d0b;
  --site-bg: #ffffff;
  --site-ink: #0f1410;
  --site-muted: #5c655c;
  --site-line: rgba(15, 20, 16, 0.1);
  --site-card: #f3f5ef;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: var(--font-body);
  transition: background-color 0.35s, color 0.35s;
}

.lab-site.is-dark {
  --site-bg: #0f120f;
  --site-ink: #f1f4ee;
  --site-muted: #a6ada2;
  --site-line: rgba(255, 255, 255, 0.1);
  --site-card: #1a1f1b;
}

.lab-site.is-building {
  animation: site-build 0.45s var(--ease);
}

@keyframes site-build {
  from {
    opacity: 0.35;
    transform: translateY(6px) scale(0.985);
  }
}

.ls-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--site-line);
}

.ls-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.ls-brand {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls-links {
  display: flex;
  flex: none;
  gap: 10px;
  margin-left: auto;
  color: var(--site-muted);
  font-size: 0.66rem;
}

.ls-hero {
  padding: 18px 0 16px;
}

.ls-kicker {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ls-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ls-title em {
  padding: 0 0.06em;
  background: linear-gradient(transparent 60%, color-mix(in srgb, var(--brand) 55%, transparent) 60%, color-mix(in srgb, var(--brand) 55%, transparent) 92%, transparent 92%);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.ls-lead {
  margin-top: 8px;
  color: var(--site-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.ls-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ls-btn {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.7rem;
  font-weight: 600;
}

.ls-btn.ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--site-line);
  color: var(--site-ink);
}

.ls-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 14px;
}

.ls-card {
  padding: 10px;
  border-radius: 10px;
  background: var(--site-card);
  font-size: 0.66rem;
  line-height: 1.35;
}

.ls-card i {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 35%, transparent);
}

.ls-card strong {
  display: block;
  font-weight: 600;
}

.ls-card span {
  color: var(--site-muted);
}

.ls-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 0.62rem;
}

.lab-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.lab-foot-copy {
  max-width: 44rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.lab-foot-copy strong {
  color: var(--text);
}

@media (max-width: 1099.98px) {
  .lab-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759.98px) {
  .lab-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab-pre {
    max-height: 280px;
  }
}

@media (max-width: 559.98px) {
  .lab-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Terminal section ---------- */
.terminal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.terminal-layout .section-head {
  margin-bottom: 0;
}

.cmd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cmd-chip {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.cmd-chip::before {
  content: "$ ";
  color: var(--accent-text);
}

.cmd-chip:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.cmd-chip-hire {
  border-color: var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.cmd-chip-hire::before {
  color: inherit;
}

.term-tip {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.82rem;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78em;
  text-align: center;
}

.term {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #0d110e;
  box-shadow: var(--shadow-lg);
  color: #d6dcd3;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.term .term-head {
  padding: 11px 14px;
  font-size: 0.76rem;
}

.term-screen {
  flex: 1;
  max-height: 460px;
  padding: 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.term-line {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term-line.is-cmd {
  color: #f1f4ee;
}

.term-line.is-cmd::before {
  content: "$ ";
  color: #c6f135;
}

.term-line.is-muted {
  color: #8a9185;
}

.term-line.is-ok {
  color: #4ade80;
}

.term-line.is-warn {
  color: #f5c542;
}

.term-line.is-err {
  color: #ff6b6b;
}

.term-line.is-accent {
  color: #c6f135;
}

.term-line.is-head {
  margin-top: 4px;
  color: #f1f4ee;
  font-weight: 500;
}

.term-line a {
  color: #c6f135;
}

.term-line b {
  color: #f1f4ee;
  font-weight: 500;
}

.term-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.term-ps1 {
  color: #c6f135;
}

.term-input input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #f1f4ee;
  font: inherit;
  caret-color: #c6f135;
}

.term-input input::placeholder {
  color: #5f6a5f;
}

.term-input input:focus {
  outline: none;
}

.term-run {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f1f4ee;
  font: inherit;
  font-size: 0.78rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.term-run:hover,
.term:focus-within .term-run {
  border-color: #c6f135;
  background: #c6f135;
  color: #0a0d0b;
}

@media (max-width: 899.98px) {
  .terminal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .term {
    min-height: 0;
  }

  .term-screen {
    max-height: 340px;
    min-height: 240px;
  }
}

/* ---------- Dev-vibe effects ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent-mark);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left center;
  pointer-events: none;
}

.hero-spot {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(var(--accent-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 40%), #000, transparent 70%);
  mask-image: radial-gradient(240px circle at var(--mx, 50%) var(--my, 40%), #000, transparent 70%);
  transition: opacity 0.4s;
}

.hero.is-lit .hero-spot {
  opacity: 1;
}

.service-card,
.why-card,
.process-step {
  position: relative;
  overflow: hidden;
}

.service-card::before,
.why-card::before,
.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), var(--accent-soft), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.service-card:hover::before,
.why-card:hover::before,
.process-step:hover::before {
  opacity: 1;
}

.service-card > *,
.why-card > *,
.process-step > * {
  position: relative;
  z-index: 1;
}

.speed-badge {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.45;
}

.speed-badge .icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent-text);
}

.speed-badge strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
}

.is-decoding {
  font-variant-ligatures: none;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero-spot {
    display: none;
  }

  .service-card::before,
  .why-card::before,
  .process-step::before {
    display: none;
  }
}

/* ---------- 404 page ---------- */
.nf {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  margin-inline: auto;
  padding: clamp(32px, 8vh, 96px) var(--gutter);
}

.nf h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.035em;
}

.nf p {
  max-width: 34rem;
  color: var(--text-2);
  font-size: 1.1rem;
}

.nf .term {
  width: 100%;
  min-height: 0;
}

.nf .term-screen {
  min-height: 0;
  max-height: none;
}

.nf .hero-cta {
  margin-top: 0;
}
