/* =============================================
   DocEngine Landing Page — Design System & Layout
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --navy: #16163a;
  --navy-light: #1e1e52;
  --navy-dark: #0e0e28;
  --blue: #4174b9;
  --blue-light: #5a8fd4;
  --blue-pale: #e8f0fe;
  --orange: #FA6511;

  /* Status */
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;
  --cyan: #06B6D4;
  --indigo: #6366F1;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #636E72;
  --gray-700: #374151;
  --gray-900: #2D3436;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0e0e28 0%, #16163a 40%, #1a2555 70%, #1e3a6e 100%);
  --gradient-accent: linear-gradient(135deg, #4174b9, #5a8fd4);
  --gradient-card-hover: linear-gradient(135deg, rgba(65,116,185,0.06), rgba(90,143,212,0.06));

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.25rem, 1.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 2vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 3vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 4vw, 3rem);
  --text-hero: clamp(2.5rem, 5vw, 3.75rem);

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 7rem);
  --container-px: 1.5rem;

  /* Misc */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }
ul { list-style: none; }

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

/* --- Section --- */
.section {
  padding: var(--section-py) 0;
}
.section--alt {
  background: var(--gray-50);
}
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.section__overline {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.section__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius);
  padding: 0.625rem 1.25rem;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn__icon { width: 18px; height: 18px; }
.btn__icon--left { order: -1; }

.btn--primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(65,116,185,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65,116,185,0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}
.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--lg { padding: 0.875rem 1.75rem; font-size: var(--text-base); }
.btn--full { width: 100%; }

/* --- Text Gradient --- */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Dots (window controls) --- */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }


/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
}
.header--scrolled {
  background: rgba(22, 22, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 0.75rem 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo-img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}
.header__nav {
  display: none;
  gap: 2rem;
}
.header__link {
  color: rgba(255,255,255,0.8);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.header__link:hover,
.header__link.active {
  color: var(--white);
}
.header__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}
.header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-menu__link {
  color: var(--white);
  font-size: var(--text-2xl);
  font-weight: 600;
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--blue-light); }
.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}


/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 6rem 0 4rem;
}

/* Decorative Orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: rgba(65, 116, 185, 0.15);
  top: -100px;
  right: -100px;
}
.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: rgba(90, 143, 212, 0.1);
  bottom: -50px;
  left: -80px;
}
.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(250, 101, 17, 0.08);
  top: 40%;
  left: 20%;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.hero__content {
  max-width: 600px;
}

/* Hero Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(65, 116, 185, 0.15);
  border: 1px solid rgba(65, 116, 185, 0.25);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Illustration */
.hero__visual {
  display: flex;
  justify-content: center;
}
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3.5;
}
.hero-illustration__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-illustration__doc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.hero-illustration__doc-header {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-illustration__doc-header .dot { width: 7px; height: 7px; }
.hero-illustration__doc-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-line {
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  width: 100%;
}
.doc-line--title {
  height: 8px;
  width: 60%;
  background: rgba(65,116,185,0.4);
  margin-bottom: 4px;
}
.doc-line--short { width: 45%; }
.doc-line--medium { width: 75%; }
.doc-line--accent { background: rgba(65,116,185,0.4); }
.doc-line--typed { background: rgba(250,101,17,0.3); }

/* Floating nodes */
.hero-illustration__node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(65,116,185,0.15);
  border: 1px solid rgba(65,116,185,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-illustration__node .node-icon {
  width: 20px;
  height: 20px;
  color: var(--blue-light);
}
.hero-illustration__node--1 { top: 5%; left: 10%; }
.hero-illustration__node--2 { top: 8%; right: 8%; }
.hero-illustration__node--3 { bottom: 5%; left: 12%; }
.hero-illustration__node--4 { bottom: 8%; right: 5%; }


/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 3rem 0;
}
.stats-strip__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.stats-strip__item {
  text-align: center;
  padding: 0.5rem 1.5rem;
}
.stats-strip__number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.stats-strip__plus {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--blue);
}
.stats-strip__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: 0.25rem;
}
.stats-strip__divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
  display: none;
}


/* ===== FEATURES GRID ===== */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  border-top: 3px solid transparent;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--blue);
  background: var(--gradient-card-hover);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-card__icon svg,
.feature-card__icon i { width: 24px; height: 24px; }
.feature-card__icon--blue    { background: var(--blue-pale); color: var(--blue); }
.feature-card__icon--green   { background: #D1FAE5; color: var(--green); }
.feature-card__icon--purple  { background: #EDE9FE; color: var(--purple); }
.feature-card__icon--orange  { background: #FEF3C7; color: var(--orange); }
.feature-card__icon--cyan    { background: #CFFAFE; color: var(--cyan); }
.feature-card__icon--red     { background: #FEE2E2; color: var(--red); }
.feature-card__icon--indigo  { background: #E0E7FF; color: var(--indigo); }
.feature-card__icon--navy    { background: #E0E0F0; color: var(--navy); }

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
}


/* ===== DEEP DIVE SECTIONS ===== */
.deep-dive__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
.deep-dive__text {
  max-width: 520px;
}
.deep-dive__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.deep-dive__desc {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.deep-dive__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.deep-dive__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
}
.deep-dive__check {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.deep-dive__visual {
  width: 100%;
  max-width: 520px;
}


/* --- Mockup Components --- */
.mockup {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.mockup__bar .dot { width: 8px; height: 8px; }
.mockup__bar-title {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-left: 8px;
}
.mockup__body {
  padding: 1.25rem;
}
.mockup__body--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.mockup__pane {
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mockup__pane--left { background: var(--gray-50); }
.mockup__pane--right { background: var(--blue-pale); }
.mockup__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.mockup__action {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
}
.mockup__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-accent);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
}
.mockup__btn-icon { width: 14px; height: 14px; }

/* Quality dashboard mockup */
.mockup__body--quality {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem;
}
.quality-score {
  position: relative;
  flex-shrink: 0;
}
.quality-score__ring { width: 100px; height: 100px; }
.quality-score__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--green);
}
.quality-bars { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.quality-bar__label { font-size: var(--text-xs); color: var(--gray-500); font-weight: 500; margin-bottom: 4px; display: block; }
.quality-bar__track { height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.quality-bar__fill { height: 100%; border-radius: 4px; transition: width 1.5s ease; }
.quality-bar__fill--green { background: var(--green); }
.quality-bar__fill--blue { background: var(--blue); }
.quality-bar__fill--purple { background: var(--purple); }

/* Kanban mockup */
.mockup__body--kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
}
.kanban-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.kanban-col__header {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}
.kanban-col__header--todo { background: #FEF3C7; color: #92400E; }
.kanban-col__header--progress { background: var(--blue-pale); color: var(--blue); }
.kanban-col__header--done { background: #D1FAE5; color: #065F46; }

.kanban-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px;
}
.kanban-card--active { border-left: 3px solid var(--blue); }
.kanban-card--done { opacity: 0.7; }
.kanban-card__tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}
.kanban-card__tag--feature { background: #E0E7FF; color: var(--indigo); }
.kanban-card__tag--story { background: #FEE2E2; color: var(--red); }
.kanban-card__tag--task { background: var(--blue-pale); color: var(--blue); }
.kanban-card__title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.kanban-card__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--gray-400);
}
.kanban-card__icon { width: 12px; height: 12px; }


/* --- Graph Visual (GraphRAG) --- */
.graph-visual {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 38 / 32;
  margin: 0 auto;
}
.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.graph-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-700);
}
.graph-node__icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
}
.graph-node--center .graph-node__icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  background: var(--gradient-accent);
  color: var(--white);
}
.graph-node--center { top: 38%; left: 50%; transform: translate(-50%, -50%); }
.graph-node--tl { top: 5%; left: 12%; }
.graph-node--tr { top: 5%; right: 12%; }
.graph-node--bl { bottom: 5%; left: 15%; }
.graph-node--br { bottom: 5%; right: 12%; }
.graph-node--ml { top: 42%; left: 2%; }
.graph-node--mr { top: 42%; right: 2%; }


/* ===== HOW IT WORKS ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.step__line {
  display: none;
}
.step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}
.step__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  max-width: 260px;
}


/* ===== INTEGRATIONS ===== */
.integrations__group {
  text-align: center;
  margin-bottom: 2.5rem;
}
.integrations__group:last-child { margin-bottom: 0; }
.integrations__group-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.integrations__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.integration-badge:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.integration-badge__icon { width: 18px; height: 18px; color: var(--gray-500); }
.integration-badge__icon--red { color: var(--red); }
.integration-badge__icon--blue { color: var(--blue); }
.integration-badge__icon--green { color: var(--green); }
.integration-badge__icon--gray { color: var(--gray-500); }
.integration-badge__icon--orange { color: var(--orange); }


/* ===== FAQ ===== */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq__item[open] {
  box-shadow: var(--shadow);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-400);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq__item[open] .faq__question::after {
  content: '−';
  color: var(--blue);
}
.faq__item[open] .faq__question {
  color: var(--blue);
}
.faq__answer {
  padding: 0 1.5rem 1.25rem;
}
.faq__answer p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
}


/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: var(--gradient-hero);
  padding: var(--section-py) 0;
  overflow: hidden;
}
.cta-section__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-section__orb--1 {
  width: 300px;
  height: 300px;
  background: rgba(65,116,185,0.2);
  top: -80px;
  left: -80px;
}
.cta-section__orb--2 {
  width: 250px;
  height: 250px;
  background: rgba(250,101,17,0.1);
  bottom: -60px;
  right: -60px;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-section__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta-section__desc {
  font-size: var(--text-lg);
  color: var(--gray-400);
  margin-bottom: 2rem;
}
.cta-section__actions {
  display: flex;
  justify-content: center;
}


/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand { max-width: 320px; }
.footer__logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer__desc {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.footer__socials {
  display: flex;
  gap: 0.75rem;
}
.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer__social:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.footer__social svg,
.footer__social i { width: 16px; height: 16px; }

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-400);
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer__copyright {
  font-size: var(--text-xs);
  color: var(--gray-500);
}
.footer__top-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
}
.footer__top-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.footer__top-btn svg,
.footer__top-btn i { width: 16px; height: 16px; }


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

/* sm: 640px */
@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip__divider {
    display: block;
  }
}

/* md: 768px */
@media (min-width: 768px) {
  :root { --container-px: 2rem; }

  .header__nav {
    display: flex;
  }
  .header__actions {
    display: flex;
  }
  .header__hamburger {
    display: none;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
  }
  .hero__content {
    flex: 0 0 55%;
  }
  .hero__visual {
    flex: 0 0 45%;
  }

  .deep-dive__inner {
    flex-direction: row;
    gap: 4rem;
  }
  .deep-dive--reverse .deep-dive__inner {
    flex-direction: row-reverse;
  }
  .deep-dive__text,
  .deep-dive__visual {
    flex: 1;
    max-width: none;
  }

  .steps {
    flex-direction: row;
    gap: 0;
  }
  .step {
    flex: 1;
    position: relative;
  }
  .step__line {
    display: block;
    position: absolute;
    top: 24px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: var(--gray-200);
    border-style: dashed;
  }
  .step:last-child .step__line { display: none; }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero {
    padding: 0;
  }
}

/* xl: 1280px */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding: 0 2.5rem;
  }
}
