/* =========================================================
   Meduze - Site vitrine
   ========================================================= */

:root {
  /* Root palette */
  --bg: #eef3f7;
  --bg-2: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #e8eef4;
  --ink: #102133;
  --ink-2: #24425d;
  --muted: #5e6f81;
  --line: #d5dfeb;
  --line-strong: #bfd0e0;
  --primary: #0c5b78;
  --primary-strong: #0a4560;
  --primary-soft: #d8edf5;
  --accent: #cb6f17;
  --accent-soft: #f8e0c8;
  --accent-strong: #a9580b;
  --success: #2f7a62;
  --danger: #b65050;

  --brand-mark-a: #0c5b78;
  --brand-mark-b: #cb6f17;

  /* Gantt slot palette */
  --g-prod: #0c5b78;
  --g-clean: #2f7a62;
  --g-change: #cb6f17;
  --g-lock:  #4970b5;
  --g-free:  #c8d4e3;

  /* Type */
  --font-heading: "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Misc */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 22px rgba(16, 33, 51, 0.08);
  --shadow-md: 0 18px 50px rgba(25, 53, 82, 0.12);
  --shadow-lg: 0 30px 80px rgba(12, 60, 90, 0.18);
  --container: 1240px;
  --nav-h: 72px;
}

/* =========================================================
   BASE
   ========================================================= */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 17px;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 32px;
}
.section-head {
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 22px;
}
.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: 18px;
}
.section-title .t-accent {
  display: block;
  color: var(--primary);
}
.section-lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.brand-mark img {
  display: block;
  width: auto;
  height: 100%;
}
.brand-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.nav-links {
  display: flex; gap: 28px;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.mobile-menu.is-open {
  max-height: 400px;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 20px;
  gap: 4px;
}
.mobile-menu nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  text-decoration: none;
  transition: color .15s ease;
}
.mobile-menu nav a:last-child { border-bottom: none; }
.mobile-menu nav a:hover { color: var(--primary); }
.mobile-menu nav .cta-primary {
  margin-top: 8px;
  text-align: center;
  border-bottom: none;
  padding: 10px 20px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  gap: 2px;
}
.lang-flag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.06em;
  transition: all .15s ease;
}
.lang-flag.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* CTAs */
.cta-primary, .cta-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--primary) 60%, transparent);
}
.cta-primary:hover { transform: translateY(-1px); background: var(--primary-strong); }
.cta-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.cta-ghost:hover { background: var(--surface); border-color: var(--primary); color: var(--primary); }

.cta-lg { padding: 14px 24px; font-size: 1rem; }
.cta-full { width: 100%; justify-content: center; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 52px;
  background:
    radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(900px 400px at 100% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 80%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 80%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.35;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 20%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 10%, transparent); } }

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-title span { display: block; }
.hero-title-accent {
  color: var(--primary);
  font-style: italic;
  font-weight: 700;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 22px;
  max-width: 540px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-kpis dt {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-kpis dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- Gantt preview window ---- */
.hero-gantt { position: relative; }

.gantt-window {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
  transition: transform .4s ease;
}
.gantt-window:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.gantt-window-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.win-dots { display: inline-flex; gap: 6px; }
.win-dots span { width: 11px; height: 11px; border-radius: 999px; background: var(--line-strong); }
.win-dots span:nth-child(1) { background: #ff5f57; }
.win-dots span:nth-child(2) { background: #ffbd2e; }
.win-dots span:nth-child(3) { background: #28c940; }
.win-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1;
  text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.win-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--success);
  letter-spacing: 0.08em;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
  animation: pulse 1.4s ease-in-out infinite;
}

.gantt-stage {
  position: relative;
  background:
    linear-gradient(180deg, var(--surface), var(--surface-2));
  height: auto;
  overflow: hidden;
  font-family: var(--font-body);
}

.ga-axis {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  height: 56px;
}
.ga-axis-corner {
  padding: 6px 14px;
  border-right: 1px solid var(--line);
  display: grid; align-content: center;
}
.ga-axis-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}
.ga-axis-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}
.ga-axis-days {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.ga-axis-day {
  border-right: 1px solid var(--line);
  padding: 5px 10px;
  display: grid; align-content: center; gap: 1px;
}
.ga-axis-day:last-child { border-right: none; }
.ga-axis-day-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ga-axis-day-workers {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--primary) 85%, transparent);
  transition: opacity 0.3s ease, color 0.3s ease;
}
.ga-axis-day-workers[data-empty] {
  color: var(--muted);
  font-weight: 600;
}
.ga-axis-day-hours {
  font-size: 0.62rem;
  color: var(--muted);
}

.ga-body {
  position: relative;
  height: auto;
  overflow: hidden;
}
.ga-lane {
  display: grid;
  grid-template-columns: 130px 1fr;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  height: 46px;
}
.ga-lane-label {
  padding: 0 14px;
  display: grid; align-content: center; gap: 2px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}
.ga-lane[data-lane-type="support"] .ga-lane-label {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary-soft) 52%, var(--surface-2)) 0%, var(--surface-2) 100%);
}
.ga-lane-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ink);
}
.ga-lane-sub {
  font-size: 0.62rem;
  color: var(--muted);
}
.ga-lane[data-lane-type="support"] .ga-lane-sub {
  color: color-mix(in srgb, var(--muted) 76%, var(--primary));
}
.ga-lane-tracks {
  position: relative;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px);
  background-size: calc(100% / 5) 100%;
}
.ga-lane[data-lane-type="support"] .ga-lane-tracks {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary-soft) 28%, transparent), transparent);
  background-size: calc(100% / 5) 100%, 100% 100%;
}
.ga-lane[data-lane-type="stock"] {
  height: 72px;
}
.ga-lane[data-lane-type="stock"] .ga-lane-label {
  background: linear-gradient(90deg,
    color-mix(in srgb, #2d7a52 10%, var(--surface-2)) 0%,
    var(--surface-2) 100%);
}
.ga-lane[data-lane-type="stock"] .ga-lane-sub {
  color: color-mix(in srgb, #2d7a52 70%, var(--muted));
}
.ga-lane[data-lane-type="stock"] .ga-lane-tracks {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 60%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, rgba(247, 253, 249, 0.9), rgba(255, 255, 255, 0.98));
  background-size: calc(100% / 5) 100%, 100% 100%;
}

/* Stock SVG chart */
.ga-stock-chart {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ga-stock-svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}
.ga-stock-path {
  fill: none;
  stroke: #2d7a52;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ga-stock-dot {
  stroke: #fff;
  stroke-width: 1.5;
}
.ga-stock-dot-in  { fill: #2d7a52; }
.ga-stock-dot-out { fill: #c25b3e; }
.ga-stock-chart.is-landing {
  animation: slotLand 500ms cubic-bezier(.4,1.2,.5,1) backwards;
}

.ga-slot {
  position: absolute;
  top: 6px; bottom: 6px;
  border-radius: 8px;
  padding: 5px 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.1;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(16, 33, 51, 0.18);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .3s cubic-bezier(.4,1.2,.4,1), box-shadow .2s ease, left .6s cubic-bezier(.7,0,.2,1), width .6s cubic-bezier(.7,0,.2,1);
  animation: slotIn .5s cubic-bezier(.4,1.2,.4,1) backwards;
}
.ga-lane[data-lane-type="support"] .ga-slot {
  top: 9px;
  bottom: 9px;
  border-radius: 999px;
  padding: 4px 10px;
}
@keyframes slotIn {
  from { transform: translateY(6px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ga-slot-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
}
.ga-slot-meta {
  font-size: 0.6rem;
  opacity: 0.86;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ga-slot.is-overlay {
  border: 2px dashed rgba(255,255,255,0.7);
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(16, 33, 51, 0.22);
  background: var(--g-lock);
  top: 2px;
  bottom: auto;
  height: 18px;
  padding: 2px 6px;
  font-size: 0.6rem;
}
.ga-slot.is-overlay .ga-slot-meta { display: none; }
.ga-slot.is-hovered { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 33, 51, 0.3); z-index: 3; }

.ga-playhead {
  position: absolute;
  top: 44px; bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  pointer-events: none;
  z-index: 4;
  transition: left 0.1s linear;
}
.ga-playhead::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -5px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}

.ga-tooltip {
  position: absolute;
  z-index: 10;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
}

.gantt-window-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.ga-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.ga-legend-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 600;
}
.ga-legend-item i {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}
.ga-meta { display: flex; gap: 12px; }
.ga-stat {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-heading);
  font-weight: 600;
}
.ga-stat strong { color: var(--ink); font-weight: 800; }

/* =========================================================
   GANTT HERO — scripted scenario additions
   ========================================================= */

/* Ghost slot (empty selectable placeholder) */
.ga-slot-ghost {
  background: transparent !important;
  color: var(--muted) !important;
  border: 2px dashed color-mix(in srgb, var(--primary) 40%, var(--line-strong));
  box-shadow: none !important;
  font-style: italic;
}
.ga-slot-ghost .ga-slot-label { color: var(--muted); }
.ga-slot-ghost.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent) !important;
}

/* Click/press feedback */
.ga-slot.is-clicking, .ga-tool.is-clicking {
  transform: scale(0.97);
  filter: brightness(0.92);
}

/* Landing animation when a slot is added after simulate */
.ga-slot.is-landing {
  animation: slotLand 420ms cubic-bezier(.4,1.5,.5,1) backwards;
}
@keyframes slotLand {
  0%   { transform: translateY(8px) scale(0.94); opacity: 0; }
  60%  { transform: translateY(-2px) scale(1.02); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* Grabbing (during drag) */
.ga-slot.is-grabbing {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 30px rgba(16, 33, 51, 0.35);
  z-index: 6;
  cursor: grabbing;
}
.ga-slot.is-reshuffling {
  outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 1px;
}

/* Kind-specific tweaks: maintenance overlay sits full-height and hatched */
.ga-slot-maint {
  background-image:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.18) 0 6px,
      transparent 6px 12px);
  border: 1px solid rgba(255,255,255,0.35);
}
.ga-slot-clean {
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.14) 0 4px,
      transparent 4px 8px);
}
.ga-slot-change {
  background-image: linear-gradient(180deg,
    rgba(255,255,255,0.12), transparent 60%);
}
.ga-slot-labor {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--primary) 24%, transparent);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.08)),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.14) 0 8px,
      transparent 8px 14px);
}
.ga-slot-stockIn,
.ga-slot-stockOut {
  border-color: rgba(255,255,255,0.22);
}
.ga-slot-stockIn {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(90deg, rgba(255,255,255,0.18), transparent 24%);
}
.ga-slot-stockOut {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 60%),
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.18) 0 7px,
      transparent 7px 13px);
}

/* Fake cursor */
.ga-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 22px; height: 22px;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  transition: opacity .3s ease;
}

/* Toolbar strip sits between window-bar and stage */
.gantt-toolbar-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.ga-toolbar {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 33, 51, 0.04);
}
.ga-tool {
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  transition: all .2s ease;
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
}
.ga-tool.is-active {
  background: var(--surface-3);
  color: var(--ink);
}
.ga-tool.is-cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.78rem;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--primary) 60%, transparent);
}
.ga-tool.is-cta.is-loading {
  padding-left: 28px;
  pointer-events: none;
}
.ga-tool.is-cta.is-loading::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 12px; height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  transform: translateY(-50%);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Toast notification at bottom of the stage */
.ga-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  border-radius: 999px;
  z-index: 16;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity .24s ease, transform .24s ease;
  white-space: nowrap;
  pointer-events: none;
}
.ga-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hover state on slots — keep it subtle */
.ga-slot:hover:not(.ga-slot-ghost):not(.is-grabbing) {
  transform: translateY(-1px);
}

/* Keep the old .hero-text-variant bq-mark/big-quote around (unused) */
.hero-text-variant, .hero-static { display: none !important; }

/* =========================================================
   LOGO BAND
   ========================================================= */
.logo-band {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  border-bottom: 1px dashed var(--line);
}
.logo-band-kicker {
  text-align: center;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 22px;
}
.logo-band-row {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.logo-slug {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  letter-spacing: 0.01em;
  transition: color .2s ease;
}
.logo-slug:hover { color: var(--ink); }

/* =========================================================
   PROBLEMS
   ========================================================= */
.section-problems {
  padding-top: 40px;
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pg-card {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pg-num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: color-mix(in srgb, var(--primary) 14%, transparent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pg-card h3 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  padding-right: 80px;
}
.pg-list {
  display: grid; gap: 8px;
}
.pg-list li {
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.pg-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

/* =========================================================
   PRODUCT
   ========================================================= */
.section-product { }
.product-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.ps-col {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.ps-col-strategic {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--primary) 22%, var(--line));
}
.ps-col-auto {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}
.ps-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.ps-col-auto .ps-tag { color: var(--accent-strong); }
.ps-col h3 {
  font-size: 1.6rem;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.ps-features {
  display: grid; gap: 10px;
}
.ps-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 1rem;
  color: var(--ink-2);
  font-weight: 500;
}
.ps-check {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.ps-col-auto .ps-check {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-strong);
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feat-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
}
.feat-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   POC
   ========================================================= */
.section-poc {
  padding: 60px 32px 110px;
}
.poc-card {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 100% -20%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.poc-head { text-align: center; margin-bottom: 48px; }
.poc-kicker { background: var(--primary-soft); color: var(--primary); }
.poc-title { font-size: clamp(2rem, 3vw, 2.6rem); }

.poc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 48px;
}
.poc-cell {
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.poc-cell:last-child { border-right: none; }
.poc-cell-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.poc-cell-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.poc-cell-value span { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.poc-cell-small { font-size: 1.1rem; line-height: 1.25; }
.poc-cell-price { background: var(--primary); color: #fff; }
.poc-cell-price .poc-cell-label { color: rgba(255,255,255,0.82); }
.poc-cell-price .poc-cell-value { color: #fff; font-size: 2.2rem; }

.poc-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 40px;
}
.poc-step {
  flex: 1;
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.poc-step-n {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
}
.poc-step-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.poc-step-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.poc-connector {
  flex: 0 0 24px;
  align-self: center;
  height: 2px;
  background-image: linear-gradient(to right, var(--line-strong) 50%, transparent 50%);
  background-size: 8px 2px;
}

.poc-results {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.poc-results-list {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink);
}
.poc-results-list li {
  font-size: 1rem;
}

/* =========================================================
   CLIENTS
   ========================================================= */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.client-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}
.client-metric {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-transform: uppercase;
}
.client-metric-label {
  font-size: 1.08rem;
  color: var(--ink);
  max-width: 280px;
  font-weight: 700;
}
.client-quote {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.client-quote p {
  font-size: 0.98rem;
  color: var(--ink-2);
  line-height: 1.5;
  font-style: normal;
  margin-bottom: 0;
}

/* =========================================================
   CONTACT
   ========================================================= */
.section-contact { }
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 56px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
  box-shadow: var(--shadow-md);
  align-items: center;
}
.contact-copy .section-title { font-size: 2.2rem; }
.contact-why {
  display: grid; gap: 10px;
  margin-top: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink-2);
}
.hs-placeholder {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hs-placeholder-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.hs-dot { width: 8px; height: 8px; border-radius: 999px; background: #ff7a59; }
.hs-placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  font-weight: 700;
}
.hs-placeholder-note { font-size: 0.72rem; color: var(--muted); margin-left: auto; }
.mock-form {
  padding: 22px;
  display: grid; gap: 14px;
}
.mf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-form label {
  display: grid; gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.mock-form input, .mock-form textarea {
  font: inherit;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.mock-form input:focus, .mock-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-color: var(--primary);
  background: var(--surface);
}
.mf-note {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
}
.mf-note a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 32px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-mark {
  width: 34px;
  height: 37px;
}
.footer-tag {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.5;
}
.footer-mail {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}
.footer-col h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    radial-gradient(900px 400px at 100% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%),
    var(--bg);
}
.legal-topbar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 32px 0;
}
.legal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
}
.legal-back:hover { color: var(--primary); }
.legal-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 32px 72px;
}
.legal-card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 40px;
  backdrop-filter: blur(18px);
}
.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-title {
  margin-top: 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}
.legal-updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}
.legal-intro {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 1.02rem;
}
.legal-sections {
  margin-top: 32px;
  display: grid;
  gap: 28px;
}
.legal-section h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.legal-section p {
  color: var(--ink-2);
  margin-top: 10px;
}
.legal-section p:first-of-type { margin-top: 0; }
.legal-section ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
  color: var(--ink-2);
}
.legal-section li + li { margin-top: 8px; }
.legal-contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.legal-placeholder {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .problems-grid { grid-template-columns: 1fr; }
  .product-split { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .poc-grid { grid-template-columns: repeat(2, 1fr); }
  .poc-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .poc-cell:nth-child(2n) { border-right: none; }
  .poc-timeline { flex-direction: column; }
  .poc-connector { display: none; }
  .clients-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .legal-card { padding: 32px; }
  .gantt-window { transform: none; }
  .gantt-window:hover { transform: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .nav-cta-desktop { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 64px 20px; }
  .section-title { font-size: 2rem; }
  .feature-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .mf-row { grid-template-columns: 1fr; }
  .poc-card { padding: 28px; }
  .poc-grid { grid-template-columns: 1fr; }
  .gantt-stage { height: auto; }
  .ga-axis-corner, .ga-lane-label { width: 100px; }
  .ga-axis, .ga-lane { grid-template-columns: 100px 1fr; }
  .hero-kpis { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-kpis div:last-child { grid-column: 1 / -1; }
  .legal-topbar-inner { flex-direction: column; align-items: flex-start; }
  .legal-topbar,
  .legal-wrap { padding-left: 20px; padding-right: 20px; }
  .legal-card { padding: 24px; border-radius: 18px; }

  /* Hero on mobile: scale the gantt down and tighten layout */
  .hero { padding: 48px 0 64px; }
  .hero-inner { padding: 0 20px; }
  .hero-lede { font-size: 1rem; }
  .hero-gantt {
    overflow: hidden;
    height: 290px;
  }
  .gantt-window {
    transform: scale(0.65);
    transform-origin: top left;
    width: calc(100% / 0.65);
  }
  .gantt-window:hover { transform: scale(0.65); }
  .hero-gantt .ga-slot.is-clicking,
  .hero-gantt .ga-tool.is-clicking,
  .hero-gantt .ga-slot.is-grabbing { transform: none; }
  /* Cursor/toast use raw pixel coords — they'd drift at scaled positions */
  .ga-cursor, .ga-toast { display: none; }
}




