/* =============================================
   MIZU AI â€” US B2B Minimalist Design System
   Apple-style white minimalism with Electric Blue accent
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Colors: Light mode */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-tertiary: #F5F5F5;
  --text-primary: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: rgba(37, 99, 235, 0.08);
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --card-bg: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --good: #059669;
  --good-bg: rgba(5, 150, 105, 0.08);
  --bad: #DC2626;
  --bad-bg: rgba(220, 38, 38, 0.08);
  --lost-color: #DC2626;
  --gained-color: #059669;
  --code-bg: #F9FAFB;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.75rem;
  --font-size-5xl: 3.5rem;

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark mode --- */
[data-theme="dark"] {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --text-primary: #F5F5F5;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-light: rgba(59, 130, 246, 0.1);
  --border: #262626;
  --border-light: #1F1F1F;
  --card-bg: #141414;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 10, 10, 0.72);
  --good-bg: rgba(5, 150, 105, 0.15);
  --bad-bg: rgba(220, 38, 38, 0.15);
  --code-bg: #1A1A1A;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
  /* Safe area padding for iPhones with notch/Dynamic Island */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* --- Skip to content link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section utilities --- */
.section-tag {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.04);
}

.nav__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: #FFFFFF;
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.nav__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.theme-toggle__icon--moon { display: none; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

/* Burger menu */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav__burger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  padding-top: calc(64px + var(--section-padding));
  padding-bottom: var(--section-padding);
  background: var(--bg-primary);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__tag {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 100px;
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero__title--accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.btn--full {
  width: 100%;
}

/* Notification cards */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== HERO DASHBOARD PREVIEW ===== */
.hero-dashboard {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero-dashboard:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* Toolbar: macOS-style window chrome */
.hero-dashboard__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.hero-dashboard__dots {
  display: flex;
  gap: 6px;
}

.hero-dashboard__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-dashboard__dots span:nth-child(1) { background: #FF5F57; }
.hero-dashboard__dots span:nth-child(2) { background: #FFBD2E; }
.hero-dashboard__dots span:nth-child(3) { background: #28C840; }

.hero-dashboard__title {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.hero-dashboard__badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--good);
  padding: 2px 8px;
  border-radius: 10px;
  animation: dashPulse 2s infinite;
}

@keyframes dashPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Individual feed cards inside dashboard */
.dash-card {
  margin: 12px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.dash-card:hover {
  border-color: var(--accent);
}

.dash-card--alt:hover {
  border-color: var(--good);
}

.dash-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dash-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-card__dot--blue { background: var(--accent); }
.dash-card__dot--green { background: var(--good); }

.dash-card__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.dash-card__time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.dash-card__event {
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* Key-value rows */
.dash-card__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
}

.dash-card__key {
  color: var(--text-muted);
}

.dash-card__val {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.dash-card__val--accent {
  color: var(--accent);
  font-weight: 700;
}

/* Status indicator at card bottom */
.dash-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.dash-card__status--green {
  color: var(--good);
}

.dash-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dashPulse 1.5s infinite;
}

/* Step-based progress inside agent card */
.dash-card__progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.dash-step--done {
  color: var(--good);
}

.dash-step--active {
  color: var(--accent);
  font-weight: 500;
}

.dash-step__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-step__spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dashSpin 0.8s linear infinite;
}

@keyframes dashSpin {
  to { transform: rotate(360deg); }
}

/* Mini stats bar */
.hero-dashboard__stats {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.hero-dashboard__stat {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  background: var(--bg-primary);
  border-radius: 6px;
}

.hero-dashboard__stat-val {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-dashboard__stat-val--good {
  color: var(--good);
}

.hero-dashboard__stat-lbl {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== CASE STUDY: WORKFLOW DIAGRAMS ===== */
.case-study {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}


/* ===== CASE STUDIES WORKFLOW DIAGRAMS ===== */

/* Tab switcher */
.wf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}

.wf-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card-bg);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.wf-tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.wf-tab--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.wf-tab--active svg { stroke: #FFFFFF; }

/* --- Panel: infographic poster container --- */
.wf-panel {
  display: none;
}

.wf-panel--active {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--card-shadow);
  animation: wfFadeIn 0.4s ease;
}

@keyframes wfFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wf-panel__title {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.wf-panel__desc {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* --- Diagram: 2-column (Before | After) --- */
.wf-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Column base -- vertical flow, centered items */
.wf-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 28px 24px;
}

.wf-col--before {
  background: rgba(220, 38, 38, 0.03);
}

[data-theme="dark"] .wf-col--before {
  background: rgba(220, 38, 38, 0.06);
}

.wf-col--after {
  background: rgba(37, 99, 235, 0.03);
  border-left: 1px dashed var(--border);
}

[data-theme="dark"] .wf-col--after {
  background: rgba(59, 130, 246, 0.06);
}

/* Labels */
.wf-col__label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 20px;
}

.wf-col__label--bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.wf-col__label--good {
  background: var(--good-bg);
  color: var(--good);
}

/* --- Incoming channel badges (top of each column) --- */
.wf-incoming {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.wf-incoming__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.wf-incoming__badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wf-incoming__badge--missed {
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--bad);
}

.wf-incoming__badge--missed svg {
  color: var(--bad);
}

/* Channel badges (After column) */
.wf-channels-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.wf-channel {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.wf-channel--green {
  background: var(--good-bg);
  color: var(--good);
}

/* --- Vertical flow arrow --- */
.wf-flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}

.wf-flow-arrow::before {
  content: '';
  width: 2px;
  height: 20px;
  background: var(--border);
}

.wf-flow-arrow::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
}

.wf-flow-arrow--bad::before { background: var(--bad); }
.wf-flow-arrow--bad::after { border-top-color: var(--bad); }

.wf-flow-arrow--good::before { background: var(--good); }
.wf-flow-arrow--good::after { border-top-color: var(--good); }

.wf-flow-arrow--accent::before { background: var(--accent); }
.wf-flow-arrow--accent::after { border-top-color: var(--accent); }

/* --- Split arrow (one trunk splitting into two) --- */
.wf-flow-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  width: 100%;
  max-width: 340px;
}

.wf-flow-split__trunk {
  width: 2px;
  height: 14px;
  background: var(--bad);
}

.wf-flow-split__fork {
  display: flex;
  align-items: flex-start;
  width: 60%;
  height: 14px;
  position: relative;
}

.wf-flow-split__fork::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--bad);
}

.wf-flow-split__fork::after {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  width: 2px;
  height: 100%;
  background: var(--bad);
}

.wf-flow-split__fork-r {
  position: absolute;
  top: 0;
  right: 25%;
  width: 2px;
  height: 100%;
  background: var(--bad);
}

/* --- Flow step box --- */
.wf-step {
  width: 100%;
  max-width: 340px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.wf-step--pain {
  border-left: 3px solid var(--bad);
}

.wf-step--warning {
  border-left: 3px solid #EA580C;
  border-color: rgba(234, 88, 12, 0.3);
}

.wf-step strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: 2px;
}

.wf-step span {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Loss split (two side-by-side indicators with bars) --- */
.wf-loss-split {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.wf-loss-split__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.wf-loss-split__bar {
  width: 28px;
  height: var(--h, 48px);
  border-radius: 4px 4px 0 0;
}

.wf-loss-split__bar--red {
  background: linear-gradient(180deg, var(--bad), rgba(220, 38, 38, 0.15));
}

.wf-loss-split__bar--orange {
  background: linear-gradient(180deg, #EA580C, rgba(234, 88, 12, 0.15));
}

.wf-loss-split__item strong {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--bad);
  text-align: center;
}

.wf-loss-split__item span {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-align: center;
}

.wf-loss-split__item--ok {
  border-color: var(--good);
}

.wf-loss-split__item--ok strong {
  color: var(--good);
}

/* --- Conclusion text --- */
.wf-conclusion {
  width: 100%;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

.wf-conclusion--bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.wf-conclusion--good {
  background: var(--good-bg);
  color: var(--good);
}

/* --- AI / n8n Hub box --- */
.wf-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 2px solid var(--accent);
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.wf-hub--ai {
  border-color: var(--good);
}

.wf-hub__pulse {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: wfPulse 2s ease-out infinite;
}

.wf-hub--ai .wf-hub__pulse {
  border-color: var(--good);
}

@keyframes wfPulse {
  0% { opacity: 0.6; inset: -4px; }
  100% { opacity: 0; inset: -18px; }
}

.wf-hub strong {
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.wf-hub span {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* --- Section label (Multi-Agent System, Automated Pipeline) --- */
.wf-section-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 4px 0;
  text-align: center;
}

/* --- Horizontal agent flow (3 cards with arrows) --- */
.wf-agent-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.wf-agent-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--accent);
}

.wf-agent-card--green {
  border-top-color: var(--good);
}

.wf-agent-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.wf-agent-card__icon--green {
  background: var(--good-bg);
  color: var(--good);
}

.wf-agent-card strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.wf-agent-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-agent-card li {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
}

.wf-agent-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.wf-agent-card--green li::before {
  background: var(--good);
}

/* Arrow between agent cards */
.wf-agent-flow__arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 1.25rem;
  flex-shrink: 0;
  font-weight: 300;
}

/* --- Output: Telegram/notification mockup --- */
.wf-output {
  width: 100%;
  max-width: 340px;
}

.wf-output__phone {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wf-output__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.wf-output__header--green {
  background: var(--good);
}

.wf-output__msg {
  padding: 14px;
  font-size: var(--font-size-xs);
  line-height: 1.7;
  font-family: 'Courier New', monospace;
  color: var(--text-primary);
}

.wf-output__msg strong {
  color: var(--accent);
}

.wf-output__msg em {
  color: var(--good);
  font-style: normal;
  font-weight: 600;
}

.wf-output__caption {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 12px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.wf-output__caption svg {
  flex-shrink: 0;
  color: var(--good);
}

/* --- Stats bar --- */
.wf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.wf-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.wf-stats__icon {
  color: var(--accent);
}

.wf-stats__value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.wf-stats__label {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* --- Staggered entrance animations --- */
.wf-step,
.wf-agent-card,
.wf-hub,
.wf-output,
.wf-loss-split,
.wf-incoming,
.wf-channels-row,
.wf-conclusion {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wf-step.wf-visible,
.wf-agent-card.wf-visible,
.wf-hub.wf-visible,
.wf-output.wf-visible,
.wf-loss-split.wf-visible,
.wf-incoming.wf-visible,
.wf-channels-row.wf-visible,
.wf-conclusion.wf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Workflow responsive --- */
@media (max-width: 1024px) {
  .wf-panel--active { padding: 32px 24px; }
  .wf-col { padding: 24px 20px; }
  .wf-agent-flow { flex-direction: column; gap: 8px; }
  .wf-agent-flow__arrow { transform: rotate(90deg); padding: 2px 0; justify-content: center; }
}

@media (max-width: 768px) {
  .wf-panel--active { padding: 24px 16px; }
  .wf-diagram { grid-template-columns: 1fr; }
  .wf-col--after { border-left: none; border-top: 1px dashed var(--border); }
  .wf-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wf-stats__item { padding: 14px 8px; }
  .wf-stats__value { font-size: var(--font-size-base); }
  .wf-tabs { flex-direction: column; align-items: stretch; gap: 6px; }
  .wf-tab { justify-content: center; }
}

@media (max-width: 480px) {
  .wf-panel--active { padding: 16px 12px; }
  .wf-col { padding: 20px 16px; }
  .wf-step { padding: 10px 14px; }
  .wf-step strong { font-size: var(--font-size-xs); }
  .wf-hub { padding: 16px; }
  .wf-channel { font-size: 0.5625rem; padding: 3px 7px; }
  .wf-incoming__badge { padding: 6px 10px; font-size: 0.625rem; }
  .wf-agent-card { padding: 10px; }
  .wf-agent-card strong { font-size: var(--font-size-xs); }
  .wf-output__msg { font-size: 0.6875rem; }
  .wf-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .wf-stats__value { font-size: var(--font-size-sm); }
  .wf-loss-split { gap: 8px; }
  .wf-loss-split__item { padding: 10px 8px 8px; }
  /* Hide counter badges on small screens */
  .wf-col--before .wf-step::after,
  .wf-agent-card::after { display: none; }
}


.pricing-engine {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 0;
  margin: 64px 0;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
}

.pricing-engine::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(59, 130, 246, 0.02) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.pricing-engine::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.05) 0%, rgba(139, 92, 246, 0.02) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

/* Header area: text + badge */
.pricing-engine__header {
  padding: 40px 48px 32px;
  position: relative;
  z-index: 1;
}

.pricing-engine__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.pricing-engine__header h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-engine__header p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* Visual area: steps + result */
.pricing-engine__visual {
  padding: 0 48px 40px;
  position: relative;
  z-index: 1;
}

/* Steps row */
.pricing-engine__steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.pricing-engine__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.pricing-engine__step:hover {
  background: var(--accent-light);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.pricing-engine__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #3B82F6, #6D28D9);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.pricing-engine__step-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-engine__step-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Connector arrows between steps */
.pricing-engine__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.4;
}

/* Result row: line + badge */
.pricing-engine__result-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pricing-engine__result-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent), #059669);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.15);
}

.pricing-engine__result-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--accent-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.pricing-engine__result-badge:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.pricing-engine__result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  flex-shrink: 0;
}

.pricing-engine__result-text {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-engine__result-sub {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-left: auto;
}

/* Dark mode: invert to dark card */
[data-theme="dark"] .pricing-engine {
  border-color: rgba(59, 130, 246, 0.15);
}

/* ===== SERVICES ACCORDION ===== */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.svc-accordion {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-premium);
  min-height: 560px;
}

.svc-accordion__item {
  background: var(--card-bg);
  transition: background-color 0.3s ease;
  position: relative;
}

/* Left accent bar on active item */
.svc-accordion__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.svc-accordion__item--active::before {
  opacity: 1;
}

.svc-accordion__item + .svc-accordion__item {
  border-top: 1px solid var(--border);
}

.svc-accordion__trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.svc-accordion__trigger:hover {
  background: var(--bg-tertiary);
}

.svc-accordion__num {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  transition: color 0.3s ease;
}

.svc-accordion__item--active .svc-accordion__num {
  color: var(--accent);
}

.svc-accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.svc-accordion__item--active .svc-accordion__icon {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.svc-accordion__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: -0.01em;
}

.svc-accordion__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.svc-accordion__item--active .svc-accordion__arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Accordion body: animated expand/collapse */
.svc-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 28px;
}

.svc-accordion__item--active .svc-accordion__body {
  max-height: 200px;
  padding: 0 28px 24px;
}

.svc-accordion__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
  padding-left: 80px;
}

.svc-accordion__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 80px;
}

.svc-accordion__tags span {
  font-size: var(--font-size-xs);
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 500;
}

.svc-accordion__item--active .svc-accordion__tags span {
  background: var(--accent-light);
  color: var(--accent);
}

/* Accordion auto-timer progress bar */
.svc-accordion__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 0 1px 1px 0;
  width: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.svc-accordion__item--active .svc-accordion__progress {
  opacity: 1;
}

.svc-accordion__progress.animating {
  animation: svcProgressFill 5s linear forwards;
}

@keyframes svcProgressFill {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== INDUSTRIES HORIZONTAL CAROUSEL ===== */
.cases-grid {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.ind-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.ind-header__text .section-tag {
  margin-bottom: 12px;
}

.ind-header__text .section-title {
  margin-bottom: 0;
}

.ind-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ind-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.ind-nav__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.ind-nav__btn:active {
  transform: scale(0.95);
}

/* Navigation active state */
.ind-nav__btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.ind-nav__counter {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Scrollable track */
.ind-track {
  position: relative;
}

.ind-track__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ind-track__scroll::-webkit-scrollbar {
  display: none;
}

/* Right fade hint */
.ind-track::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 4px;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}

/* Industry card */
.ind-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ind-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium-hover);
}

.ind-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.ind-card__metric {
  display: block;
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ind-card__metric-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ind-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.ind-card__desc {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* ===== ROI CALCULATOR ===== */
.roi {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.roi__calculator {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 720px;
  margin: 0 auto;
}

.roi__input-group {
  margin-bottom: 32px;
}

.roi__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.roi__slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  transition: background var(--transition-fast);
}

.roi__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: transform var(--transition-fast);
}

.roi__slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.roi__slider-value {
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 12px;
}

.roi__results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px 0;
  margin: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.roi__result {
  text-align: center;
}

.roi__result-label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.roi__result-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.roi__result--lost .roi__result-number {
  color: var(--lost-color);
}

.roi__result--gained .roi__result-number {
  color: var(--gained-color);
}

.roi__result-arrow {
  color: var(--text-muted);
}

.roi__footnote {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* ===== CREDIBILITY BAR ===== */
.credibility {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.credibility__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.credibility__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
}

.credibility__item svg {
  flex-shrink: 0;
  color: var(--accent);
  width: 24px;
  height: 24px;
}

.credibility__text {
  display: flex;
  flex-direction: column;
}

.credibility__text strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.credibility__text span {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

.credibility__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== HOW WE WORK ===== */
.how-we-work {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.hww__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.hww__step {
  position: relative;
  padding: 32px 24px;
  text-align: center;
}

.hww__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #6D28D9 100%);
  color: #fff;
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.hww__connector {
  position: absolute;
  top: 55px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.hww__step:last-child .hww__connector {
  display: none;
}

.hww__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hww__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.hww__duration {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.testimonials__card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.testimonials__stars {
  display: flex;
  gap: 2px;
  color: #F59E0B;
}

.testimonials__quote {
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  flex: 1;
}

.testimonials__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonials__author strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.testimonials__author span {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* ===== FAQ ===== */
.faq {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.faq__list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  font-family: inherit;
  transition: color 0.2s ease;
}

.faq__trigger:hover {
  color: var(--accent);
}

.faq__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq__answer p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== TEAM ===== */
.team {
  padding: 80px 0 72px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Infinite scrolling track */
.team__track {
  overflow: hidden;
  margin-top: 56px;
  padding: 24px 0;
  /* Fade edges for seamless look */
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.team__slide {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: teamScroll 35s linear infinite;
  align-items: stretch;
}

.team__track:hover .team__slide {
  animation-play-state: paused;
}

@keyframes teamScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Horizontal card */
.team__card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 36px 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border);
  width: 480px;
  min-height: 200px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.1), 0 2px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Circular photo with gradient border on hover */
.team__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--border-light);
  transition: all 0.3s ease;
}

.team__card:hover .team__photo {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.15);
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text info block */
.team__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.team__name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team__role {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--accent-light);
  width: fit-content;
  margin: 2px 0 4px;
  transition: all 0.3s ease;
}

.team__card:hover .team__role {
  background: var(--accent);
  color: #fff;
}

.team__bio {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Dark mode */
[data-theme="dark"] .team__card:hover {
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.12), 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.contact__content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__form {
  text-align: left;
  margin-top: 32px;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__field {
  margin-bottom: 16px;
}

.contact__field label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: var(--text-muted);
}

.contact__field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__alt {
  margin-top: 24px;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.contact__alt a {
  color: var(--accent);
  font-weight: 500;
}

.contact__alt a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
}

.footer__legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.footer__legal a {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: var(--accent);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.6s var(--transition-slow), transform 0.6s var(--transition-slow);
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* =============================================================
   PREMIUM DESIGN ENHANCEMENTS
   Layered on top of base styles for elevated visual quality.
   Adds: gradient mesh hero, glass morphism, glow effects,
   gradient text, premium shadows, step counters, social proof.
   ============================================================= */

/* --- Premium custom properties --- */
:root {
  --gradient-accent: linear-gradient(135deg, #2563EB 0%, #6D28D9 100%);
  --glow-sm: 0 0 16px rgba(37, 99, 235, 0.12);
  --glow-md: 0 0 32px rgba(37, 99, 235, 0.16), 0 0 64px rgba(37, 99, 235, 0.05);
  --shadow-premium: 0 1px 2px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04), 0 12px 48px rgba(0, 0, 0, 0.03);
  --shadow-premium-hover: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06), 0 20px 56px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --glow-sm: 0 0 16px rgba(59, 130, 246, 0.15);
  --glow-md: 0 0 32px rgba(59, 130, 246, 0.2), 0 0 64px rgba(59, 130, 246, 0.06);
  --shadow-premium: 0 1px 2px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.15), 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-premium-hover: 0 2px 4px rgba(0, 0, 0, 0.15), 0 8px 24px rgba(0, 0, 0, 0.2), 0 20px 56px rgba(0, 0, 0, 0.18);
}

/* ----- HERO: animated gradient orbs + dot grid ----- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(37, 99, 235, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, black 10%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(109, 40, 217, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: heroOrbFloat 20s ease-in-out infinite;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, 30px) scale(1.05); }
  50% { transform: translate(-20px, -20px) scale(0.95); }
  75% { transform: translate(30px, 15px) scale(1.02); }
}

/* Second orb -- bottom left accent */
.hero .container::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.08) 0%, rgba(37, 99, 235, 0.04) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: heroOrbFloat2 25s ease-in-out infinite;
}

@keyframes heroOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.04); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}

[data-theme="dark"] .hero::before {
  background-image: radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.06) 1px, transparent 0);
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(109, 40, 217, 0.08) 40%, transparent 70%);
}

[data-theme="dark"] .hero .container::before {
  background: radial-gradient(circle, rgba(109, 40, 217, 0.1) 0%, rgba(59, 130, 246, 0.05) 40%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero title accent: gradient text */
.hero__title--accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Section tag: premium bordered pill ----- */
.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px;
  background: var(--accent-light);
  font-size: var(--font-size-xs);
}

[data-theme="dark"] .section-tag {
  border-color: rgba(59, 130, 246, 0.25);
}

/* ----- Premium buttons ----- */
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #1D4ED8);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #1E40AF);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35), 0 0 40px rgba(37, 99, 235, 0.08);
}

.btn--ghost:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.nav__cta {
  background: linear-gradient(135deg, var(--accent), #1D4ED8);
}

.nav__cta:hover {
  background: linear-gradient(135deg, var(--accent-hover), #1E40AF);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

/* ----- Hero dashboard: layered shadow ----- */
.hero-dashboard {
  box-shadow: var(--shadow-premium);
}

.hero-dashboard:hover {
  box-shadow: var(--shadow-premium-hover);
}

/* ----- Case study section: subtle glow ----- */
.case-study {
  position: relative;
  overflow: hidden;
}

.case-study::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

[data-theme="dark"] .case-study::before {
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
}

.case-study .container {
  position: relative;
  z-index: 1;
}

/* ----- Workflow panel: elevated container ----- */
.wf-panel--active {
  box-shadow: var(--shadow-premium);
}

/* ----- Workflow hub: glow effect ----- */
.wf-hub {
  box-shadow: var(--glow-sm), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.wf-hub:hover {
  box-shadow: var(--glow-md), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wf-hub--ai {
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wf-hub--ai:hover {
  box-shadow: 0 0 32px rgba(5, 150, 105, 0.18), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ----- Flow arrows: glowing lines ----- */
.wf-flow-arrow--accent::before {
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.25);
  width: 2.5px;
}

.wf-flow-arrow--good::before {
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.25);
  width: 2.5px;
}

/* ----- Agent cards: hover microinteraction ----- */
.wf-agent-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wf-agent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
}

.wf-agent-card--green:hover {
  border-color: var(--good);
}

/* ----- Step numbers via CSS counters (Before column) ----- */
.wf-col--before {
  counter-reset: wf-step;
}

.wf-col--before .wf-step {
  counter-increment: wf-step;
  position: relative;
  overflow: visible;
}

.wf-col--before .wf-step::after {
  content: counter(wf-step, decimal-leading-zero);
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--bad);
  color: #FFFFFF;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* ----- Agent card numbers via CSS counters ----- */
.wf-agent-flow {
  counter-reset: wf-agent;
}

.wf-agent-card {
  counter-increment: wf-agent;
  position: relative;
}

.wf-agent-card::after {
  content: counter(wf-agent, decimal-leading-zero);
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  z-index: 1;
}

.wf-agent-card--green::after {
  background: var(--good);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* ----- Stats: gradient accent values ----- */
.wf-stats__value {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Stats items: hover lift ----- */
.wf-stats__item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-stats__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

/* ----- Output phone: premium shadow ----- */
.wf-output__phone {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ----- Loss bar: animated height on reveal ----- */
.wf-loss-split__bar {
  animation: wfBarGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-play-state: paused;
}

.wf-loss-split.wf-visible .wf-loss-split__bar {
  animation-play-state: running;
}

@keyframes wfBarGrow {
  from { height: 0; opacity: 0.5; }
  to { height: var(--h, 48px); opacity: 1; }
}

/* ----- Conclusion: subtle glass ----- */
.wf-conclusion {
  backdrop-filter: blur(4px);
}

/* ----- Services accordion: premium depth ----- */
.svc-accordion {
  box-shadow: var(--shadow-premium);
}

.svc-accordion__item--active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(109, 40, 217, 0.01));
}

/* ----- Industry cards: premium gradient border hover ----- */
.ind-card {
  box-shadow: var(--shadow-premium);
  position: relative;
}

.ind-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0), rgba(109, 40, 217, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.3s ease;
  pointer-events: none;
}

.ind-card:hover::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(109, 40, 217, 0.2));
}

.ind-card:hover {
  box-shadow: var(--shadow-premium-hover);
}

/* ----- ROI calculator: elevated + slider upgrade + animated results ----- */
.roi__calculator {
  box-shadow: var(--shadow-premium);
  position: relative;
  overflow: hidden;
}

.roi__calculator::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

[data-theme="dark"] .roi__calculator::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
}

.roi__slider {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent-light), var(--border));
}

.roi__slider::-webkit-slider-thumb {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3), var(--glow-sm);
}

.roi__slider::-moz-range-thumb {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ----- ROI result numbers: emphasis glow ----- */
.roi__result--gained .roi__result-number {
  text-shadow: 0 0 24px rgba(5, 150, 105, 0.12);
}

.roi__result--lost .roi__result-number {
  text-shadow: 0 0 24px rgba(220, 38, 38, 0.1);
}

/* ----- Contact inputs: premium focus glow ----- */
.contact__field input:focus,
.contact__field textarea:focus {
  box-shadow: 0 0 0 3px var(--accent-light), var(--glow-sm);
}

/* ----- Contact section: premium card wrapper ----- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

[data-theme="dark"] .contact::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact__form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  transition: box-shadow 0.3s ease;
}

.contact__form:focus-within {
  box-shadow: var(--shadow-premium-hover), 0 0 40px rgba(37, 99, 235, 0.04);
}

.contact__form .btn--primary {
  margin-top: 8px;
}

/* ----- Footer: gradient separator + premium links ----- */
.footer {
  border-top: none;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.footer__brand .nav__logo-mark {
  background: var(--gradient-accent);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.2);
}

.footer__links a {
  position: relative;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.footer__links a:hover::after {
  width: 100%;
}

.footer__legal a {
  position: relative;
}

.footer__legal a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.footer__legal a:hover::after {
  width: 100%;
}

/* === End of premium enhancements === */

/* ----- Global micro-interactions ----- */

/* Nav CTA: subtle shine sweep on hover */
.nav__cta {
  position: relative;
  overflow: hidden;
}

.nav__cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.nav__cta:hover::after {
  left: 125%;
}

/* Primary button: subtle shine sweep on hover */
.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn--primary:hover::after {
  left: 125%;
}

/* Accordion icon: glow on active */
.svc-accordion__item--active .svc-accordion__icon {
  transform: scale(1.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Industry card badge: lift on hover */
.ind-card:hover .ind-card__badge {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Section tag: fade-in on reveal */
.section-tag {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hero dashboard: pulsing border glow on hover */
.hero-dashboard:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .hero-dashboard:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

/* Smooth image/icon transitions for all interactive cards */
.svc-accordion__icon,
.ind-card__badge,
.wf-tab {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tab active: subtle scale pulse */
.wf-tab--active {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

/* ROI slider thumb: glow on drag */
.roi__slider:active::-webkit-slider-thumb {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3), 0 0 24px rgba(37, 99, 235, 0.15);
  transform: scale(1.15);
}

/* Nav logo mark: gradient background */
.nav__logo-mark {
  background: var(--gradient-accent);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nav__logo:hover .nav__logo-mark {
  box-shadow: 0 2px 16px rgba(37, 99, 235, 0.25);
  transform: scale(1.05);
}

/* ===== STICKY CTA BAR ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.sticky-cta--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sticky-cta__text {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.btn--sm {
  padding: 8px 20px;
  font-size: var(--font-size-sm);
  min-height: auto;
}

/* ===== RESPONSIVE ===== */
/*
  Device reference (CSS viewport widths):
  - Galaxy Z Fold folded:  344 x 882
  - Samsung Galaxy S24:    360 x 780
  - iPhone SE 3 / 12 mini: 375 x 667 / 812
  - Samsung Galaxy S24+:   384 x 854
  - iPhone 14/13/12:       390 x 844
  - iPhone 15/15 Pro/16:   393 x 852
  - iPhone 16 Pro:         402 x 874
  - Google Pixel 8/9:      412 x 915
  - iPhone 15/16 Plus:     430 x 932
  - iPhone 15/16 Pro Max:  430 x 932
  - iPhone 16 Pro Max:     440 x 956
  - iPhone 17 Pro Max:     ~440 x 956
*/

/* --- Ultra-wide displays (>=2560px) --- */
@media (min-width: 2560px) {
  :root {
    --container-width: 1600px;
    --section-padding: 160px;
    --font-size-5xl: 4.5rem;
    --font-size-4xl: 3.5rem;
    --font-size-3xl: 2.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-xl: 1.5rem;
    --font-size-lg: 1.25rem;
    --font-size-base: 1.125rem;
    --font-size-sm: 1rem;
    --font-size-xs: 0.875rem;
  }

  .container { padding: 0 48px; }
  .nav__container { max-width: var(--container-width); height: 80px; padding: 0 48px; }
  .nav__logo-mark { width: 40px; height: 40px; font-size: var(--font-size-base); }
  .nav__links { gap: 48px; }
  .hero .container { gap: 120px; }
  .pricing-engine__header { padding: 48px 64px 36px; }
  .pricing-engine__visual { padding: 0 64px 48px; }
  .svc-accordion__trigger { padding: 24px 36px; }
  .svc-accordion__desc { padding-left: 88px; }
  .svc-accordion__tags { padding-left: 88px; }
  .ind-card { flex: 0 0 320px; }
  .roi__calculator { padding: 64px; max-width: 900px; }
  .contact__content { max-width: 800px; }
  .hero-dashboard { border-radius: 16px; }
}

/* --- Large desktop (>=1920px) --- */
@media (min-width: 1920px) and (max-width: 2559px) {
  :root {
    --container-width: 1440px;
    --section-padding: 140px;
    --font-size-5xl: 4rem;
    --font-size-4xl: 3rem;
    --font-size-3xl: 2.25rem;
    --font-size-2xl: 1.75rem;
    --font-size-xl: 1.375rem;
    --font-size-lg: 1.125rem;
    --font-size-base: 1.0625rem;
    --font-size-sm: 0.9375rem;
    --font-size-xs: 0.8125rem;
  }

  .container { padding: 0 40px; }
  .nav__container { max-width: var(--container-width); height: 72px; padding: 0 40px; }
  .hero .container { gap: 100px; }
  .ind-card { flex: 0 0 310px; }
  .pricing-engine__header { padding: 44px 56px 32px; }
  .pricing-engine__visual { padding: 0 56px 44px; }
  .roi__calculator { padding: 56px; max-width: 840px; }
}

/* --- Wide desktop (>=1440px) --- */
@media (min-width: 1440px) and (max-width: 1919px) {
  :root {
    --container-width: 1320px;
    --section-padding: 128px;
    --font-size-5xl: 3.75rem;
  }

  .container { padding: 0 36px; }
  .hero .container { gap: 96px; }
  .ind-card { flex: 0 0 300px; }
}

/* --- Small desktop / large tablet (<=1200px) --- */
@media (max-width: 1200px) {
  .hero .container { gap: 60px; }
  .ind-card { flex: 0 0 280px; }
}

/* --- Tablet (<=1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
    --font-size-5xl: 2.75rem;
    --font-size-4xl: 2.25rem;
    --font-size-3xl: 1.75rem;
  }

  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 480px; }
  .hero__subtitle { max-width: 100%; }
  .pricing-engine__steps { flex-direction: column; gap: 12px; }
  .pricing-engine__connector { transform: rotate(90deg); padding: 4px 0; }
  .svc-accordion__desc { padding-left: 72px; }
  .svc-accordion__tags { padding-left: 72px; }
  .ind-card { flex: 0 0 260px; }
}

/* --- Small tablet (<=900px) --- */
@media (max-width: 900px) {
  .hww__timeline { grid-template-columns: repeat(2, 1fr); }
  .hww__step:nth-child(2) .hww__connector { display: none; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .team__card { min-width: 300px; }
}

/* --- Mobile common (<=768px) --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    gap: 0;
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
    z-index: 99;
  }

  .nav__links.active { display: flex; }
  .nav__links .nav__link {
    padding: 16px 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-size-lg);
  }
  .nav__cta { display: none; }
  .nav__burger { display: flex; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .theme-toggle { min-width: 44px; min-height: 44px; }
  .hero__title { font-size: var(--font-size-4xl); }
  .hero__subtitle { font-size: var(--font-size-base); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; min-height: 48px; }
  .hero__visual { max-width: 100%; }
  .svc-accordion__trigger { padding: 16px 20px; }
  .svc-accordion__desc { padding-left: 0; font-size: var(--font-size-xs); }
  .svc-accordion__tags { padding-left: 0; }
  .ind-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ind-card { flex: 0 0 260px; padding: 24px; }
  .contact__row { grid-template-columns: 1fr; }
  .contact__field input, .contact__field textarea { min-height: 48px; font-size: 16px; }
  .roi__results { flex-direction: column; gap: 16px; }
  .roi__result-arrow { transform: rotate(90deg); }
  .footer__top { flex-direction: column; gap: 24px; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 16px; }
  /* Credibility bar: stack */
  .credibility__grid { flex-direction: column; align-items: stretch; gap: 0; }
  .credibility__divider { width: 100%; height: 1px; }
  .credibility__item { padding: 12px 0; }
  /* How We Work: single column */
  .hww__timeline { grid-template-columns: 1fr; gap: 0; }
  .hww__connector { display: none; }
  .hww__step { text-align: left; display: flex; flex-direction: column; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border); }
  .hww__step:last-child { border-bottom: none; }
  /* Testimonials: single column */
  .testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
  .team__card { min-width: 280px; padding: 16px 20px 16px 16px; gap: 16px; }
  .team__photo { width: 64px; height: 64px; }
  /* FAQ: smaller padding */
  .faq__trigger { font-size: var(--font-size-sm); padding: 16px 0; }
  .faq__trigger svg { flex-shrink: 0; }
  .faq__answer p { font-size: var(--font-size-sm); line-height: 1.65; }
  .footer__bottom { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .pricing-engine__header { padding: 28px 24px 20px; }
  .pricing-engine__visual { padding: 0 24px 28px; }
  .pricing-engine__steps { flex-direction: column; gap: 10px; }
  .pricing-engine__connector { transform: rotate(90deg); padding: 2px 0; }
  .pricing-engine__result-badge { padding: 14px 20px; flex-wrap: wrap; }
  .pricing-engine__result-sub { margin-left: 0; }
  .section-title { font-size: var(--font-size-3xl); }
  .section-subtitle { font-size: var(--font-size-base); margin-bottom: 32px; }
  .section-tag { font-size: 0.6875rem; padding: 6px 16px; }
  .svc-accordion__icon { width: 36px; height: 36px; }
  .svc-accordion { min-height: auto; }
  .ind-card { flex: 0 0 240px; padding: 20px; }
  .roi__slider::-webkit-slider-thumb { width: 28px; height: 28px; }
  .roi__slider::-moz-range-thumb { width: 28px; height: 28px; }
  .roi__calculator { border-radius: var(--radius-lg); }
  .roi__results { gap: 12px; }
  .roi__result-card { padding: 16px; }
  /* Team carousel: smaller cards */
  .team__track { margin-top: 36px; padding: 12px 0; }
  .team__card { width: 340px; min-height: auto; padding: 20px 24px 20px 16px; gap: 16px; }
  .team__photo { width: 72px; height: 72px; }
  .team__name { font-size: var(--font-size-base); }
  .team__role { font-size: 0.6rem; padding: 3px 10px; }
  .team__bio { font-size: var(--font-size-xs); }
  /* Testimonials: smaller card padding */
  .testimonials__grid { margin-top: 32px; gap: 16px; }
  .testimonials__card { padding: 24px; gap: 12px; }
  .testimonials__quote { font-size: var(--font-size-sm); line-height: 1.65; }
  .testimonials__author { padding-top: 12px; }
  /* Contact: gap fix */
  .contact__form { margin-top: 24px; }
  .contact__content .section-subtitle { margin-bottom: 8px; }
  .contact__form .btn { width: 100%; min-height: 48px; }
  /* Sticky CTA: more compact */
  .sticky-cta { padding: 10px 0; }
  .sticky-cta__inner { gap: 12px; }
  .sticky-cta__text { font-size: var(--font-size-xs); }
  /* Footer: stack neatly */
  .footer { padding: 36px 0 24px; }
  .footer__brand { font-size: var(--font-size-base); }
  /* Credibility: tighter */
  .credibility__item { padding: 10px 0; }
  .credibility__number { font-size: var(--font-size-2xl); }
  .credibility__label { font-size: var(--font-size-xs); }
  /* How We Work */
  .hww { padding: var(--section-padding) 0; }
  .hww__icon { width: 48px; height: 48px; }
  .hww__title { font-size: var(--font-size-base); }
  .hww__desc { font-size: var(--font-size-xs); }
  .dash-card { padding: 12px 14px; }
  .dash-card__row { font-size: 12px; }
  .dash-step { font-size: 11px; gap: 6px; }
  .dash-step__icon { width: 14px; height: 14px; }
  .dash-step__spinner { width: 10px; height: 10px; }
  .dash-card__status { font-size: 11px; }
  .dash-card__event { font-size: 0.8125rem; }
  .hero-dashboard__title { font-size: 11px; }
  .hero-dashboard__badge { font-size: 9px; }
}

/* =============================================================
   DEVICE-SPECIFIC PHONE BREAKPOINTS
   ============================================================= */

/* --- iPhone 16 Pro Max / iPhone 17 Pro Max (440px) --- */
@media (max-width: 440px) and (min-width: 431px) {
  .container { padding: 0 20px; }
  .hero__title { font-size: 1.875rem; line-height: 1.15; }
  .hero__subtitle { font-size: 0.9375rem; }
}

/* --- iPhone 15/16 Plus, Pro Max (430px) --- */
@media (max-width: 430px) {
  :root {
    --section-padding: 52px;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.625rem;
    --font-size-3xl: 1.375rem;
    --font-size-2xl: 1.1875rem;
    --font-size-xl: 1.0625rem;
  }

  .container { padding: 0 20px; }
  .nav__container { padding: 0 20px; }
  .hero__title { font-size: 1.75rem; line-height: 1.15; }
  .section-title { font-size: 1.375rem; }
  .dash-card { padding: 10px 12px; }
  .dash-card__row { font-size: 12px; }
  .dash-step { font-size: 11px; gap: 5px; }
  .dash-step__icon { width: 14px; height: 14px; }
  .dash-step__spinner { width: 10px; height: 10px; }
  .dash-card__status { font-size: 11px; }
  .hero-dashboard__stat-val { font-size: 0.875rem; }
  .svc-accordion__trigger { padding: 14px 16px; gap: 12px; }
  .svc-accordion__num { font-size: 0.625rem; }
  .ind-card { flex: 0 0 230px; padding: 20px; }
  .ind-card__metric { font-size: var(--font-size-2xl); }
  .roi__calculator { padding: 24px; }
  .roi__result-number { font-size: var(--font-size-2xl); }
  .pricing-engine__header { padding: 24px 20px 16px; }
  .pricing-engine__visual { padding: 0 20px 24px; }
  .pricing-engine__header h3 { font-size: var(--font-size-xl); }
  .btn { padding: 12px 20px; font-size: var(--font-size-sm); min-height: 48px; }
  .hero__tag { font-size: var(--font-size-xs); }
  .svc-accordion__tags span { padding: 4px 10px; font-size: 0.625rem; }
  /* Team */
  .team__card { width: 300px; padding: 16px 20px 16px 14px; gap: 14px; }
  .team__photo { width: 64px; height: 64px; }
  .team__name { font-size: var(--font-size-sm); }
  .team__bio { font-size: 0.6875rem; line-height: 1.5; }
  .team__slide { gap: 20px; }
  /* Testimonials */
  .testimonials__card { padding: 20px; gap: 10px; }
  .testimonials__quote { font-size: var(--font-size-xs); }
  .testimonials__author strong { font-size: var(--font-size-xs); }
  /* FAQ */
  .faq__list { margin-top: 32px; }
  .faq__answer p { font-size: var(--font-size-xs); padding-bottom: 16px; }
  /* Contact */
  .contact__field { margin-bottom: 12px; }
  .contact__alt { font-size: var(--font-size-xs); }
  /* Sticky CTA */
  .sticky-cta__text { display: none; }
  .sticky-cta .btn--sm { width: 100%; text-align: center; min-height: 44px; }
  .sticky-cta__inner { padding: 0 20px; }
  /* Credibility */
  .credibility__number { font-size: var(--font-size-xl); }
}

/* --- Google Pixel 8/9 / OnePlus (412px) --- */
@media (max-width: 412px) and (min-width: 403px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 1.625rem; }
  .section-title { font-size: 1.3125rem; }
  .pricing-engine__step { padding: 14px; }
  .pricing-engine__step-label { font-size: 0.75rem; }
}

/* --- iPhone 16 Pro (402px) --- */
@media (max-width: 402px) and (min-width: 394px) {
  .container { padding: 0 18px; }
  .hero__title { font-size: 1.5625rem; }
}

/* --- iPhone 15/15 Pro/16 (393px) + iPhone 14 (390px) --- */
@media (max-width: 393px) {
  :root {
    --section-padding: 48px;
    --font-size-5xl: 1.75rem;
    --font-size-4xl: 1.4375rem;
    --font-size-3xl: 1.25rem;
    --font-size-2xl: 1.0625rem;
    --font-size-xl: 1rem;
  }

  .container { padding: 0 16px; }
  .nav__container { padding: 0 16px; }
  .hero__title { font-size: 1.5rem; letter-spacing: -0.02em; }
  .hero__subtitle { font-size: 0.875rem; line-height: 1.65; }
  .section-title { font-size: 1.25rem; }
  .section-subtitle { font-size: 0.875rem; margin-bottom: 28px; }
  .hero-dashboard { border-radius: 12px; }
  .dash-card { padding: 10px 12px; }
  .dash-card__row { font-size: 11px; }
  .dash-card__event { font-size: 0.8125rem; }
  .dash-step { font-size: 10px; gap: 5px; }
  .dash-step__icon { width: 13px; height: 13px; }
  .dash-step__icon svg { width: 10px; height: 10px; }
  .dash-step__spinner { width: 9px; height: 9px; }
  .dash-card__status { font-size: 10px; }
  .dash-card__progress { gap: 4px; }
  .hero-dashboard__stats { padding: 8px; gap: 6px; }
  .hero-dashboard__stat-val { font-size: 0.8125rem; }
  .hero-dashboard__stat-lbl { font-size: 9px; }
  .hero-dashboard__toolbar { padding: 10px 14px; }
  .hero-dashboard__title { font-size: 10px; }
  .hero-dashboard__badge { font-size: 8px; padding: 2px 6px; }
  .svc-accordion__name { font-size: 0.875rem; }
  .svc-accordion__trigger { padding: 14px 16px; gap: 10px; }
  .ind-card { flex: 0 0 220px; padding: 18px; }
  .ind-card__title { font-size: 0.875rem; }
  .ind-card__metric { font-size: var(--font-size-xl); }
  .ind-nav__btn { width: 36px; height: 36px; }
  .pricing-engine { border-radius: 16px; }
  .pricing-engine__header { padding: 20px 16px 14px; }
  .pricing-engine__visual { padding: 0 16px 20px; }
  .pricing-engine__header h3 { font-size: 1rem; }
  .pricing-engine__header p { font-size: 0.8125rem; }
  .pricing-engine__step { padding: 12px; }
  .pricing-engine__step-label { font-size: 0.6875rem; }
  .pricing-engine__step-desc { font-size: 0.625rem; }
  .pricing-engine__result-badge { padding: 12px 16px; gap: 8px; }
  .pricing-engine__result-icon { width: 32px; height: 32px; }
  .pricing-engine__result-text { font-size: var(--font-size-sm); }
  .pricing-engine__result-sub { font-size: 0.625rem; }
  .roi__calculator { padding: 20px; border-radius: 16px; }
  .roi__label { font-size: 0.8125rem; }
  .roi__slider-value { font-size: 1rem; }
  .roi__result-number { font-size: 1.25rem; }
  .roi__result-label { font-size: 0.6875rem; }
  .roi__footnote { font-size: 0.6875rem; }
  .contact__field label { font-size: 0.8125rem; }
  .footer__links a { font-size: 0.8125rem; }
  /* Team */
  .team__card { width: 270px; padding: 14px 16px 14px 12px; gap: 12px; }
  .team__photo { width: 56px; height: 56px; border-width: 2px; }
  .team__name { font-size: var(--font-size-sm); }
  .team__role { font-size: 0.55rem; padding: 2px 8px; }
  .team__bio { font-size: 0.625rem; line-height: 1.45; }
  .team__slide { gap: 16px; }
  .team__track { margin-top: 28px; }
  /* Testimonials */
  .testimonials__card { padding: 18px; }
  .testimonials__stars svg { width: 14px; height: 14px; }
  /* How We Work */
  .hww__icon { width: 40px; height: 40px; }
  .hww__step { padding: 20px 0; }
}

/* --- Samsung Galaxy S24+/Ultra (384px) --- */
@media (max-width: 384px) and (min-width: 376px) {
  .hero__title { font-size: 1.4375rem; }
  .container { padding: 0 16px; }
}

/* --- iPhone SE 3 / iPhone 12 mini / 13 mini (375px) --- */
@media (max-width: 375px) {
  :root {
    --font-size-5xl: 1.625rem;
    --font-size-4xl: 1.375rem;
    --font-size-3xl: 1.1875rem;
  }

  .container { padding: 0 14px; }
  .nav__container { padding: 0 14px; }
  .hero__title { font-size: 1.375rem; }
  .hero__subtitle { font-size: 0.8125rem; }
  .hero__tag { font-size: 0.6875rem; }
  .section-title { font-size: 1.1875rem; }
  .dash-card { padding: 8px 10px; }
  .dash-card__label { font-size: 10px; }
  .dash-card__event { font-size: 0.75rem; }
  .dash-card__row { font-size: 11px; }
  .dash-step { font-size: 10px; gap: 4px; }
  .dash-step__icon { width: 12px; height: 12px; }
  .dash-step__icon svg { width: 9px; height: 9px; }
  .dash-step__spinner { width: 8px; height: 8px; }
  .dash-card__status { font-size: 10px; }
  .dash-card__progress { gap: 3px; }
  .hero-dashboard__toolbar { padding: 8px 12px; }
  .hero-dashboard__title { font-size: 9px; }
  .hero-dashboard__badge { font-size: 8px; padding: 2px 6px; }
  .hero-dashboard__stats { padding: 6px 8px; gap: 4px; }
  .hero-dashboard__stat { padding: 4px 2px; }
  .hero-dashboard__stat-val { font-size: 0.75rem; }
  .hero-dashboard__stat-lbl { font-size: 8px; }
  .svc-accordion__name { font-size: 0.8125rem; }
  .svc-accordion__icon { width: 32px; height: 32px; }
  .ind-card { flex: 0 0 210px; padding: 16px; }
  .pricing-engine__connector svg { width: 18px; height: 18px; }
  .pricing-engine__step-num { font-size: 0.5625rem; }
  .roi__calculator { padding: 16px; }
  .btn { padding: 10px 18px; font-size: 0.8125rem; min-height: 44px; }
}

/* --- Samsung Galaxy S24 / many Android (360px) --- */
@media (max-width: 360px) {
  :root {
    --section-padding: 40px;
    --font-size-5xl: 1.5rem;
    --font-size-4xl: 1.3125rem;
    --font-size-3xl: 1.125rem;
  }

  .container { padding: 0 12px; }
  .nav__container { padding: 0 12px; }
  .hero { min-height: auto; padding-top: 100px; }
  .hero__title { font-size: 1.3125rem; line-height: 1.3; }
  .hero__subtitle { font-size: 0.8125rem; }
  .hero__tag { font-size: 0.625rem; padding: 4px 8px; }
  .hero__ctas { flex-direction: column; gap: 10px; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .section-title { font-size: 1.125rem; }
  .section-subtitle { font-size: 0.8125rem; }
  .dash-card { padding: 8px 10px; margin: 8px; }
  .dash-card__label { font-size: 9px; }
  .dash-card__event { font-size: 0.6875rem; margin-bottom: 6px; }
  .dash-card__row { font-size: 10px; }
  .dash-step { font-size: 9px; gap: 4px; }
  .dash-step__icon { width: 11px; height: 11px; }
  .dash-step__icon svg { width: 8px; height: 8px; }
  .dash-step__spinner { width: 8px; height: 8px; border-width: 1.5px; }
  .dash-card__status { font-size: 9px; margin-top: 6px; padding-top: 6px; }
  .dash-card__progress { gap: 3px; }
  .hero-dashboard__stats { flex-wrap: wrap; padding: 6px; gap: 4px; }
  .hero-dashboard__stat { padding: 3px 2px; }
  .hero-dashboard__stat-val { font-size: 0.6875rem; }
  .hero-dashboard__stat-lbl { font-size: 7px; }
  .hero-dashboard__toolbar { padding: 6px 10px; }
  .hero-dashboard__dots span { width: 8px; height: 8px; }
  .hero-dashboard__title { font-size: 9px; }
  .hero-dashboard__badge { font-size: 7px; padding: 1px 5px; }
  .svc-accordion { border-radius: var(--radius-lg); }
  .svc-accordion__trigger { padding: 12px 14px; gap: 8px; }
  .svc-accordion__name { font-size: 0.8125rem; }
  .svc-accordion__icon { width: 30px; height: 30px; }
  .svc-accordion__num { display: none; }
  .ind-card { flex: 0 0 200px; padding: 14px; }
  .ind-card__badge { font-size: 0.625rem; margin-bottom: 12px; }
  .ind-card__metric { font-size: var(--font-size-xl); }
  .pricing-engine__header { padding: 16px 12px 12px; }
  .pricing-engine__visual { padding: 0 12px 16px; }
  .pricing-engine__header h3 { font-size: 0.9375rem; }
  .pricing-engine__step { padding: 10px; }
  .pricing-engine__step-label { font-size: 0.625rem; }
  .pricing-engine__step-desc { display: none; }
  .pricing-engine__result-badge { padding: 10px 12px; }
  .pricing-engine__result-text { font-size: 0.8125rem; }
  .pricing-engine__result-sub { display: none; }
  .roi__calculator { padding: 14px; }
  .roi__result-number { font-size: 1.125rem; }
  .contact__form { padding: 16px; }
  .contact__field input,
  .contact__field textarea { font-size: 16px; padding: 10px 12px; }
  .footer { padding: 32px 0 20px; }
  .footer__links { gap: 12px; }
  .footer__links a { font-size: 0.75rem; }
  /* Team */
  .team__card { width: 240px; padding: 12px 14px 12px 10px; gap: 10px; }
  .team__photo { width: 48px; height: 48px; }
  .team__name { font-size: 0.8125rem; }
  .team__role { font-size: 0.5rem; padding: 2px 6px; margin: 1px 0 2px; }
  .team__bio { font-size: 0.5625rem; }
  .team__slide { gap: 14px; }
  .team__info { gap: 2px; }
  /* Testimonials */
  .testimonials__card { padding: 16px; gap: 8px; }
  .testimonials__quote { font-size: 0.75rem; }
  .testimonials__author strong { font-size: 0.6875rem; }
  .testimonials__author span { font-size: 0.625rem; }
  /* FAQ */
  .faq__trigger { font-size: 0.8125rem; padding: 14px 0; }
  .faq__answer p { font-size: 0.75rem; }
  /* Sticky */
  .sticky-cta { padding: 8px 0; }
  .sticky-cta .btn--sm { font-size: 0.8125rem; padding: 8px 16px; }
}

/* --- Samsung Galaxy Z Fold (folded, 344px) --- */
@media (max-width: 344px) {
  .container { padding: 0 10px; }
  .nav__container { padding: 0 10px; }
  .hero__title { font-size: 1.25rem; }
  .hero__subtitle { font-size: 0.75rem; }
  .section-title { font-size: 1.0625rem; }
  .dash-card__row { font-size: 10px; }
  .dash-card__event { font-size: 0.6875rem; }
  .dash-step { font-size: 9px; gap: 3px; }
  .dash-step__icon { width: 10px; height: 10px; }
  .dash-step__icon svg { width: 8px; height: 8px; }
  .dash-step__spinner { width: 7px; height: 7px; border-width: 1.5px; }
  .dash-card__status { font-size: 9px; }
  .dash-card__progress { gap: 2px; }
  .dash-card { margin: 6px; padding: 6px 8px; }
  .hero-dashboard__toolbar { padding: 6px 8px; }
  .hero-dashboard__dots span { width: 7px; height: 7px; }
  .hero-dashboard__title { font-size: 8px; }
  .hero-dashboard__badge { font-size: 7px; }
  .hero-dashboard__stats { padding: 4px 6px; }
  .hero-dashboard__stat-val { font-size: 0.625rem; }
  .hero-dashboard__stat-lbl { font-size: 7px; }
  .svc-accordion__trigger { padding: 10px 12px; }
  .svc-accordion__name { font-size: 0.75rem; }
  .ind-card { flex: 0 0 190px; padding: 12px; }
  .pricing-engine__header { padding: 12px 10px 10px; }
  .pricing-engine__visual { padding: 0 10px 12px; }
  .pricing-engine__step { padding: 8px; }
  .pricing-engine__step-label { font-size: 0.5625rem; }
  .pricing-engine__step-desc { display: none; }
  .pricing-engine__step-num { font-size: 0.5rem; }
  .pricing-engine__connector svg { width: 14px; height: 14px; }
  .pricing-engine__result-badge { padding: 8px 10px; gap: 6px; }
  .pricing-engine__result-icon { width: 28px; height: 28px; }
  .pricing-engine__result-icon svg { width: 14px; height: 14px; }
  .pricing-engine__result-text { font-size: 0.75rem; }
  .pricing-engine__result-sub { display: none; }
  .pricing-engine__badge { font-size: 0.5625rem; padding: 3px 10px; }
  .roi__calculator { padding: 12px; }
  .btn { padding: 8px 14px; font-size: 0.75rem; }
}

/* ===== LANDSCAPE MODES ===== */

/* --- iPhone SE landscape (667px width, short height) --- */
@media (max-height: 380px) and (orientation: landscape) {
  .hero { min-height: 100svh; padding-top: 80px; padding-bottom: 40px; }
  .hero__title { font-size: 1.5rem; }
  .hero__subtitle { font-size: 0.875rem; max-width: 60%; }
  .hero__ctas { flex-direction: row; gap: 12px; }
  section { padding: 32px 0; }
  .nav { padding: 8px 0; }
}

/* --- iPhone Pro Max landscape (932px width) --- */
@media (max-height: 440px) and (min-width: 800px) and (orientation: landscape) {
  .hero { min-height: 100svh; padding-top: 80px; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { max-width: 50%; }
  section { padding: 40px 0; }
  .ind-card { flex: 0 0 260px; }
}

/* --- General landscape fallback (phones) --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh; }
  .hero__ctas { flex-direction: row; }
  section { padding: 36px 0; }
}

/* --- Tall phones (extra space to breathe) --- */
@media (min-height: 900px) and (max-width: 430px) {
  .hero { padding-top: 140px; padding-bottom: 100px; }
  section { padding: var(--section-padding) 0; }
}

/* ===== SAFE AREA (Dynamic Island / Notch) ===== */
@supports (padding-top: env(safe-area-inset-top)) {
  .nav {
    padding-top: env(safe-area-inset-top);
  }
  .hero {
    padding-top: calc(120px + env(safe-area-inset-top));
  }
  .footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* ===== RETINA 3x DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 3dppx) {
  .svc-accordion__item,
  .ind-card,
  .pricing-engine,
  .roi__calculator,
  .contact__form,
  .hero-dashboard {
    border-width: 0.5px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== PRINT ===== */
@media print {
  .nav, .footer, .contact, .roi, #theme-toggle { display: none; }
  body { color: #000; background: #fff; }
  .hero { min-height: auto; padding: 40px 0; }
  section { padding: 20px 0; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
  a { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75rem; }
}
