/* ============================= Fonts ============================= */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/jakarta-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/jakarta-italic-600.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}

/* ============================= Tokens ============================= */
:root {
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --primary: #4F46E5;
  --accent: #7C3AED;
  --text: #111827;
  --secondary: #6B7280;
  --border: #E5E7EB;
  --gradient: linear-gradient(135deg, #4F46E5, #7C3AED);

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 12px 28px -8px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 30px 60px -15px rgba(79, 70, 229, 0.25);
  --shadow-glow: 0 0 0 1px rgba(79, 70, 229, 0.08), 0 20px 40px -12px rgba(79, 70, 229, 0.2);

  --font-heading: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1320px;
  --section-spacing: 120px;
  --card-radius: 24px;
  --btn-radius: 14px;

  color-scheme: light;
}

/* Dark theme: same brand tokens re-grounded on a deep surface, same accent pair */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0B10;
    --surface: #14141C;
    --primary: #6366F1;
    --accent: #8B5CF6;
    --text: #F3F4F6;
    --secondary: #9CA3AF;
    --border: #24242F;
    --gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
    --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 60px -15px rgba(99, 102, 241, 0.35);
    --shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.16), 0 20px 40px -12px rgba(99, 102, 241, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B10;
  --surface: #14141C;
  --primary: #6366F1;
  --accent: #8B5CF6;
  --text: #F3F4F6;
  --secondary: #9CA3AF;
  --border: #24242F;
  --gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 60px -15px rgba(99, 102, 241, 0.35);
  --shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.16), 0 20px 40px -12px rgba(99, 102, 241, 0.35);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --primary: #4F46E5;
  --accent: #7C3AED;
  --text: #111827;
  --secondary: #6B7280;
  --border: #E5E7EB;
  --gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
  --shadow-md: 0 12px 28px -8px rgba(17, 24, 39, 0.12);
  --shadow-lg: 0 30px 60px -15px rgba(79, 70, 229, 0.25);
  --shadow-glow: 0 0 0 1px rgba(79, 70, 229, 0.08), 0 20px 40px -12px rgba(79, 70, 229, 0.2);
  color-scheme: light;
}

/* ============================= Reset ============================= */
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section { padding: var(--section-spacing) 0; }
.section-tight { padding: var(--section-spacing) 0 calc(var(--section-spacing) - 40px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; }

/* ============================= Buttons ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--btn-radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  pointer-events: none;
  animation: rippleAnim 0.6s ease-out forwards;
}
@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}
.pulse { animation: btnPulse 2.6s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 0.95rem;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 10px; }

/* ============================= Preloader ============================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.preloader-mark { display: flex; align-items: center; gap: 10px; }
.preloader-square {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--gradient);
}
.preloader-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.preloader-bar {
  width: 220px; height: 3px; border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.preloader-bar-fill {
  display: block; height: 100%; width: 0%;
  background: var(--gradient);
  border-radius: 2px;
}
body.preloading { overflow: hidden; }

/* ============================= Nav ============================= */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--gradient);
}
.nav-links { display: flex; align-items: center; gap: 32px; margin-right: auto; margin-left: 48px; }
.nav-links a { font-weight: 600; font-size: 0.94rem; color: var(--secondary); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }

.theme-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 24px; }
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 20px 20px; border-top: 1px solid var(--border);
}
.nav-mobile a:not(.btn) { padding: 10px 4px; font-weight: 600; color: var(--text); }
.nav-mobile .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner > .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile.open { display: flex; }
}

/* ============================= Hero ============================= */
.hero {
  position: relative;
  padding: 96px 0 140px;
  overflow: hidden;
}
.hero-mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mesh-blob {
  position: absolute;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.mesh-blob-a { background: var(--primary); top: -12%; left: -8%; }
.mesh-blob-b { background: var(--accent); top: 4%; right: -12%; }
.mesh-blob-c { background: #22D3EE; opacity: 0.18; bottom: -20%; left: 22%; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--secondary);
  margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 1.06;
}
.hero-title .word { display: inline-block; }
.hero-title .char { display: inline-block; will-change: transform, opacity; }
.hero-sub {
  margin-top: 26px; max-width: 46ch;
  font-size: 1.15rem; color: var(--secondary);
}
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 480px; }
.dash-card {
  position: absolute; inset: 20px 10px 60px 40px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: var(--card-radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  animation: floatY 6s ease-in-out infinite;
}
.dash-topbar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.dash-title { margin-left: 8px; font-size: 0.82rem; font-weight: 700; color: var(--secondary); }
.dash-stats { display: flex; gap: 24px; margin-bottom: 18px; }
.dash-stat { display: flex; flex-direction: column; gap: 4px; }
.dash-stat-label { font-size: 0.76rem; color: var(--secondary); font-weight: 600; }
.dash-stat-value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; }
.dash-chart { width: 100%; height: 110px; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem; font-weight: 700;
  animation: floatY 7s ease-in-out infinite;
}
.float-card-a { top: 8px; right: -6px; animation-delay: -1.5s; }
.float-card-b { bottom: 30px; left: -14px; animation-delay: -3s; }
.float-avatars { display: flex; }
.float-avatars i { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); border: 2px solid var(--surface); margin-left: -8px; }
.float-avatars i:first-child { margin-left: 0; }
.float-badge { color: #10B981; }
.float-text { color: var(--secondary); font-weight: 600; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; margin-top: 20px; }
}

/* ============================= Trusted ============================= */
.trusted { padding: 60px 0; }
.trusted-label { text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--secondary); margin-bottom: 28px; }
.trusted-row { display: flex; justify-content: center; align-items: center; gap: clamp(24px, 5vw, 56px); flex-wrap: wrap; }
.trusted-logo {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem;
  color: var(--secondary); opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.trusted-logo:hover { opacity: 1; color: var(--primary); }

/* ============================= Services ============================= */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px 26px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0; border-radius: var(--card-radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  margin-bottom: 20px;
  transition: transform 0.35s ease;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--secondary); font-size: 0.95rem; }

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

/* ============================= Portfolio ============================= */
.section-work { padding: var(--section-spacing) 0; overflow: hidden; }
.portfolio-pin {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.portfolio-pin .section-head { margin-bottom: 0; }
@media (min-width: 901px) {
  .section-work { padding: 0; }
  .portfolio-pin {
    min-height: 100vh;
    justify-content: center;
    gap: 48px;
    padding: 64px 0;
  }
}
.portfolio-viewport { overflow: hidden; }
.portfolio-track {
  display: flex;
  gap: 24px;
  padding: 0 32px;
  width: max-content;
}
@media (max-width: 900px) {
  .portfolio-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .case-card { scroll-snap-align: start; }
}
.case-card {
  width: min(88vw, 1040px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.case-card-reverse { grid-template-columns: 0.85fr 1.15fr; }
.case-card-reverse .case-media { order: 2; }
.case-media {
  position: relative; min-height: 320px;
  background-size: 22px 22px;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  overflow: hidden;
}
.case-media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(17,24,39,0); transition: background 0.35s ease;
}
.case-card:hover .case-media::after { background: rgba(17,24,39,0.08); }
.case-card:hover .case-media { background-size: 24px 24px; }
.case-media-a { background-color: #EDE9FE; }
.case-media-b { background-color: #DBEAFE; }
.case-media-c { background-color: #D1FAE5; }
.case-media-d { background-color: #FCE7F3; }
.case-tag {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  color: #111827;
  padding: 8px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.case-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.case-copy h3 { font-size: 1.6rem; }
.case-copy p { color: var(--secondary); }

@media (max-width: 760px) {
  .case-card, .case-card-reverse { grid-template-columns: 1fr; }
  .case-card-reverse .case-media { order: 0; }
  .case-media { min-height: 220px; }
  .case-copy { padding: 28px; }
}

/* ============================= Why / stats ============================= */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-list { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.why-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.check {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
}
.stat-num {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--secondary); font-size: 0.88rem; font-weight: 600; }

@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .stat-num { font-size: 1.7rem; } }

/* ============================= Process timeline ============================= */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 52px; }
.timeline-line {
  position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px;
  background: var(--border);
}
.timeline-progress {
  display: block; width: 100%; height: 0%;
  background: var(--gradient);
}
.timeline-step { position: relative; padding-bottom: 48px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -52px; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 0.7rem; color: var(--secondary);
}
.timeline-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.timeline-body p { color: var(--secondary); max-width: 52ch; }

/* ============================= Testimonials ============================= */
.testimonial-stack { position: relative; max-width: 720px; margin: 0 auto; min-height: 300px; }
.testimonial-card {
  margin: 0;
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: transform 0.6s cubic-bezier(.16,.84,.44,1), opacity 0.6s ease;
  will-change: transform;
}
.testimonial-card p {
  font-family: var(--font-heading); font-style: italic; font-weight: 600;
  font-size: 1.25rem; line-height: 1.5; color: var(--text);
}
.testimonial-card footer { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
}
.testimonial-card footer div { display: flex; flex-direction: column; }
.testimonial-card cite { font-style: normal; font-weight: 700; font-size: 0.92rem; }
.testimonial-card footer span { color: var(--secondary); font-size: 0.84rem; }

/* ============================= Pricing ============================= */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 36px 30px; display: flex; flex-direction: column;
  position: relative;
}
.price-card-featured {
  background: var(--gradient);
  color: #fff;
  border: none;
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute; top: -14px; left: 30px;
  background: #fff; color: var(--primary);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; }
.price-desc { margin-top: 6px; color: var(--secondary); font-size: 0.92rem; }
.price-card-featured .price-desc { color: rgba(255,255,255,0.82); }
.price-amount { margin: 22px 0; display: flex; align-items: baseline; gap: 8px; }
.price-amount span { font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; }
.price-amount small { color: var(--secondary); font-size: 0.82rem; font-weight: 600; }
.price-card-featured .price-amount small { color: rgba(255,255,255,0.75); }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-features li { position: relative; padding-left: 24px; font-size: 0.92rem; font-weight: 500; }
.price-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  font-weight: 800; color: var(--primary);
}
.price-card-featured .price-features li::before { color: #fff; }
.price-card-featured .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }

@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } .price-card-featured { transform: none; } }

/* ============================= FAQ ============================= */
.accordion { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
}
.accordion-icon { position: relative; width: 18px; height: 18px; flex: none; }
.accordion-icon::before, .accordion-icon::after {
  content: ""; position: absolute; background: var(--primary); border-radius: 2px;
}
.accordion-icon::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.accordion-icon::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); transition: transform 0.25s ease; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease;
}
.accordion-panel > p { overflow: hidden; padding: 0 26px; color: var(--secondary); }
.accordion-item.open .accordion-panel { grid-template-rows: 1fr; }
.accordion-item.open .accordion-panel > p { padding: 0 26px 22px; }

/* ============================= Final CTA ============================= */
.cta-section {
  position: relative; overflow: hidden;
  margin: 40px 24px; border-radius: 32px;
  padding: 100px 0;
  background: var(--gradient);
  color: #fff; text-align: center;
}
.cta-mesh {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.14), transparent 55%);
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; }
.cta-inner p { margin-top: 18px; color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.cta-inner .btn { margin-top: 34px; }

/* ============================= Footer ============================= */
.footer { padding: 80px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 56px; border-bottom: 1px solid var(--border);
}
.footer-brand p { margin-top: 14px; color: var(--secondary); font-size: 0.92rem; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--secondary); margin-bottom: 4px; }
.footer-col a { color: var(--text); font-size: 0.92rem; font-weight: 500; }
.footer-col a:hover { color: var(--primary); }
.footer-note { color: var(--secondary); font-size: 0.88rem; }
.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social a { font-size: 0.82rem; font-weight: 700; color: var(--secondary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 32px; font-size: 0.84rem; color: var(--secondary);
}
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a { color: var(--secondary); }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================= Scroll reveal base states ============================= */
.reveal-up, .reveal-scale, .reveal-blur { opacity: 0; }
.reveal-up { transform: translateY(28px); }
.reveal-scale { transform: scale(0.94); }
.reveal-blur { filter: blur(8px); }
.reveal-up.in, .reveal-scale.in, .reveal-blur.in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1), filter 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-up, .reveal-scale, .reveal-blur { opacity: 1; transform: none; filter: none; }
  .dash-card, .float-card { animation: none; }
}
