/* ============================================================
   EIGENWAVE — Main Stylesheet
   ============================================================ */

/* 1. Design Tokens
   ============================================================ */
:root {
  /* Brand */
  --teal:     #0D9488;
  --teal-mid: #0F766E;
  --teal-l:   #CCFBF1;
  --teal-xl:  #F0FDFA;

  /* Neutrals */
  --dark:   #0B1120;
  --dark2:  #111827;
  --text:   #111827;
  --text2:  #374151;
  --muted:  #6B7280;
  --border: #E5E7EB;
  --bg:     #F8FAFC;
  --white:  #FFFFFF;

  /* Status */
  --red:    #EF4444;
  --green:  #22C55E;
  --blue:   #3B82F6;
  --purple: #8B5CF6;
  --orange: #F97316;

  /* Typography */
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  /* Layout */
  --nav-h:    64px;
  --radius:   14px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-card: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg:   0 24px 80px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.06);

  /* Motion */
  --t: .2s ease;
}

/* 2. Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font-body); }
ul { list-style: none; }

/* Accessibility: skip link */
.skip-link {
  position: absolute; top: -120%; left: 8px;
  background: var(--teal); color: white; padding: 8px 16px;
  border-radius: 0 0 8px 8px; font-size: 14px; font-weight: 600;
  text-decoration: none; z-index: 999; transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* 3. Typography
   ============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.4px; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 600; line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 600; line-height: 1.15; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }

p.lead { font-size: 18px; color: var(--text2); line-height: 1.7; font-weight: 300; }
p.body { font-size: 15.5px; color: var(--text2); line-height: 1.7; }

.text-teal  { color: var(--teal); }
.text-muted { color: var(--muted); }

/* 4. Layout
   ============================================================ */
.container { max-width: 1140px; margin: 0 auto; }
section { padding: 100px 48px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-xl); border: 1px solid var(--teal-l);
  color: var(--teal); font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 100px; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 18px;
}
.section-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
}

/* 5. Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow var(--t);
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.06); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px; position: relative; flex-shrink: 0;
}
.nav-logo-icon::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--teal);
}
.nav-logo-icon::after {
  content: ''; position: absolute; inset: 6px;
  border-radius: 50%; background: #14B8A6; border: 2.5px solid white;
}
.nav-logo-text {
  font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: -0.3px;
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-links a {
  font-size: 14.5px; font-weight: 400; color: var(--text2);
  text-decoration: none; transition: color var(--t);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-links a[aria-current="page"] { font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text); align-items: center; justify-content: center;
  border-radius: 6px; transition: background var(--t);
}
.nav-hamburger:hover { background: var(--bg); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: white; z-index: 190;
  flex-direction: column; padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,.10);
}
.nav-drawer.open { display: flex; }
.nav-drawer > a {
  padding: 14px 4px; font-size: 16px; font-weight: 500; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.nav-drawer > a:hover { color: var(--teal); }
.nav-drawer > a[aria-current="page"] { color: var(--teal); }
.nav-drawer-actions {
  margin-top: 20px; display: flex; flex-direction: column; gap: 10px;
}

/* 6. Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); cursor: pointer; text-decoration: none;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t), opacity var(--t);
  border: none; outline: none;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.btn-ghost {
  font-size: 14px; font-weight: 500; color: var(--text2);
  background: none; border: 1.5px solid var(--border);
  padding: 8px 18px; border-radius: var(--radius-sm);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-primary {
  font-size: 14px; font-weight: 600; color: white;
  background: var(--teal);
  padding: 9px 20px; border-radius: var(--radius-sm);
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-1px); }

.btn-lg {
  font-size: 15px; font-weight: 600; color: white;
  background: var(--teal);
  padding: 13px 28px; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(13,148,136,.3);
}
.btn-lg:hover {
  background: var(--teal-mid); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13,148,136,.35);
}

.btn-outline-lg {
  font-size: 15px; font-weight: 500; color: var(--text);
  background: none; border: 1.5px solid var(--border);
  padding: 12px 24px; border-radius: 10px;
}
.btn-outline-lg:hover { border-color: var(--teal); color: var(--teal); }

.btn-white {
  font-size: 15px; font-weight: 600; color: var(--text);
  background: white;
  padding: 13px 28px; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.btn-white:hover { opacity: .92; transform: translateY(-2px); }

.btn-outline-white {
  font-size: 15px; font-weight: 500; color: white;
  background: none; border: 1.5px solid rgba(255,255,255,.25);
  padding: 12px 24px; border-radius: 10px;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,.6); }

/* 7. Hero — Home
   ============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 84px);
  padding-bottom: 100px;
  padding-left: 48px;
  padding-right: 48px;
  background: var(--white);
  position: relative; overflow: hidden;
}

.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(13,148,136,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,148,136,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,148,136,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--teal-l); background: var(--teal-xl);
  color: var(--teal); font-size: 13px; font-weight: 500;
  padding: 5px 14px 5px 8px; border-radius: 100px; margin-bottom: 24px;
}
.hero-badge-dot {
  width: 18px; height: 18px; background: var(--teal);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-dot::after {
  content: ''; width: 6px; height: 6px; background: white; border-radius: 50%;
}

.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--teal); }

.hero-desc {
  font-size: 18px; color: var(--text2); line-height: 1.7;
  font-weight: 300; margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* 8. Console Mockup (hero visual)
   ============================================================ */
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBC2E; }
.dot-g { background: #28C840; }

.console-mockup {
  background: white;
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.console-topbar {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.console-url { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }
.console-body { display: flex; height: 260px; }

.console-sidebar {
  width: 130px; background: white; border-right: 1px solid var(--border);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0;
}
.cs-logo {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 0 4px;
}
.cs-logo-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.cs-logo span { font-size: 10px; font-weight: 700; color: var(--text); }
.cs-nav-item {
  padding: 5px 8px; border-radius: 6px;
  font-size: 9.5px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.cs-nav-item.active {
  background: var(--teal-xl); color: var(--teal); font-weight: 600;
  border: 1px solid var(--teal-l);
}
.cs-nav-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.console-main { flex: 1; padding: 14px; background: var(--bg); overflow: hidden; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cm-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.cm-label { font-size: 7.5px; color: var(--muted); margin-bottom: 4px; }
.cm-val { font-size: 18px; font-weight: 700; color: var(--text); }
.cm-val.teal  { color: var(--teal); }
.cm-val.red   { color: var(--red); }
.cm-val.green { color: var(--green); }

.cm-chart {
  background: white; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px; margin-bottom: 10px;
  height: 70px; position: relative; overflow: hidden;
}
.cm-chart-label { font-size: 7.5px; color: var(--muted); margin-bottom: 6px; }
.sparkline-svg { width: 100%; height: 40px; }

.cm-table { background: white; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.cm-th {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  padding: 5px 8px; background: var(--bg);
  font-size: 7px; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.cm-tr {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  padding: 5px 8px; font-size: 7.5px; color: var(--text2);
  border-bottom: 1px solid #F3F4F6; align-items: center;
}
.badge-err  { background: #FEF2F2; color: var(--red); }
.badge-ok   { background: #F0FDF4; color: var(--green); }
.badge-warn { background: #FFF7ED; color: var(--orange); }
.cm-badge {
  display: inline-block; padding: 1.5px 6px; border-radius: 20px;
  font-size: 6.5px; font-weight: 700;
}

/* 9. Stats Bar
   ============================================================ */
.stats-bar {
  background: var(--bg); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 36px 48px;
}
.stats-bar-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 32px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 600;
  color: var(--teal); line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--muted); font-weight: 400; }
.stat-divider { width: 1px; height: 48px; background: var(--border); flex-shrink: 0; }

/* 10. Features
   ============================================================ */
.features { background: var(--white); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header p { max-width: 560px; margin: 16px auto 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  background: white; transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--teal); opacity: 0; transition: opacity var(--t);
}
.feature-card:hover {
  border-color: var(--teal-l); box-shadow: 0 8px 32px rgba(13,148,136,.08);
  transform: translateY(-3px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--teal-xl); border: 1px solid var(--teal-l);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 20px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; }
.feature-card p  { font-size: 14.5px; color: var(--text2); line-height: 1.65; }

/* 11. How It Works
   ============================================================ */
.how { background: var(--bg); }
.how-header { text-align: center; margin-bottom: 64px; }
.how-header p { max-width: 520px; margin: 14px auto 0; }

.how-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.how-steps::before {
  content: ''; position: absolute; top: 28px; left: 12%; right: 12%;
  height: 1px; background: var(--teal-l);
}
.how-step { text-align: center; padding: 0 16px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: white; border: 1.5px solid var(--teal-l);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--teal);
  position: relative; z-index: 1; box-shadow: 0 0 0 6px white;
}
.how-step h3 { font-size: 16px; margin-bottom: 8px; }
.how-step p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* 12. Integrations
   ============================================================ */
.integrations { background: white; text-align: center; }
.integrations h2 { margin-bottom: 12px; }
.integrations .lead { margin-bottom: 48px; }
.integration-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.int-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--text2);
  background: white; transition: border-color var(--t), color var(--t);
}
.int-chip:hover { border-color: var(--teal); color: var(--teal); }

/* 13. CTA Banner
   ============================================================ */
.cta-banner {
  background: var(--dark2); color: white;
  padding: 100px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(13,148,136,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2   { color: white; margin-bottom: 16px; position: relative; }
.cta-banner h2 em { font-style: italic; color: #5EEAD4; }
.cta-banner p    { color: #9CA3AF; font-size: 17px; margin-bottom: 36px; position: relative; }
.cta-actions     { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* 14. Footer
   ============================================================ */
.site-footer {
  background: var(--dark2); color: #9CA3AF;
  padding: 56px 48px 32px;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand p {
  font-size: 14px; line-height: 1.65; margin-top: 12px;
  color: #6B7280; max-width: 280px;
}
.footer-brand .nav-logo-text { color: white; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; color: white; margin-bottom: 14px; letter-spacing: 0.4px;
}
.footer-col a {
  display: block; font-size: 13.5px; color: #6B7280;
  text-decoration: none; margin-bottom: 10px; transition: color var(--t);
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: #4B5563;
}
.footer-bottom a { color: #4B5563; text-decoration: none; transition: color var(--t); }
.footer-bottom a:hover { color: var(--teal); }
.footer-social { display: flex; gap: 24px; }

/* 15. Page Heroes (About / Product / Contact)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: 80px;
  padding-left: 48px;
  padding-right: 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero--bg    { background: var(--bg); }
.page-hero--white { background: white; }
.page-hero-inner  { max-width: 800px; margin: 0 auto; text-align: center; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero h1 em { font-style: italic; color: var(--teal); }

/* 16. About — Mission
   ============================================================ */
.mission-section { background: white; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mission-text h2 { margin-bottom: 20px; }
.mission-text p  { margin-bottom: 16px; }
.mission-quote {
  border-left: 3px solid var(--teal); padding-left: 20px; margin: 28px 0;
  font-family: var(--font-display); font-size: 19px; font-style: italic;
  color: var(--text); line-height: 1.5;
}
.mission-visual {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px; text-align: center;
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-item { text-align: center; }
.mv-sep  { grid-column: 1/-1; height: 1px; background: var(--border); margin: 8px 0; }
.value-num {
  font-family: var(--font-display); font-size: 52px; font-weight: 600;
  color: var(--teal); line-height: 1; margin-bottom: 8px;
}
.value-label { font-size: 14px; color: var(--muted); font-weight: 400; }

/* 17. About — Values
   ============================================================ */
.values { background: var(--bg); }
.values-header { text-align: center; margin-bottom: 56px; }
.values-header p { max-width: 480px; margin: 14px auto 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.value-icon { font-size: 28px; margin-bottom: 14px; display: block; }
.value-card h3 { font-size: 17px; margin-bottom: 10px; }
.value-card p  { font-size: 14.5px; color: var(--text2); line-height: 1.65; }

/* 18. About — Team
   ============================================================ */
.team { background: white; }
.team-header { text-align: center; margin-bottom: 56px; }
.team-header p { max-width: 480px; margin: 14px auto 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: white;
}
.team-card h3    { font-size: 16px; margin-bottom: 4px; }
.team-card .role { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.team-card .bio  { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* 19. Product — Full Console Mockup
   ============================================================ */
.console-full-mockup {
  background: white; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 32px 100px rgba(0,0,0,.10); overflow: hidden;
  margin: 64px auto 0; max-width: 960px;
}
.cfm-topbar {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 12px 18px; display: flex; align-items: center; gap: 10px;
}
.cfm-url  { flex: 1; text-align: center; font-size: 11px; color: var(--muted); }
.cfm-live {
  font-size: 10px; background: var(--teal-xl); padding: 2px 10px;
  border-radius: 20px; border: 1px solid var(--teal-l);
  color: var(--teal); font-weight: 600; flex-shrink: 0;
}
.cfm-body { display: flex; min-height: 380px; }
.cfm-sidebar {
  width: 160px; background: white; border-right: 1px solid var(--border);
  padding: 18px 12px; flex-shrink: 0;
}
.cfm-logo { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; padding: 0 4px; }
.cfm-logo-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.cfm-logo span { font-size: 12px; font-weight: 700; color: var(--text); }
.cfm-nav-item {
  padding: 7px 10px; border-radius: 7px;
  font-size: 11px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 8px; margin-bottom: 2px;
}
.cfm-nav-item.active {
  background: var(--teal-xl); color: var(--teal); font-weight: 600;
  border: 1px solid var(--teal-l);
}
.cfm-main { flex: 1; padding: 20px; background: var(--bg); overflow: hidden; }
.cfm-welcome { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cfm-sub     { font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.cfm-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cfm-kpi { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.cfm-kpi-label { font-size: 9px; color: var(--muted); margin-bottom: 5px; }
.cfm-kpi-val   { font-size: 20px; font-weight: 700; color: var(--text); }
.cfm-kpi-val.t { color: var(--teal); }
.cfm-kpi-val.r { color: var(--red); }
.cfm-kpi-val.g { color: var(--green); }
.cfm-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.cfm-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.cfm-card-title { font-size: 10px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.cfm-log-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 9px; color: var(--text2); padding: 4px 0;
  border-bottom: 1px solid #F9FAFB;
}
.cfm-badge { padding: 1.5px 6px; border-radius: 20px; font-size: 7.5px; font-weight: 700; flex-shrink: 0; }
.cfm-chat-bubble { padding: 6px 8px; border-radius: 6px; font-size: 8.5px; line-height: 1.4; margin-bottom: 7px; }
.bubble-user { background: var(--bg); border: 1px solid var(--border); color: var(--text2); }
.bubble-bot  { background: var(--teal-xl); border: 1px solid var(--teal-l); color: var(--text); }
.bubble-sender { font-size: 7.5px; font-weight: 600; margin-bottom: 2px; }

/* 20. Product — Module Deep Dives
   ============================================================ */
.modules { background: white; }
.modules-header { text-align: center; margin-bottom: 64px; }
.modules-header p { max-width: 520px; margin: 14px auto 0; }

.module-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; margin-bottom: 80px;
}
.module-row.reverse { direction: rtl; }
.module-row.reverse > * { direction: ltr; }
.module-text h2 { font-size: 32px; margin-bottom: 14px; }
.module-text p  { margin-bottom: 16px; }
.module-checklist { list-style: none; margin-top: 20px; }
.module-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--text2); margin-bottom: 10px; line-height: 1.55;
}
.module-checklist li::before {
  content: '✓'; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-xl); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.module-visual {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: center;
}

/* Module visual sub-components */
.mv-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mv-kpi { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.mv-kpi-label { font-size: 9px; color: var(--muted); margin-bottom: 4px; }
.mv-kpi-val   { font-size: 22px; font-weight: 700; }
.mv-chart-box { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.mv-chart-label { font-size: 9px; color: var(--muted); margin-bottom: 8px; }

.mv-channel-bar { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.mv-channel { padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 600; }
.mv-channel.active   { background: var(--teal-xl); border: 1px solid var(--teal-l); color: var(--teal); }
.mv-channel.inactive { background: var(--bg); border: 1px solid var(--border); color: var(--muted); }

.mv-chat { display: flex; flex-direction: column; gap: 8px; }
.mv-bubble { padding: 10px; border-radius: 8px; font-size: 11px; border: 1px solid var(--border); }
.mv-bubble.user { background: var(--bg); color: var(--text2); }
.mv-bubble.bot  { background: var(--teal-xl); border-color: var(--teal-l); color: var(--text); }
.mv-bubble strong { display: block; font-size: 10px; color: var(--teal); margin-bottom: 2px; }
.mv-bubble .meta  { font-size: 9px; color: var(--teal); margin-top: 4px; }

.mv-key-list { display: flex; flex-direction: column; gap: 8px; }
.mv-key {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; display: flex; align-items: center; justify-content: space-between;
}
.mv-key-info   { flex: 1; min-width: 0; }
.mv-key-name   { font-size: 11px; font-weight: 600; color: var(--text); }
.mv-key-meta   { font-size: 9.5px; color: var(--muted); }
.mv-key-badge  { padding: 2px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.mv-key-badge.active  { background: var(--teal-xl); border: 1px solid var(--teal-l); color: var(--teal); }
.mv-key-badge.revoked { background: #FEF2F2; border: 1px solid #FEE2E2; color: var(--red); }

/* 21. Contact Page
   ============================================================ */
.contact-body { background: var(--bg); border-top: 1px solid var(--border); padding: 80px 48px; }
.contact-inner {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px;
}

.contact-info h3  { font-size: 20px; margin-bottom: 10px; }
.contact-info > p { font-size: 15px; color: var(--text2); margin-bottom: 32px; line-height: 1.65; }
.contact-method   { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-method-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--teal-xl); border: 1px solid var(--teal-l);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-method-text strong {
  display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px;
}
.contact-method-text span { font-size: 13.5px; color: var(--muted); }
.contact-method-text a { color: var(--teal); text-decoration: none; font-size: 13.5px; }
.contact-method-text a:hover { text-decoration: underline; }

.contact-form {
  background: white; border: 1px solid var(--border); border-radius: 16px; padding: 36px;
}
.contact-form h3 { margin-bottom: 6px; }
.form-subtitle   { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* 22. Forms
   ============================================================ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13.5px; font-weight: 500; color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; font-family: var(--font-body);
  font-size: 14.5px; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; outline: none; background: white;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.btn-submit {
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: white;
  background: var(--teal); border: none;
  padding: 13px 28px; border-radius: 9px; cursor: pointer;
  width: 100%;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 16px rgba(13,148,136,.25);
}
.btn-submit:hover { background: var(--teal-mid); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(13,148,136,.3); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-note a { color: var(--teal); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }

.form-success {
  display: none; text-align: center; padding: 28px;
  background: var(--teal-xl); border: 1px solid var(--teal-l);
  border-radius: 10px;
}
.form-success h3  { color: var(--teal); margin-bottom: 8px; }
.form-success p   { font-size: 15px; color: var(--text2); }

/* Offices */
.offices       { background: white; padding: 64px 48px; }
.offices-inner { max-width: 1000px; margin: 0 auto; }
.offices h3    { font-size: 20px; margin-bottom: 24px; }
.office-cards  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); gap: 20px; }
.office-cards--single { grid-template-columns: minmax(0, 400px); }
.office-card   { border: 1px solid var(--border); border-radius: 12px; padding: 22px; background: var(--bg); }
.office-card strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.office-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* 23. Scroll Animations
   ============================================================ */
.scroll-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.scroll-in.visible { opacity: 1; transform: translateY(0); }

/* 24. Keyframe Animations
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .65s ease both; }
.delay-1   { animation-delay: .1s; }
.delay-2   { animation-delay: .2s; }
.delay-3   { animation-delay: .3s; }
.delay-4   { animation-delay: .4s; }

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,148,136,.4); }
  50%       { box-shadow: 0 0 0 7px rgba(13,148,136,0); }
}
.pulse { animation: pulse-ring 2.2s ease infinite; }

/* 25. Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 80px 32px; }
  .hero   { padding-left: 32px; padding-right: 32px; }
  .nav    { padding: 0 32px; }
  .stats-bar    { padding: 32px; }
  .cta-banner   { padding: 80px 32px; }
  .site-footer  { padding: 48px 32px 28px; }
  .footer-top   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-body { padding: 60px 32px; }
  .offices      { padding: 48px 32px; }
  .page-hero    { padding-left: 32px; padding-right: 32px; }
}

/* 26. Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  section { padding: 64px 20px; }
  .hero   { padding: calc(var(--nav-h) + 56px) 20px 64px; }

  .hero-inner   { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual  { display: none; }

  .stats-bar    { padding: 24px 20px; }
  .stat-divider { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps     { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .how-steps::before { display: none; }

  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid  { grid-template-columns: repeat(2, 1fr); }
  .team-grid    { grid-template-columns: repeat(2, 1fr); }
  .office-cards--single { grid-template-columns: minmax(0, 400px); }

  .module-row { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .module-row.reverse { direction: ltr; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-body  { padding: 48px 20px; }

  .office-cards { grid-template-columns: 1fr; }
  .offices      { padding: 48px 20px; }

  .footer-top   { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer  { padding: 40px 20px 24px; }

  .cta-banner   { padding: 64px 20px; }
  .page-hero    { padding-left: 20px; padding-right: 20px; }
}

/* 27. Responsive — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }

  .features-grid { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; }
  .how-steps     { grid-template-columns: 1fr; }

  .hero-actions  { flex-direction: column; }
  .btn-lg, .btn-outline-lg { width: 100%; justify-content: center; }

  .stat-num { font-size: 28px; }

  .console-full-mockup { display: none; }
  .mv-kpi-row  { grid-template-columns: 1fr 1fr; }
  .cfm-kpi-row { grid-template-columns: 1fr 1fr; }
  .cfm-bottom  { grid-template-columns: 1fr; }

  .footer-top  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .form-row    { grid-template-columns: 1fr; }
  .office-cards { grid-template-columns: 1fr; }
}
