/* Helvetia Speech - marketing site */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #fffbf5;
  --bg-tint: #f8f1e6;
  --surface: #ffffff;
  --ink: #14213d;
  --text: #36425e;
  --muted: #66708a;
  --line: #ece3d5;
  --night: #0e1a30;
  --night-2: #16264a;

  --red: #d92d23;
  --red-dark: #b8231b;
  --red-soft: #fde4e1;

  --sky: #dceafb;
  --sky-ink: #28569c;
  --mint: #d8f2e5;
  --mint-ink: #1b7650;
  --sun: #ffeabf;
  --sun-ink: #8f5a00;
  --rose: #fde0dc;
  --rose-ink: #b23329;
  --lilac: #e8e2fb;
  --lilac-ink: #5a45b3;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm:
    0 1px 2px rgba(20, 33, 61, 0.05), 0 4px 14px -6px rgba(20, 33, 61, 0.1);
  --shadow-md:
    0 2px 4px rgba(20, 33, 61, 0.04), 0 18px 40px -16px rgba(20, 33, 61, 0.18);
  --shadow-lg: 0 40px 90px -30px rgba(20, 33, 61, 0.35);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

em {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--sky-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 100% - 3rem);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-xl {
  width: 2.6rem;
  height: 2.6rem;
  stroke-width: 1.5;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 0.98rem/1.2 var(--font-body);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(217, 45, 35, 0.7);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 14px 28px -10px rgba(217, 45, 35, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #d9cdb9;
}

.btn-light {
  background: #fff;
  color: var(--red-dark);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(20, 33, 61, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}

.brand-name span {
  color: var(--red);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > a {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-size: 0.93rem;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
  transition:
    background-color 0.15s,
    color 0.15s;
}

.main-nav > a:hover {
  background: rgba(20, 33, 61, 0.06);
  color: var(--ink);
}

.nav-actions-mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-switch button {
  padding: 0.3rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.2s,
    top 0.2s;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  top: 24px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 4.5rem) 0 11rem;
}

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

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.75;
}

.blob-sky {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -80px;
  background: #cfe3fb;
}

.blob-sun {
  width: 420px;
  height: 420px;
  top: 120px;
  left: -140px;
  background: #ffe7b8;
}

.blob-rose {
  width: 340px;
  height: 340px;
  bottom: 80px;
  right: 22%;
  background: #fddcd6;
  opacity: 0.6;
}

.ridges {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 260px;
}

.ridge-far {
  fill: #e6eefb;
}

.ridge-mid {
  fill: #d6e4f7;
}

.ridge-near {
  fill: var(--bg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.pill .icon {
  color: var(--red);
}

.hero h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 em,
.section-head h2 em {
  position: relative;
  color: var(--red);
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.14em;
  border-radius: 99px;
  background: var(--red);
  opacity: 0.2;
}

.lead {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-points .icon {
  padding: 3px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--mint-ink);
  stroke-width: 2.6;
}

/* Hero demo card */

.hero-visual {
  position: relative;
  padding: 1.5rem 0 1.5rem 1rem;
}

.demo-card {
  position: relative;
  padding: 1.25rem 1.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.demo-title .icon {
  padding: 6px;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--sky);
  color: var(--sky-ink);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-out infinite;
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 46px;
  margin: 1.1rem 0 0.9rem;
  padding: 0 0.25rem;
}

.wave i {
  flex: 1;
  min-width: 2px;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(180deg, #ef5b52, #f6a49e);
  transform: scaleY(0.3);
  transform-origin: center;
  animation: wave 1.3s ease-in-out infinite alternate;
}

.demo-lines {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 262px;
}

.dline {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.75rem;
  animation: rise 0.4s ease both;
}

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.avatar-0 {
  background: var(--sky);
  color: var(--sky-ink);
}

.avatar-1 {
  background: var(--mint);
  color: var(--mint-ink);
}

.avatar-2 {
  background: var(--sun);
  color: var(--sun-ink);
}

.dline.is-speaking .avatar {
  box-shadow: 0 0 0 4px rgba(217, 45, 35, 0.14);
}

.dline-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.dline-meta time {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.dline-text {
  margin-top: 0.15rem;
  font-size: 0.97rem;
  line-height: 1.5;
  text-wrap: wrap;
  color: var(--text);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--red);
  animation: blink 0.9s steps(1) infinite;
}

.demo-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.float-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite alternate;
}

.float-badge .icon {
  padding: 5px;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
}

.float-badge-a {
  top: -4px;
  left: -14px;
}

.float-badge-a .icon {
  background: var(--red-soft);
  color: var(--red);
}

.float-badge-b {
  right: 14px;
  bottom: -14px;
  animation-delay: -3s;
}

.float-badge-b .icon {
  background: var(--mint);
  color: var(--mint-ink);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 6.5rem 0;
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}

.section-head .lead {
  margin-inline: auto;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}

.eyebrow-light {
  color: #ff9d94;
}

.eyebrow-light::before {
  background: #ff9d94;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  text-align: center;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  left: calc(50% + 48px);
  right: calc(-50% + 48px);
  border-top: 2px dashed #e0d3bd;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
  font: 800 1.6rem/1 var(--font-display);
  box-shadow: 0 14px 26px -12px rgba(217, 45, 35, 0.7);
  transform: rotate(-4deg);
}

.step:nth-child(2) .step-num {
  background: var(--ink);
  box-shadow: 0 14px 26px -12px rgba(20, 33, 61, 0.7);
  transform: rotate(3deg);
}

.step:nth-child(3) .step-num {
  background: #2e8b63;
  box-shadow: 0 14px 26px -12px rgba(46, 139, 99, 0.7);
}

.step h3 {
  margin-top: 1.4rem;
  font-size: 1.4rem;
}

.step p {
  max-width: 20rem;
  margin: 0.7rem auto 0;
  color: var(--muted);
}

/* Features */

.feature {
  padding: 1.9rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature h3 {
  margin-top: 1.3rem;
  font-size: 1.28rem;
}

.feature p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 1rem;
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex: none;
}

.tile .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.tile-sky {
  background: var(--sky);
  color: var(--sky-ink);
}

.tile-mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.tile-sun {
  background: var(--sun);
  color: var(--sun-ink);
}

.tile-rose {
  background: var(--rose);
  color: var(--rose-ink);
}

.tile-lilac {
  background: var(--lilac);
  color: var(--lilac-ink);
}

/* Use cases */

.usecase {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2.2rem 2.4rem;
  border-radius: 26px;
  transition: transform 0.25s ease;
}

.usecase:hover {
  transform: translateY(-4px);
}

.usecase h3 {
  margin-top: 1.4rem;
  font-size: 1.55rem;
}

.usecase p {
  margin-top: 0.7rem;
  max-width: 30rem;
  color: var(--text);
}

.usecase .icon-xl {
  padding: 0.65rem;
  width: 4rem;
  height: 4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
}

.usecase-sky {
  background: var(--sky);
}

.usecase-sky .icon-xl {
  color: var(--sky-ink);
}

.usecase-mint {
  background: var(--mint);
}

.usecase-mint .icon-xl {
  color: var(--mint-ink);
}

.usecase-sun {
  background: var(--sun);
}

.usecase-sun .icon-xl {
  color: var(--sun-ink);
}

.usecase-rose {
  background: var(--rose);
}

.usecase-rose .icon-xl {
  color: var(--rose-ink);
}

/* Privacy (dark) */

.section-night {
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #c4cee4;
  overflow: hidden;
}

.night-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 360px at 12% 0%,
      rgba(217, 45, 35, 0.22),
      transparent 70%
    ),
    radial-gradient(
      700px 420px at 100% 100%,
      rgba(70, 120, 210, 0.22),
      transparent 70%
    );
  pointer-events: none;
}

.section-night .container {
  position: relative;
}

.section-night h2,
.section-night h3 {
  color: #fff;
}

.section-night .section-head h2 em {
  color: #ff9d94;
}

.section-night .lead {
  color: #b4c0da;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.flow-step {
  position: relative;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.2rem;
  width: 1.2rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.3);
}

.flow-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.flow-step:last-child .flow-icon {
  background: rgba(217, 45, 35, 0.25);
  color: #ffb3ac;
}

.flow-step h3 {
  margin-top: 1.1rem;
  font-size: 1.15rem;
}

.flow-step p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #aab8d6;
}

.privacy-panel {
  padding: 2.2rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.privacy-panel h3 {
  font-size: 1.35rem;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2.2rem;
  margin-top: 1.5rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  line-height: 1.5;
}

.checklist .icon {
  margin-top: 0.1rem;
  padding: 3px;
  border-radius: 50%;
  background: rgba(120, 220, 170, 0.2);
  color: #8fe5bb;
  stroke-width: 2.6;
}

.fine {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #93a2c4;
}

/* Developers */

.dev-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4rem;
}

.dev-copy h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.dev-copy .lead {
  margin-top: 1.2rem;
  font-size: 1.1rem;
}

.checklist-dark {
  grid-template-columns: 1fr;
  margin: 1.8rem 0 2.2rem;
  gap: 0.75rem;
}

.checklist-dark .icon {
  background: var(--mint);
  color: var(--mint-ink);
}

.code-window {
  overflow: hidden;
  border-radius: 22px;
  background: var(--night);
  box-shadow: var(--shadow-lg);
  color: #d5def2;
}

.code-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

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

.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6a5f;
}

.dots i:nth-child(2) {
  background: #ffc03d;
}

.dots i:nth-child(3) {
  background: #34c759;
}

.code-tabs {
  display: flex;
  flex: 1;
  gap: 0.25rem;
}

.code-tabs button {
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8e9cbd;
  font: 600 0.82rem/1 var(--font-body);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.code-tabs button:hover {
  color: #fff;
}

.code-tabs button[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #c3cde5;
  font: 600 0.78rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.15s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.code-window pre {
  margin: 0;
  overflow-x: auto;
  font: 0.86rem/1.7 var(--font-mono);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.code-body {
  padding: 1.3rem 1.4rem;
  min-height: 250px;
}

.code-response {
  padding: 0.9rem 1.4rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.code-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f8fb2;
}

.tok-c {
  color: #7684a6;
  font-style: italic;
}

.tok-s {
  color: #8fe5bb;
}

.tok-k {
  color: #ff9d94;
}

.tok-f {
  color: #ffd27a;
}

.tok-n {
  color: #8bb8ff;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: start;
}

.calc {
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.calc h3 {
  font-size: 1.4rem;
}

.field {
  margin-top: 1.5rem;
}

.field-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hours-out {
  font: 700 1.1rem/1 var(--font-display);
  color: var(--ink);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--bg-tint);
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: block;
  padding: 0.6rem 0.5rem;
  border-radius: 11px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition:
    background-color 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}

.segmented input:checked + span {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--sky-ink);
  outline-offset: 2px;
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch-track {
  position: relative;
  width: 46px;
  height: 27px;
  flex: none;
  border-radius: 99px;
  background: #d9d2c4;
  transition: background-color 0.2s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.switch input:checked + .switch-track {
  background: var(--red);
}

.switch input:checked + .switch-track::after {
  transform: translateX(19px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--sky-ink);
  outline-offset: 3px;
}

.switch-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.8rem;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}

.calc-result-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #aab8d6;
}

.calc-total {
  font: 800 2.6rem/1.1 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.calc-rate {
  font-size: 0.9rem;
  color: #c9d3ea;
}

.calc .fine {
  margin-top: 1rem;
  color: var(--muted);
}

.rates {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.rate-table {
  overflow: hidden;
}

.rate-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
}

.rate-row + .rate-row {
  border-top: 1px solid var(--line);
}

.rate-head {
  background: var(--bg-tint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.rate-name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
}

.rate-name .icon {
  color: var(--red);
}

.rate-val {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.rate-val strong {
  font: 800 1.35rem/1.2 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rate-val small {
  font-size: 0.8rem;
  color: var(--muted);
}

.llm-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.3rem 1.5rem;
}

.llm-card h3 {
  font-size: 1.1rem;
}

.llm-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

.llm-price {
  margin-left: auto;
  font: 800 1.35rem/1 var(--font-display);
  color: var(--ink);
  white-space: nowrap;
}

.volume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.4rem 0;
  color: var(--ink);
  font-weight: 500;
}

/* FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow: var(--shadow-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary .icon {
  padding: 4px;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--red);
  stroke-width: 2.2;
  transition:
    transform 0.25s ease,
    background-color 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
  background: var(--red-soft);
}

.faq details p {
  padding: 0 1.5rem 1.4rem;
  max-width: 40rem;
  color: var(--muted);
}

/* CTA */

.cta-section {
  padding: 0 0 6.5rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 2rem 5.4rem;
  border-radius: 34px;
  background: linear-gradient(135deg, #e8453b 0%, #c4261d 100%);
  text-align: center;
  color: #fff;
  box-shadow: 0 40px 80px -36px rgba(196, 38, 29, 0.7);
}

.cta-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 110px;
  fill: rgba(255, 255, 255, 0.1);
}

.cta-card > *:not(.cta-ridge) {
  position: relative;
}

.cta-card h2 {
  margin-inline: auto;
  max-width: 34rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-card p {
  max-width: 34rem;
  margin: 1.2rem auto 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2.2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 22rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.footer-links a:hover {
  color: var(--red);
}

.footer-copy {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

@keyframes wave {
  from {
    transform: scaleY(0.28);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 45, 35, 0.55);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(217, 45, 35, 0);
  }
}

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

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .wave i {
    transform: scaleY(0.5);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .hero-grid,
  .dev-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero {
    padding-bottom: 9rem;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

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

  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step:nth-child(2)::after,
  .flow-step:nth-child(4)::after {
    display: none;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-block;
  }

  .hide-mobile {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 40px -24px rgba(20, 33, 61, 0.35);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a {
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .nav-actions-mobile {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.8rem;
  }

  .nav-actions-mobile .btn {
    flex: 1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-head {
    margin-bottom: 2.6rem;
  }

  .grid-3,
  .grid-2,
  .steps,
  .checklist {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 2.4rem;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-step::after {
    display: none;
  }

  .privacy-panel,
  .calc {
    padding: 1.5rem;
  }

  .rate-row {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 1.2rem;
  }

  .rate-head span:first-child {
    display: none;
  }

  .rate-row:not(.rate-head) .rate-name {
    grid-column: 1 / -1;
  }

  .llm-card {
    flex-wrap: wrap;
  }

  .cta-card {
    padding: 3.4rem 1.4rem 4rem;
    border-radius: 26px;
  }

  .float-badge-a {
    left: -4px;
  }

  .float-badge-b {
    right: 8px;
  }

  .lang-switch button {
    padding: 0.3rem 0.5rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 2rem);
  }

  .hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .lang-switch button {
    padding: 0.28rem 0.42rem;
    font-size: 0.72rem;
  }

  .demo-lines {
    min-height: 310px;
  }
}
