/* ==========================================================================
   Nuralingua — core stylesheet
   Plain CSS, no build step. Custom properties drive the whole system.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */

:root {
  --bg: #08080c;
  --bg-elevated: #0e0e15;
  --surface: #12121b;
  --surface-2: #191924;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f4f8;
  --text-muted: #9d9dae;
  --text-dim: #6d6d80;

  --violet: #7c5cff;
  --violet-soft: #9d85ff;
  --cyan: #22d3ee;
  --amber: #fbbf24;

  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --accent-glow: 0 0 60px rgba(124, 92, 255, 0.35);

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

  --container: 1180px;
  --gutter: 24px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --section-y: clamp(72px, 10vw, 132px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* offset for the sticky header when jumping to an anchor */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

p {
  margin: 0;
}

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

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

/* --- Layout primitives -------------------------------------------------- */

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

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--violet);
  color: #fff;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

/* --- Typography helpers ------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 50px);
  max-width: 20ch;
}

.section-intro {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: clamp(16px, 1.5vw, 18px);
}

.section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-title {
  margin-inline: auto;
}

.section-head--center .section-intro {
  margin-inline: auto;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

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

.btn--primary {
  background: var(--accent-gradient);
  color: #0a0a12;
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.32);
}

.btn--primary:hover {
  box-shadow: 0 14px 44px rgba(124, 92, 255, 0.45);
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.035em;
  flex-shrink: 0;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.4);
}

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

.nav__link {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
}

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

.hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 104px);
  overflow: hidden;
}

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

.hero__glow::before,
.hero__glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}

.hero__glow::before {
  width: 620px;
  height: 620px;
  top: -240px;
  left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 68%);
}

.hero__glow::after {
  width: 520px;
  height: 520px;
  top: 40px;
  right: -180px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 68%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.badge__pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  color: #0a0a12;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(40px, 7vw, 82px);
  letter-spacing: -0.045em;
  max-width: 15ch;
  margin-inline: auto;
}

/* Rotating language word.
   Block-level (display: grid) so it always occupies its own line — an
   inline-grid taller than the h1 line-height overflows its line box and
   collides with the subtitle. The fixed height doubles as the clip mask, and
   1.2em leaves room for descenders (Spanish, Portuguese) below the baseline. */
.rotator {
  display: grid;
  justify-items: center;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}

.rotator__item {
  grid-area: 1 / 1;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.rotator__item.is-active {
  opacity: 1;
  transform: translateY(0);
}

.rotator__item.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

.hero__subtitle {
  margin: 26px auto 0;
  max-width: 60ch;
  font-size: clamp(16.5px, 1.7vw, 19px);
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.hero__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-dim);
}

/* Animated waveform motif */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 56px;
  margin-top: 52px;
}

.waveform__bar {
  width: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-gradient);
  opacity: 0.55;
  animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    height: 10%;
  }
  50% {
    height: 100%;
  }
}

/* --- Stat bar ----------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  background: var(--bg-elevated);
  padding: 30px 24px;
  text-align: center;
}

.stat__value {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --- Marquee ------------------------------------------------------------ */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gradient);
  flex-shrink: 0;
}

.disclaimer {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 62ch;
  margin-inline: auto;
}

/* --- Cards -------------------------------------------------------------- */

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.card__title {
  font-size: 20px;
  margin-bottom: 10px;
}

.card__text {
  color: var(--text-muted);
  font-size: 15.5px;
}

/* --- Pipeline (7 steps) ------------------------------------------------- */

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step::after {
  /* thin gradient rule that grows on hover */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent-gradient);
  transition: width 0.45s var(--ease);
}

.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.step:hover::after {
  width: 100%;
}

.step__num {
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: rgba(124, 92, 255, 0.12);
  color: var(--violet-soft);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.step__num::before {
  content: "0" counter(step);
}

.step__title {
  font-size: 18px;
  margin-bottom: 9px;
}

.step__text {
  font-size: 15px;
  color: var(--text-muted);
}

.step--human {
  border-color: rgba(124, 92, 255, 0.4);
  background: linear-gradient(
    180deg,
    rgba(124, 92, 255, 0.12),
    rgba(124, 92, 255, 0.02)
  );
}

.step__flag {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--violet-soft);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Audience split ----------------------------------------------------- */

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.audience-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.audience-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.audience-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: var(--violet-soft);
  margin-bottom: 22px;
}

.audience-card__title {
  font-size: 24px;
  margin-bottom: 12px;
}

.audience-card__text {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 24px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--text);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--cyan);
}

/* --- Comparison table --------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--bg-elevated);
}

.compare th,
.compare td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: middle;
}

.compare thead th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
}

.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare tbody th {
  font-weight: 600;
  color: var(--text);
}

.compare .col-us {
  background: rgba(124, 92, 255, 0.09);
  color: var(--text);
  font-weight: 500;
  border-left: 1px solid rgba(124, 92, 255, 0.22);
  border-right: 1px solid rgba(124, 92, 255, 0.22);
}

.compare thead .col-us {
  color: var(--violet-soft);
  background: rgba(124, 92, 255, 0.16);
}

.compare td:not(.col-us) {
  color: var(--text-muted);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mark--yes {
  color: var(--cyan);
}

.mark--no {
  color: #6d6d80;
}

/* --- Case study cards --------------------------------------------------- */

.cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.case-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.case-card__tag {
  align-self: flex-start;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.case-card__name {
  font-size: 27px;
  margin-bottom: 10px;
}

.case-card__desc {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 26px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 26px;
}

.case-meta div {
  background: var(--surface);
  padding: 16px 18px;
}

.case-meta dt {
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.case-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.case-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--violet-soft);
}

.case-card__link svg {
  transition: transform 0.25s var(--ease);
}

.case-card:hover .case-card__link svg {
  transform: translateX(4px);
}

/* --- Case study detail (case-studies.html) ------------------------------ */

.case-detail {
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--border);
}

.case-detail__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.case-detail__title {
  font-size: clamp(34px, 5vw, 54px);
}

.case-detail__lede {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 18.5px);
  max-width: 56ch;
}

.case-facts {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-facts div {
  background: var(--bg-elevated);
  padding: 18px 22px;
}

.case-facts dt {
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.case-facts dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
}

.case-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.case-block {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.case-block__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 16px;
}

.case-block p {
  color: var(--text-muted);
  font-size: 15.5px;
}

.case-block p + p {
  margin-top: 14px;
}

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FAQ ---------------------------------------------------------------- */

.faq {
  max-width: 800px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
}

.faq__item + .faq__item {
  border-top: 1px solid var(--border);
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.2s var(--ease);
}

.faq__trigger:hover {
  color: var(--violet-soft);
}

.faq__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.faq__trigger[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq__panel[data-open="true"] {
  grid-template-rows: 1fr;
}

.faq__panel > div {
  overflow: hidden;
}

.faq__panel p {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 68ch;
}

/* --- Contact ------------------------------------------------------------ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.contact__aside .section-title {
  max-width: 14ch;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.contact-list a:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.contact-list__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.14);
  color: var(--violet-soft);
  flex-shrink: 0;
}

.contact-list__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-list__value {
  font-size: 15.5px;
  font-weight: 600;
}

.form {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--surface-2);
}

.field textarea {
  resize: vertical;
  min-height: 118px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239d9dae' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form__footer {
  margin-top: 24px;
}

.form__consent {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}

.form__status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #7de9fb;
}

.form__status--err {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* honeypot — hidden from humans, catches bots */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* --- CTA band ----------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 76px) clamp(28px, 5vw, 64px);
  border-radius: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(124, 92, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.18),
    rgba(34, 211, 238, 0.08)
  );
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 70%);
  filter: blur(90px);
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
}

.cta-band__title {
  font-size: clamp(28px, 4.2vw, 46px);
  max-width: 18ch;
  margin-inline: auto;
}

.cta-band__text {
  margin: 18px auto 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* --- Footer ------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  margin-top: var(--section-y);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__blurb {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 34ch;
}

.footer__heading {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer__list {
  display: grid;
  gap: 11px;
}

.footer__list a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s var(--ease);
}

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

.footer__bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
}

/* --- Scroll reveal ------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* --- 404 ---------------------------------------------------------------- */

.notfound {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.notfound__code {
  font-size: clamp(72px, 15vw, 150px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

  .case-detail__head {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 820px) {
  .nav,
  .header__actions .btn--ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* mobile drawer */
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 74px;
    left: var(--gutter);
    right: var(--gutter);
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: rgba(14, 14, 21, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }

  .nav.is-open .nav__link {
    padding: 13px 16px;
    font-size: 16px;
    color: var(--text);
  }
}

@media (max-width: 640px) {
  .form {
    padding: 24px;
  }

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

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

  .case-meta {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .header__actions .btn {
    width: auto;
  }

  .hero__cta,
  .cta-band__actions {
    flex-direction: column;
  }
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .waveform {
    display: none;
  }
}
