/* ============================================================
   EFORGE — Design System
   Modern Software & AI Engineering Company
   ============================================================ */

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text-primary); background: var(--bg-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 600; }
p { max-width: 70ch; }

/* --- CSS VARIABLES --- */
:root {
  /* Colors — Eforge Brand Palette */
  --brand: #1273CA;
  --brand-light: #139DE8;
  --brand-dark: #0F53A8;
  --brand-deep: #083588;
  --brand-accent: #0DD1F8;
  --brand-subtle: #EBF5FF;
  --brand-ghost: rgba(18, 115, 202, 0.06);

  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --bg-tertiary: #F3F4F6;
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9FAFB;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-link: #1273CA;

  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-hover: #CBD5E1;
  --border-focus: #1273CA;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.1);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;
  --space-6xl: 160px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Container */
  --container-max: 1280px;
  --container-wide: 1400px;
  --container-padding: 24px;

  /* Header */
  --header-height: 110px;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* --- TYPOGRAPHY --- */
.h1, h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.h2, h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.h3, h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.h4, h4 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}
h6 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--text-tertiary);
}
.body-lg { font-size: 1.25rem; line-height: 1.7; color: var(--text-secondary); }
.body-md { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }
.body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--text-tertiary); }
.text-xs { font-size: 0.75rem; line-height: 1.5; }
.text-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.875em; }

/* --- LAYOUT --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section {
  padding: var(--space-5xl) 0;
}
.section-lg {
  padding: var(--space-6xl) 0;
}
.section-sm {
  padding: var(--space-4xl) 0;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-secondary);
}
.btn-brand {
  background: var(--brand);
  color: white;
}
.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 0 16px;
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
}
.btn-lg {
  height: 52px;
  padding: 0 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.8125rem;
}
.btn-icon {
  width: 44px;
  padding: 0;
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn:disabled {
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* --- BADGES --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--brand-subtle);
  color: var(--brand);
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.badge-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

/* --- CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}
.card-flat {
  border: none;
  background: var(--bg-secondary);
}
.card-flat:hover {
  background: var(--bg-tertiary);
}
.card-feature {
  padding: var(--space-2xl);
}
.card-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  color: var(--brand);
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

/* --- SECTION HEADERS --- */
.section-header {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}
.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: var(--space-md);
}
.section-header .overline::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}
.section-header p {
  margin-top: var(--space-lg);
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}
.navbar-logo img {
  flex-shrink: 0;
}
.navbar-logo span {
  color: var(--brand);
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  height: 100%;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.nav-link svg.chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
  opacity: 0.5;
}
.nav-link:hover svg.chevron {
  transform: rotate(180deg);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  background: none;
  opacity: 0.5;
}
.lang-btn:hover {
  opacity: 0.8;
}
.lang-btn.active {
  opacity: 1;
  border-color: var(--brand);
}
.lang-btn svg {
  border-radius: 2px;
}

/* --- MEGA MENU --- */
.megamenu-container {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-base);
}
.megamenu-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.megamenu-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-xl) var(--container-padding);
  display: grid;
  gap: var(--space-lg);
}
.megamenu-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.megamenu-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 8px 12px;
  margin-bottom: 4px;
}
.megamenu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.megamenu-item:hover {
  background: var(--bg-secondary);
}
.megamenu-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--brand-subtle);
  color: var(--brand);
  flex-shrink: 0;
  font-size: 1rem;
}
.megamenu-item-text h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.megamenu-item-text p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}
.megamenu-footer {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
  display: flex;
  gap: var(--space-lg);
}
.megamenu-footer a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.megamenu-footer a:hover {
  text-decoration: underline;
}

/* --- MOBILE MENU --- */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: all var(--transition-fast);
}
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  transition: all var(--transition-fast);
}
.mobile-toggle span::before { transform: translateY(-6px); }
.mobile-toggle span::after { transform: translateY(6px); }
.mobile-toggle.active span { background: transparent; }
.mobile-toggle.active span::before { transform: rotate(45deg); }
.mobile-toggle.active span::after { transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: var(--z-overlay);
  overflow-y: auto;
  padding: var(--space-xl) var(--container-padding);
}
.mobile-menu.active {
  display: block;
}
.mobile-menu-group {
  margin-bottom: var(--space-xl);
}
.mobile-menu-group h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-sm);
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 450;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}
.mobile-menu-link .desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* --- HERO --- */
.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: var(--space-6xl);
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 800px;
}
.hero .badge {
  margin-bottom: var(--space-lg);
}
.hero h1 {
  margin-bottom: var(--space-lg);
}
.hero .body-lg {
  margin-bottom: var(--space-2xl);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--space-5xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  margin-top: var(--space-md);
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-lg);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: white;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
}
.footer-social {
  display: flex;
  gap: var(--space-md);
}
.footer-social a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}
.footer-social a:hover {
  color: white;
}

/* --- CTA SECTION --- */
.cta-section {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  text-align: center;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}
.cta-section p {
  color: rgba(255,255,255,0.65);
  margin: 0 auto var(--space-2xl);
  font-size: 1.125rem;
}
.cta-section .btn-brand {
  background: white;
  color: var(--text-primary);
}
.cta-section .btn-brand:hover {
  background: #F1F5F9;
}

/* --- TABS --- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- ACCORDION --- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-size: 1.0625rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}
.accordion-trigger svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.accordion-item.active .accordion-trigger svg {
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.accordion-item.active .accordion-content {
  max-height: 500px;
}
.accordion-body {
  padding-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xl);
}
.breadcrumb a {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* --- PAGE HERO (for inner pages) --- */
.page-hero {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: var(--space-4xl);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.page-hero h1 {
  margin-bottom: var(--space-lg);
}
.page-hero .body-lg {
  max-width: 640px;
}

/* --- WORKFLOW DIAGRAM --- */
.workflow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.workflow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 450;
}
.workflow-arrow {
  color: var(--text-tertiary);
  font-size: 1.25rem;
}

/* --- TECH GRID --- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 450;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.tech-badge:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- UTILITY --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.text-gradient { background: linear-gradient(135deg, var(--brand) 0%, #7C3AED 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bg-secondary { background: var(--bg-secondary); }
.bg-dark { background: var(--bg-dark); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  /* Show mobile menu on tablet — too many nav items */
  .navbar-nav { display: none; }
  .mobile-toggle { display: flex; }
  .navbar-actions { margin-left: auto; }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --header-height: 80px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
  .section { padding: var(--space-3xl) 0; }
  .section-lg { padding: var(--space-4xl) 0; }
  .hero { padding-top: calc(var(--header-height) + 48px); padding-bottom: var(--space-4xl); }
  .page-hero { padding-top: calc(var(--header-height) + 40px); padding-bottom: var(--space-2xl); }
  .workflow { flex-direction: column; }
  .workflow-arrow { transform: rotate(90deg); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .cta-section { padding: var(--space-2xl) var(--space-lg); }
}

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

/* --- 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;
  }
  .animate-in {
    opacity: 1;
    transform: none;
  }
}
