/* ==========================================================================
   Edify Digital — stylesheet
   1. Tokens   2. Base   3. Utilities   4. Buttons   5. Header + menu
   6. Hero     7. Sections   8. Services   9. Why   10. Cloudflare
   11. Infrastructure   12. Testimonials   13. Process   14. FAQ
   15. CTA   16. Footer   17. Draft mode   18. Motion   19. Reduced motion
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #d1d5db;
  --graphite: #111827;
  --muted: #9ca3af;

  --line: rgba(209, 213, 219, 0.12);
  --line-strong: rgba(209, 213, 219, 0.26);
  --surface: rgba(17, 24, 39, 0.55);
  --glow: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.04);

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(3.25rem, min(11.5vw, 17.5svh), 9rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-figure: clamp(2.75rem, 1.9rem + 3.6vw, 4.5rem);
  --fs-lead: clamp(1.125rem, 1.03rem + 0.4vw, 1.375rem);
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;

  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 64px;
  --section-pad: clamp(48px, 6vw, 88px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-base: 320ms;
  --t-slow: 800ms;
  --t-hero: 1200ms;
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--gray);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  color: var(--white);
  font-weight: 500;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-stretch: 92%;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

::selection { background: var(--white); color: var(--black); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--black);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--gray);
  max-width: 46ch;
}

.link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--t-fast) var(--ease-out);
}
.link:hover { text-decoration-color: var(--white); }

/* Shared icon stroke style (symbols inherit from the <svg> that uses them) */
.card__icon svg,
.feature__icon,
.checks svg,
.tile__head svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 4. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-small); }

.btn--primary { background: var(--white); color: var(--black); }
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 10px 36px rgba(255, 255, 255, 0.2);
}

.btn--secondary { border-color: var(--line-strong); color: var(--white); }
.btn--secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1), 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn--dark-outline { border-color: rgba(0, 0, 0, 0.28); color: var(--black); }
.btn--dark-outline:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--black);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* 5. Header + mobile menu ------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.header.is-scrolled,
.menu-open .header {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo__mark { width: 28px; height: 28px; fill: currentColor; flex: none; }
.logo__word span { color: var(--muted); }

.nav { display: none; margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--gray);
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.nav__list a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.header__cta { display: none; margin-left: auto; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-left: auto;
  margin-right: -10px;
  border-radius: var(--r-pill);
}
.menu-btn__bars { position: relative; width: 20px; height: 10px; }
.menu-btn__bars span {
  position: absolute;
  left: 0;
  width: 100%; height: 1.5px;
  background: var(--white);
  transition: transform var(--t-base) var(--ease-in-out), top var(--t-base) var(--ease-in-out);
}
.menu-btn__bars span:first-child { top: 0; }
.menu-btn__bars span:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  animation: fade var(--t-base) var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; }
.mobile-menu li a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 1.75rem;
  font-stretch: 92%;
  letter-spacing: -0.03em;
}
.mobile-menu .btn { align-self: flex-start; }
.menu-open { overflow: hidden; }

@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
  .menu-btn { margin-left: 0; }
}
@media (min-width: 900px) {
  .nav { display: block; }
  .header__cta { margin-left: 12px; }
  .menu-btn { display: none; }
  .mobile-menu { display: none; }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.hero__light {
  position: absolute;
  left: 62%; top: 40%;
  width: min(70vw, 900px);
  aspect-ratio: 2 / 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 100%);
  filter: blur(24px);
}

.float { position: absolute; will-change: transform; }
.float svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: rgba(209, 213, 219, 0.2);
  stroke-width: 1;
  overflow: visible;
}
.float svg * { vector-effect: non-scaling-stroke; }
.float--ring { right: -14%; top: 6%; width: min(56vw, 640px); aspect-ratio: 1; }
.float--arc { left: -70px; bottom: 16%; width: clamp(160px, 22vw, 320px); aspect-ratio: 1; }
.float--square { right: 30%; top: 54%; width: clamp(60px, 8vw, 120px); aspect-ratio: 1; display: none; }

.hero__inner {
  display: grid;
  gap: 32px;
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero__title {
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-stretch: 88%;
  text-wrap: nowrap;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.06em 0.06em 0;
  margin: -0.12em 0 -0.06em;
}
.hero__line > span { display: block; }

.hero__side { max-width: 30rem; }
.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  visibility: hidden;
}
.readout.is-ready { visibility: visible; }
.readout__list { display: flex; flex-wrap: wrap; gap: 6px 36px; }
.readout__item { display: flex; align-items: baseline; gap: 10px; }
.readout__item[hidden] { display: none; }
.readout dt { color: var(--muted); }
.readout dd { color: var(--white); font-weight: 500; min-width: 3ch; font-variant-numeric: tabular-nums; }
.readout__note { color: var(--muted); }

@media (max-width: 639px) {
  .hero__grid { opacity: 0.75; }
}
@media (min-width: 640px) {
  .float--square { display: block; }
}
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
  .hero__side { justify-self: end; padding-bottom: 0.9rem; }
}

/* 7. Sections ------------------------------------------------------------- */
.section { position: relative; padding-block: var(--section-pad); }

.section__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
@media (min-width: 900px) {
  .section__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: end;
  }
  .section__head .lead { justify-self: end; padding-bottom: 0.35em; }
}

.section--tint {
  margin-block: var(--section-pad);
  padding-block: clamp(80px, 10vw, 144px);
  background:
    linear-gradient(to bottom, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.5) 18%, rgba(17, 24, 39, 0.5) 82%, rgba(17, 24, 39, 0));
}

/* 8. Services ------------------------------------------------------------- */
.services { display: grid; gap: 16px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}
.card p { color: var(--muted); font-size: 1rem; line-height: 1.55; margin-top: 8px; max-width: 34ch; }
.card--sm { padding: 28px; }
.card--sm h3 { font-size: 1.25rem; }
.card--lg .card__body { padding: 28px; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}
.card__icon svg { width: 24px; height: 24px; }

.card__art {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%);
  padding: 28px 28px 0;
}
.art { width: 100%; height: auto; max-height: 240px; fill: none; stroke: rgba(209, 213, 219, 0.3); stroke-width: 1; transition: stroke var(--t-base) var(--ease-out); }
.art__solid { fill: rgba(255, 255, 255, 0.86); stroke: none; }
.art__dim, .art__dim rect { fill: rgba(209, 213, 219, 0.22); stroke: none; }
.art__cursor { fill: var(--white); stroke: none; animation: blink 1.1s steps(1) infinite; }
.card__art { overflow: hidden; }
.card__art .art { margin-bottom: -12px; }

/* Pointer-following border light + lift */
.glow::before,
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.glow::before {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glow::after {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 60%);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: var(--line-strong);
    box-shadow: 0 36px 80px -48px rgba(255, 255, 255, 0.28);
  }
  .card:hover .art { stroke: rgba(209, 213, 219, 0.5); }
  .glow:hover::before, .glow:hover::after { opacity: 1; }
}

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1200px) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card--lg { grid-column: span 2; }
}

/* 9. Why ------------------------------------------------------------------ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px 16px 28px 0;
}
.stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stat dd {
  color: var(--white);
  font-size: var(--fs-figure);
  font-weight: 500;
  font-stretch: 88%;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat dt { color: var(--muted); font-size: var(--fs-small); }

.features {
  display: grid;
  gap: 40px 32px;
  margin-top: clamp(56px, 7vw, 88px);
}
.feature { padding-top: 24px; border-top: 1px solid var(--line); }
.feature__icon { width: 24px; height: 24px; color: var(--white); margin-bottom: 20px; }
.feature h3 { font-size: 1.1875rem; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 32ch; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { padding: 36px 24px 36px 0; }
  .stat:nth-child(n + 2) { padding-left: 28px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 0; }
}
@media (min-width: 1200px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; }
}

/* 10. Cloudflare ---------------------------------------------------------- */
.compare {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.lane {
  display: grid;
  gap: 24px;
  padding: 28px 24px;
}
.lane + .lane { border-top: 1px solid var(--line); }
.lane--with { background: rgba(255, 255, 255, 0.035); }
.lane h3 { font-size: 1.1875rem; color: var(--muted); }
.lane--with h3 { color: var(--white); }
.lane p { margin-top: 6px; color: var(--muted); font-size: 1rem; max-width: 40ch; }
.lane--with p { color: var(--gray); }

.lane__diagram { display: flex; align-items: center; gap: 8px; min-width: 0; }
.node {
  flex: none;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--gray);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.node--edge { background: var(--white); border-color: var(--white); color: var(--black); }
.node__wide { display: none; }

.track {
  position: relative;
  flex: 1 1 0;
  min-width: 16px;
  height: 20px;
  overflow: hidden;
}
.track::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--line-strong);
}
.dot {
  position: absolute;
  inset: 0;
  animation: travel 3.2s linear infinite;
}
.dot::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--white);
}
.dot--threat::before { background: var(--black); border: 1px solid var(--gray); }
.dot--b { animation-delay: -0.8s; }
.dot--c { animation-delay: -1.6s; }
.dot--d { animation-delay: -2.4s; }
.track--half .dot { animation-duration: 1.6s; }
.track--half .dot--b { animation-delay: -0.4s; }
.track--half .dot--c { animation-delay: -0.8s; }
.track--half .dot--d { animation-delay: -1.2s; }
.track--half .dot--stop { animation-name: travel-stop; }

.compare__key {
  display: flex;
  gap: 24px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-micro);
}
.compare__key span { display: inline-flex; align-items: center; gap: 8px; }
.dot--static { position: relative; inset: auto; display: inline-block; width: 6px; height: 6px; animation: none; }

@media (max-width: 639px) {
  /* Short tracks on phones: one visitor and one threat at a time. */
  .track--half .dot--c, .track--half .dot--d { display: none; }
  .track--half .dot--b { animation-delay: -0.8s; }
}
@media (min-width: 640px) {
  .node { padding: 8px 12px; font-size: var(--fs-micro); }
  .node__wide { display: inline; }
  .lane__diagram { gap: 12px; }
}
@media (min-width: 900px) {
  .lane { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; padding: 36px 40px; }
  .compare__key { padding: 14px 40px; }
}

/* Tabs */
.tabs { margin-top: clamp(40px, 5vw, 64px); }
.tabs__list {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}
html:not(.js) .tabs__list { display: none; }

.tabs__panels { margin-top: 24px; }
.tabpanel { padding: 28px 0 8px; border-top: 1px solid var(--line); border-radius: 0; }
.js .tabpanel:not(.is-active) { display: none; }
.js .tabpanel.is-active { animation: fade-up var(--t-slow) var(--ease-out); }
.tabpanel__title { font-size: var(--fs-h3); }
.tabpanel__intro { margin-top: 6px; color: var(--muted); }

.checks {
  display: grid;
  gap: 4px 32px;
  margin-top: 28px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 1.0625rem;
}
.checks svg {
  flex: none;
  width: 20px; height: 20px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js .tabpanel.is-active .checks svg {
  animation: draw 520ms var(--ease-in-out) both;
  animation-delay: calc(var(--i, 0) * 45ms + 120ms);
}

@media (min-width: 640px) {
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .tabs__list { margin-inline: 0; padding-inline: 6px; }
  .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .js .tabs__panels { min-height: 330px; }
}

/* 11. Infrastructure ------------------------------------------------------ */
.panel {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.75), rgba(17, 24, 39, 0.3));
  box-shadow: 0 60px 140px -80px rgba(255, 255, 255, 0.22);
}
.panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 14px 18px;
  font-size: var(--fs-small);
}
.panel__title { color: var(--white); font-weight: 500; }
.panel__status { display: inline-flex; align-items: center; gap: 10px; color: var(--gray); }
.panel__tag {
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.pulse::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--white);
  animation: pulse 2.4s var(--ease-out) infinite;
}

.panel__grid { display: grid; gap: 10px; }
.tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.5);
}
.tile__head { display: flex; align-items: center; gap: 10px; color: var(--gray); }
.tile__head svg { flex: none; width: 18px; height: 18px; }
.tile__head h3 { font-size: 0.9375rem; letter-spacing: -0.01em; }
.tile__sub { margin-top: 4px; color: var(--muted); font-size: var(--fs-micro); }

.chart { width: 100%; height: 170px; margin-top: 20px; }
.chart__grid path { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--white); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.chart__area { fill: rgba(255, 255, 255, 0.07); stroke: none; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 64px;
  margin: 20px 0 16px;
}
.bars i {
  flex: 1;
  height: 40%;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 255, 255, 0.82);
  transform-origin: bottom;
}
.bars i:nth-child(2) { height: 62%; } .bars i:nth-child(3) { height: 48%; }
.bars i:nth-child(4) { height: 80%; } .bars i:nth-child(5) { height: 55%; }
.bars i:nth-child(6) { height: 34%; } .bars i:nth-child(7) { height: 70%; }
.bars i:nth-child(8) { height: 100%; } .bars i:nth-child(9) { height: 64%; }
.bars i:nth-child(10) { height: 44%; } .bars i:nth-child(11) { height: 58%; }
.bars i:nth-child(12) { height: 76%; } .bars i:nth-child(13) { height: 50%; }
.bars i:nth-child(14) { height: 66%; }
.bars i:nth-child(odd) { background: rgba(209, 213, 219, 0.38); }

.kv, .log { margin-top: auto; padding-top: 16px; font-size: var(--fs-micro); }
.kv li, .log li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.kv li span:last-child, .log li span:last-child { color: var(--white); white-space: nowrap; }
.log { padding-top: 0; }

.ticks { display: flex; gap: 3px; margin-top: auto; padding-top: 24px; }
.ticks i { flex: 1; height: 30px; border-radius: 2px; background: rgba(255, 255, 255, 0.82); }

.regions { margin-top: auto; padding-top: 16px; display: grid; gap: 12px; font-size: var(--fs-micro); color: var(--muted); }
.regions li { display: grid; gap: 6px; }
.regions i { display: block; height: 4px; border-radius: 2px; background: var(--white); transform-origin: left; }
.regions li:nth-child(1) i { width: 94%; }
.regions li:nth-child(2) i { width: 86%; }
.regions li:nth-child(3) i { width: 78%; }

@media (min-width: 640px) {
  .panel { padding: 14px; }
  .panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tile--wide { grid-column: 1 / -1; }
  .tile--mid { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .panel__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .tile { grid-column: span 3; }
  .tile--wide { grid-column: span 7; }
  .tile--mid { grid-column: span 5; }
  .chart { height: 210px; }
}

/* 12. Testimonials -------------------------------------------------------- */
.section--glass { overflow: hidden; }
.glass-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 18% 56%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%),
    radial-gradient(460px 300px at 82% 62%, rgba(209, 213, 219, 0.12), rgba(209, 213, 219, 0) 70%),
    radial-gradient(300px 200px at 55% 52%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent 100%);
}

.quotes { position: relative; display: grid; gap: 16px; }
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 260px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02) 60%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.quote blockquote p {
  color: var(--white);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.quote figcaption { display: grid; gap: 2px; margin-top: auto; font-size: var(--fs-small); }
.quote__name { color: var(--white); font-weight: 500; }
.quote__org { color: var(--muted); }

@media (hover: hover) {
  .quote:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.32); }
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .quote { min-height: 320px; }
}

/* 13. Process ------------------------------------------------------------- */
.timeline { position: relative; }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px; top: 12px; bottom: -5px;
  width: 1px;
  background: var(--line-strong);
  transform-origin: top;
}
.step { position: relative; padding: 0 0 40px 44px; }
.step:last-child { padding-bottom: 0; }
.step__node {
  position: absolute;
  left: 0; top: 5px;
  width: 15px; height: 15px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 5px var(--black);
  z-index: 1;
}
.step__num { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--fs-small); font-weight: 500; }
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 44ch; }

@media (min-width: 1000px) {
  .timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
  .step:not(:last-child)::before { left: 7px; right: -28px; top: 7px; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .step { padding: 48px 0 0; }
  .step__node { top: 0; }
  .step p { font-size: 0.9375rem; }
}

/* 14. FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 40px; }
.faq__head { display: grid; gap: 20px; align-content: start; }

.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 20px 0;
  color: var(--white);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}
html:not(.js) .acc__btn { cursor: default; }
.acc__icon { position: relative; flex: none; width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-in-out); }
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  margin-top: -0.75px;
  background: var(--gray);
}
.acc__icon::after { transform: rotate(90deg); }
html:not(.js) .acc__icon { display: none; }
.acc.is-open .acc__icon { transform: rotate(45deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--t-base) var(--ease-in-out);
}
.acc__inner { min-height: 0; overflow: hidden; }
.acc__inner p { padding-bottom: 24px; max-width: 60ch; color: var(--gray); }
.js .acc:not(.is-open) .acc__panel { grid-template-rows: 0fr; }
.js .acc__inner { visibility: hidden; transition: visibility 0s linear var(--t-base); }
.js .acc.is-open .acc__inner { visibility: visible; transition-delay: 0s; }

@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* 15. CTA ----------------------------------------------------------------- */
.section--cta { padding-bottom: clamp(64px, 8vw, 112px); }
.cta {
  padding: clamp(56px, 9vw, 128px) clamp(24px, 6vw, 96px);
  border-radius: var(--r-lg);
  background: var(--white);
  color: var(--graphite);
  text-align: center;
}
.cta h2 { color: var(--black); max-width: 15ch; margin-inline: auto; }
.cta > p { max-width: 50ch; margin: 24px auto 0; font-size: var(--fs-lead); line-height: 1.5; }
.cta .btn-row { margin-top: 36px; }
.cta .cta__phone { margin-top: 24px; font-size: 1rem; }
.cta__phone a { color: var(--black); font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: rgba(0, 0, 0, 0.3); }
.cta__phone a:hover { text-decoration-color: var(--black); }
.cta :focus-visible { outline-color: var(--black); }
.cta ::selection { background: var(--black); color: var(--white); }

/* 16. Footer -------------------------------------------------------------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.footer__grid { display: grid; gap: 40px 32px; }
.footer__brand p { margin-top: 16px; color: var(--muted); }
.footer__col h2 {
  margin-bottom: 16px;
  font-size: var(--fs-small);
  font-stretch: 100%;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--white);
}
.footer__col ul { display: grid; gap: 4px; color: var(--muted); }
.footer__col li { display: flex; align-items: center; min-height: 32px; }
.footer__col a { transition: color var(--t-fast) var(--ease-out); }
.footer__col a:hover { color: var(--white); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-micro);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}

/* 17. Draft mode ---------------------------------------------------------- */
.sample-tag, .draft-ribbon { display: none; }

[data-draft] .sample-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--gray);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  vertical-align: middle;
}
[data-draft] .quote > .sample-tag { align-self: flex-start; margin: 0 0 -16px; }

[data-draft] .draft-ribbon {
  display: block;
  position: fixed;
  left: 50%; bottom: 12px;
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 16px;
  translate: -50% 0;
  border-radius: var(--r-pill);
  background: var(--gray);
  color: var(--black);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: opacity var(--t-base) var(--ease-out);
}
/* With JavaScript, the ribbon stays out of the way until the visitor scrolls. */
.js[data-draft]:not(.is-scrolled) .draft-ribbon { opacity: 0; pointer-events: none; }
[data-draft] .footer { padding-bottom: 72px; }

/* 18. Motion -------------------------------------------------------------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes bar { from { transform: scaleX(0); } to { transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes travel { from { transform: translateX(-8px); } to { transform: translateX(100%); } }
@keyframes travel-stop {
  0% { transform: translateX(-8px); opacity: 1; }
  78% { opacity: 1; }
  96%, 100% { transform: translateX(96%); opacity: 0; }
}
@keyframes drift {
  from { transform: translateX(-7%) scale(0.96); opacity: 0.75; }
  to { transform: translateX(7%) scale(1.04); opacity: 1; }
}
@keyframes float-a { from { transform: translate3d(0, -10px, 0) rotate(-3deg); } to { transform: translate3d(0, 14px, 0) rotate(4deg); } }
@keyframes float-b { from { transform: translate3d(-8px, 8px, 0) rotate(4deg); } to { transform: translate3d(10px, -12px, 0) rotate(-5deg); } }

/* Hero load sequence (CSS only, so it runs without JavaScript) */
.header { animation: fade-down 900ms var(--ease-out) 100ms both; }
.header .logo__bar { transform-box: fill-box; transform-origin: left center; animation: bar 700ms var(--ease-out) both; }
.header .logo__bar:nth-child(1) { animation-delay: 150ms; }
.header .logo__bar:nth-child(2) { animation-delay: 250ms; }
.header .logo__bar:nth-child(3) { animation-delay: 350ms; }

.hero__bg { animation: fade 1800ms ease-out both; }
.hero__light { animation: drift 14s ease-in-out infinite alternate; }
.float--ring svg { animation: float-a 22s ease-in-out infinite alternate; }
.float--arc svg { animation: float-b 18s ease-in-out infinite alternate; }
.float--square svg { animation: float-a 16s ease-in-out infinite alternate-reverse; }

.hero__line > span { animation: rise var(--t-hero) var(--ease-out) both; }
.hero__line:nth-child(1) > span { animation-delay: 150ms; }
.hero__line:nth-child(2) > span { animation-delay: 260ms; }
.hero__line:nth-child(3) > span { animation-delay: 370ms; }
.hero__side { animation: fade-up 1000ms var(--ease-out) 700ms both; }
.readout.is-ready { animation: fade-up 900ms var(--ease-out) both; }

/* Scroll reveals (only when JavaScript is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal] .feature__icon { stroke-dasharray: 80; stroke-dashoffset: 80; }
.js [data-reveal].is-in .feature__icon {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1400ms var(--ease-in-out) calc(var(--d, 0ms) + 200ms);
}

/* Control panel: charts animate when the panel scrolls in */
.js .panel:not(.is-live) .chart { clip-path: inset(0 100% 0 0); }
.js .panel.is-live .chart { clip-path: inset(0 0 0 0); transition: clip-path 1800ms var(--ease-in-out) 300ms; }
.js .panel:not(.is-live) .bars i { transform: scaleY(0); }
.js .panel.is-live .bars i { transition: transform 900ms var(--ease-out) calc(var(--i, 0) * 35ms + 300ms); }
.js .panel:not(.is-live) .ticks i { opacity: 0.12; }
.js .panel.is-live .ticks i { transition: opacity 400ms ease calc(var(--i, 0) * 28ms + 300ms); }
.js .panel:not(.is-live) .regions i { transform: scaleX(0); }
.js .panel.is-live .regions i { transition: transform 1100ms var(--ease-out) calc(var(--i, 0) * 120ms + 400ms); }

/* Timeline: line draws, nodes fill in turn */
.js .timeline:not(.is-in) .step::before { transform: scaleY(0); }
.js .timeline .step::before { transition: transform 520ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 220ms + 300ms); }
.js .timeline:not(.is-in) .step__node { background: var(--black); border-color: var(--line-strong); }
.js .timeline .step__node { transition: background-color 400ms ease, border-color 400ms ease; transition-delay: calc(var(--i, 0) * 220ms + 150ms); }
.js .timeline .step > :not(.step__node) { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 220ms + 150ms); }
.js .timeline:not(.is-in) .step > :not(.step__node) { opacity: 0; transform: translateY(12px); }
@media (min-width: 1000px) {
  .js .timeline:not(.is-in) .step::before { transform: scaleX(0); }
}

/* 19. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .dot { animation: none !important; display: none; }
  .dot--static { display: inline-block; }
  .pulse::after { display: none; }
}

@media print {
  .header, .mobile-menu, .hero__bg, .draft-ribbon { display: none !important; }
  body { background: #fff; color: #000; }
}

/* 404 page ---------------------------------------------------------------- */
.notfound { display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding-block: 64px; }
.notfound h1 { margin-top: 64px; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -0.035em; font-stretch: 92%; }
.notfound .lead { margin-top: 20px; }
.notfound .btn { margin-top: 32px; }
