/* ============================================================
   Cable Web Agency — Design System
   Single source of truth for visual identity
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01", "cv11";
}

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

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

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

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

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

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

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  /* Type */
  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Outfit", system-ui, sans-serif;

  --text-2xs: 0.7rem;
  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.7rem, 3.5vw, 2.4rem);
  --text-3xl: clamp(2rem, 5vw, 3.4rem);
  --text-4xl: clamp(2.7rem, 7vw, 5rem);
  --text-5xl: clamp(3.4rem, 10vw, 7.5rem);
  --text-display: clamp(3.5rem, 12vw, 9.5rem);

  /* Spacing scale (4-pt grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Durations */
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 460ms;
  --dur-slower: 800ms;

  /* Layout */
  --container: 1240px;
  --container-wide: 1480px;
  --gutter: clamp(1rem, 4vw, 3rem);

  /* Z-index scale */
  --z-base: 0;
  --z-raised: 10;
  --z-nav: 50;
  --z-modal: 100;
  --z-tooltip: 200;
  --z-cursor: 9999;
}

/* Dark theme (default) */
:root,
:root[data-theme="dark"] {
  --bg: #060c10;
  --bg-elev: #0a141a;
  --bg-elev-2: #0e1a22;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3fbfb;
  --text-soft: #d6e5e7;
  --muted: #a4b6ba;
  --faint: #6c7f84;
  --ink: #060c10;

  --accent: #22d3c5;
  --accent-soft: #5feadf;
  --accent-deep: #0fb6a8;
  --lime: #b6ff3a;
  --lime-deep: #8ed31a;
  --coral: #ff7a5f;
  --gold: #ffd166;
  --violet: #a78bfa;
  --rose: #fb7185;

  --grad-primary: linear-gradient(135deg, var(--accent), var(--lime));
  --grad-warm: linear-gradient(135deg, var(--coral), var(--gold));
  --grad-cool: linear-gradient(135deg, var(--accent), var(--violet));
  --grad-mesh: radial-gradient(at 18% 22%, rgba(34,211,197,0.18), transparent 45%),
               radial-gradient(at 82% 12%, rgba(167,139,250,0.14), transparent 50%),
               radial-gradient(at 55% 88%, rgba(255,122,95,0.13), transparent 55%);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 40px rgba(34, 211, 197, 0.35);

  color-scheme: dark;
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #f6f9f8;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef3f1;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-hover: rgba(255, 255, 255, 1);
  --border: rgba(14, 34, 39, 0.1);
  --border-strong: rgba(14, 34, 39, 0.22);
  --text: #0c1a1f;
  --text-soft: #1d3138;
  --muted: #4a6066;
  --faint: #79898d;
  --ink: #060c10;

  --accent: #0fb6a8;
  --accent-soft: #34d2c3;
  --accent-deep: #088478;
  --lime: #6fb70a;
  --lime-deep: #4d8504;
  --coral: #e85a3a;
  --gold: #c08a14;
  --violet: #6d4cd6;
  --rose: #d33b58;

  --grad-mesh: radial-gradient(at 18% 22%, rgba(15,182,168,0.12), transparent 45%),
               radial-gradient(at 82% 12%, rgba(109,76,214,0.08), transparent 50%),
               radial-gradient(at 55% 88%, rgba(232,90,58,0.08), transparent 55%);

  --shadow-sm: 0 1px 2px rgba(15, 60, 65, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 60, 65, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 60, 65, 0.1);
  --shadow-xl: 0 40px 100px rgba(15, 60, 65, 0.14);
  --shadow-glow: 0 0 40px rgba(15, 182, 168, 0.25);

  color-scheme: light;
}

/* Auroral theme — extra showcase */
:root[data-theme="aurora"] {
  --bg: #0b0820;
  --bg-elev: #14102f;
  --bg-elev-2: #1c1740;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --surface-hover: rgba(255, 255, 255, 0.16);
  --border: rgba(170, 180, 255, 0.14);
  --border-strong: rgba(170, 180, 255, 0.28);
  --text: #f1efff;
  --text-soft: #d6d2ff;
  --muted: #aaa6d6;
  --faint: #7872b0;
  --accent: #b4f8ff;
  --accent-soft: #d6fbff;
  --accent-deep: #6fe5ef;
  --lime: #e0ff70;
  --coral: #ff9bcd;
  --gold: #ffd3f0;
  --violet: #a78bfa;

  --grad-primary: linear-gradient(135deg, #b4f8ff, #ff9bcd 60%, #a78bfa);
  --grad-mesh: radial-gradient(at 18% 22%, rgba(180,248,255,0.22), transparent 45%),
               radial-gradient(at 82% 12%, rgba(255,155,205,0.2), transparent 50%),
               radial-gradient(at 55% 88%, rgba(167,139,250,0.22), transparent 55%);
  color-scheme: dark;
}

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.stack > * + * { margin-top: var(--stack, 1rem); }
.stack-sm { --stack: 0.5rem; }
.stack-lg { --stack: 1.5rem; }
.stack-xl { --stack: 2.5rem; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster, 1rem);
  align-items: center;
}

.grid {
  display: grid;
  gap: var(--grid-gap, 1rem);
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
}

.section-tight {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* ---------- 4. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.035em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.03em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

p { color: var(--muted); }

.lede {
  font-size: var(--text-lg);
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

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

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

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "ss02", "zero";
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) ease,
              border-color var(--dur-base) ease,
              box-shadow var(--dur-base) ease;
  cursor: pointer;
  isolation: isolate;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

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

.btn--primary {
  background: var(--grad-primary);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(34, 211, 197, 0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lime), var(--accent));
  opacity: 0;
  transition: opacity var(--dur-base) ease;
  z-index: -1;
}

.btn--primary:hover {
  box-shadow: 0 20px 50px rgba(34, 211, 197, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn--primary:hover::after { opacity: 1; }

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

.btn--lg {
  min-height: 3.6rem;
  padding: 1rem 1.8rem;
  font-size: var(--text-base);
}

.btn--sm {
  min-height: 2.4rem;
  padding: 0.5rem 0.95rem;
  font-size: var(--text-xs);
}

.btn--magnetic { will-change: transform; }

.btn .arrow {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-base) var(--ease-spring);
}

.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 6. BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-full);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 650;
  color: var(--text-soft);
}

.badge--accent { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 35%, transparent); }
.badge--lime { color: var(--lime); border-color: color-mix(in oklch, var(--lime) 35%, transparent); }
.badge--coral { color: var(--coral); border-color: color-mix(in oklch, var(--coral) 35%, transparent); }
.badge--violet { color: var(--violet); border-color: color-mix(in oklch, var(--violet) 35%, transparent); }

.badge .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- 7. CARDS ---------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) ease,
              background var(--dur-base) ease;
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--border-strong), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card--tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.card--glow {
  position: relative;
}

.card--glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(120% 80% at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklch, var(--accent) 30%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) ease;
  z-index: -1;
  pointer-events: none;
}

.card--glow:hover::after { opacity: 1; }

/* ---------- 8. NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  padding-block: var(--space-3);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease, background var(--dur-base) ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 2.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: -0.015em;
  color: var(--text);
  min-width: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand__phone {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  transition: color var(--dur-base) ease;
}

.brand:hover .brand__phone { color: var(--accent); }

@media (max-width: 420px) {
  .brand__phone { display: none; }
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--grad-primary);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.25);
}

.brand__mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color var(--dur-base) ease, background var(--dur-base) ease;
}

.nav__link:hover { color: var(--text); background: var(--surface); }

.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transform: translateX(-50%);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.theme-switch {
  position: relative;
  width: 4.6rem;
  height: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  padding: 0.18rem;
  gap: 0.2rem;
  cursor: pointer;
}

.theme-switch__opt {
  flex: 1;
  height: 100%;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--faint);
  transition: color var(--dur-base) ease;
  position: relative;
  z-index: 1;
}

.theme-switch__opt[aria-pressed="true"] { color: var(--ink); }

.theme-switch__indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(33.333% - 4px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--grad-primary);
  transition: transform var(--dur-base) var(--ease-spring);
  z-index: 0;
}

.theme-switch[data-active="light"] .theme-switch__indicator { transform: translateX(calc(100% + 4px)); }
.theme-switch[data-active="aurora"] .theme-switch__indicator { transform: translateX(calc(200% + 8px)); }

.nav__toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) ease;
}

.nav__toggle span:nth-child(1) { top: 32%; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 32%; }

.nav.is-open .nav__toggle span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 880px) {
  .nav {
    --nav-panel-top: 4.25rem;
  }

  .nav__inner {
    gap: 0.6rem;
  }

  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: fixed;
    inset: var(--nav-panel-top) 0 0 0;
    flex-direction: column;
    gap: 0;
    height: calc(100dvh - var(--nav-panel-top));
    padding: 1.1rem var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--bg);
    background: color-mix(in oklch, var(--bg) 96%, black);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity var(--dur-base) ease,
                transform var(--dur-base) var(--ease-out),
                visibility 0s linear var(--dur-base);
    visibility: hidden;
    align-items: stretch;
    z-index: calc(var(--z-nav) + 1);
  }

  .nav.is-open .nav__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  .nav__link {
    padding: 1rem 0.75rem 1rem 1.4rem;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-lg);
  }

  .nav__link[aria-current="page"]::after {
    bottom: auto;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .theme-switch { margin-top: 0; }
}

@media (max-width: 720px) {
  .nav__actions > .btn {
    display: none;
  }
}

@media (max-width: 440px) {
  .nav__inner {
    gap: 0.45rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand__mark,
  .nav__toggle {
    width: 2.25rem;
    height: 2.25rem;
  }

  .brand__name {
    font-size: 0.96rem;
  }

  .theme-switch {
    width: 4.25rem;
  }
}

/* ---------- 9. FORMS ---------- */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  transition: border-color var(--dur-base) ease, background var(--dur-base) ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
}

/* Pill segmented control */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seg__btn {
  padding: 0.55rem 0.95rem;
  font-size: var(--text-xs);
  font-weight: 650;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur-base) ease;
}

.seg__btn:hover { color: var(--text); border-color: var(--border-strong); }

.seg__btn[aria-pressed="true"] {
  background: var(--grad-primary);
  color: var(--ink);
  border-color: transparent;
}

/* ---------- 10. CURSOR (custom) ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width var(--dur-base) var(--ease-spring),
              height var(--dur-base) var(--ease-spring),
              background var(--dur-base) ease,
              border-color var(--dur-base) ease,
              opacity var(--dur-base) ease;
  mix-blend-mode: difference;
  will-change: transform;
  opacity: 0;
}

.cursor.is-active { opacity: 1; }
.cursor.is-hover {
  width: 54px;
  height: 54px;
  background: color-mix(in oklch, var(--accent) 14%, transparent);
}
.cursor.is-tap {
  width: 14px;
  height: 14px;
  background: var(--accent);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 999px;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
}

.cursor-dot.is-active { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ---------- 11. ANIMATIONS ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

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

@keyframes type-cursor {
  50% { border-right-color: transparent; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-r, 80px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r, 80px)) rotate(-360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-letters {
  display: inline-block;
}

.reveal-letters span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 22ms);
}

.reveal-letters.is-visible span {
  opacity: 1;
  transform: translateY(0);
}

.float-anim { animation: float 6s ease-in-out infinite; }
.spin-anim { animation: spin-slow 22s linear infinite; }

/* ---------- 12. HERO ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

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

.hero__mesh {
  position: absolute;
  inset: -20%;
  background: var(--grad-mesh);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

#field {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shooting-stars span {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: clamp(7rem, 16vw, 14rem);
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.96), rgba(34,211,197,0.72));
  box-shadow: 0 0 18px rgba(34,211,197,0.45);
  opacity: 0;
  transform: rotate(32deg) translate3d(0, 0, 0);
  transform-origin: right center;
  animation: shooting-star var(--sd, 3.2s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.shooting-stars span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 14px rgba(255,255,255,0.75), 0 0 24px rgba(34,211,197,0.5);
  transform: translateY(-50%);
}

.shooting-stars span:nth-child(1) { --sx: 72%; --sy: 12%; --sd: 3.2s; --delay: 0.2s; }
.shooting-stars span:nth-child(2) { --sx: 92%; --sy: 22%; --sd: 3.8s; --delay: 1.4s; }
.shooting-stars span:nth-child(3) { --sx: 78%; --sy: 42%; --sd: 3.4s; --delay: 2.7s; }
.shooting-stars span:nth-child(4) { --sx: 56%; --sy: 56%; --sd: 4.2s; --delay: 4.8s; }
.shooting-stars span:nth-child(5) { --sx: 88%; --sy: 64%; --sd: 3.6s; --delay: 6.1s; }
.shooting-stars span:nth-child(6) { --sx: 64%; --sy: 30%; --sd: 4s; --delay: 7.6s; }

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: rotate(32deg) translate3d(0, 0, 0) scaleX(0.65);
  }
  6%, 50% {
    opacity: 0.9;
  }
  68% {
    opacity: 0;
    transform: rotate(32deg) translate3d(-58vw, 34vh, 0) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: rotate(32deg) translate3d(-58vw, 34vh, 0) scaleX(1);
  }
}

@media (max-width: 640px) {
  .shooting-stars span {
    width: 8rem;
    height: 1.5px;
  }

  .shooting-stars span:nth-child(1) { --sx: 74%; --sy: 10%; }
  .shooting-stars span:nth-child(2) { --sx: 92%; --sy: 24%; }
  .shooting-stars span:nth-child(3) { --sx: 76%; --sy: 46%; }
  .shooting-stars span:nth-child(4) { --sx: 64%; --sy: 66%; }
  .shooting-stars span:nth-child(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-stars { display: none; }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

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

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.hero h1 .accent { color: var(--accent); }

.hero__sub {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: var(--text-md);
  color: var(--text-soft);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__meta {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hero__meta-item small {
  display: block;
  font-size: var(--text-xs);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.hero__meta-item strong {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}

/* Hero "device" mockup */
.device {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  transform: perspective(1600px) rotateX(2deg) rotateY(-7deg);
  transition: transform 0.6s var(--ease-out);
  isolation: isolate;
}

.device:hover { transform: perspective(1600px) rotateX(0deg) rotateY(0deg); }

.device__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

.device__dots {
  display: flex;
  gap: 0.4rem;
}

.device__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--surface-strong);
}

.device__dot:nth-child(1) { background: var(--coral); }
.device__dot:nth-child(2) { background: var(--gold); }
.device__dot:nth-child(3) { background: var(--lime); }

.device__addr {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device__addr::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.device__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(at 30% 20%, color-mix(in oklch, var(--accent) 25%, transparent), transparent 50%),
    radial-gradient(at 70% 80%, color-mix(in oklch, var(--violet) 25%, transparent), transparent 50%),
    var(--bg-elev);
  overflow: hidden;
}

.device__viewport-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/ 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/ 40px 40px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

/* ---------- 13. MARQUEE ---------- */
.marquee {
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

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

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.marquee__item svg { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.marquee__item span { white-space: nowrap; }

/* ---------- 14. SERVICE CARDS ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 18rem;
}

.service__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 20%, transparent), color-mix(in oklch, var(--lime) 12%, transparent));
  border: 1px solid var(--border);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.service__icon svg { width: 1.4rem; height: 1.4rem; }

.service h3 { font-size: var(--text-lg); }

.service p { font-size: var(--text-sm); }

.service__list {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  gap: 0.45rem;
  border-top: 1px dashed var(--border);
  list-style: none;
}

.service__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: var(--text-xs);
  color: var(--muted);
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- 15. STAT NUMBERS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.stat {
  padding: 1.4rem 1.4rem 1.6rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
}

.stat__num {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 16. PROCESS / TIMELINE ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  padding: 1.4rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  counter-increment: step;
  overflow: hidden;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--faint);
  opacity: 0.5;
}

.step__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.step__bullet {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.step__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.step p { color: var(--muted); font-size: var(--text-sm); line-height: 1.55; }

/* ---------- 17. ACCORDION (FAQ) ---------- */
.faq-list { display: grid; gap: 0.75rem; }

.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: background var(--dur-base) ease, border-color var(--dur-base) ease;
}

.faq[open] {
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 650;
  color: var(--text);
}

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

.faq__plus {
  margin-left: auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  flex: 0 0 auto;
  transition: transform var(--dur-base) var(--ease-out);
}

.faq[open] .faq__plus { transform: rotate(45deg); }

.faq__body {
  padding: 0 1.4rem 1.4rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 70ch;
}

/* ---------- 18. CTA BAND ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(at 20% 30%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 55%),
    radial-gradient(at 80% 70%, color-mix(in oklch, var(--violet) 18%, transparent), transparent 55%),
    var(--bg-elev);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  isolation: isolate;
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (max-width: 880px) {
  .cta-band__grid { grid-template-columns: 1fr; }
}

.cta-band h2 { font-size: clamp(2rem, 5vw, 3.6rem); }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- 19. FOOTER ---------- */
.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: linear-gradient(180deg, transparent, color-mix(in oklch, var(--ink) 90%, transparent));
  border-top: 1px solid var(--border);
  margin-top: 5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}

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

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

.footer h4 {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; display: grid; gap: 0.55rem; }

.footer a {
  color: var(--muted);
  font-size: var(--text-sm);
  transition: color var(--dur-base) ease;
}

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

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--faint);
}

.footer__bottom a:hover { color: var(--muted); }

/* ---------- 20. PORTFOLIO ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.work {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) ease;
}

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

.work__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
}

.work__preview-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  font-family: var(--font-mono);
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.work__tag {
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.work__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}

.work h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }

.work p { font-size: var(--text-sm); color: var(--muted); }

/* ---------- 21. TECH STACK ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.75rem;
}

.stack-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}

.stack-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.stack-pill svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex: 0 0 auto; }

/* ---------- 22. CODE WINDOW ---------- */
.code-window {
  position: relative;
  border-radius: var(--r-lg);
  background: #0a0f15;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.code-window__bar .device__dots { display: inline-flex; }

.code-window__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--faint);
  margin-left: 0.6rem;
}

.code-window pre {
  margin: 0;
  padding: 1.1rem 1.2rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #d3e4e6;
  overflow-x: auto;
  white-space: pre;
  font-family: var(--font-mono);
  tab-size: 2;
}

.code-window .tag { color: #ff7a5f; }
.code-window .attr { color: #ffd166; }
.code-window .str { color: #b6ff3a; }
.code-window .kw { color: #a78bfa; }
.code-window .num { color: #22d3c5; }
.code-window .com { color: #6c7f84; font-style: italic; }
.code-window .fn { color: #22d3c5; }
.code-window .cursor-blink {
  display: inline-block;
  width: 0.6ch;
  background: var(--accent);
  color: transparent;
  animation: blink 1s steps(2) infinite;
}

/* ---------- 23. PRICING ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.plan--popular {
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 8%, var(--surface)), var(--surface));
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 30%, transparent), var(--shadow-md);
}

.plan__tag {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--grad-primary);
  color: var(--ink);
}

.plan h3 { font-size: var(--text-lg); margin-bottom: 0.35rem; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1rem 0 0.8rem;
}

.plan__price strong {
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan__price small {
  color: var(--muted);
  font-size: var(--text-sm);
}

.plan ul {
  list-style: none;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.55rem;
}

.plan ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-sm);
  color: var(--text-soft);
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--grad-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>") center/65% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 12 10 18 20 6'/></svg>") center/65% no-repeat;
}

.plan .btn { margin-top: auto; }

/* ---------- 24. TESTIMONIAL ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
}

.quote {
  padding: 1.6rem 1.6rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote::before {
  content: "“";
  position: absolute;
  top: 0.4rem;
  right: 1.25rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}

.quote p {
  color: var(--text-soft);
  font-size: var(--text-md);
  line-height: 1.6;
  margin: 0;
}

.quote__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.quote__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  color: var(--ink);
  font-weight: 800;
  font-size: var(--text-sm);
  flex: 0 0 auto;
}

.quote__author strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--text);
}

.quote__author span {
  display: block;
  font-size: var(--text-xs);
  color: var(--faint);
}

.quote__rating {
  display: flex;
  gap: 0.1rem;
}

.quote__rating svg { width: 0.9rem; height: 0.9rem; color: var(--gold); }

/* ---------- 25. TIMELINE (about) ---------- */
.timeline {
  position: relative;
  padding-left: 2.25rem;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.7rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--violet));
  opacity: 0.5;
}

.tl-item {
  position: relative;
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.tl-item::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: -2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent);
}

.tl-item time {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.tl-item h3 { font-size: var(--text-lg); margin-bottom: 0.3rem; }

.tl-item p { color: var(--muted); font-size: var(--text-sm); }

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  z-index: 10000;
}

.skip-link:focus { transform: translateY(0); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  margin-block: 3rem;
}

.page-head {
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
}

.page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin-top: 0.7rem; }
.page-head p {
  margin: 1.2rem auto 0;
  max-width: 60ch;
  font-size: var(--text-md);
  color: var(--muted);
}

.row-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

@media (max-width: 880px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* Print styles */
@media print {
  .nav, .footer, .cursor, .cursor-dot, #field, .hero__mesh,
  .theme-switch, .nav__toggle { display: none !important; }
  body { background: white; color: black; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}

/* ---------- 27. SCROLL-DRIVEN ANIMATIONS (progressive enhancement) ---------- */
@supports (animation-timeline: scroll()) {
  .scroll-fade {
    animation: scroll-fade-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  @keyframes scroll-fade-in {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform-origin: 0 50%;
    animation: scroll-grow linear;
    animation-timeline: scroll(root);
    z-index: var(--z-modal);
  }

  @keyframes scroll-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* fallback scroll progress (always visible, JS-driven) */
.scroll-progress-js {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: var(--p, 0%);
  background: var(--grad-primary);
  z-index: var(--z-modal);
  transition: width 80ms linear;
}

/* ---------- 28. PRICING CALCULATOR ---------- */
.calc {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.calc__row {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
}

.calc__row:last-of-type { border-bottom: 0; }

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

.calc__label { font-weight: 650; font-size: var(--text-sm); }

.calc__value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  color: var(--accent);
  text-align: right;
}

input[type="range"] {
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-strong);
  border-radius: 999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--grad-primary);
  cursor: pointer;
  border: 0;
  box-shadow: var(--shadow-md);
}

input[type="range"]::-moz-range-thumb {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 0;
}

.calc__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-strong);
}

.calc__total strong {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}

/* ---------- 29. FEATURE BANNER / SPLIT ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > *:first-child { order: 2; }
}

/* ---------- 30. MISC NICETIES ---------- */
.bullet-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--grad-primary);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.kicker::before {
  content: "//";
  color: var(--accent);
}

.tape {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-soft);
}

.tape__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: blink 2s ease-in-out infinite;
}
