/* ============================================
   Nova Web Solutions — Styles
   Redesign: bold, vibrant, premium dark theme
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colours */
  --color-bg: #0B0D17;
  --color-bg-alt: #11131F;
  --color-bg-surface: #16182A;
  --color-bg-elevated: #1C1F33;
  --color-text: #F0EDED;
  --color-text-muted: #9497A8;
  --color-text-dim: #5C6072;
  --color-primary: #FF6B35;
  --color-primary-alt: #FF8F65;
  --color-secondary: #6C5CE7;
  --color-accent-teal: #00D4AA;
  --color-accent-pink: #FF3CAC;
  --color-border: rgba(240, 237, 237, 0.08);
  --color-border-strong: rgba(240, 237, 237, 0.16);
  --color-grain: rgba(255, 255, 255, 0.015);
  --color-light-bg: #F8F6F2;
  --color-light-surface: #FFFFFF;
  --color-light-text: #14121B;
  --color-light-muted: #5A5768;
  --color-on-primary: #0B0D17;
  --color-star: #F5A524;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0B0D17 0%, #1A1040 40%, #0B0D17 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --gradient-card: linear-gradient(160deg, rgba(108, 92, 231, 0.08) 0%, rgba(255, 107, 53, 0.05) 100%);
  --gradient-text: linear-gradient(135deg, #FF6B35 0%, #FF3CAC 50%, #6C5CE7 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  --gradient-teal: linear-gradient(135deg, var(--color-accent-teal) 0%, var(--color-secondary) 100%);
  --gradient-hairline: linear-gradient(90deg, transparent 0%, var(--color-primary) 35%, var(--color-secondary) 70%, transparent 100%);

  /* Typography */
  --font-display: 'Syne', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.19vw, 1rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.38vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.88vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.7rem + 2.75vw, 3.5rem);
  --text-4xl: clamp(3rem, 2rem + 5vw, 5.5rem);
  --text-5xl: clamp(3.75rem, 2.5rem + 6.25vw, 7rem);

  --leading-display: 1.02;
  --leading-heading: 1.12;
  --leading-body: 1.65;
  --tracking-display: -0.03em;
  --tracking-caps: 0.1em;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;
  --space-10: 160px;

  /* Radii */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-raised: 0 20px 60px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-glow-primary: 0 0 40px rgba(255, 107, 53, 0.25), 0 0 80px rgba(255, 107, 53, 0.10);
  --shadow-glow-violet: 0 0 40px rgba(108, 92, 231, 0.25), 0 0 80px rgba(108, 92, 231, 0.10);
  --shadow-glow-teal: 0 0 30px rgba(0, 212, 170, 0.20);
  --shadow-light: 0 18px 44px rgba(20, 18, 27, 0.12), 0 2px 6px rgba(20, 18, 27, 0.06);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* Layout */
  --container: 1280px;
  --header-height: 76px;
  --z-progress: 1200;
  --z-header: 1000;
  --z-menu: 1100;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--color-grain);
  pointer-events: none;
  z-index: 1;
}

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

ul {
  list-style: none;
}

svg {
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-primary-alt);
}

::selection {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: var(--text-3xl);
  line-height: var(--leading-display);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

h3 {
  font-size: var(--text-lg);
  line-height: var(--leading-heading);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

h4 {
  font-size: var(--text-base);
  line-height: var(--leading-heading);
  margin-bottom: var(--space-2);
}

p {
  color: var(--color-text-muted);
  max-width: 72ch;
  line-height: var(--leading-body);
}

strong, b {
  color: var(--color-text);
  font-weight: 600;
}

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* --- Accessibility --- */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-3);
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: calc(var(--z-progress) + 10);
  font-weight: 600;
  font-family: var(--font-body);
}

.skip-link:focus {
  top: 0;
  color: var(--color-on-primary);
}

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

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
  z-index: var(--z-progress);
  transition: width 100ms linear;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 2;
}

@media (min-width: 641px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1025px) {
  .container { padding: 0 var(--space-6); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--duration) var(--ease-out-expo),
    color var(--duration) var(--ease-out-expo),
    border-color var(--duration) var(--ease-out-expo),
    transform var(--duration) var(--ease-out-expo),
    box-shadow var(--duration) var(--ease-out-expo);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  background: var(--color-primary-alt);
  color: var(--color-on-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.4), 0 0 100px rgba(255, 107, 53, 0.16);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
}

.btn-ghost:hover {
  background: var(--color-bg-surface);
  color: var(--color-text);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius);
  width: 100%;
}

@media (min-width: 641px) {
  .btn-lg { width: auto; }
}

/* --- Cards --- */
.card {
  position: relative;
  background: var(--color-bg-surface);
  background-image: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  overflow: hidden;
  transition: transform 250ms var(--ease-out-expo),
    box-shadow 250ms var(--ease-out-expo),
    border-color 250ms var(--ease-out-expo);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms var(--ease-out-expo);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
  border-color: var(--color-border-strong);
}

.card:hover::before {
  transform: scaleX(1);
}

.card p {
  font-size: var(--text-base);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 641px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Sections --- */
.section {
  position: relative;
  padding: var(--space-8) 0;
  isolation: isolate;
}

@media (min-width: 1025px) {
  .section { padding: var(--space-9) 0; }
}

.section-intro {
  margin-bottom: var(--space-6);
  font-size: var(--text-lg);
  max-width: 68ch;
  color: var(--color-text-muted);
}

.section-head {
  margin-bottom: var(--space-6);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

.kicker-teal { color: var(--color-accent-teal); }
.kicker-pink { color: var(--color-accent-pink); }

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

/* --- Decorative background helpers --- */
.section-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: -1;
}

.grid-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

.orb-primary {
  background: var(--color-primary);
  opacity: 0.28;
}

.orb-violet {
  background: var(--color-secondary);
  opacity: 0.32;
}

.orb-pink {
  background: var(--color-accent-pink);
  opacity: 0.22;
}

.orb-teal {
  background: var(--color-accent-teal);
  opacity: 0.2;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: var(--z-header);
  transition: background-color var(--duration) var(--ease-out-expo),
    border-color var(--duration) var(--ease-out-expo),
    backdrop-filter var(--duration) var(--ease-out-expo);
}

.site-header.is-scrolled {
  background: rgba(11, 13, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}

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

.logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  line-height: 1;
}

.logo:hover { color: var(--color-text); }

.logo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px var(--color-primary);
}

.main-nav { display: none; }

.nav-list {
  display: flex;
  gap: var(--space-5);
}

.nav-list a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  position: relative;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out-expo);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width var(--duration) var(--ease-out-expo);
}

.nav-list a:hover { color: var(--color-text); }
.nav-list a:hover::after { width: 100%; }

.nav-list a.is-active { color: var(--color-primary); }
.nav-list a.is-active::after { width: 100%; }

.header-actions { display: none; }

.header-phone {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--duration) var(--ease-out-expo);
}

.header-phone:hover { color: var(--color-accent-teal); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: var(--z-menu);
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--duration) var(--ease-out-expo), opacity var(--duration) var(--ease-out-expo);
}

.hamburger[aria-expanded="true"] { border-color: var(--color-primary); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu — full-screen overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  background-image: var(--gradient-hero);
  padding: calc(var(--header-height) + var(--space-6)) var(--space-5) var(--space-6);
  overflow-y: auto;
  z-index: calc(var(--z-header) - 1);
}

.mobile-menu[aria-hidden="false"] { display: block; }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-list a {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  display: block;
  padding: var(--space-3) 0;
  text-decoration: none;
  transition: color var(--duration) var(--ease-out-expo);
}

.mobile-nav-list a:hover { color: var(--color-primary); }

.mobile-nav-list .btn {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  border-bottom: none;
  color: var(--color-on-primary);
}

@media (min-width: 1025px) {
  .main-nav { display: block; }
  .header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 80%);
  opacity: 0.6;
  z-index: -2;
}

.hero-orb-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -120px;
}

.hero-orb-2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -140px;
}

.hero-orb-3 {
  width: 320px;
  height: 320px;
  top: 40%;
  left: 55%;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-accent-teal);
  margin-bottom: var(--space-5);
}

.hero .eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero-title {
  font-size: var(--text-4xl);
  max-width: 16ch;
  margin-bottom: var(--space-4);
}

@media (min-width: 1025px) {
  .hero-title {
    font-size: var(--text-5xl);
    max-width: 15ch;
  }
}

.hero .subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: border-color var(--duration) var(--ease-out-expo), color var(--duration) var(--ease-out-expo);
}

.trust-badge:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  text-decoration: none;
  animation: nudge 2.4s var(--ease-out-expo) infinite;
}

.scroll-cue:hover { color: var(--color-primary); }

.scroll-cue-icon {
  color: var(--color-primary);
}

@keyframes nudge {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

/* ============================================
   TEMPLATE GALLERY
   ============================================ */
.templates {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.templates-orb {
  width: 420px;
  height: 420px;
  top: 5%;
  left: -180px;
  opacity: 0.2;
}

.templates-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.templates-header h2 {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.templates-header .subhead {
  font-size: var(--text-lg);
  max-width: 64ch;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.templates-viewport { position: relative; }

.template-carousel { position: relative; }

.template-carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--space-1);
  padding: var(--space-2) var(--space-1) var(--space-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.template-carousel-track::-webkit-scrollbar { display: none; }

.template-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  background: var(--color-bg-surface);
  background-image: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-3);
  overflow: hidden;
  transition: transform 250ms var(--ease-out-expo),
    box-shadow 250ms var(--ease-out-expo),
    border-color 250ms var(--ease-out-expo);
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 400ms var(--ease-out-expo);
  z-index: 2;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-raised);
  border-color: var(--color-border-strong);
}

.template-card:hover::before { transform: scaleX(1); }

.template-card-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.template-card img {
  width: 100%;
  aspect-ratio: 500 / 340;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.template-card:hover img { transform: scale(1.04); }

.template-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  background: rgba(11, 13, 23, 0.78);
  backdrop-filter: blur(8px);
  color: var(--color-accent-teal);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.template-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 0;
}

.template-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
  flex: 1;
}

/* Tablet: 2 cards visible + peek */
@media (min-width: 641px) {
  .template-card {
    flex: 0 0 calc((100% - var(--space-4)) / 2.25);
  }
}

/* Desktop: 3 cards visible + peek */
@media (min-width: 1025px) {
  .template-card {
    flex: 0 0 calc((100% - var(--space-4) * 2) / 3.25);
  }
}

/* Arrow buttons */
.carousel-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--color-bg-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  z-index: 3;
  transition: background-color var(--duration) var(--ease-out-expo),
    border-color var(--duration) var(--ease-out-expo),
    color var(--duration) var(--ease-out-expo),
    transform var(--duration) var(--ease-out-expo);
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn-prev { left: var(--space-1); }
.carousel-btn-next { right: var(--space-1); }

@media (min-width: 1025px) {
  .carousel-btn { display: flex; }
}

/* Mobile swipe fade — anchored to the viewport wrapper so it does not scroll
   away with the cards. */
@media (max-width: 1024px) {
  .template-carousel::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 72px;
    background: linear-gradient(to right, rgba(17, 19, 31, 0) 0%, var(--color-bg-alt) 100%);
    pointer-events: none;
    z-index: 1;
  }
}

/* Pagination dots */
.template-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.template-pagination button {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--color-text-dim);
  border: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, transform var(--duration) var(--ease-spring);
  font-size: 0;
}

.template-pagination button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.template-pagination button[aria-selected="true"] {
  background: var(--color-primary);
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--color-primary);
}

.template-pagination button:hover:not([aria-selected="true"]) {
  background: var(--color-primary-alt);
}

@media (max-width: 480px) {
  .template-pagination { gap: 6px; }
  .template-pagination button { width: 8px; height: 8px; }
}

/* CTA under carousel */
.template-cta {
  margin-top: var(--space-6);
  padding: var(--space-5);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  background: var(--color-bg-surface);
  background-image: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.template-cta p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 40ch;
}

.template-cta .btn-primary {
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-base);
  box-shadow: var(--shadow-glow-primary);
}

@media (max-width: 480px) {
  .template-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* ============================================
   INTRO — the one light section in the dark flow
   ============================================ */
.intro {
  background: var(--color-light-bg);
  color: var(--color-light-text);
}

.intro .orb { display: none; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .intro-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.intro h2 {
  color: var(--color-light-text);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.intro .kicker { color: var(--color-secondary); }
.intro .kicker::before { background: var(--color-secondary); }

.intro-text p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-light-muted);
  margin-bottom: var(--space-5);
}

.intro-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 481px) {
  .intro-bullets { grid-template-columns: repeat(2, 1fr); }
}

.intro-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-light-text);
  font-weight: 500;
  background: var(--color-light-surface);
  border: 1px solid rgba(20, 18, 27, 0.08);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow-light);
}

.intro-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.6);
}

.intro-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-raised);
  border: 1px solid rgba(20, 18, 27, 0.1);
  background: var(--color-bg);
}

.intro-visual img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio {
  background: var(--color-bg);
}

.portfolio-orb {
  width: 460px;
  height: 460px;
  top: 8%;
  right: -160px;
  opacity: 0.22;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  gap: var(--space-2);
}

.portfolio-card-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 800 / 600;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--duration-slower) var(--ease-out-expo);
}

.portfolio-card:hover img { transform: scale(1.04); }

.portfolio-card .card-body {
  padding: var(--space-3) var(--space-2) var(--space-2);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.portfolio-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-elevated);
  color: var(--color-accent-teal);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: border-color var(--duration) var(--ease-out-expo), color var(--duration) var(--ease-out-expo);
}

.badge:hover {
  border-color: var(--color-accent-teal);
  color: var(--color-text);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--color-bg);
}

.services-alt {
  background: var(--color-bg-alt);
}

.services-orb {
  width: 420px;
  height: 420px;
  bottom: -180px;
  right: -140px;
  opacity: 0.18;
}

.services h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.services-grid {
  margin-top: var(--space-6);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-left: 3px solid transparent;
  transition: border-color 250ms var(--ease-out-expo);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(0, 212, 170, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out-expo);
  pointer-events: none;
}

.service-card:hover {
  border-left-color: var(--color-primary);
}

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

.service-card > * { position: relative; z-index: 1; }

.service-index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  color: var(--color-text-dim);
  margin-bottom: var(--space-3);
  display: block;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ============================================
   DIFFERENTIATORS
   ============================================ */
.differentiators {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.differentiators .kicker { color: var(--color-accent-pink); }

.differentiators-orb {
  width: 480px;
  height: 480px;
  top: 10%;
  left: -200px;
  opacity: 0.2;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .stat-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  background: var(--color-bg-surface);
  background-image: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  line-height: 1.4;
}

.differentiator-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
}

.diff-icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  transition: transform var(--duration) var(--ease-spring), color var(--duration) var(--ease-out-expo);
}

.differentiator-card:hover .diff-icon {
  transform: scale(1.12) rotate(-6deg);
  color: var(--color-accent-pink);
}

.differentiator-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.differentiator-card p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--color-bg);
}

.process-orb {
  width: 380px;
  height: 380px;
  top: 0;
  left: 45%;
  opacity: 0.16;
}

.process-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  position: relative;
  margin-top: var(--space-6);
}

@media (min-width: 1025px) {
  .process-timeline { grid-template-columns: repeat(4, 1fr); }

  .process-timeline::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: var(--gradient-hairline);
    opacity: 0.6;
  }
}

.process-step {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}

.process-number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-3);
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: var(--shadow-glow-primary);
}

.process-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.process-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ============================================
   TESTIMONIALS — light contrast moment
   ============================================ */
.testimonials {
  background: var(--color-light-bg);
  color: var(--color-light-text);
}

.testimonials .orb { display: none; }

.testimonials h2 { color: var(--color-light-text); }

.testimonials .kicker { color: var(--color-secondary); }
.testimonials .kicker::before { background: var(--color-secondary); }

.testimonials .section-intro { color: var(--color-light-muted); }

.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--color-light-surface);
  background-image: none;
  border: 1px solid rgba(20, 18, 27, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light);
  padding: var(--space-5);
}

.testimonial-card::before { display: none; }

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(20, 18, 27, 0.16);
  border-color: rgba(108, 92, 231, 0.35);
}

.stars {
  color: var(--color-star);
  font-size: var(--text-lg);
  letter-spacing: 3px;
  margin-bottom: var(--space-3);
}

.testimonial-card p {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-light-text);
  flex: 1;
  margin-bottom: var(--space-4);
}

.testimonial-card cite {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-light-text);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(20, 18, 27, 0.08);
}

.testimonial-card cite::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gradient-accent);
  margin-bottom: var(--space-3);
  border-radius: var(--radius-full);
}

/* ============================================
   BLOG
   ============================================ */
.blog {
  background: var(--color-bg);
}

.blog-orb {
  width: 400px;
  height: 400px;
  top: 0;
  right: -160px;
  opacity: 0.18;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  gap: var(--space-2);
}

.blog-card-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 800 / 450;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--duration-slower) var(--ease-out-expo);
}

.blog-card:hover img { transform: scale(1.04); }

.blog-card .card-body {
  padding: var(--space-3) var(--space-2) var(--space-2);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
  margin-bottom: var(--space-3);
}

.blog-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: var(--space-3);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: gap var(--duration) var(--ease-out-expo), color var(--duration) var(--ease-out-expo);
}

.read-more:hover {
  color: var(--color-primary-alt);
  gap: var(--space-3);
}

/* ============================================
   CALCULATOR
   ============================================ */
.calculator {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.calculator-orb {
  width: 440px;
  height: 440px;
  top: 10%;
  left: -180px;
  opacity: 0.2;
}

.calculator-wrapper {
  background: var(--color-bg-surface);
  background-image: var(--gradient-card);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-raised);
  padding: var(--space-5);
  margin-top: var(--space-6);
  max-width: 100%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  max-width: 56rem;
}

@media (min-width: 641px) {
  .calculator-wrapper { padding: var(--space-7); }
}

.calculator-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 1025px) {
  .calculator-form {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.form-group { min-width: 0; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-label span {
  color: var(--color-accent-teal);
}

.form-select,
.form-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  overflow-x: hidden;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--duration) var(--ease-out-expo), box-shadow var(--duration) var(--ease-out-expo);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%),
    linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: var(--space-7);
  cursor: pointer;
}

.form-select:focus,
.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-select option {
  background: var(--color-bg-surface);
  color: var(--color-text);
}

/* Range slider */
.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  overflow-x: hidden;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  cursor: pointer;
  margin: var(--space-3) 0 var(--space-2);
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-glow-primary);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.form-range::-webkit-slider-thumb:hover { transform: scale(1.15); }

.form-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-glow-primary);
  cursor: pointer;
}

.form-range::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-bg-elevated);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.form-checkbox,
.form-radio {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease-out-expo), color var(--duration) var(--ease-out-expo);
}

.form-checkbox:hover,
.form-radio:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.form-checkbox input,
.form-radio input {
  accent-color: var(--color-primary);
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}

.form-checkbox:has(input:checked),
.form-radio:has(input:checked) {
  border-color: var(--color-primary);
  color: var(--color-text);
  background: rgba(255, 107, 53, 0.1);
}

.price-output {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.price-output::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.7;
  pointer-events: none;
}

.price-output > * { position: relative; }

.price-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.price-range {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-3);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-output-note {
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  max-width: none;
}

/* ============================================
   FAQS
   ============================================ */
.faqs {
  background: var(--color-bg);
}

.faq-list {
  margin-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.faq-item { border-bottom: 1px solid var(--color-border); }

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  transition: color var(--duration) var(--ease-out-expo);
}

.faq-toggle:hover { color: var(--color-primary); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform var(--duration) var(--ease-out-expo);
}

.faq-toggle[aria-expanded="true"] { color: var(--color-primary); }
.faq-toggle[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-panel {
  padding: 0 0 var(--space-5) 0;
  max-width: 78ch;
  animation: panel-in var(--duration) var(--ease-out-expo);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.faq-panel p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  background: var(--color-bg-alt);
  padding: var(--space-8) 0 var(--space-5);
  border-top: 1px solid var(--color-border);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 641px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-text-dim);
  margin-bottom: var(--space-3);
}

.footer-col li { margin-bottom: var(--space-2); }

.footer-col a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--duration) var(--ease-out-expo);
}

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

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  max-width: 40ch;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display) !important;
  font-size: var(--text-xl) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text) !important;
  margin-top: 0 !important;
}

.footer-tagline { margin-bottom: var(--space-4); }

.footer-address {
  font-style: normal;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 2;
  margin-bottom: var(--space-4);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.newsletter-form .btn { flex: 0 0 auto; }

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  max-width: none;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: color var(--duration) var(--ease-out-expo),
    border-color var(--duration) var(--ease-out-expo),
    transform var(--duration) var(--ease-spring);
}

.footer-social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

/* ============================================
   Reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-progress { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .template-card:hover,
  .template-cta .btn-primary:hover,
  .testimonial-card:hover,
  .footer-social a:hover { transform: none !important; }
  .scroll-cue { animation: none !important; }
  .template-carousel-track { scroll-behavior: auto !important; }
  .portfolio-card:hover img,
  .blog-card:hover img,
  .template-card:hover img { transform: none !important; }
  .orb { animation: none !important; }
}
