/* ========================================================
   M DIGITAL AGENCY — Design System & Styles
   Premium, minimalist, Apple-inspired aesthetic
   ======================================================== */

/* --- Design Tokens --- */
:root {
  --bg: #f8f9fb;
  --bg-alt: #f1f3f6;
  --card: #ffffff;
  --card-hover: #fafbfd;
  --text: #111827;
  --text-secondary: #374151;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #dbeafe;
  --brand2: #7c3aed;
  --brand2-light: #ede9fe;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --transition-fast: 180ms ease;
  --transition: 280ms ease;
  --transition-slow: 420ms ease;
  --max-width: 1200px;
  --header-h: 64px;
  --dock-h: 0px; /* dock removed */
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 24px;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Focus States (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 8px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 55ch;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--brand);
  padding: 8px 16px;
}

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

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* --- Chips / Tags --- */
.chip {
  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(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ========================================================
   HEADER & NAVIGATION
   ======================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248,249,251,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  transition: all var(--transition);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Language Switcher --- */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
}

.lang-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.lang-switcher.open .lang-btn svg {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
  min-width: 140px;
  overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  text-align: left;
}

.lang-option:hover {
  background: var(--bg-alt);
}

.lang-option.active {
  color: var(--brand);
  background: var(--brand-light);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(0,0,0,0.04);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Hidden by default on desktop — shown via media query on mobile */
.mobile-nav {
  display: none;
}

/* ========================================================
   HERO SECTION
   ======================================================== */
.hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 750px;
  margin-bottom: 20px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================================
   BRAND STRIP
   ======================================================== */
.brand-strip {
  padding: 32px 0;
  overflow: hidden;
}

.brand-strip-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================================
   BENTO GRID
   ======================================================== */
.bento-section {
  padding: 80px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.03), rgba(124,58,237,0.03));
  opacity: 0;
  transition: opacity var(--transition);
}

.bento-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bento-icon svg {
  width: 22px;
  height: 22px;
}

.bento-icon.blue { background: var(--brand-light); color: var(--brand); }
.bento-icon.purple { background: var(--brand2-light); color: var(--brand2); }
.bento-icon.cyan { background: #cffafe; color: #0891b2; }
.bento-icon.green { background: #d1fae5; color: #059669; }
.bento-icon.amber { background: #fef3c7; color: #d97706; }
.bento-icon.rose { background: #ffe4e6; color: #e11d48; }

.bento-card h3 {
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

.bento-desc {
  font-size: 0.875rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.bento-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--success);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.bento-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-fast);
}

.bento-card:hover .bento-link {
  opacity: 1;
  transform: translateY(0);
}

.bento-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.bento-link:hover svg {
  transform: translateX(3px);
}

/* ========================================================
   TRUST SECTION
   ======================================================== */
.trust-section {
  padding: 80px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.trust-item {
  text-align: center;
  padding: 24px;
}

.trust-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.trust-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* ========================================================
   SERVICES PREVIEW
   ======================================================== */
.services-section {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.125rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  flex: 1;
}

.service-card .btn-ghost {
  align-self: flex-start;
  padding: 4px 0;
}

/* ========================================================
   TABS COMPONENT
   ======================================================== */
.tabs-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

.tab-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tab-main h3 {
  margin-bottom: 12px;
}

.tab-main p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.tab-deliverables {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.tab-deliverables h4 {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  color: var(--text);
}

.tab-deliverables li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
}

.tab-deliverables li:last-child {
  border-bottom: none;
}

.tab-deliverables li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 7px;
}

.tab-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tab-tools .chip {
  font-size: 0.75rem;
  padding: 4px 10px;
}

/* ========================================================
   CAROUSEL / SLIDER
   ======================================================== */
.carousel-section {
  padding: 80px 0;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  user-select: none;
}

.carousel-track.dragging {
  cursor: grabbing;
  transition: none;
}

.carousel-slide {
  min-width: 100%;
  padding: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.carousel-quote {
  font-size: 1.1875rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 60ch;
}

.carousel-quote::before {
  content: '\201C';
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}

.carousel-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light), var(--brand2-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand);
  font-size: 0.875rem;
}

.carousel-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.carousel-role {
  font-size: 0.8125rem;
  color: var(--muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.carousel-btn:hover {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.carousel-dot.active {
  background: var(--brand);
  width: 24px;
  border-radius: 4px;
}

/* ========================================================
   PROCESS TIMELINE
   ======================================================== */
.process-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.timeline-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.timeline-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.timeline-step h4 {
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 auto;
}

/* ========================================================
   ACADEMY TEASER
   ======================================================== */
.academy-section {
  padding: 80px 0;
}

.academy-card {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.academy-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.academy-card h2 {
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.academy-card p {
  color: rgba(255,255,255,0.85);
  max-width: 50ch;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
  position: relative;
}

.academy-card .btn {
  background: #fff;
  color: var(--brand);
  position: relative;
}

.academy-card .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
}

/* ========================================================
   CTA BLOCK
   ======================================================== */
.cta-section {
  padding: 80px 0;
}

.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card p {
  margin: 0 auto 28px;
  font-size: 1.0625rem;
}

.cta-card .hero-ctas {
  justify-content: center;
}

/* ========================================================
   FAQ ACCORDION
   ======================================================== */
.faq-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 700px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(37,99,235,0.2);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-answer-inner {
  padding: 0 24px 18px;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ========================================================
   FOOTER
   ======================================================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-top: 12px;
  max-width: 30ch;
}

.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  display: block;
  padding: 4px 0;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(255,255,255,0.15);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}


/* ========================================================
   MODAL
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal .section-label {
  margin-bottom: 4px;
}

.modal p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.modal-deliverables {
  margin-bottom: 20px;
}

.modal-deliverables h4 {
  font-size: 0.9375rem;
  margin-bottom: 12px;
}

.modal-deliverables li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-deliverables li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========================================================
   CONTACT FORM
   ======================================================== */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  appearance: none;
}

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

.form-input.error,
.form-textarea.error {
  border-color: var(--error);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.channel-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--card);
  color: var(--text-secondary);
}

.channel-option:hover,
.channel-option.selected {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.channel-option input {
  display: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

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

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d1fae5;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  margin: 0 auto;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-item h4 {
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.875rem;
  color: var(--muted);
}

.map-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ========================================================
   ABOUT PAGE
   ======================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

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

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.about-story-visual {
  background: linear-gradient(135deg, var(--brand-light), var(--brand2-light));
  border-radius: var(--radius-xl);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-story-visual svg {
  width: 80px;
  height: 80px;
  color: var(--brand);
  opacity: 0.5;
}

/* ========================================================
   SERVICES PAGE
   ======================================================== */
.service-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
}

.service-detail h3 {
  margin-bottom: 12px;
}

.service-detail p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

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

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.pricing-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 16px;
}

.pricing-card ul {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* ========================================================
   MOBILE STICKY BAR
   ======================================================== */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  justify-content: center;
  gap: 8px;
}

.sticky-bar .btn {
  flex: 1;
  max-width: 200px;
  font-size: 0.8125rem;
  padding: 10px 16px;
}

/* ========================================================
   SCROLL REVEAL ANIMATIONS
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* ========================================================
   KEYFRAME ANIMATIONS
   ======================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  .about-story-visual {
    height: 240px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
    --dock-h: 0px;
  }

  body {
    padding-bottom: 80px; /* space for sticky bar on mobile */
  }

  .container {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile nav overlay */
  .mobile-nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: rgba(248,249,251,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
  }

  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition-fast);
  }

  .mobile-nav a:hover,
  .mobile-nav a.active {
    background: rgba(37,99,235,0.06);
    color: var(--brand);
  }

  .hero {
    padding: calc(var(--header-h) + 40px) 0 56px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .trust-number {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-slide {
    padding: 28px 20px;
  }

  .carousel-quote {
    font-size: 1rem;
  }

  .academy-card {
    padding: 36px 24px;
  }

  .cta-card {
    padding: 36px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .sticky-bar {
    display: flex;
  }

  .modal {
    padding: 28px 20px;
    max-height: 90vh;
    margin: auto 12px;
  }

  .tabs-nav {
    gap: 0;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 0.8125rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-strip-inner {
    gap: 6px;
  }

  .chip {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* ========================================================
   REDUCED MOTION
   ======================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .carousel-track {
    transition: none;
  }

}

/* ========================================================
   PRINT STYLES (basic)
   ======================================================== */
@media print {
  .header, .sticky-bar, .modal-overlay {
    display: none !important;
  }

  body {
    padding: 0;
    background: #fff;
  }
}
