/* ==========================================================================
   KMU OS — Stylesheet
   Palette: peec.ai-inspired (Tailwind Stone + Coral + Electric Blue)
   Typography: Geist / Geist Mono
   Structure: adapted from Praeveo (Apple-scroll, theme system, mobile)
   ========================================================================== */

/* --- RESET & ROOT ------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Neutrals (warm / stone) */
  --ink: #1C1917;
  --ink-2: #292524;
  --ink-3: #3F3B37;
  --paper: #FAFAF9;
  --paper-2: #F5F5F4;
  --paper-3: #EDECEA;
  --line: #E7E5E4;
  --line-2: #D6D3D1;
  --muted: #78716C;
  --text: #1C1917;
  --text-2: #44403C;
  --text-dim: #57534E;

  /* Accents */
  --accent: #F96B6B;         /* Coral — primary */
  --accent-2: #E85A5A;       /* Coral hover */
  --accent-ink: #FFFFFF;     /* Text on coral */
  --info: #0081FB;           /* Electric blue */
  --info-2: #0064E0;
  --success: #0B996E;
  --success-2: #0AAA7A;
  --warn: #F59E0B;
  --danger: #DC2626;

  /* Dark-mode neutrals (for product section dark theme) */
  --d-text: #F5F5F4;
  --d-text-2: #D6D3D1;
  --d-muted: #A8A29E;
  --d-line: rgba(255,255,255,0.10);
  --d-line-2: rgba(255,255,255,0.16);
  --d-surface: rgba(255,255,255,0.04);
  --d-surface-2: rgba(255,255,255,0.07);

  /* Product Section theme custom props (defaults = dark) */
  --ps-bg: var(--ink);
  --ps-text: var(--d-text);
  --ps-text-2: var(--d-text-2);
  --ps-muted: var(--d-muted);
  --ps-line: var(--d-line);
  --ps-line-2: var(--d-line-2);
  --ps-surface: var(--d-surface);
  --ps-surface-2: var(--d-surface-2);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow: 0 4px 16px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 32px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 60px rgba(28, 25, 23, 0.12);

  /* Radii */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

/* --- TYPOGRAPHY --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
h1 { font-size: clamp(44px, 5.5vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(32px, 3.8vw, 56px); letter-spacing: -0.03em; line-height: 1.06; }
h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; }
h4 { font-size: 18px; }

p { color: var(--text-2); }

.mono { font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'zero'; }

.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow-accent { color: var(--accent); }

/* --- LAYOUT SHELLS ------------------------------------------------------ */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.shell-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }

.divider { height: 1px; background: var(--line); border: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(249, 107, 107, 0.35); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--paper-2); transform: translateY(-1px); }
.btn-arrow::after { content: '→'; transition: transform 0.18s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* --- NAVIGATION --------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: saturate(1.8) blur(14px);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.nav-logo {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.nav-logo-beta {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 2px 7px;
  background: var(--paper-3);
  color: var(--muted);
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--paper-2); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown-trigger::after { content: '⌄'; font-size: 11px; opacity: 0.6; margin-top: -4px; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 240px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
}
.nav-dropdown-menu a:hover { background: var(--paper-2); color: var(--ink); }
.nav-dropdown-menu small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-lang {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.nav-lang:hover { background: var(--paper-2); color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s;
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: 0.2s; }
.mobile-menu { display: none; }

/* --- HERO --------------------------------------------------------------- */
.hero {
  padding: 150px 32px 100px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(249, 107, 107, 0.08) 0%, transparent 60%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 25, 23, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 0%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1040px; margin: 0 auto;
  position: relative; z-index: 1;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-pill {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero h1 { margin-bottom: 28px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 20%, var(--info) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.5;
}
.hero-cta-row {
  display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 20px;
}
.hero-teaser {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.hero-teaser strong { color: var(--ink); font-weight: 500; }

/* --- TRUST STRIP -------------------------------------------------------- */
.trust {
  padding: 48px 32px 64px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}
.trust-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 24px;
}
.trust-logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 48px 56px;
  align-items: center;
}
.trust-logo {
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.015em;
  opacity: 0.75;
  transition: opacity 0.2s;
  text-decoration: none;
}
.trust-logo:hover { opacity: 1; color: var(--ink); }
.trust-footer {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.trust-footer strong { color: var(--ink); font-weight: 500; }

/* --- MODULE GRID (8 modules) ------------------------------------------- */
.modules { padding: 120px 32px; background: var(--paper-2); }
.modules-head { text-align: center; margin-bottom: 64px; max-width: 760px; margin-left: auto; margin-right: auto; }
.modules-head h2 { margin-bottom: 20px; }
.modules-head p { font-size: 18px; color: var(--text-2); }
.modules-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.module-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.module-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.module-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.module-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.module-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
}
.module-signals {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.module-signal {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 7px;
  background: var(--paper-2);
  color: var(--muted);
  border-radius: 4px;
  border: 1px solid var(--line);
}
.module-num {
  position: absolute;
  top: 20px; right: 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.6;
}

/* --- PRODUCT SECTION (Apple-scroll) ------------------------------------ */
.product-section {
  background: var(--ps-bg);
  color: var(--ps-text);
  padding: 140px 0 180px;
  position: relative;
  transition: background 0.4s ease;
}
.product-section--light {
  --ps-bg: var(--paper);
  --ps-text: var(--text);
  --ps-text-2: var(--text-2);
  --ps-muted: var(--muted);
  --ps-line: var(--line);
  --ps-line-2: var(--line-2);
  --ps-surface: var(--paper-2);
  --ps-surface-2: var(--paper-3);
}
.product-section--warm {
  --ps-bg: var(--paper-2);
  --ps-text: var(--text);
  --ps-text-2: var(--text-2);
  --ps-muted: var(--muted);
  --ps-line: var(--line);
  --ps-line-2: var(--line-2);
  --ps-surface: var(--paper);
  --ps-surface-2: var(--paper-3);
}
.product-head {
  max-width: 1280px; margin: 0 auto 64px; padding: 0 32px;
  text-align: center;
}
.product-head h2 { margin-bottom: 20px; color: var(--ps-text); }
.product-head p { color: var(--ps-text-2); font-size: 18px; max-width: 660px; margin: 0 auto; }
.product-jumps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-top: 36px;
}
.product-jump {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
  background: var(--ps-surface);
  color: var(--ps-text-2);
  border: 1px solid var(--ps-line);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.product-jump:hover { background: var(--ps-surface-2); color: var(--ps-text); border-color: var(--ps-line-2); }
.product-jump.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.product-scroll {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.product-sticky { position: sticky; top: 130px; }
.product-visual-wrap {
  position: relative;
  min-height: 620px;
  border-radius: var(--r-xl);
  background: var(--ps-surface);
  border: 1px solid var(--ps-line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.product-visual {
  position: absolute;
  inset: 0;
  padding: 28px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  overflow: hidden;
}
.product-visual.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.product-visual.pulse { animation: ps-pulse 2.4s ease; }
@keyframes ps-pulse {
  0% { box-shadow: inset 0 0 0 0 rgba(249, 107, 107, 0.0); }
  30% { box-shadow: inset 0 0 0 2px rgba(249, 107, 107, 0.4); }
  100% { box-shadow: inset 0 0 0 0 rgba(249, 107, 107, 0); }
}

.product-steps { display: flex; flex-direction: column; gap: 180px; padding-bottom: 240px; }
.product-step { }
.product-step-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--ps-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.product-step-tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 9px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.product-step h3 {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  color: var(--ps-text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.14;
}
.product-step p {
  color: var(--ps-text-2);
  font-size: 16px;
  line-height: 1.55;
  max-width: 460px;
}
.product-step ul {
  list-style: none;
  margin-top: 16px;
  padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.product-step li {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ps-text-2);
  padding-left: 18px;
  position: relative;
}
.product-step li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
}

/* ============================================================
   VISUAL MOCKUPS (.ks-*) — KMU OS-specific
   ============================================================ */

/* Shared atoms across mockups */
.ks-card {
  background: var(--ps-surface-2);
  border: 1px solid var(--ps-line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.ks-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ks-title {
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  color: var(--ps-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.ks-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ks-dot-r { background: var(--accent); box-shadow: 0 0 8px rgba(249, 107, 107, 0.55); }
.ks-dot-g { background: var(--success); }
.ks-dot-y { background: var(--warn); }
.ks-dot-b { background: var(--info); }

.ks-pill {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.ks-pill-r { background: rgba(249, 107, 107, 0.14); color: #F96B6B; }
.ks-pill-g { background: rgba(11, 153, 110, 0.14); color: #0B996E; }
.ks-pill-y { background: rgba(245, 158, 11, 0.16); color: #F59E0B; }
.ks-pill-b { background: rgba(0, 129, 251, 0.14); color: #0081FB; }

/* 01 — Cross-Module Dashboard */
.ks-dashboard { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.ks-dash-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--ps-line);
}
.ks-dash-title { font-weight: 600; font-size: 15px; color: var(--ps-text); }
.ks-dash-meta { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ps-muted); }
.ks-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.ks-tile {
  padding: 10px 12px;
  background: var(--ps-surface-2);
  border: 1px solid var(--ps-line);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.ks-tile-label {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  color: var(--ps-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ks-tile-value { font-size: 20px; font-weight: 600; color: var(--ps-text); }
.ks-tile-delta { font-size: 10px; font-family: 'Geist Mono', monospace; color: var(--ps-muted); }
.ks-tile--critical { border-color: rgba(249, 107, 107, 0.35); }
.ks-tile--critical .ks-tile-value { color: var(--accent); }
.ks-tile--ok { border-color: rgba(11, 153, 110, 0.30); }
.ks-tile--ok .ks-tile-value { color: var(--success-2); }
.ks-modulebar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 12px; background: var(--ps-surface-2); border-radius: var(--r); border: 1px solid var(--ps-line);
}
.ks-mod {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--ps-text-2);
}
.ks-mod-name { flex: 1; font-weight: 500; }
.ks-alerts {
  background: var(--ps-surface-2); border: 1px solid var(--ps-line);
  border-radius: var(--r); padding: 12px;
}
.ks-alert-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ps-line);
  font-size: 12px;
}
.ks-alert-row:last-child { border-bottom: 0; }
.ks-alert-mod { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--ps-muted); min-width: 64px; }
.ks-alert-text { flex: 1; color: var(--ps-text); }

/* 02 — Sales Pipeline Alert */
.ks-sales { display: flex; flex-direction: column; gap: 14px; }
.ks-deal-header { display: flex; justify-content: space-between; align-items: flex-start; }
.ks-deal-title { font-size: 15px; font-weight: 600; color: var(--ps-text); }
.ks-deal-sub { font-size: 12px; color: var(--ps-muted); margin-top: 2px; font-family: 'Geist Mono', monospace; }
.ks-score {
  text-align: right;
}
.ks-score-val {
  font-family: 'Geist Mono', monospace;
  font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1;
}
.ks-score-label {
  font-size: 10px; color: var(--ps-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-family: 'Geist Mono', monospace;
}
.ks-stage-bar {
  display: flex; gap: 2px; margin-top: 8px;
}
.ks-stage {
  flex: 1; height: 6px; background: var(--ps-surface-2); border-radius: 2px;
}
.ks-stage.filled { background: var(--info); }
.ks-stage.stuck { background: var(--accent); }
.ks-drivers { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ks-driver {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: var(--ps-surface-2); border: 1px solid var(--ps-line);
  border-radius: var(--r-sm); font-size: 12px;
}
.ks-driver-name { color: var(--ps-text); }
.ks-driver-val { font-family: 'Geist Mono', monospace; color: var(--ps-muted); }

/* 03 — Cashflow Forecast */
.ks-cashflow { display: flex; flex-direction: column; gap: 14px; }
.ks-cf-proj {
  padding: 16px; background: var(--ps-surface-2);
  border: 1px solid var(--ps-line); border-radius: var(--r);
}
.ks-cf-cur {
  font-size: 10px; font-family: 'Geist Mono', monospace;
  color: var(--ps-muted); text-transform: uppercase; letter-spacing: 0.12em;
}
.ks-cf-big { font-size: 28px; font-weight: 600; color: var(--ps-text); letter-spacing: -0.02em; margin-top: 4px; }
.ks-cf-warn { font-size: 12px; color: var(--accent); margin-top: 4px; }
.ks-chart {
  height: 120px;
  display: flex; align-items: flex-end; gap: 4px;
  padding: 10px; background: var(--ps-surface-2); border: 1px solid var(--ps-line); border-radius: var(--r);
}
.ks-bar { flex: 1; background: var(--info); border-radius: 2px 2px 0 0; opacity: 0.7; }
.ks-bar.warn { background: var(--warn); }
.ks-bar.danger { background: var(--accent); opacity: 0.9; }
.ks-ar-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; font-size: 12px;
  border-bottom: 1px solid var(--ps-line);
}
.ks-ar-row:last-child { border-bottom: 0; }

/* 05 — Supply Chain Timeline */
.ks-supply { display: flex; flex-direction: column; gap: 12px; }
.ks-supplier-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--ps-surface-2); border: 1px solid var(--ps-line);
  border-radius: var(--r-sm);
}
.ks-supplier-name { flex: 1; font-size: 12px; color: var(--ps-text); font-weight: 500; }
.ks-supplier-bar {
  flex: 2; height: 6px; background: var(--ps-surface); border-radius: 3px; position: relative; overflow: hidden;
}
.ks-supplier-fill { height: 100%; background: var(--info); border-radius: 3px; }
.ks-supplier-fill.warn { background: var(--warn); }
.ks-supplier-fill.danger { background: var(--accent); }
.ks-supplier-eta { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ps-muted); min-width: 56px; text-align: right; }

/* 06 — HR Heatmap */
.ks-hr-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  padding: 10px; background: var(--ps-surface-2);
  border: 1px solid var(--ps-line); border-radius: var(--r);
}
.ks-hr-cell {
  aspect-ratio: 1; border-radius: 3px;
  background: rgba(0, 129, 251, 0.10);
}
.ks-hr-cell.l2 { background: rgba(245, 158, 11, 0.30); }
.ks-hr-cell.l3 { background: rgba(245, 158, 11, 0.60); }
.ks-hr-cell.l4 { background: rgba(249, 107, 107, 0.55); }
.ks-hr-cell.l5 { background: var(--accent); }

/* 07 — Project Gantt */
.ks-gantt { padding: 12px; background: var(--ps-surface-2); border: 1px solid var(--ps-line); border-radius: var(--r); }
.ks-gantt-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ks-gantt-name { flex: 0 0 100px; font-size: 11px; color: var(--ps-text-2); font-weight: 500; }
.ks-gantt-track { flex: 1; height: 16px; background: var(--ps-surface); border-radius: 3px; position: relative; }
.ks-gantt-bar { position: absolute; top: 2px; bottom: 2px; background: var(--info); opacity: 0.7; border-radius: 2px; }
.ks-gantt-bar.risk { background: var(--accent); opacity: 0.85; }

/* 09 — IT Incidents */
.ks-incident-stream { display: flex; flex-direction: column; gap: 8px; }
.ks-incident {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--ps-surface-2); border: 1px solid var(--ps-line);
  border-radius: var(--r-sm); font-size: 12px;
}
.ks-incident-time { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--ps-muted); min-width: 48px; }

/* 10 — Rules Engine */
.ks-rule-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ps-line);
}
.ks-rule-row:last-child { border-bottom: 0; }
.ks-rule-name { flex: 0 0 130px; font-size: 12px; color: var(--ps-text); font-weight: 500; }
.ks-rule-slider { flex: 1; height: 4px; background: var(--ps-surface-2); border-radius: 2px; position: relative; }
.ks-rule-fill { height: 100%; background: var(--info); border-radius: 2px; }
.ks-rule-fill.hot { background: var(--accent); }
.ks-rule-val { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ps-muted); min-width: 48px; text-align: right; }

/* 11 — Cross-Module Pattern (KILLER FEATURE) */
.ks-pattern-head {
  padding: 12px; background: var(--ps-surface-2);
  border: 1px solid var(--ps-line); border-left: 3px solid var(--accent);
  border-radius: var(--r);
  margin-bottom: 14px;
}
.ks-pattern-name { font-size: 15px; font-weight: 600; color: var(--ps-text); }
.ks-pattern-conf { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--accent); margin-top: 4px; }
.ks-signals-chain {
  display: flex; flex-direction: column; gap: 8px;
}
.ks-signal-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--ps-surface-2); border: 1px solid var(--ps-line);
  border-radius: var(--r-sm);
  font-size: 12px;
}
.ks-signal-step::after {
  content: '↓'; color: var(--accent); font-size: 14px;
  position: absolute; margin-top: 34px;
}
.ks-signal-mod {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 500;
  padding: 3px 7px; border-radius: 4px;
  background: rgba(0, 129, 251, 0.12); color: var(--info);
}
.ks-signal-desc { flex: 1; color: var(--ps-text); }
.ks-signal-delta { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ps-muted); }
.ks-pattern-outcome {
  margin-top: 14px;
  padding: 12px; background: rgba(249, 107, 107, 0.08);
  border: 1px solid rgba(249, 107, 107, 0.25);
  border-radius: var(--r);
}
.ks-outcome-label {
  font-size: 10px; font-family: 'Geist Mono', monospace;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.ks-outcome-text { font-size: 13px; color: var(--ps-text); font-weight: 500; }

/* 12 — LLM Recommendation */
.ks-llm { display: flex; flex-direction: column; gap: 10px; }
.ks-llm-row {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--ps-line);
  font-size: 12px;
}
.ks-llm-row:last-child { border-bottom: 0; }
.ks-llm-label {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  color: var(--ps-muted); text-transform: uppercase; letter-spacing: 0.12em;
}
.ks-llm-val { color: var(--ps-text); }
.ks-llm-val strong { color: var(--accent); font-weight: 600; }

/* --- CROSS-MODULE KILLER FEATURE SECTION ------------------------------- */
.xmod { padding: 120px 32px; background: var(--ink); color: var(--d-text); }
.xmod-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.xmod-head .eyebrow { color: var(--accent); }
.xmod-head h2 { color: var(--d-text); margin-bottom: 20px; }
.xmod-head p { color: var(--d-text-2); font-size: 18px; }
.xmod-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.xmod-card {
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all 0.2s;
}
.xmod-card:hover { border-color: var(--d-line-2); background: var(--d-surface-2); }
.xmod-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 600; color: var(--d-text);
  margin-bottom: 14px;
}
.xmod-title .ks-dot { width: 10px; height: 10px; }
.xmod-sig-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 16px 0;
}
.xmod-sig {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  color: var(--d-text-2);
  border-radius: 999px;
  border: 1px solid var(--d-line);
}
.xmod-arrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.xmod-outcome {
  padding: 14px 16px;
  background: rgba(249, 107, 107, 0.10);
  border: 1px solid rgba(249, 107, 107, 0.25);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--d-text);
  line-height: 1.45;
}
.xmod-outcome strong { color: var(--accent); font-weight: 600; }

/* --- 3-ENGINE ARCHITECTURE --------------------------------------------- */
.engines { padding: 120px 32px; background: var(--paper); }
.engines-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.engines-head h2 { margin-bottom: 20px; }
.engines-head p { font-size: 18px; color: var(--text-2); }
.engines-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.engine-card {
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 0.2s;
  position: relative;
}
.engine-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.engine-num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.engine-card h3 { margin-bottom: 14px; font-size: 22px; }
.engine-card p { color: var(--text-2); margin-bottom: 16px; font-size: 15px; line-height: 1.55; }
.engine-demo {
  padding: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

/* --- HOW IT WORKS (4 Steps) -------------------------------------------- */
.how { padding: 120px 32px; background: var(--paper-2); }
.how-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.how-head h2 { margin-bottom: 20px; }
.how-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.how-step {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.how-num {
  font-family: 'Geist Mono', monospace;
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1;
}
.how-step h3 { margin-bottom: 10px; font-size: 19px; }
.how-step p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* --- PRICING ----------------------------------------------------------- */
.pricing { padding: 140px 32px 120px; background: var(--paper); }
.pricing-head { max-width: 760px; margin: 0 auto 80px; text-align: center; }
.pricing-head h2 { margin-bottom: 20px; }
.pricing-head p { font-size: 18px; color: var(--text-2); }
.pricing-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tier {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  position: relative;
}
.tier--popular {
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.tier-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--accent); color: var(--accent-ink);
  font-family: 'Geist Mono', monospace;
  font-size: 10px; font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tier-name { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.tier-pitch { font-size: 13px; color: var(--muted); margin-bottom: 24px; min-height: 38px; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.tier-prefix { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--muted); }
.tier-amount { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; }
.tier-per { font-size: 13px; color: var(--muted); }
.tier-sub { font-size: 12px; color: var(--muted); margin-bottom: 24px; font-family: 'Geist Mono', monospace; }
.tier-cta { margin-bottom: 24px; }
.tier-cta .btn { width: 100%; justify-content: center; }
.tier-features { list-style: none; padding: 0; }
.tier-features li {
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 0 8px 24px;
  position: relative;
  line-height: 1.45;
  border-top: 1px solid var(--line);
}
.tier-features li:first-child { border-top: 0; padding-top: 0; }
.tier-features li::before {
  content: '✓';
  position: absolute; left: 0; top: 8px;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}
.tier-features li:first-child::before { top: 0; }
.tier-section-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.pricing-note {
  max-width: 900px; margin: 48px auto 0;
  padding: 20px 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
}
.pricing-note strong { color: var(--ink); }

/* --- HORMOZI VALUE STACK ------------------------------------------------ */
.stack { padding: 120px 32px; background: var(--ink); color: var(--d-text); }
.stack-inner {
  max-width: 900px; margin: 0 auto;
}
.stack-head { text-align: center; margin-bottom: 56px; }
.stack-head .eyebrow { color: var(--accent); }
.stack-head h2 { color: var(--d-text); margin-bottom: 20px; }
.stack-head p { color: var(--d-text-2); }
.stack-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--d-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stack-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--d-line);
  background: var(--d-surface);
}
.stack-item:last-child { border-bottom: 0; }
.stack-name { font-size: 15px; color: var(--d-text); font-weight: 500; }
.stack-sub { font-size: 12px; color: var(--d-muted); margin-top: 2px; }
.stack-val {
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  color: var(--d-text-2);
  font-weight: 500;
}
.stack-total {
  margin-top: 20px;
  padding: 24px;
  background: rgba(249, 107, 107, 0.08);
  border: 1px solid rgba(249, 107, 107, 0.3);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between;
}
.stack-total-label { font-size: 14px; color: var(--d-text-2); }
.stack-total-val {
  font-size: 32px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
}
.stack-guarantee {
  margin-top: 40px;
  padding: 28px;
  background: var(--d-surface);
  border: 1px dashed var(--d-line-2);
  border-radius: var(--r-lg);
  text-align: center;
}
.stack-guarantee-title { font-size: 22px; font-weight: 600; color: var(--d-text); margin-bottom: 10px; }
.stack-guarantee-sub { font-size: 15px; color: var(--d-text-2); }

/* --- FAQ --------------------------------------------------------------- */
.faq { padding: 120px 32px; background: var(--paper); }
.faq-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.faq-head h2 { margin-bottom: 16px; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.faq-q {
  font-size: 17px; font-weight: 600; color: var(--ink);
  margin-bottom: 10px; letter-spacing: -0.015em;
}
.faq-a { color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* --- FINAL CTA --------------------------------------------------------- */
.final-cta {
  padding: 140px 32px;
  background: var(--paper-2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(249, 107, 107, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner { position: relative; max-width: 760px; margin: 0 auto; }
.final-cta h2 { margin-bottom: 20px; }
.final-cta p { font-size: 18px; color: var(--text-2); margin-bottom: 36px; }
.final-cta .btn { font-size: 16px; padding: 16px 28px; }

/* --- FOOTER ------------------------------------------------------------ */
.footer {
  padding: 72px 32px 48px;
  background: var(--ink);
  color: var(--d-text-2);
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--d-line);
}
.footer-brand h4 {
  color: var(--d-text); font-size: 20px; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.02em;
}
.footer-brand p { font-size: 14px; color: var(--d-muted); line-height: 1.5; max-width: 320px; }
.footer-col-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--d-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--d-text-2);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--d-text); }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--d-muted);
}

/* --- MOBILE ------------------------------------------------------------ */
@media (max-width: 1000px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .engines-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .xmod-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-right .nav-lang, .nav-right .nav-cta { display: none; }
  .hamburger { display: block; }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    padding: 24px 28px;
    overflow-y: auto;
    z-index: 99;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block;
    padding: 14px 0;
    color: var(--ink);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    background: none; border: 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px; font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    font-family: inherit;
  }
  .mobile-menu-toggle::after { content: '+'; font-size: 20px; color: var(--muted); }
  .mobile-menu-toggle.open::after { content: '−'; }
  .mobile-menu-section {
    display: none;
    padding: 10px 0 16px 16px;
  }
  .mobile-menu-section.open { display: block; }
  .mobile-menu-section a { font-size: 15px; font-weight: 400; padding: 10px 0; border: 0; color: var(--text-2); }
  .mobile-menu-cta {
    margin-top: 20px;
    display: block !important;
    padding: 14px 22px !important;
    background: var(--ink);
    color: var(--paper) !important;
    text-align: center;
    border-radius: 999px;
    border: 0 !important;
    font-size: 15px !important;
  }
  .mobile-lang { margin-top: 18px; font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--muted) !important; }

  .section, .modules, .xmod, .engines, .how, .pricing, .stack, .faq { padding: 80px 24px; }
  .hero { padding: 110px 20px 72px; }
  .hero-inner { text-align: left; }
  .hero-cta-row { justify-content: flex-start; }

  .product-scroll { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  .product-sticky { display: none; }
  .product-steps { gap: 48px; padding-bottom: 80px; }
  .product-visual.inline-mobile {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    margin-bottom: 20px;
    width: 100%;
    min-height: 420px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--r-lg);
  }
  .product-jumps { justify-content: flex-start; padding: 0 20px; }

  .stack-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stack-total { flex-direction: column; align-items: flex-start; gap: 10px; }

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

  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
}

@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tier--popular { transform: none; }
}
