/* ==========================================================
   Aurora — Animated Static Website Template
   Version 1.0.0
   ----------------------------------------------------------
   TABLE OF CONTENTS
   1. Theme tokens (edit colors here)
   2. Base & utilities
   3. Preloader, progress, cursor
   4. Header & navigation
   5. Hero
   6. Marquee
   7. Sections, cards, stats
   8. Work / portfolio
   9. Process timeline
   10. Pricing
   11. Testimonials slider
   12. FAQ
   13. Contact form
   14. Footer
   15. Reveal animations & keyframes
   16. Responsive
   17. Reduced motion
   ========================================================== */

/* 1. THEME TOKENS ------------------------------------------ */
:root {
  --primary: #7c5cff;
  --secondary: #00d4ff;
  --accent: #ff5ca8;
  --gradient: linear-gradient(120deg, var(--primary), var(--secondary) 50%, var(--accent));
  /* seamless version for animated backgrounds (first colour = last colour) */
  --gradient-loop: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));

  --bg: #0b0b14;
  --bg-alt: #11111d;
  --surface: rgba(255, 255, 255, .04);
  --surface-strong: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .1);
  --text: #f1f1f7;
  --muted: #9a9ab0;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);

  --radius: 20px;
  --radius-sm: 12px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;

  /* CodeSanthai logo: marigold bag with navy </> on dark backgrounds */
  --logo-bag: #f6c945;
  --logo-code: #172554;
  --logo-slash: #172554;
  --logo-accent: #f6c945;
}

[data-theme="light"] {
  --bg: #f7f7fc;
  --bg-alt: #eeeef8;
  --surface: rgba(255, 255, 255, .7);
  --surface-strong: #ffffff;
  --border: rgba(20, 20, 50, .1);
  --text: #14142b;
  --muted: #5c5c78;
  --shadow: 0 20px 50px -25px rgba(40, 30, 120, .35);

  /* CodeSanthai logo: navy bag with marigold </> on light backgrounds */
  --logo-bag: #172554;
  --logo-code: #f6c945;
  --logo-slash: #ffffff;
  --logo-accent: #172554;
}

/* 2. BASE ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary); color: #fff; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 32px); }

.gradient-text {
  background: var(--gradient-loop);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn--sm { padding: .6rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gradient); background-size: 200% auto; color: #fff; box-shadow: 0 10px 30px -10px var(--primary); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45), transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px var(--primary); background-position: right center; }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--primary); background: var(--surface-strong); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.icon-btn:hover { transform: translateY(-3px) rotate(-8deg); border-color: var(--primary); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .85rem; color: var(--muted);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 0 #2ee59d; animation: ping 2s infinite; }

.eyebrow {
  display: inline-block; margin-bottom: .8rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--secondary);
}

/* 3. PRELOADER / PROGRESS / CURSOR ------------------------ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__logo {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  animation: float 1.6s var(--ease) infinite;
}
.preloader__logo .logo__mark { width: 84px; height: 84px; }

.progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 100%;
  background: var(--gradient);
  transform-origin: left; transform: scaleX(0);
}

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .18), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  opacity: 0;
}
@media (hover: hover) { .cursor-glow.is-active { opacity: 1; } }

/* 4. HEADER ----------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .4s, backdrop-filter .4s, border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--border);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__actions { display: flex; align-items: center; gap: .6rem; }

.logo { display: inline-flex; align-items: center; gap: .5rem; font: 600 1.35rem var(--font-head); letter-spacing: -.01em; }
.logo__mark {
  width: 38px; height: 38px; flex: 0 0 auto;
  transition: transform .6s var(--ease);
}
.logo__mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo__mark .lm-handle { stroke: var(--logo-bag); stroke-width: 8; }
.logo__mark .lm-bag { fill: var(--logo-bag); stroke: var(--logo-bag); stroke-width: 4; }
.logo__mark .lm-code { stroke: var(--logo-code); stroke-width: 7; }
.logo__mark .lm-slash { stroke: var(--logo-slash); stroke-width: 7; }
.logo__text b { font-weight: 800; color: var(--logo-accent); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.08); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link { position: relative; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

#themeToggle .i-sun { display: none; }
[data-theme="light"] #themeToggle .i-sun { display: block; }
[data-theme="light"] #themeToggle .i-moon { display: none; }

.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* 5. HERO ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.blob {
  position: absolute; z-index: 0;
  border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: blob 18s ease-in-out infinite alternate;
}
.blob--1 { width: 480px; height: 480px; background: var(--primary); top: -120px; left: -120px; }
.blob--2 { width: 380px; height: 380px; background: var(--secondary); bottom: -100px; right: 10%; animation-delay: -6s; opacity: .35; }
.blob--3 { width: 300px; height: 300px; background: var(--accent); top: 30%; right: -80px; animation-delay: -12s; opacity: .3; }
[data-theme="light"] .blob { opacity: .25; }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 5rem); margin: 1.4rem 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span:first-child,
.hero__title .line > .gradient-text { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero__title .line:nth-child(2) > * { transition-delay: .12s; }
.hero__title .line:nth-child(3) > * { transition-delay: .24s; }
.hero__title .typed { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease) .18s; }
body.is-loaded .hero__title .line > * { transform: none; }
.typed::after {
  content: ""; display: inline-block;
  width: 3px; height: .9em; margin-left: 4px; vertical-align: -.08em;
  background: var(--secondary);
  animation: blink 1s steps(1) infinite;
}
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.2rem 0; }
.hero__trust { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .95rem; }
.hero__trust strong { color: var(--text); }
.avatars { display: flex; }
.avatars span, .quote__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: 2px solid var(--bg);
}
.avatars span + span { margin-left: -12px; }

.hero__visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(460px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.orbit__ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed var(--border);
  animation: spin linear infinite;
}
.orbit__ring--1 { inset: 0; animation-duration: 40s; }
.orbit__ring--2 { inset: 12%; animation-duration: 28s; animation-direction: reverse; }
.orbit__ring--3 { inset: 24%; animation-duration: 18s; }
.orbit__dot {
  position: absolute; top: -6px; left: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 20px var(--secondary);
}
.orbit__core { position: relative; z-index: 2; width: 62%; transform-style: preserve-3d; transition: transform .2s ease-out; }
.mock {
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__body { padding: 18px; }
.mock__line { height: 10px; border-radius: 6px; background: var(--border); margin-bottom: 10px; }
.mock__line.w70 { width: 70%; } .mock__line.w40 { width: 40%; }
.mock__chart { height: 110px; display: flex; align-items: flex-end; gap: 8px; margin-top: 18px; }
.mock__chart span {
  flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px;
  background: var(--gradient); background-size: 100% 300%;
  transform-origin: bottom;
  animation: grow 2.4s var(--ease) infinite alternate;
}
.mock__chart span:nth-child(2) { animation-delay: .15s; }
.mock__chart span:nth-child(3) { animation-delay: .3s; }
.mock__chart span:nth-child(4) { animation-delay: .45s; }
.mock__chart span:nth-child(5) { animation-delay: .6s; }
.mock__chart span:nth-child(6) { animation-delay: .75s; }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1rem; border-radius: 16px;
  background: var(--surface-strong); border: 1px solid var(--border);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card__icon { font-size: 1.4rem; }
.float-card--1 { top: 12%; left: -4%; }
.float-card--2 { bottom: 10%; right: -4%; animation-delay: -2.5s; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--text);
  animation: scroll 1.8s var(--ease) infinite;
}

/* 6. MARQUEE ---------------------------------------------- */
.marquee {
  padding: 1.6rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 3rem; width: max-content;
  font: 700 1.4rem var(--font-head); letter-spacing: .08em; color: var(--muted);
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span:nth-child(even) { color: var(--primary); }

/* 7. SECTIONS / CARDS / STATS ----------------------------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section__title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }

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

.card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color .4s, box-shadow .4s, transform .2s ease-out;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, .18), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: color-mix(in srgb, var(--primary) 60%, transparent); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; margin-bottom: 1.4rem;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--gradient); color: #fff;
  transition: transform .5s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: rotate(-10deg) scale(1.1); }
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card p { color: var(--muted); }
.card__link { display: inline-block; margin-top: 1.2rem; font-weight: 600; color: var(--secondary); transition: transform .3s var(--ease); }
.card__link:hover { transform: translateX(6px); }

.stats { padding: 3.5rem 0; background: var(--gradient-loop); background-size: 200% 100%; animation: shine 12s linear infinite; color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat strong { display: block; font: 700 clamp(2.2rem, 5vw, 3.4rem) var(--font-head); line-height: 1.1; }
.stat span { opacity: .9; }

/* 8. WORK ------------------------------------------------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter {
  padding: .55rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 500; color: var(--muted);
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--primary); }
.filter.is-active { background: var(--gradient); color: #fff; border-color: transparent; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.work.is-hidden { display: none; }
.work.is-filtering { opacity: 0; transform: scale(.9); }
.work__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--g1), var(--g2));
}
.work__media::after {
  content: "View case study →";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 600; color: #fff;
  background: rgba(10, 10, 20, .55); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.work:hover .work__media::after { opacity: 1; }
.work__shape {
  position: absolute; inset: 18%;
  border-radius: 18px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
  transition: transform .8s var(--ease);
}
.work__shape.s2 { inset: 15% 30%; border-radius: 26px; }
.work__shape.s3 { inset: 22%; border-radius: 50%; }
.work__shape.s4 { inset: 20% 14%; border-radius: 12px 60px; }
.work:hover .work__shape { transform: scale(1.12) rotate(-4deg); }
.work__info { padding: 1.2rem 1.4rem 1.4rem; }
.work__info span { font-size: .82rem; color: var(--muted); }
.work__info h3 { font-size: 1.2rem; margin-top: .2rem; }

/* 9. TIMELINE --------------------------------------------- */
.timeline { list-style: none; position: relative; max-width: 820px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; left: 31px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--primary), var(--secondary), var(--accent));
  transform-origin: top; transform: scaleY(var(--line, 0));
}
.timeline__item { position: relative; display: flex; gap: 1.6rem; padding-bottom: 2.6rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
  flex: none; position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1.1rem var(--font-head);
  background: var(--bg); border: 2px solid var(--primary);
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.timeline__item:hover .timeline__num { background: var(--gradient); color: #fff; transform: scale(1.1); }
.timeline__item h3 { font-size: 1.35rem; margin: .7rem 0 .3rem; }
.timeline__item p { color: var(--muted); }

/* 10. PRICING --------------------------------------------- */
.billing { display: inline-flex; align-items: center; gap: .9rem; margin-top: 1.8rem; font-weight: 500; }
.billing__label { color: var(--muted); transition: color .3s; }
.billing__label.is-active { color: var(--text); }
.billing__label em { font-style: normal; font-size: .75rem; padding: .15rem .5rem; margin-left: .3rem; border-radius: 999px; background: rgba(46, 229, 157, .15); color: #2ee59d; }
.switch { position: relative; width: 56px; height: 30px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); }
.switch span {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient); transition: transform .4s var(--ease);
}
.switch[aria-checked="true"] span { transform: translateX(26px); }

.pricing { align-items: center; }
.plan {
  position: relative;
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.plan--featured {
  padding-block: 3rem;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box, var(--gradient) border-box;
}
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  padding: .3rem .9rem; border-radius: 999px;
  background: var(--gradient); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.plan h3 { font-size: 1.35rem; }
.plan__desc { color: var(--muted); font-size: .95rem; margin-top: .3rem; }
.plan__price { font: 700 2.8rem var(--font-head); margin: 1.4rem 0; }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price { display: inline-block; transition: transform .35s var(--ease), opacity .35s; }
.price.is-changing { transform: translateY(-12px); opacity: 0; }
.plan ul { list-style: none; margin-bottom: 2rem; }
.plan li { padding: .45rem 0 .45rem 1.8rem; position: relative; }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: .5rem;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; color: #fff;
  background: var(--gradient);
}

/* 11. SLIDER ---------------------------------------------- */
.slider { max-width: 820px; margin-inline: auto; overflow: hidden; }
.slider__track { display: flex; transition: transform .7s var(--ease); }
.quote { flex: 0 0 100%; padding: 0 .5rem; text-align: center; }
.quote p { font: 500 clamp(1.2rem, 2.6vw, 1.7rem)/1.5 var(--font-head); }
.quote footer { display: inline-flex; align-items: center; gap: .9rem; margin-top: 2rem; text-align: left; }
.quote__avatar { width: 52px; height: 52px; border: 0; font-size: .9rem; }
.quote small { display: block; color: var(--muted); }
.slider__nav { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; }
.slider__dots { display: flex; gap: .5rem; }
.slider__dots button {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--border); transition: width .4s var(--ease), background .4s;
}
.slider__dots button.is-active { width: 32px; background: var(--gradient); }

/* 12. FAQ ------------------------------------------------- */
.faq { display: grid; gap: 1rem; }
.faq__item {
  border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s;
}
.faq__item[open] { border-color: color-mix(in srgb, var(--primary) 60%, transparent); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  font: 600 1.08rem var(--font-head);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-strong); font-size: 1.2rem;
  transition: transform .4s var(--ease), background .3s;
}
.faq__item[open] summary::after { transform: rotate(135deg); background: var(--gradient); color: #fff; }
.faq__body { padding: 0 1.5rem 1.4rem; color: var(--muted); }
.faq__item[open] .faq__body { animation: fadeDown .5s var(--ease); }

/* 13. CONTACT --------------------------------------------- */
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface); border: 1px solid var(--border);
}
.contact__glow {
  position: absolute; z-index: -1; width: 500px; height: 500px; border-radius: 50%;
  top: -200px; left: -150px; filter: blur(90px); opacity: .35;
  background: var(--gradient);
  animation: blob 14s ease-in-out infinite alternate;
}
.contact__info p { color: var(--muted); margin-top: 1rem; }
.contact__list { list-style: none; margin-top: 2rem; display: grid; gap: .8rem; }
.contact__list a:hover { color: var(--secondary); }

.form { display: grid; gap: 1.1rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 1.35rem 1rem .55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
  appearance: none;
  transition: border-color .3s, box-shadow .3s;
}
.field label {
  position: absolute; left: 1rem; top: 1rem;
  color: var(--muted); pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label {
  transform: translateY(-.65rem) scale(.78); color: var(--secondary);
}
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #ff6b6b; animation: shake .4s; }
.form__status { min-height: 1.4em; font-weight: 500; text-align: center; }
.form__status.is-success { color: #2ee59d; }
.form__status.is-error { color: #ff6b6b; }

/* 14. FOOTER ---------------------------------------------- */
.footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.footer__tag { color: var(--muted); margin-top: .7rem; max-width: 280px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer__links a { color: var(--muted); transition: color .3s; }
.footer__links a:hover { color: var(--text); }
.socials { display: flex; gap: .6rem; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .9rem;
}
.to-top {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-size: 1.2rem;
  transition: transform .4s var(--ease);
}
.to-top:hover { transform: translateY(-6px); }

/* 15. REVEAL & KEYFRAMES ---------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { transition-delay: calc(var(--d, 0s) + .3s); }
/* once revealed, tilt cards need a snappy transform transition */
.tilt.reveal.is-visible { transition: opacity .9s var(--ease), transform .2s ease-out, border-color .4s, box-shadow .4s; }

@keyframes shine { to { background-position: 200% center; } }
@keyframes ping { 75%, 100% { box-shadow: 0 0 0 8px transparent; } 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .7); } }
@keyframes morph {
  0%, 100% { border-radius: 22px; transform: rotate(0); }
  50% { border-radius: 50%; transform: rotate(180deg) scale(.9); }
}
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(.95); }
  100% { transform: translate(30px, 20px) scale(1.05); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes grow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* 16. RESPONSIVE ------------------------------------------ */
@media (max-width: 1024px) {
  .grid--3, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 420px; margin-inline: auto; width: 100%; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 16px 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .5s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .header:has(.nav.is-open) { background: var(--bg); border-color: var(--border); }
  .nav__link { padding: .9rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1rem; }
  .contact { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid--3, .work-grid { grid-template-columns: 1fr; }
  .float-card { transform: scale(.85); }
  .float-card--1 { left: 0; } .float-card--2 { right: 0; }
  .footer__inner, .footer__bottom { flex-direction: column; text-align: center; }
  .footer__inner { align-items: center; }
  .billing { flex-wrap: wrap; justify-content: center; }
  .timeline::before { left: 23px; }
  .timeline__num { width: 48px; height: 48px; font-size: .95rem; }
  .scroll-hint { display: none; }
}

/* 17. REDUCED MOTION -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__title .line > * { opacity: 1; transform: none; }
}
