/* Ace Web Creation — dark-first / tech aesthetic */
:root {
  --primary-50: #ecfeff;
  --primary-100: #cffafe;
  --primary-200: #a5f3fc;
  --primary-300: #67e8f9;
  --primary-400: #22d3ee;
  --primary-500: #06b6d4;
  --primary-600: #0891b2;
  --primary-700: #0e7490;
  --surface-deep: #070b10;
  --surface-base: #0a0e14;
  --surface-raised: #0f1419;
  --surface-card: #141c26;
  --surface-card-hover: #1a2433;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(34, 211, 238, 0.22);
  --text: #e8eef4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --neutral-50: #0c1018;
  --neutral-100: #111920;
  --neutral-200: rgba(148, 163, 184, 0.14);
  --neutral-300: rgba(148, 163, 184, 0.22);
  --neutral-400: #64748b;
  --neutral-500: #64748b;
  --neutral-600: #94a3b8;
  --neutral-700: #cbd5e1;
  --neutral-800: #1a2332;
  --neutral-900: #f8fafc;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 32px rgba(6, 182, 212, 0.18);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --transition: 0.2s ease;
  --section-padding-y: 5rem;
  --section-padding-y-lg: 6.5rem;
  --content-max: 64rem;
  --content-wide: 72rem;
  --reveal-duration: 0.55s;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --circuit-fg: rgba(34, 211, 238, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  min-height: 100vh;
  background: var(--surface-base);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes circuit-pan {
    0% { background-position: 0 0; }
    100% { background-position: 120px 120px; }
  }
}

/* Scroll-driven reveal (IntersectionObserver adds .is-visible) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(1.125rem);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

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

.hero-split > .scroll-reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.scroll-reveal-stagger > .service-card,
.scroll-reveal-stagger > .card-feature,
.scroll-reveal-stagger > .compare-col,
.scroll-reveal-stagger > .card-dark,
.scroll-reveal-stagger > .step,
.scroll-reveal-stagger > .faq-item {
  opacity: 0;
  transform: translateY(1.125rem);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.scroll-reveal-stagger.is-visible > .service-card,
.scroll-reveal-stagger.is-visible > .card-feature,
.scroll-reveal-stagger.is-visible > .compare-col,
.scroll-reveal-stagger.is-visible > .card-dark,
.scroll-reveal-stagger.is-visible > .step,
.scroll-reveal-stagger.is-visible > .faq-item {
  opacity: 1;
  transform: none;
}

.scroll-reveal-stagger.is-visible > .service-card:nth-child(1),
.scroll-reveal-stagger.is-visible > .card-feature:nth-child(1),
.scroll-reveal-stagger.is-visible > .compare-col:nth-child(1),
.scroll-reveal-stagger.is-visible > .card-dark:nth-child(1),
.scroll-reveal-stagger.is-visible > .step:nth-child(1),
.scroll-reveal-stagger.is-visible > .faq-item:nth-child(1) {
  transition-delay: 0.04s;
}

.scroll-reveal-stagger.is-visible > .service-card:nth-child(2),
.scroll-reveal-stagger.is-visible > .card-feature:nth-child(2),
.scroll-reveal-stagger.is-visible > .compare-col:nth-child(2),
.scroll-reveal-stagger.is-visible > .card-dark:nth-child(2),
.scroll-reveal-stagger.is-visible > .step:nth-child(2),
.scroll-reveal-stagger.is-visible > .faq-item:nth-child(2) {
  transition-delay: 0.1s;
}

.scroll-reveal-stagger.is-visible > .service-card:nth-child(3),
.scroll-reveal-stagger.is-visible > .card-feature:nth-child(3),
.scroll-reveal-stagger.is-visible > .compare-col:nth-child(3),
.scroll-reveal-stagger.is-visible > .card-dark:nth-child(3),
.scroll-reveal-stagger.is-visible > .step:nth-child(3),
.scroll-reveal-stagger.is-visible > .faq-item:nth-child(3) {
  transition-delay: 0.16s;
}

.scroll-reveal-stagger.is-visible > .service-card:nth-child(4),
.scroll-reveal-stagger.is-visible > .card-feature:nth-child(4),
.scroll-reveal-stagger.is-visible > .compare-col:nth-child(4),
.scroll-reveal-stagger.is-visible > .card-dark:nth-child(4),
.scroll-reveal-stagger.is-visible > .step:nth-child(4),
.scroll-reveal-stagger.is-visible > .faq-item:nth-child(4) {
  transition-delay: 0.22s;
}

.scroll-reveal-stagger.is-visible > .service-card:nth-child(5),
.scroll-reveal-stagger.is-visible > .card-feature:nth-child(5),
.scroll-reveal-stagger.is-visible > .compare-col:nth-child(5),
.scroll-reveal-stagger.is-visible > .card-dark:nth-child(5),
.scroll-reveal-stagger.is-visible > .step:nth-child(5),
.scroll-reveal-stagger.is-visible > .faq-item:nth-child(5) {
  transition-delay: 0.28s;
}

.scroll-reveal-stagger.is-visible > .service-card:nth-child(6),
.scroll-reveal-stagger.is-visible > .faq-item:nth-child(6) {
  transition-delay: 0.34s;
}

.scroll-reveal-stagger.is-visible > .service-card:nth-child(7),
.scroll-reveal-stagger.is-visible > .faq-item:nth-child(7) {
  transition-delay: 0.4s;
}

.scroll-reveal-stagger.is-visible > .faq-item:nth-child(8) {
  transition-delay: 0.46s;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal-stagger > .service-card,
  .scroll-reveal-stagger > .card-feature,
  .scroll-reveal-stagger > .compare-col,
  .scroll-reveal-stagger > .card-dark,
  .scroll-reveal-stagger > .step,
  .scroll-reveal-stagger > .faq-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-reveal-stagger.is-visible > .service-card,
  .scroll-reveal-stagger.is-visible > .card-feature,
  .scroll-reveal-stagger.is-visible > .compare-col,
  .scroll-reveal-stagger.is-visible > .card-dark,
  .scroll-reveal-stagger.is-visible > .step,
  .scroll-reveal-stagger.is-visible > .faq-item {
    transition: none;
  }

  .hero-split > .scroll-reveal:nth-child(2) {
    transition-delay: 0s;
  }
}

/* Section layout */
.section {
  margin: 0 auto;
  padding: var(--section-padding-y) 1.5rem;
  max-width: 100%;
}
@media (min-width: 640px) {
  .section { padding: var(--section-padding-y) 2rem; }
}
@media (min-width: 1024px) {
  .section { padding: var(--section-padding-y-lg) 3rem; }
}
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}
.section-inner > h1 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.25;
}
@media (min-width: 640px) {
  .section-inner > h1 { font-size: 2.125rem; }
}
.section-inner > h1 + .text-muted {
  margin-top: 0;
}
.legal-lead {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}
.legal-doc {
  max-width: 40rem;
}
.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.legal-doc h2:first-of-type {
  margin-top: 0;
}
.legal-doc h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
}
.legal-doc p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.legal-doc li {
  margin-top: 0.5rem;
}
.legal-doc li:first-child {
  margin-top: 0;
}
.legal-doc a {
  color: var(--primary-400);
  font-weight: 500;
}
.legal-doc a:hover {
  color: var(--primary-300);
}
.legal-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  color: var(--text-dim);
}
.legal-disclaimer {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 0;
}
.section-alt {
  position: relative;
  background: var(--surface-raised);
  box-shadow: inset 0 1px 0 var(--border-subtle);
}

/* Services: subtle Unsplash backdrop + scrim */
#services.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/section-collab-1600.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
}
@media (max-width: 768px) {
  #services.section-alt::before {
    background-image: url("../images/section-collab-800.jpg");
  }
}
#services.section-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--surface-raised) 0%, transparent 42%, var(--surface-raised) 100%);
  pointer-events: none;
}
#services .section-inner {
  position: relative;
  z-index: 1;
}

/* Optional Gemini/WebP: add class has-section-texture on a .section and file images/section-texture.webp */
.section.has-section-texture > .section-inner {
  position: relative;
  z-index: 1;
}
.section.has-section-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/section-texture.webp") center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.section-head {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
@media (min-width: 640px) {
  .section-head { font-size: 1.75rem; margin-bottom: 0.75rem; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
}
.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  /* Tighter vertical padding so a larger logo fits without growing the bar */
  padding: 0.625rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .header-inner { padding: 0.625rem 2rem; }
}
@media (min-width: 1024px) {
  .header-inner { padding: 0.625rem 3rem; }
}
.header a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.header-logo:hover {
  color: var(--primary-300);
}
.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-height: 52px;
  object-fit: contain;
}
.nav {
  display: none;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), box-shadow var(--transition);
}
.nav a:hover {
  color: var(--primary-300);
  box-shadow: 0 1px 0 0 var(--primary-500);
}
.nav a:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 4px;
  border-radius: 2px;
}
.header-logo:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.menu-btn:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: flex-end;
  }
  .menu-btn {
    display: none;
  }
}
.menu-wrap {
  position: relative;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--surface-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.menu-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-card-hover);
  color: var(--text);
}
.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.375rem;
  min-width: 11rem;
  padding: 0.375rem;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}
.menu-dropdown.show { display: block; }
.menu-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--transition), color var(--transition);
}
.menu-dropdown a:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary-300);
}

/* Hero — gradient + circuit (optional WebP: add images/hero-mesh.webp and class has-hero-mesh on .section-hero) */
.section-hero {
  position: relative;
  overflow: hidden;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 80% at 70% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 15% 90%, rgba(8, 145, 178, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface-deep) 0%, var(--surface-base) 45%, var(--surface-raised) 100%);
}
.section-hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background-image: url("../images/circuit-grid.svg");
  background-size: 120px 120px;
  background-position: 0 0;
  color: var(--circuit-fg);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .section-hero::before {
    animation: circuit-pan 90s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .section-hero::before {
    animation: none;
  }
}
.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 100% 75% at 50% 100%, rgba(7, 11, 16, 0.88) 0%, transparent 58%);
}
.section-hero.has-hero-mesh::after {
  background:
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(7, 11, 16, 0.78) 0%, transparent 52%),
    url("../images/hero-mesh.webp") center / cover no-repeat;
  opacity: 1;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-split {
  align-items: stretch;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .hero-split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    text-align: left;
  }
  .section-hero {
    text-align: left;
  }
}
.hero-copy {
  flex: 1;
  min-width: 0;
  max-width: 36rem;
}
@media (min-width: 900px) {
  .hero-copy {
    margin-right: auto;
  }
  .hero-copy .eyebrow {
    margin-left: 0;
  }
  .section-hero .hero-copy h1 {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: none;
  }
  .hero-copy .hero-subline,
  .hero-copy .hero-lead {
    margin-left: 0;
    text-align: left;
  }
  .hero-copy .cta-row {
    justify-content: flex-start;
  }
}
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .hero-visual {
    max-width: min(32rem, 42vw);
    margin-left: 0;
    margin-right: 0;
  }
}
.hero-art {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow-cyan), 0 0 0 1px var(--border-strong);
  border: 1px solid var(--border-subtle);
}
.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-400);
  margin-bottom: 1rem;
}
.section-eyebrow {
  margin-bottom: 0.5rem;
}
.section-hero h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 auto 1.25rem;
  color: var(--text);
  max-width: 28ch;
  text-align: center;
}
@media (min-width: 640px) {
  .section-hero h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
}
@media (min-width: 1024px) {
  .section-hero h1 { font-size: 3rem; margin-bottom: 1.75rem; max-width: 22ch; }
}
.hero-lead {
  font-size: 1.0625rem;
  max-width: 42rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 auto;
  text-align: center;
}
.hero-subline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-300);
  margin: 0 auto 1rem;
  max-width: 40rem;
  line-height: 1.5;
  text-align: center;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  padding: 1.5rem 1.5rem 1.625rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
  border-color: var(--border-strong);
}
@media (prefers-reduced-motion: no-preference) {
  .service-card:hover {
    transform: translateY(-2px);
  }
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.service-card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* Trust inline (under Why cards) */
.trust-inline {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, var(--surface-card) 100%);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 640px) {
  .trust-inline { margin-top: 3rem; padding: 1.75rem 2rem; }
}
.trust-inline-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.trust-inline-text strong {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition), border-color var(--transition);
}
.btn:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(165deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: #041014;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 20px rgba(6, 182, 212, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(165deg, var(--primary-400) 0%, var(--primary-500) 100%);
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.4);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-cta {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--primary-400);
  color: var(--primary-200);
}
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover,
  .btn-primary:active,
  .btn-secondary:hover {
    transform: none;
  }
  .service-card:hover {
    transform: none;
  }
}

/* Section typography */
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 42rem;
  line-height: 1.7;
}
.text-muted {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.text-muted-block {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.form-group-payment {
  margin-top: 1.5rem;
}

/* Feature cards (Why Work With Me) */
.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}
.cards-feature {
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .cards { gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
  .cards-feature { margin-top: 3rem; }
}
.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
  border-color: var(--border-strong);
}
.card-feature {
  padding: 1.75rem;
  border-left: 3px solid var(--primary-500);
  position: relative;
}
.card-feature:hover {
  border-left-color: var(--primary-400);
}

/* Freelancer vs. Agency comparison */
.section-compare {
  background: var(--surface-base);
  box-shadow: inset 0 1px 0 var(--border-subtle);
}
.compare-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .compare-grid { grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
}
.compare-grid-wide {
  max-width: var(--content-wide);
}
@media (min-width: 1200px) {
  .compare-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: min(100%, 80rem);
  }
  .compare-grid-wide .compare-col {
    padding: 1.25rem 1.35rem;
  }
  .compare-grid-wide .compare-item {
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .compare-grid-wide .compare-col-title {
    font-size: 1.0625rem;
  }
}
.compare-col-anchor {
  scroll-margin-top: 5.5rem;
}
.compare-col {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.75rem;
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.compare-col-good {
  border-left: 4px solid var(--primary-500);
}
.compare-col-good:hover {
  border-left-color: var(--primary-400);
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
}
.compare-col-bad {
  border-left: 4px solid var(--neutral-400);
  opacity: 0.92;
}
.compare-col-bad:hover {
  border-left-color: var(--text-dim);
  box-shadow: var(--shadow-sm);
}
.compare-col-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}
.compare-col-good .compare-col-title { color: var(--primary-300); }
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-item {
  position: relative;
  padding-left: 1.75rem;
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.compare-item:first-child { margin-top: 0; }
.compare-yes::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-400);
  font-weight: 700;
  font-size: 1.125rem;
}
.compare-no::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 1rem;
}

.compare-cta {
  margin-top: 2.5rem;
  text-align: center;
}
.compare-cta-text {
  margin: 0 auto 0.25rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.compare-cta .cta-row {
  margin-top: 1.25rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--primary-300);
  border-radius: var(--radius);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--border-strong);
}
.card-icon::before {
  content: "✓";
}
.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
  font-family: var(--font-display);
}
.card p,
.card ul {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}
.card ul {
  padding-left: 1.25rem;
}
.card li {
  margin-top: 0.375rem;
}
/* Pricing section - full-width, deepest layer + circuit */
.section.pricing-dark {
  position: relative;
  overflow: hidden;
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: var(--section-padding-y) 1.5rem;
  background: var(--surface-deep);
  color: var(--text-muted);
  box-sizing: border-box;
}
.section.pricing-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/circuit-grid.svg");
  background-size: 120px 120px;
  color: rgba(34, 211, 238, 0.09);
  opacity: 1;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .section.pricing-dark::before {
    animation: circuit-pan 120s linear infinite reverse;
  }
}
@media (prefers-reduced-motion: reduce) {
  .section.pricing-dark::before {
    animation: none;
  }
}
.section.pricing-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 55%);
  pointer-events: none;
}
.section.pricing-dark > * {
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .section.pricing-dark { padding: var(--section-padding-y) 2rem; }
}
@media (min-width: 1024px) {
  .section.pricing-dark { padding: var(--section-padding-y-lg) 3rem; }
}
.pricing-dark .section-sub { display: none; }
.eyebrow-pricing {
  display: block;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-400);
  margin: 0 0 0.5rem;
}
.pricing-title {
  text-align: center;
  color: var(--text);
  font-size: 2rem;
  margin: 0 0 1rem;
  font-family: var(--font-display);
}
@media (min-width: 640px) {
  .pricing-title { font-size: 2.5rem; margin-bottom: 1.25rem; }
}
.pricing-intro {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-dim);
}
@media (min-width: 640px) {
  .pricing-intro { margin-bottom: 3rem; font-size: 1rem; }
}
.pricing-dark .cards-pricing {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* Dark pricing cards */
.card-dark {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card-dark:has(.card-tag) {
  padding-top: 2rem;
}
.card-dark:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(165deg, var(--primary-400) 0%, var(--primary-500) 100%);
  color: #041014;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  margin: 0;
  white-space: nowrap;
}
.card-type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-400);
  margin: 0 0 0.5rem;
}
.card-dark .card-price-dark {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-300);
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}
@media (min-width: 640px) {
  .card-dark .card-price-dark { font-size: 2.25rem; }
}
.card-price-note {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-dim);
  margin: 0 0 1rem;
}
@media (min-width: 640px) {
  .card-price-note { font-size: 0.875rem; margin-bottom: 1.125rem; }
}
.card-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-300);
  margin: 0 0 1rem;
  font-family: var(--font-display);
}
.card-dark .card-name {
  color: var(--text);
}
.card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.card-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-400);
  font-weight: 700;
  font-size: 1rem;
}
.card-footer {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* Light-theme card price (other sections) */
.card-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.25rem 0 0;
}
.card-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Form section */
.section-form {
  position: relative;
  background: var(--surface-base);
}
.section-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/circuit-grid.svg");
  background-size: 120px 120px;
  color: rgba(34, 211, 238, 0.06);
  opacity: 1;
  pointer-events: none;
}
.section-form .section-inner {
  max-width: 42rem;
  position: relative;
  z-index: 1;
}
.form-box {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-strong);
  background: var(--surface-card);
  padding: 2rem;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 640px) {
  .form-box { padding: 2.5rem; }
}
.form-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-family: var(--font-display);
}
.form-box > .text-muted {
  margin-bottom: 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: var(--surface-deep);
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-strong);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.22);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
}
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.radio-group input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary-500);
}
.error {
  font-size: 0.8125rem;
  color: #f87171;
  margin-top: 0.25rem;
}
.form-group select option {
  background: var(--surface-card);
  color: var(--text);
}
.msg-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.msg-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-submit-wrap {
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

/* FAQ */
.faq-list {
  margin-top: 1.25rem;
}
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  margin-bottom: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.faq-item[open] {
  border-color: var(--border-strong);
}
.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-deep);
  color: var(--text-muted);
  padding: 2.75rem 1.5rem 2.5rem;
  margin-top: 0;
}
@media (min-width: 640px) {
  .footer { padding: 3rem 2rem 2.5rem; }
}
@media (min-width: 1024px) {
  .footer { padding: 3.25rem 3rem 2.75rem; }
}
.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem 1.5rem;
    align-items: start;
  }
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.footer-about {
  margin: 0;
  line-height: 1.65;
  max-width: 28rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.875rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--primary-300);
}
.footer-contact-line {
  margin: 0 0 1rem;
}
.footer-contact-line a {
  color: var(--primary-300);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-contact-line a:hover {
  color: var(--primary-200);
}
.footer-copyright {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer a:hover {
  color: var(--text);
}

/* How it works */
.section-inner > .section-head + .steps {
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .section-inner > .section-head + .steps { margin-top: 3rem; }
}
.steps {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.step {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
}
.step:hover {
  box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
  border-color: var(--border-strong);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(165deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: #041014;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: 50%;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}
.step-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: var(--text);
  font-family: var(--font-display);
}
.step-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* FAQ — index spacing & expand control */
.section-inner > .section-head + .faq-list {
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .section-inner > .section-head + .faq-list { margin-top: 2.5rem; }
}
.faq-list {
  max-width: 48rem;
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: color var(--transition);
}
.faq-item summary:hover {
  color: var(--primary-300);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-dim);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item p a {
  color: var(--primary-400);
  font-weight: 500;
}
.faq-item p a:hover {
  color: var(--primary-300);
}

/* Ready CTA strip */
.section-ready.cta-strip {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface-raised) 0%, var(--surface-base) 100%);
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  box-shadow: inset 0 1px 0 var(--border-subtle);
}
.section-ready.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/circuit-grid.svg");
  background-size: 120px 120px;
  color: rgba(34, 211, 238, 0.07);
  pointer-events: none;
  opacity: 1;
}
.section-ready-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ready-head {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--text);
  font-family: var(--font-display);
}
@media (min-width: 640px) {
  .ready-head { font-size: 1.75rem; margin-bottom: 2rem; }
}
.cta-strip .cta-row {
  margin-top: 0;
  justify-content: center;
}

/* Anchor offset for sticky header */
main section[id] {
  scroll-margin-top: 5rem;
}
