/* style.css — Advolume Design System */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Advolume Palette — Dark Mode by Design */
  --color-bg: #0E0E0F;
  --color-surface: #161618;
  --color-surface-2: #1E1E21;
  --color-border: #2E2E33;
  --color-primary: #7B5CFA;
  --color-primary-hover: #5E3EDB;
  --color-accent: #FF4D2E;
  --color-text: #F0EFF4;
  --color-text-muted: #8B8A97;
  --color-text-faint: #4A4A55;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows (dark mode optimized) */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  --shadow-violet: 0 4px 24px rgba(123, 92, 250, 0.15);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* ===== GLOBAL ===== */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

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

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 100;
  font-size: var(--text-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ===== HEADER / NAV ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46, 46, 51, 0.5);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.logo-mark {
  flex-shrink: 0;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-violet);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: currentColor;
  left: 0;
  transition: transform 0.2s var(--ease-out);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-16) var(--space-6);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-out);
    z-index: 60;
    border-left: 1px solid var(--color-border);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-links {
    flex-direction: column;
    gap: var(--space-4);
  }
  .nav-links a { font-size: var(--text-base); }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out);
  }
  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-24) var(--space-4) var(--space-16);
  max-width: var(--content-wide);
  margin: 0 auto;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hero-label .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  max-width: 14ch;
}
.hero h1 .accent {
  color: var(--color-primary);
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat .number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.hero-stat .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-16) var(--space-4) var(--space-12);
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-8);
  }
}

/* ===== MARQUEE / REEL ===== */
.reel-section {
  padding: 0 0 var(--space-16);
  overflow: hidden;
}
.reel-track {
  display: flex;
  gap: var(--space-4);
  animation: scroll-left 30s linear infinite;
  width: max-content;
}
.reel-track:hover {
  animation-play-state: paused;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.reel-card {
  flex-shrink: 0;
  width: 320px;
  aspect-ratio: 9/16;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}
.reel-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.reel-card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(180deg, transparent 50%, rgba(14,14,15,0.9) 100%);
}
.reel-card-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.reel-card-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.reel-card .format-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: rgba(123, 92, 250, 0.2);
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .reel-card {
    width: 240px;
  }
}

/* ===== SECTION UTILITY ===== */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-32)) var(--space-4);
}
.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: var(--space-12);
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  position: relative;
  counter-increment: step;
}
.step-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-surface-2);
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.step-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}
.step-card p,
.step-card .step-arrow {
  position: relative;
  z-index: 1;
}
.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.step-arrow {
  color: var(--color-primary);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== WORK / SPEC PORTFOLIO ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.work-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-violet);
}
.work-card-visual {
  aspect-ratio: 16/10;
  background: var(--color-surface-2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Portfolio card image */
.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}


/* Gradient overlay for readability */
.work-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 14, 15, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}


/* Play button */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(14, 14, 15, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(240, 239, 244, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), opacity 0.3s ease;
}
.play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px; /* optical center for play triangle */
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(123, 92, 250, 0.7);
}


/* Video element — plays in fullscreen overlay for vertical UGC */
.work-card-video {
  display: none;
}

/* Fullscreen video overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.video-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.video-overlay video {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-overlay-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.video-overlay-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.work-card-content {
  padding: var(--space-6);
}
.work-card-niche {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}
.work-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.work-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.work-card-meta {
  display: flex;
  gap: var(--space-4);
}
.work-card-meta span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.work-card-meta span svg {
  width: 14px;
  height: 14px;
}

/* Featured card (first in grid, spans full width) */
.work-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.work-card.featured .work-card-visual {
  aspect-ratio: auto;
  min-height: 320px;
}
.work-card.featured .work-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8);
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card.featured {
    grid-template-columns: 1fr;
  }
  .work-card.featured .work-card-visual {
    aspect-ratio: 16/10;
    min-height: auto;
  }
  .play-btn {
    width: 52px;
    height: 52px;
  }
  .play-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card {
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-violet);
  position: relative;
}
.pricing-card.popular::after {
  content: 'Most popular';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-card .tier {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.pricing-card .price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.pricing-card .price-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.pricing-card .features {
  list-style: none;
  margin-bottom: var(--space-8);
}
.pricing-card .features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(46, 46, 51, 0.4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.pricing-card .features li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--color-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-card .btn {
  width: 100%;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* ===== TESTIMONIALS / SOCIAL PROOF ===== */
.proof-strip {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.proof-item {
  text-align: center;
}
.proof-item .number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.proof-item .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: var(--content-narrow);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-question:hover {
  color: var(--color-primary);
}
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s var(--ease-out);
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease-out);
}
.faq-answer-inner {
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CTA / CONTACT FORM SECTION ===== */
.cta-section {
  text-align: center;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-4);
  scroll-margin-top: 80px;
}
.cta-section .section-inner {
  max-width: 720px;
}
.cta-section h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.cta-section p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0 auto var(--space-8);
  max-width: 48ch;
}

/* Contact Form */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-group-full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(123, 92, 250, 0.15);
}
.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--color-accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-submit {
  align-self: center;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  margin-top: var(--space-2);
}
.form-success {
  text-align: center;
  padding: var(--space-8) 0;
}
.form-success h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .cta-section .section-inner {
    max-width: 100%;
  }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-4);
}
.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.footer-brand {
  max-width: 280px;
}
.footer-brand p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: var(--space-12);
}
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-text);
}
.footer-bottom {
  max-width: var(--content-wide);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ===== SCROLL REVEAL ===== */
.fade-in {
  opacity: 1;
}
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
}
@keyframes reveal-fade {
  to { opacity: 1; }
}

/* ===== PAGE LOAD ANIMATION ===== */
.hero-anim { opacity: 0; animation: hero-enter 0.6s var(--ease-out) forwards; }
.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.2s; }
.hero-anim-3 { animation-delay: 0.3s; }
.hero-anim-4 { animation-delay: 0.4s; }
.hero-anim-5 { animation-delay: 0.5s; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   ENHANCEMENTS — Added 2026
   =================================================================== */

/* ===== ENHANCEMENT 1: PLATFORM LOGO BAR ===== */
.platform-bar {
  padding: var(--space-10) var(--space-4) var(--space-8);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.platform-bar-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.platform-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}
.platform-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  opacity: 0.5;
  transition: opacity var(--transition-interactive);
  cursor: default;
  user-select: none;
}
.platform-logo-text:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .platform-logos {
    gap: var(--space-8);
  }
}

/* ===== ENHANCEMENT 2: METRICS PILLS ON PORTFOLIO CARDS ===== */
.work-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.metric-pill {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
}

/* ===== ENHANCEMENT 3: VISUAL PROCESS TIMELINE ===== */
.steps-grid-timeline {
  position: relative;
}

/* Horizontal connector line between cards (desktop only) */
@media (min-width: 769px) {
  .steps-grid-timeline {
    /* The cards are in a 3-col grid. We draw a line through the step-icon center */
    isolation: isolate;
  }

  /* Draw connecting line after first two step cards */
  .step-card-tl:nth-child(1)::after,
  .step-card-tl:nth-child(2)::after {
    content: '';
    position: absolute;
    top: calc(var(--space-8) + 14px); /* align with icon vertical center (padding-top + icon-height/2) */
    right: calc(-1 * var(--space-6) / 2 - 1px);
    width: calc(var(--space-6) + 2px);
    height: 2px;
    background: var(--color-primary);
    opacity: 0.35;
    z-index: 2;
    pointer-events: none;
  }
}

.step-icon {
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: block;
  flex-shrink: 0;
}

/* Progress dot on timeline cards */
.step-card-tl {
  /* Maintain original positioning for the ::after connector */
}

/* ===== ENHANCEMENT 4: CALENDLY BOOKING OPTION ===== */
.calendly-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.calendly-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  /* Override .cta-section p centering/margin rules */
  max-width: none;
}
.calendly-btn {
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-6);
}

/* ===== ENHANCEMENT 5: CLIENT TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-2);
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6) var(--space-6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
/* Large opening curly quote mark */
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  pointer-events: none;
}
.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.65;
  margin: 0;
  padding-top: var(--space-6); /* Clear the quote mark */
  font-style: normal;
}
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
}
.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ENHANCEMENT 6: BEFORE/AFTER ON PORTFOLIO CARDS ===== */
.work-card-before-after {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-3);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}
.before-after-indicator {
  color: var(--color-accent);
  font-weight: 700;
  margin-right: var(--space-1);
}

/* ===== ENHANCEMENT 7: PAYMENT & INTAKE FLOW ===== */

/* Pricing guarantee strip */
.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.pricing-guarantee svg {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.6;
}

/* Selected plan banner in intake form */
.selected-plan-banner {
  background: rgba(123, 92, 250, 0.08);
  border: 1px solid rgba(123, 92, 250, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  text-align: center;
}

/* Select dropdown styling */
.form-group select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B8A97' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(123, 92, 250, 0.15);
}
/* Fix select text color for unselected placeholder */
.form-group select option[disabled] {
  color: var(--color-text-faint);
}
.form-group select option {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Post-payment success badge */
.paid-success-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.paid-success-badge svg {
  flex-shrink: 0;
}
