/* ============================================
   MESONAI — Global Stylesheet (Light Theme)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ── */
:root {
  --bg:          #f7f6f3;
  --bg2:         #efede8;
  --bg3:         #ffffff;
  --teal:        #00b896;
  --teal-dim:    #009678;
  --teal-glow:   rgba(0,184,150,0.08);
  --teal-border: rgba(0,184,150,0.22);
  --white:       #ffffff;
  --text:        #1a1a1a;
  --muted:       #5c5a6e;
  --faint:       #9896a8;
  --border:      rgba(0,0,0,0.08);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius:      12px;
  --radius-lg:   18px;
  --transition:  0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Grid background ── */
.grid-bg {
  background: var(--bg);
}

/* ── Typography ── */
h1,h2,h3,h4,h5 { line-height: 1.15; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p  { color: var(--muted); line-height: 1.7; }

.teal { color: var(--teal); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-sub   { max-width: 600px; margin: 0 auto 3rem; text-align: center; font-size: 1.05rem; }
.text-center   { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--teal-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,184,150,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding: 0;
  font-size: 0.9rem;
}
.btn-ghost:hover { opacity: 0.75; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247,246,243,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(247,246,243,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--teal); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 5%;
  z-index: 999;
  flex-direction: column;
  gap: 1.2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--teal); }

/* ── Sections ── */
section { padding: 90px 5%; }
.container { max-width: 1200px; margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.card:hover {
  border-color: var(--teal-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 0 1px var(--teal-border);
}

.icon-box {
  width: 52px; height: 52px;
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  color: var(--teal);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero p  { font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,184,150,0.06) 0%, transparent 70%);
  top: -100px; right: -200px;
  pointer-events: none;
  z-index: 1;
}
.hero-glow-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,184,150,0.04) 0%, transparent 70%);
  bottom: 0; left: -100px;
  pointer-events: none;
  z-index: 1;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 140px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; max-width: 600px; margin: 0 auto; color: var(--muted); }
.page-hero-glow {
  position: absolute;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,184,150,0.06) 0%, transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ── 3-col / 4-col grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }

/* ── Stat chips ── */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  padding: 4px 10px;
  border-radius: 50px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ── Workflow Cards ── */
.workflow-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--card-shadow);
}
.workflow-card:hover {
  border-color: var(--teal-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.workflow-card .wf-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--teal-glow);
  color: var(--teal);
  border: 1px solid var(--teal-border);
  display: inline-block;
  margin-bottom: 1rem;
}
.workflow-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--text); }
.workflow-card p  { font-size: 0.9rem; margin-bottom: 1.2rem; color: var(--muted); }
.workflow-card .wf-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.2rem;
}
.wf-step {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
}
.workflow-card .wf-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Filter tabs ── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-tab {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--teal-glow);
  border-color: var(--teal-border);
  color: var(--teal);
}

/* ── Flow Diagram ── */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 2rem 0;
}
.flow-node {
  background: var(--bg3);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
  text-align: center;
  min-width: 220px;
  position: relative;
  z-index: 2;
  box-shadow: var(--card-shadow);
}
.flow-node-title { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.flow-node-icon {
  font-size: 1.4rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.flow-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  opacity: 0.4;
  margin: 0 auto;
}
.flow-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  width: 100%;
}

/* ── Integration Grid ── */
.integration-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--card-shadow);
}
.integration-item:hover {
  border-color: var(--teal-border);
  background: var(--teal-glow);
  transform: translateY(-3px);
}
.integration-item .int-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
}
.integration-item .int-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.integration-item .int-desc { font-size: 0.75rem; color: var(--muted); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), transparent);
}
.timeline-item { position: relative; padding: 0 0 2.5rem 2rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px; top: 6px;
  width: 14px; height: 14px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--teal-glow);
}
.timeline-item .year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.timeline-item h4 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text); }
.timeline-item p { font-size: 0.9rem; color: var(--muted); }

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.stat-item .stat-num span { color: var(--teal); }
.stat-item p { font-size: 0.85rem; margin-top: 0.4rem; color: var(--muted); }

/* ── CTA Banner (kept dark for contrast) ── */
.cta-banner {
  background: #0d1421;
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,184,150,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-banner h2 { margin-bottom: 1rem; color: #fff; }
.cta-banner p  { max-width: 500px; margin: 0 auto 2rem; font-size: 1.05rem; color: #94a3b8; }
.cta-banner .section-label {
  background: rgba(0,184,150,0.12);
  border-color: rgba(0,184,150,0.25);
}

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo { font-size: 1.3rem; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.9rem; max-width: 240px; color: var(--muted); }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-contact-item i { color: var(--teal); margin-top: 3px; min-width: 14px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ── Divider ── */
.teal-line {
  width: 60px; height: 3px;
  background: var(--teal);
  border-radius: 3px;
  margin: 0 auto 2.5rem;
}
.teal-line-left {
  width: 60px; height: 3px;
  background: var(--teal);
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── Glow pulse ── */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0,184,150,0.15); }
  50%       { box-shadow: 0 0 32px rgba(0,184,150,0.35); }
}
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Contact form ── */
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select { appearance: none; cursor: pointer; }

/* ── Founders ── */
.founder-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}
.founder-card:hover {
  border-color: var(--teal-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.founder-avatar {
  width: 90px; height: 90px;
  background: var(--teal-glow);
  border: 2px solid var(--teal-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
  color: var(--teal);
}
.founder-role {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* ── Feature list ── */
.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { color: var(--teal); margin-top: 3px; min-width: 16px; }

/* ── Comparison table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.compare-table th {
  background: var(--bg2);
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--teal); font-weight: 600; }
.compare-table .no  { color: var(--faint); }
.compare-table .highlight td { background: var(--teal-glow); }

/* ── Approach steps ── */
.approach-step {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}
.approach-step:hover {
  border-color: var(--teal-border);
  border-left-color: var(--teal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.approach-step h4 {
  color: var(--teal);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.approach-step p { font-size: 0.9rem; color: var(--muted); }

/* ── Video showcase (workflow detail) ── */
.workflow-hero {
  padding: 110px 5% 70px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.workflow-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.workflow-hero-text .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 2rem;
  transition: var(--transition);
  box-shadow: var(--card-shadow);
}
.workflow-hero-text .back-btn:hover {
  color: var(--teal);
  border-color: var(--teal-border);
}
.workflow-hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.workflow-hero-text h1 .strikethrough {
  text-decoration: line-through;
  color: var(--faint);
  font-weight: 400;
}
.workflow-hero-text h1 .highlight { color: var(--teal); }
.workflow-hero-text .sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.workflow-checklist {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.workflow-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.workflow-checklist li i { color: var(--teal); }
.video-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  position: relative;
  background: #000;
}
.video-wrapper video {
  width: 100%;
  display: block;
}

/* ── How It Works steps ── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 52px; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(to right, var(--teal), transparent, var(--teal));
  opacity: 0.3;
}
.how-step {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}
.how-step:hover {
  border-color: var(--teal-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.how-step-icon {
  width: 60px; height: 60px;
  background: var(--teal-glow);
  border: 1px solid var(--teal-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--teal);
  margin: 0 auto 1rem;
}
.how-step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--teal);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}
.how-step h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.how-step p  { font-size: 0.9rem; color: var(--muted); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(6px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 580px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
  font-size: 0.9rem;
}
.modal-close:hover { color: var(--text); background: var(--bg); }
.modal-box h3 { font-size: 1.2rem; margin: 0.5rem 0 0.8rem; padding-right: 2rem; }
.modal-box > p { font-size: 0.92rem; margin-bottom: 1.5rem; }
.modal-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--bg2);
  border-radius: var(--radius);
}
.modal-flow-step {
  background: var(--bg3);
  border: 1px solid var(--teal-border);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}
.modal-flow-arrow {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
}
.modal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5rem; }

/* ── Featured workflow cards (on workflows page) ── */
.featured-wf-card {
  background: var(--bg3);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,184,150,0.08);
  display: block;
  position: relative;
  overflow: hidden;
}
.featured-wf-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dim));
}
.featured-wf-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,184,150,0.15);
}
.featured-wf-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.featured-wf-card p  { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.featured-wf-card .view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-row  { grid-template-columns: repeat(2,1fr); }
  .how-steps  { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .workflow-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  section { padding: 60px 5%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr; }
  .grid-2  { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-btns { flex-direction: column; }
  .flow-row  { flex-direction: column; align-items: center; }
  .workflow-hero { padding: 100px 5% 50px; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
}
