/* ============================================================
   Clear Start AI — design system
   Palette: deep space #05060e · cyan #38e1ff → violet #8b7bff
   ============================================================ */

:root {
  --bg: #05060e;
  --bg-2: #0a0d1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(96, 200, 255, 0.45);
  --text: #e9ecf8;
  --muted: #9ba4c2;
  --cyan: #38e1ff;
  --violet: #8b7bff;
  --grad: linear-gradient(100deg, var(--cyan), var(--violet));
  --radius: 18px;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "SF Pro Text", Inter, Roboto, system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system,
    "SF Pro Display", Inter, system-ui, sans-serif;
  --font-mono: "Cascadia Code", ui-monospace, "SF Mono", "JetBrains Mono",
    "Fira Code", Consolas, monospace;
  --header-h: 74px;

  /* theme-dependent tokens (dark defaults) */
  --header-bg: rgba(7, 9, 20, 0.72);
  --menu-bg: rgba(6, 8, 18, 0.92);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  --card-rest-shadow: none;
  --card-hover-shadow: 0 18px 50px rgba(3, 6, 20, 0.6), 0 0 0 1px rgba(56, 225, 255, 0.06);
  --spotlight: rgba(96, 200, 255, 0.11);
  --track: rgba(255, 255, 255, 0.08);
  --dots: rgba(255, 255, 255, 0.055);
  --panel-1: #0b0e1f;
  --panel-2: #080a17;
  --hint: rgba(255, 255, 255, 0.25);
  --cursor-glow: rgba(56, 225, 255, 0.9);
  --cursor-ring: rgba(56, 225, 255, 0.5);
  --selection-bg: rgba(56, 225, 255, 0.28);
  --selection-fg: #ffffff;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f5fc;
  --bg-2: #ffffff;
  --surface: rgba(15, 30, 80, 0.045);
  --surface-2: rgba(15, 30, 80, 0.08);
  --border: rgba(15, 30, 80, 0.13);
  --border-bright: rgba(2, 132, 199, 0.5);
  --text: #0d1330;
  --muted: #4d587a;
  --cyan: #0793c4;
  --violet: #6d5ae8;
  --header-bg: rgba(250, 251, 255, 0.78);
  --menu-bg: rgba(250, 251, 255, 0.94);
  --card-bg: linear-gradient(180deg, #ffffff, #fafbff);
  --card-rest-shadow: 0 2px 16px rgba(30, 45, 110, 0.06);
  --card-hover-shadow: 0 20px 44px rgba(30, 45, 110, 0.15), 0 0 0 1px rgba(2, 132, 199, 0.08);
  --spotlight: rgba(2, 132, 199, 0.09);
  --track: rgba(15, 30, 80, 0.13);
  --dots: rgba(15, 30, 80, 0.11);
  --panel-1: #ffffff;
  --panel-2: #eef2ff;
  --hint: rgba(15, 30, 80, 0.32);
  --cursor-glow: rgba(7, 147, 196, 0.75);
  --cursor-ring: rgba(7, 147, 196, 0.55);
  --selection-bg: rgba(7, 147, 196, 0.22);
  --selection-fg: #0d1330;
  color-scheme: light;
}

/* ---------- reset / base ---------- */

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

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

::selection { background: var(--selection-bg); color: var(--selection-fg); }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

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

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- scroll progress ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1500;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- custom cursor ---------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 2500;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  display: none;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cursor-glow);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--cursor-ring);
  transition: scale 0.25s ease, border-color 0.25s ease;
}
.cursor-ring.is-hover {
  scale: 1.6;
  border-color: rgba(139, 123, 255, 0.8);
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { display: block; }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color 0.35s ease, border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}
.brand-mark { filter: drop-shadow(0 0 8px rgba(56, 225, 255, 0.35)); }
.brand-logo {
  height: 60px;
  width: auto;
  opacity: 0.9;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Dark mode logo styling (default) */
.brand-logo {
  filter: brightness(1.1) contrast(1.05);
}

/* Light mode logo styling */
html[data-theme="light"] .brand-logo {
  filter: brightness(0.95) contrast(1.1);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.site-header.menu-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- theme toggle ---------- */

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.theme-toggle:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 18px rgba(56, 225, 255, 0.14);
}
.theme-toggle svg {
  grid-area: 1 / 1;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1.2);
}
html:not([data-theme="light"]) .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
html[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* brief global crossfade when switching themes */
html.theme-fade,
html.theme-fade *,
html.theme-fade *::before,
html.theme-fade *::after {
  transition: background-color 0.35s ease, background 0.35s ease,
    border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease,
    fill 0.35s ease, stroke 0.35s ease !important;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: -1;
  padding: calc(var(--header-h) + 18px) clamp(20px, 5vw, 40px) 30px;
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open { opacity: 1; transform: none; }
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu li:last-child a { border-bottom: none; color: var(--cyan); }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1.3);
  will-change: transform;
}

.btn-primary {
  color: #04101c;
  background: linear-gradient(110deg, var(--cyan) 0%, var(--violet) 50%, var(--cyan) 100%);
  background-size: 220% 100%;
  animation: grad-shift 7s linear infinite;
  box-shadow: 0 6px 28px rgba(56, 225, 255, 0.22);
}
.btn-primary:hover {
  box-shadow: 0 10px 44px rgba(56, 225, 255, 0.42);
}
@keyframes grad-shift {
  to { background-position: 220% 0; }
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--border-bright);
  box-shadow: 0 8px 30px rgba(56, 225, 255, 0.14),
    inset 0 0 20px rgba(56, 225, 255, 0.05);
}

.btn-sm { padding: 10px 22px; font-size: 0.92rem; }
.btn-lg { padding: 18px 40px; font-size: 1.08rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  transition: transform 1s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.orb-1 {
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  top: -22%; left: -14%;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.13), transparent 65%);
  transform: translate(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 20px));
}
.orb-2 {
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  bottom: -25%; right: -12%;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.14), transparent 65%);
  transform: translate(calc(var(--px, 0) * -32px), calc(var(--py, 0) * -22px));
}
.orb-3 {
  width: 34vw; height: 34vw;
  max-width: 460px; max-height: 460px;
  top: 30%; left: 55%;
  background: radial-gradient(circle, rgba(56, 225, 255, 0.07), transparent 60%);
  transform: translate(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 12px));
}

#neural-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 60px;
}

.hero-title {
  font-size: clamp(2.55rem, 7.2vw, 5.3rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero-title .line { display: block; }

.hero-sub {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  z-index: 2;
  width: 24px; height: 38px;
  margin-left: -12px;
  border: 1.5px solid var(--hint);
  border-radius: 13px;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--cyan);
  animation: hint-drop 2.1s ease-in-out infinite;
}
@keyframes hint-drop {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 1; }
  65%  { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(13px); opacity: 0; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(84px, 11vw, 130px); position: relative; }

.sec-head {
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.sec-orn {
  display: block;
  width: 56px; height: 3px;
  margin: 0 auto 22px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(56, 225, 255, 0.5);
}
.sec-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}
.sec-sub {
  margin-top: 16px;
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  color: var(--muted);
}

/* ---------- cards (shared) ---------- */

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-rest-shadow);
  transition: border-color 0.35s ease, box-shadow 0.35s ease,
    transform 0.25s ease-out;
  transform-style: preserve-3d;
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--card-hover-shadow);
}
/* cursor spotlight */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight), transparent 65%);
}
.card:hover::after { opacity: 1; }

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  padding: 34px 30px 30px;
}
.service-card h3 {
  font-size: 1.35rem;
  margin-top: 24px;
}
.service-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 17px;
  background: rgba(56, 225, 255, 0.07);
  border: 1px solid rgba(96, 200, 255, 0.22);
  box-shadow: inset 0 0 24px rgba(56, 225, 255, 0.06);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tags li {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.card:hover .tags li { border-color: rgba(96, 200, 255, 0.35); color: var(--text); }

/* animated service icons */
.icon-image rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: px-pulse 3.2s ease-in-out infinite;
}
.icon-image rect:nth-child(1) { animation-delay: 0s; }
.icon-image rect:nth-child(2) { animation-delay: 0.25s; }
.icon-image rect:nth-child(3) { animation-delay: 0.5s; }
.icon-image rect:nth-child(4) { animation-delay: 0.85s; }
.icon-image rect:nth-child(5) { animation-delay: 1.1s; }
.icon-image rect:nth-child(6) { animation-delay: 1.35s; }
.icon-image rect:nth-child(7) { animation-delay: 1.7s; }
.icon-image rect:nth-child(8) { animation-delay: 1.95s; }
.icon-image rect:nth-child(9) { animation-delay: 2.2s; }
@keyframes px-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.72); }
  45%, 62% { opacity: 1; transform: scale(1); }
}

.icon-video .ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-pulse 2.6s ease-out infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(1); opacity: 1; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.icon-video .wave rect {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: wave-bounce 1.4s ease-in-out infinite;
}
.icon-video .wave rect:nth-child(1) { animation-delay: 0s; }
.icon-video .wave rect:nth-child(2) { animation-delay: 0.18s; }
.icon-video .wave rect:nth-child(3) { animation-delay: 0.36s; }
.icon-video .wave rect:nth-child(4) { animation-delay: 0.54s; }
.icon-video .wave rect:nth-child(5) { animation-delay: 0.72s; }
@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1.5); }
}

.icon-data .flow { opacity: 0; }
.icon-data .flow-1 { animation: flow-a 2.8s linear infinite; }
.icon-data .flow-2 { animation: flow-b 2.8s linear infinite 1.4s; }
@keyframes flow-a {
  0%   { transform: translate(11px, 37px); opacity: 0; }
  8%   { opacity: 1; }
  46%  { transform: translate(24px, 12px); opacity: 1; }
  54%  { opacity: 0; }
  100% { transform: translate(24px, 12px); opacity: 0; }
}
@keyframes flow-b {
  0%   { transform: translate(24px, 12px); opacity: 0; }
  8%   { opacity: 1; }
  46%  { transform: translate(37px, 37px); opacity: 1; }
  54%  { opacity: 0; }
  100% { transform: translate(37px, 37px); opacity: 0; }
}

/* ---------- how it works ---------- */

.section-how {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(139, 123, 255, 0.06), transparent 70%);
}

.steps { position: relative; }

.steps-track {
  position: absolute;
  top: 23px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}
.steps-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(56, 225, 255, 0.7);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.15s linear;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.step { position: relative; }

.step-marker {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
  transition: background-color 0.4s ease, color 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}
.step.active .step-marker {
  background: var(--bg-2);
  border-color: transparent;
  color: #04101c;
  background: var(--grad);
  box-shadow: 0 0 26px rgba(56, 225, 255, 0.45);
  font-weight: 700;
}

.step h3 {
  margin-top: 20px;
  font-size: 1.14rem;
}
.step p {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- benefits ---------- */

.section-benefits::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 45%, #000, transparent 78%);
}

.benefits-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card { padding: 28px 26px; }

.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(56, 225, 255, 0.08);
  border: 1px solid rgba(96, 200, 255, 0.22);
}
.benefit-card:nth-child(even) .benefit-icon {
  color: var(--violet);
  background: rgba(139, 123, 255, 0.09);
  border-color: rgba(139, 123, 255, 0.26);
}

.benefit-card h3 {
  margin-top: 18px;
  font-size: 1.13rem;
}
.benefit-card p {
  margin-top: 9px;
  font-size: 0.93rem;
  color: var(--muted);
}

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

.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: 26px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--panel-1), var(--panel-2)) padding-box,
    linear-gradient(120deg, rgba(56, 225, 255, 0.65), rgba(139, 123, 255, 0.18) 40%,
      rgba(56, 225, 255, 0.65) 80%, rgba(139, 123, 255, 0.3)) border-box;
  background-size: auto, 300% 100%;
  animation: panel-border 9s linear infinite;
}
@keyframes panel-border {
  to { background-position: 0 0, 300% 0; }
}

.cta-glow {
  position: absolute;
  top: -40%; left: 50%;
  width: 640px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(56, 225, 255, 0.13), transparent);
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
}
.cta-panel p {
  position: relative;
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.15rem);
}
.cta-panel .btn { margin-top: 36px; }

.cta-email {
  position: relative;
  display: block;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.25s;
}
.cta-email:hover { color: var(--cyan); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(56, 225, 255, 0.025));
  padding-top: 56px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand { max-width: 340px; }
.footer-tagline {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: clamp(40px, 7vw, 96px);
}
.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-bottom a {
  font-family: var(--font-mono);
  transition: color 0.25s;
}
.footer-bottom a:hover { color: var(--cyan); }

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s ease var(--d, 0ms),
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}
[data-reveal].revealed {
  opacity: 1;
  translate: 0 0;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card:last-child { grid-column: 1 / -1; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu[hidden] { display: none; }
}

@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

@media (max-width: 820px) {
  .steps-track {
    top: 24px;
    bottom: 24px;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps-fill {
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
  }
  .steps-list {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }
  .step { padding-left: 68px; }
  .step .step-marker {
    position: absolute;
    left: 0; top: 0;
  }
  .step h3 { margin-top: 0; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:last-child { grid-column: auto; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
  .scroll-hint { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .btn-primary,
  .cta-panel,
  .icon-image rect,
  .icon-video .ring,
  .icon-video .wave rect,
  .icon-data .flow,
  .scroll-hint span {
    animation: none;
  }
  .icon-data .flow { opacity: 0; }
  .orb { transition: none; }
  .steps-fill { transition: none; }
  .card { transition: border-color 0.35s ease, box-shadow 0.35s ease; }
  .theme-toggle svg { transition: none; }
}
