/* ============================================================
   SMARTER WEB AI — Senior UX Design System
   Clean, high-contrast, professional
   ============================================================ */

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

: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);

  /* 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;

  /* Fonts */
  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', '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);

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

/* --- LIGHT MODE (default) --- */
:root, [data-theme="light"] {
  --color-bg:             #f8f9fb;
  --color-surface:        #ffffff;
  --color-surface-2:      #f1f3f7;
  --color-surface-offset: #e8ecf3;
  --color-divider:        #d6dce6;
  --color-border:         #c5cdd9;

  --color-text:           #0f172a;
  --color-text-muted:     #475569;
  --color-text-faint:     #94a3b8;
  --color-text-inverse:   #f8fafc;

  /* Primary — Deep Navy */
  --color-primary:        #0f172a;
  --color-primary-hover:  #1e293b;
  --color-primary-active: #334155;

  /* Accent — Electric Blue */
  --color-accent:         #2563eb;
  --color-accent-hover:   #1d4ed8;
  --color-accent-active:  #1e40af;
  --color-accent-light:   #dbeafe;

  /* Success */
  --color-success:        #16a34a;
  --color-success-light:  #dcfce7;

  /* Warning/Urgency — Amber */
  --color-warning:        #d97706;
  --color-warning-light:  #fef3c7;

  /* Error — Red */
  --color-error:          #dc2626;
  --color-error-light:    #fee2e2;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.16);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg:             #0b0f1a;
  --color-surface:        #111827;
  --color-surface-2:      #1e293b;
  --color-surface-offset: #1a2332;
  --color-divider:        #1e293b;
  --color-border:         #334155;

  --color-text:           #e2e8f0;
  --color-text-muted:     #94a3b8;
  --color-text-faint:     #64748b;
  --color-text-inverse:   #0f172a;

  --color-primary:        #e2e8f0;
  --color-primary-hover:  #cbd5e1;
  --color-primary-active: #94a3b8;

  --color-accent:         #60a5fa;
  --color-accent-hover:   #3b82f6;
  --color-accent-active:  #2563eb;
  --color-accent-light:   #1e3a5f;

  --color-success:        #4ade80;
  --color-success-light:  #14532d;

  --color-warning:        #fbbf24;
  --color-warning-light:  #451a03;

  --color-error:          #f87171;
  --color-error-light:    #450a0a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0b0f1a;
    --color-surface:        #111827;
    --color-surface-2:      #1e293b;
    --color-surface-offset: #1a2332;
    --color-divider:        #1e293b;
    --color-border:         #334155;
    --color-text:           #e2e8f0;
    --color-text-muted:     #94a3b8;
    --color-text-faint:     #64748b;
    --color-text-inverse:   #0f172a;
    --color-primary:        #e2e8f0;
    --color-primary-hover:  #cbd5e1;
    --color-primary-active: #94a3b8;
    --color-accent:         #60a5fa;
    --color-accent-hover:   #3b82f6;
    --color-accent-active:  #2563eb;
    --color-accent-light:   #1e3a5f;
    --color-success:        #4ade80;
    --color-success-light:  #14532d;
    --color-warning:        #fbbf24;
    --color-warning-light:  #451a03;
    --color-error:          #f87171;
    --color-error-light:    #450a0a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.6);
  }
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-interactive); }
a:hover { color: var(--color-accent-hover); }
button { cursor: pointer; background: none; border: none; }

::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--color-text);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow { max-width: var(--content-default); }

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--tight {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

/* ============================================================
   HEADER / NAV
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}

[data-theme="dark"] .header {
  background: rgba(11, 15, 26, 0.92);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.header__logo svg {
  width: 32px;
  height: 32px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
  position: relative;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-text);
}

.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .header__nav {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: var(--space-8);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .header__nav.open { transform: translateX(0); }
  .header__nav a { font-size: var(--text-lg); }
  .header__actions .btn { font-size: var(--text-xs); padding: var(--space-2) var(--space-4); }
  .header__logo { font-size: var(--text-base); }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-interactive);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-muted);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--color-accent);
  padding: var(--space-2) var(--space-4);
}

.btn--ghost:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: #0f172a;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Dark overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.75) 40%, rgba(15, 23, 42, 0.35) 100%);
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background:
    linear-gradient(90deg, rgba(11, 15, 26, 0.92) 0%, rgba(11, 15, 26, 0.8) 40%, rgba(11, 15, 26, 0.45) 100%);
}

/* Subtle grid overlay for texture */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: #93c5fd;
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: #ffffff;
}

.hero h1 span {
  color: #60a5fa;
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero .btn--primary {
  background: #2563eb;
  color: #ffffff;
}

.hero .btn--primary:hover {
  background: #3b82f6;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.4);
}

.hero .btn--secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero__stats { flex-direction: column; gap: var(--space-4); }
}

/* ============================================================
   FRICTION POINTS / PAIN SECTION
   ============================================================ */

.pain-section {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-header__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.section-header h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-inline: auto;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

.pain-card {
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.pain-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pain-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
}

.pain-card__icon--red {
  background: var(--color-error-light);
  color: var(--color-error);
}

.pain-card__icon--amber {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.pain-card__icon--blue {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.pain-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.pain-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.pain-card__stat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-error-light);
  color: var(--color-error);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* ============================================================
   CALCULATOR
   ============================================================ */

.calculator-section {
  background: var(--color-bg);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

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

.calc-info h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.calc-info p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.calc-box {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.calc-box h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.calc-field {
  margin-bottom: var(--space-5);
}

.calc-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.calc-field input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.calc-field__value {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

.calc-field__display {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  text-align: right;
}

.calc-divider {
  border: none;
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-6) 0;
}

.calc-result {
  text-align: center;
}

.calc-result__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.calc-result__amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-error);
  line-height: 1;
}

.calc-result__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.calc-result__recovery {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-success-light);
  border-radius: var(--radius-md);
}

.calc-result__recovery-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.calc-result__recovery-amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-success);
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */

.proof-section {
  background: var(--color-surface);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

.proof-card {
  text-align: center;
  padding: var(--space-6);
}

.proof-card__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.proof-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.page-hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  background: var(--color-surface-2);
  text-align: center;
  border-bottom: 1px solid var(--color-divider);
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  border-bottom: none;
}

.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

[data-theme="dark"] .page-hero h1 { color: #ffffff; }

.page-hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
}

[data-theme="dark"] .page-hero p { color: rgba(255, 255, 255, 0.65); }

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-bottom: 1px solid var(--color-divider);
}

.service-block:last-child { border-bottom: none; }

.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }

@media (max-width: 768px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) { direction: ltr; }
}

.service-block__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .service-block__number { color: var(--color-accent); opacity: 0.3; }

.service-block h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}

.service-block p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-features li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-success);
  background: var(--color-success-light);
  border-radius: 50%;
}

.service-visual {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.service-visual__icon {
  font-size: 4rem;
  opacity: 0.8;
}

.service-visual--interactive {
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive), border-color var(--transition-interactive);
}

.service-visual--interactive:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-accent);
  transform: translateY(-2px);
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

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

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-lg);
}

.pricing-card--featured:hover {
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-xl);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}

.pricing-card__price-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.pricing-card__price-period {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.check-icon { color: var(--color-success); }

.pricing-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   CONTACT PAGE — 2-Step Form
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

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

.contact-info h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.contact-details {
  list-style: none;
  padding: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact-details li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.form-steps {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.form-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.form-step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 2px solid var(--color-divider);
  transition: all var(--transition-interactive);
}

.form-step.active .form-step__number {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.form-step.completed .form-step__number {
  background: var(--color-success);
  color: #ffffff;
  border-color: var(--color-success);
}

.form-step__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.form-step.active .form-step__label { color: var(--color-text); }

.form-step__line {
  flex: 1;
  height: 2px;
  background: var(--color-divider);
  border-radius: 1px;
}

.form-panel { display: none; }
.form-panel.active { display: block; }

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
}

.form-success.active { display: block; }

.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 2rem;
}

.form-success h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.form-success p {
  color: var(--color-text-muted);
  margin-inline: auto;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hvac-hero.jpg') center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.cta-banner h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-3);
  position: relative;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-inline: auto;
  margin-bottom: var(--space-8);
  position: relative;
}

.cta-banner .btn--primary {
  background: #2563eb;
  color: #ffffff;
  position: relative;
}

.cta-banner .btn--primary:hover {
  background: #3b82f6;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.4);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.footer__brand svg { width: 24px; height: 24px; }

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Counter animation */
.count-up {
  transition: all 0.5s ease;
}

/* ============================================================
   AI RECEPTIONIST DEMO MODAL
   ============================================================ */

.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal.active {
  opacity: 1;
  visibility: visible;
}

.demo-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.demo-modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  margin: var(--space-4);
}

/* Phone frame */
.demo-modal__phone {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--color-divider);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 85vh;
}

/* Phone header */
.demo-phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent);
  color: #ffffff;
}

.demo-phone__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.demo-phone__signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.demo-phone__carrier {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.demo-phone__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transition: background var(--transition-interactive);
  line-height: 1;
}

.demo-phone__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Call info header */
.demo-phone__call-info {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #ffffff;
}

.demo-phone__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.demo-phone__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.demo-phone__number {
  font-size: var(--text-xs);
  opacity: 0.7;
}

/* Chat area */
.demo-phone__chat {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 280px;
  max-height: 380px;
  scroll-behavior: smooth;
}

/* Message bubbles */
.demo-msg {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.demo-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-msg__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
  padding-left: var(--space-1);
}

.demo-msg__bubble {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.55;
  max-width: 92%;
}

/* AI messages — left-aligned, blue */
.demo-msg--ai {
  align-self: flex-start;
}

.demo-msg--ai .demo-msg__label {
  color: var(--color-accent);
}

.demo-msg--ai .demo-msg__bubble {
  background: var(--color-accent-light);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

[data-theme="dark"] .demo-msg--ai .demo-msg__bubble {
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-text);
}

/* Caller messages — right-aligned, surface */
.demo-msg--caller {
  align-self: flex-end;
  text-align: right;
}

.demo-msg--caller .demo-msg__label {
  color: var(--color-text-muted);
  text-align: right;
  padding-right: var(--space-1);
  padding-left: 0;
}

.demo-msg--caller .demo-msg__bubble {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-bottom-right-radius: var(--radius-sm);
  margin-left: auto;
}

/* System messages — centered, muted */
.demo-msg--system {
  align-self: center;
  text-align: center;
}

.demo-msg--system .demo-msg__bubble {
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border: 1px dashed var(--color-divider);
  border-radius: var(--radius-full);
  max-width: 100%;
}

/* SMS notification */
.demo-msg--sms {
  align-self: center;
  width: 100%;
}

.demo-msg--sms .demo-msg__bubble {
  background: var(--color-success-light);
  color: var(--color-text);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: 1.6;
  max-width: 100%;
  padding: var(--space-3) var(--space-4);
}

[data-theme="dark"] .demo-msg--sms .demo-msg__bubble {
  border-color: rgba(74, 222, 128, 0.3);
}

/* CTA message at end */
.demo-msg--cta {
  align-self: center;
  width: 100%;
}

.demo-cta {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.demo-cta__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.demo-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.demo-cta__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  max-width: 100%;
}

.demo-cta__btn {
  width: 100%;
  margin-bottom: var(--space-2);
}

.demo-cta__replay {
  font-size: var(--text-xs);
}

/* Choices area */
.demo-phone__choices {
  padding: 0 var(--space-4) var(--space-3);
  min-height: 0;
}

.demo-choices__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.demo-choices__inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-choice-btn {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.demo-choice-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Footer / typing indicator */
.demo-phone__footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  min-height: 42px;
  display: flex;
  align-items: center;
}

.demo-phone__typing {
  display: none;
  gap: 4px;
  align-items: center;
  padding-left: var(--space-2);
}

.demo-phone__typing.active {
  display: flex;
}

.demo-phone__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.4;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.demo-phone__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.demo-phone__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .demo-modal {
    align-items: flex-end;
    padding: 0;
  }

  .demo-modal__container {
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .demo-modal__phone {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
  }

  .demo-phone__chat {
    min-height: 200px;
    max-height: 45vh;
  }

  .demo-phone__call-info {
    padding: var(--space-3) var(--space-4);
  }

  .demo-phone__avatar {
    width: 40px;
    height: 40px;
  }

  .demo-phone__name {
    font-size: var(--text-base);
  }
}

/* ============================================================
   ESTIMATES DEMO — Estimate Card & Email Styles
   ============================================================ */

/* Estimate card container */
.est-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.est-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
}

.est-card__header svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

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

/* Individual estimate option */
.est-option {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  position: relative;
}

.est-option--featured {
  border-color: var(--color-accent);
  background: var(--color-accent-light);
  box-shadow: 0 0 0 1px var(--color-accent);
}

[data-theme="dark"] .est-option--featured {
  background: rgba(37, 99, 235, 0.08);
}

.est-option__badge {
  position: absolute;
  top: -8px;
  right: var(--space-3);
  padding: 2px var(--space-2);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.est-option__tier {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.est-option--featured .est-option__tier {
  color: var(--color-accent);
}

.est-option__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.est-option__price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--space-1) 0;
}

.est-option--featured .est-option__price {
  color: var(--color-accent);
}

.est-option__desc {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.est-card__footer {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
  font-size: 0.625rem;
  color: var(--color-text-muted);
}

/* Estimate message — full width, no bubble */
.demo-msg--estimate {
  align-self: center;
  width: 100%;
}

/* Email notification style */
.demo-msg--email {
  align-self: center;
  width: 100%;
}

.demo-msg--email .demo-msg__bubble {
  background: var(--color-accent-light);
  color: var(--color-text);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: 1.6;
  max-width: 100%;
  padding: var(--space-3) var(--space-4);
}

[data-theme="dark"] .demo-msg--email .demo-msg__bubble {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Estimate card mobile adjustments */
@media (max-width: 480px) {
  .est-card__options {
    padding: var(--space-2);
    gap: var(--space-2);
  }

  .est-option {
    padding: var(--space-2) var(--space-3);
  }

  .est-option__price {
    font-size: var(--text-base);
  }

  .est-card__footer {
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
  }
}
