:root {
  --ink: #0A0E0E;
  --ink-2: #101615;
  --cream: #F2F5F4;
  --paper: #FFFFFF;
  --accent: #0E9E8F;
  --accent-2: #3FD4C0;
  --accent-soft: #DCF5F1;
  --text: #0E1413;
  --muted: #66726F;
  --line: #DCE3E1;
  --line-dark: #1C2625;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.display {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.serif {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 237, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(20, 24, 31, 0.06);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.logo-mark::after {
  content: "";
  position: absolute;
  right: -4px; bottom: -4px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 500;
  font-size: 15px;
}
.nav-links a {
  color: var(--text);
  opacity: 0.7;
  transition: opacity .2s, color .2s;
  position: relative;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  color: var(--ink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 42px; height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- HERO (home) ---------- */
.hero {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 9vw, 110px) 0 180px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(14, 158, 143, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 90%, rgba(63, 212, 192, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 26px;
}
.kicker .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(14, 158, 143, 0.18);
}
h1.hero-title {
  font-size: clamp(40px, 6.2vw, 80px);
  margin: 0 0 24px;
  color: var(--cream);
}
h1.hero-title .accent-line {
  display: inline-block;
  position: relative;
  color: var(--accent);
}
h1.hero-title em {
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  color: var(--accent-2);
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(247, 244, 237, 0.72);
  max-width: 520px;
  margin-bottom: 36px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s, background .2s, color .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 244, 237, 0.25);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light {
  background: var(--ink);
  color: var(--cream);
}
.btn-light:hover { background: var(--accent); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 24, 31, 0.2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/4.2;
}
.hv-card {
  position: absolute;
  border-radius: var(--radius-md);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  overflow: hidden;
}
.hv-terminal {
  inset: 0% 8% 22% 0%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.hv-terminal-head {
  background: #0A0F16;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(247, 244, 237, 0.5);
  font-family: 'Space Grotesk', sans-serif;
}
.hv-terminal-head .lights { display: flex; gap: 6px; margin-right: 12px; }
.hv-terminal-head .lights span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #374151;
}
.hv-terminal-head .lights span:first-child { background: #F25C32; }
.hv-terminal-head .lights span:nth-child(2) { background: #F5C04E; }
.hv-terminal-head .lights span:nth-child(3) { background: #4CAF6C; }
.hv-terminal-body {
  padding: 22px 24px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(247, 244, 237, 0.85);
}
.hv-terminal-body .cm { color: rgba(247, 244, 237, 0.4); }
.hv-terminal-body .pr { color: var(--accent-2); }
.hv-terminal-body .ok { color: #4CAF6C; }
.hv-terminal-body .key { color: #82B7FF; }
.cursor {
  display: inline-block;
  width: 7px; height: 16px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hv-chart {
  right: 0; bottom: 0;
  width: 62%;
  height: 42%;
  background: var(--accent);
  color: var(--ink);
  padding: 20px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(14, 158, 143, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hv-chart .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.hv-chart .big {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
}
.hv-bars { display: flex; align-items: end; gap: 6px; height: 50px; }
.hv-bars span {
  flex: 1;
  background: rgba(14, 20, 27, 0.85);
  border-radius: 3px 3px 0 0;
}

/* ---------- PAGE HEADER (sub-pages) ---------- */
.page-header {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 8vw, 110px) 0 clamp(60px, 7vw, 90px);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 90% 20%, rgba(14, 158, 143, 0.18), transparent 60%),
    radial-gradient(500px 300px at -5% 100%, rgba(63, 212, 192, 0.12), transparent 60%);
  pointer-events: none;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(247, 244, 237, 0.5);
  margin-bottom: 28px;
  font-family: 'Space Grotesk', sans-serif;
}
.breadcrumbs a { color: rgba(247, 244, 237, 0.5); transition: color .2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs .current { color: var(--cream); }
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--cream);
}
.page-header h1 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.page-header .lead {
  color: rgba(247, 244, 237, 0.7);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 460px;
  margin: 0;
}

/* ---------- STATS STRIP ---------- */
.stats-wrap {
  margin-top: -110px;
  position: relative;
  z-index: 2;
}
.stats {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  box-shadow: 0 30px 60px -20px rgba(14, 20, 27, 0.18);
  border: 1px solid rgba(20, 24, 31, 0.04);
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat .num em {
  color: var(--accent);
  font-style: normal;
}
.stat .lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

/* ---------- SECTION SHARED ---------- */
section { padding: clamp(70px, 9vw, 120px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--accent);
}
h2.section-title {
  font-size: clamp(32px, 4.2vw, 54px);
  margin: 0;
  color: var(--ink);
}
.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
.svc-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(20, 24, 31, 0.05);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(14, 20, 27, 0.18);
}
.svc-card.lg { padding: 48px; }
.svc-card.dark {
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.svc-card.dark::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 240px; height: 240px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.svc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.svc-card.dark .svc-icon { background: rgba(14, 158, 143, 0.15); }
.svc-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.svc-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15.5px;
}
.svc-card.dark p { color: rgba(247, 244, 237, 0.7); }
.svc-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}
.svc-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text);
}
.svc-card.dark .svc-list li { color: rgba(247, 244, 237, 0.9); }
.svc-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: -1px;
}
.svc-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.svc-card.dark .svc-link { border-color: rgba(247, 244, 237, 0.12); }
.svc-link:hover { gap: 12px; }

.svc-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.mini-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.mini-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.mini-card .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.mini-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.mini-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---------- ABOUT ---------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4/4.4;
}
.ab-shape-1 {
  position: absolute;
  inset: 0 20% 25% 0;
  background: linear-gradient(160deg, #1E2A38 0%, #0E141B 100%);
  border-radius: 30px 30px 30px 100px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.ab-shape-1::before {
  content: "";
  position: absolute;
  top: 30px; right: 30px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  filter: blur(2px);
}
.ab-shape-1 svg { width: 100%; opacity: 0.4; }
.ab-shape-2 {
  position: absolute;
  right: 0; bottom: 0;
  width: 55%; aspect-ratio: 1;
  background: var(--accent);
  border-radius: 100px 30px 30px 30px;
  display: grid;
  place-items: center;
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 30px 60px -20px rgba(14, 158, 143, 0.5);
}
.ab-shape-2 .text-content {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ab-shape-2 .small {
  font-family: 'Space Grotesk', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}
.about-copy h2 { color: var(--ink); margin-bottom: 24px; }
.about-copy p {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 20px;
}
.about-copy p strong { color: var(--text); font-weight: 600; }
.about-bullets {
  list-style: none;
  padding: 0; margin: 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.about-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.about-bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E9E8F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- EXPLORE TILES (home links) ---------- */
.explore { background: var(--paper); }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  min-height: 260px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(20, 24, 31, 0.04);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(14, 20, 27, 0.2);
}
.tile.dark { background: var(--ink); color: var(--cream); }
.tile.accent { background: var(--accent); color: var(--ink); }
.tile-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.tile.dark .tile-tag { color: var(--accent-2); }
.tile.accent .tile-tag { color: var(--ink); opacity: 0.7; }
.tile h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.tile p {
  margin: 0 0 30px;
  font-size: 15px;
  color: var(--muted);
  max-width: 380px;
}
.tile.dark p { color: rgba(247, 244, 237, 0.7); }
.tile.accent p { color: rgba(14, 20, 27, 0.75); }
.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  transition: gap .2s;
}
.tile:hover .tile-arrow { gap: 14px; }
.tile.dark .tile-arrow { color: var(--accent-2); }
.tile.accent .tile-arrow { color: var(--ink); }

/* ---------- PRODUCTS ---------- */
.products {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.products::before {
  content: "";
  position: absolute;
  top: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,158,143,0.08), transparent 70%);
  pointer-events: none;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pr-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid rgba(20, 24, 31, 0.05);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.pr-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -25px rgba(14, 20, 27, 0.2);
}
.pr-card .badge {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pr-card .icon-tile {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 22px;
}
.pr-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.pr-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 22px;
  min-height: 60px;
}
.pr-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-tags span {
  font-size: 12px;
  color: var(--muted);
  background: var(--cream);
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ---------- DETAIL CARD (long product/process pages) ---------- */
.detail-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid rgba(20, 24, 31, 0.05);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 48px;
}
.detail-card .side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-card .ico-block {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
}
.detail-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
}
.detail-card .lead-text {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
}
.detail-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.detail-card .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.detail-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.detail-card .feature-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- PROCESS ---------- */
.process { background: var(--paper); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.step {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--cream);
  position: relative;
}
.step .n {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- DEEP PROCESS (timeline on process page) ---------- */
.timeline {
  display: grid;
  gap: 20px;
}
.tl-row {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 24, 31, 0.05);
  padding: 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.tl-row .marker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-row .marker .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 50px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.tl-row .marker .phase {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-row h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.tl-row > div:last-child > p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 20px;
}
.tl-row .deliverables {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.tl-row .deliverables li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.tl-row .deliverables li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 40px;
  margin: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  right: -100px; top: -100px;
  width: 350px; height: 350px;
  background: rgba(14, 20, 27, 0.12);
  border-radius: 50%;
}
.cta-banner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
}
.cta-banner h2 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
}
.cta-banner p { color: rgba(14, 20, 27, 0.75); font-size: 16px; margin: 0; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: flex-end; position: relative; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(247, 244, 237, 0.7);
  padding: 70px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot-brand .logo { color: var(--cream); margin-bottom: 18px; }
.foot-brand p { font-size: 14.5px; max-width: 280px; line-height: 1.65; }
.foot-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 18px;
  letter-spacing: 0;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.foot-col a { transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid rgba(247, 244, 237, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(247, 244, 237, 0.08);
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--accent); color: var(--ink); }

/* ---------- FEATURED PRODUCT (products page hero) ---------- */
.featured-product {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
}
.featured-product::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 90% 10%, rgba(14,158,143,0.22), transparent 60%),
    radial-gradient(400px 240px at 5% 100%, rgba(63,212,192,0.12), transparent 60%);
  pointer-events: none;
}
.featured-product > * { position: relative; z-index: 1; }
.featured-product .tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.featured-product .tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,158,143,0.25);
  animation: forge-pulse 1.6s ease-in-out infinite;
}
.featured-product h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--cream);
}
.featured-product h2 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.featured-product p {
  color: rgba(247, 244, 237, 0.72);
  font-size: clamp(15px, 1.4vw, 17px);
  margin: 0 0 28px;
  max-width: 520px;
}
.featured-product .fp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.featured-product .fp-actions .btn-primary { background: var(--accent); }
.featured-product .fp-actions .btn-primary:hover { background: var(--accent-2); }

.fp-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: rgba(247, 244, 237, 0.03);
  border: 1px solid rgba(247, 244, 237, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fp-visual .fp-svg-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-visual svg { width: 100%; height: 100%; }
.fp-edge-static {
  stroke: rgba(247, 244, 237, 0.12);
  stroke-width: 1;
}
.fp-edge-static.lit {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: forge-edge-flow 1.4s linear infinite;
}
.fp-node-static {
  fill: rgba(247, 244, 237, 0.08);
  stroke: rgba(247, 244, 237, 0.22);
}
.fp-node-static.lit {
  fill: var(--accent);
  stroke: var(--accent-2);
}
.fp-stage-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, 0.5);
}
.fp-stage-row span.lit { color: var(--accent-2); }

/* ---------- FORGE (prompt strengthener — refined) ---------- */

.forge {
  background: var(--cream);
  padding-top: clamp(60px, 7vw, 90px);
  position: relative;
}
.forge::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20, 24, 31, 0.04) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 8%, black 92%, transparent);
  pointer-events: none;
  z-index: 0;
}
.forge > * { position: relative; z-index: 1; }

.forge-section-head {
  margin-top: clamp(64px, 7vw, 96px);
  margin-bottom: 36px;
}
.forge-section-head .section-title {
  font-size: clamp(28px, 3.4vw, 42px);
}

/* ---------- MODE PILL BAR ---------- */
.forge-pillbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.pillbar-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillbar {
  position: relative;
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
  box-shadow: 0 1px 0 rgba(20, 24, 31, 0.04);
}
.pill {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 9px 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s ease;
  white-space: nowrap;
}
.pill:hover { color: var(--text); }
.pill.active { color: var(--cream); }
.pill.active .pill-flag { color: var(--accent-2); }
.pill-flag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  margin-left: 5px;
  opacity: 0;
  transition: opacity .2s ease;
}
.pill.active .pill-flag { opacity: 1; }
.pill-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  background: var(--ink);
  border-radius: 999px;
  transition: left .35s cubic-bezier(0.4, 0, 0.2, 1),
              width .35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  box-shadow: 0 6px 18px -8px rgba(14, 20, 27, 0.55);
}

/* ---------- WORKBENCH (input + output) ---------- */
.forge-bench {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
}

.bench-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(20, 24, 31, 0.06);
  padding: clamp(24px, 2.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 460px;
  transition: box-shadow .35s ease, transform .35s ease;
}
.bench-card.bench-input:focus-within {
  box-shadow: 0 24px 60px -28px rgba(20, 24, 31, 0.18);
}

.bench-card.bench-output {
  background: var(--ink);
  color: var(--cream);
  border-color: transparent;
  overflow: hidden;
  box-shadow:
    0 30px 70px -28px rgba(14, 20, 27, 0.45),
    inset 0 1px 0 rgba(247, 244, 237, 0.04);
}
.bench-card.bench-output::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(14, 158, 143, 0.18), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(63, 212, 192, 0.08), transparent 60%);
  pointer-events: none;
}
.bench-card.bench-output::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.bench-card.bench-output.has-output::after { width: 100%; }
.bench-card.bench-output > * { position: relative; }

.bench-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}
.bench-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bench-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 158, 143, 0.18);
}
.bench-output .bench-eyebrow { color: var(--accent-2); }
.bench-output .bench-eyebrow .dot {
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(63, 212, 192, 0.22);
}

.bench-meta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.bench-output .bench-meta { color: rgba(247, 244, 237, 0.45); }
.bench-meta .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(76, 175, 108, 0.12);
  color: #2A8049;
  font-weight: 600;
}
.bench-output .bench-meta .delta {
  background: rgba(76, 175, 108, 0.2);
  color: #6FD58A;
}
.bench-meta .delta.empty { display: none; }

.bench-textarea {
  flex: 1;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  resize: none;
  background: var(--cream);
  color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s;
  min-height: 240px;
}
.bench-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(14, 158, 143, 0.08);
}
.bench-output .bench-textarea {
  background: rgba(247, 244, 237, 0.03);
  border-color: rgba(247, 244, 237, 0.08);
  color: var(--cream);
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.005em;
}
.bench-output .bench-textarea:focus {
  background: rgba(247, 244, 237, 0.05);
  box-shadow: none;
}
.bench-textarea::placeholder { color: var(--muted); opacity: 0.7; }
.bench-output .bench-textarea::placeholder { color: rgba(247, 244, 237, 0.28); }

.bench-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- STRENGTHEN BUTTON ---------- */
.btn-strengthen {
  position: relative;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: 0 12px 28px -14px rgba(14, 20, 27, 0.5);
}
.btn-strengthen:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(14, 158, 143, 0.55);
}
.btn-strengthen:active:not(:disabled) {
  transform: translateY(0);
}
.btn-strengthen:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-strengthen .label-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-strengthen .label-text em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-2);
}
.btn-strengthen .arrow-icon {
  transition: transform .25s ease;
}
.btn-strengthen:hover:not(:disabled) .arrow-icon {
  transform: translateX(3px);
}
.btn-strengthen .progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  width: 0%;
  transition: width .35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.btn-strengthen.is-working { background: var(--ink); }
.btn-strengthen.is-working .progress-fill { width: 100%; }
.btn-strengthen.is-working .arrow-icon { display: none; }
.btn-strengthen .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(247, 244, 237, 0.25);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: forge-spin .7s linear infinite;
}
.btn-strengthen.is-working .spinner { display: inline-block; }
@keyframes forge-spin { to { transform: rotate(360deg); } }

.btn-link {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.btn-link:hover { color: var(--accent); background: var(--accent-soft); }
.bench-output .btn-link { color: rgba(247, 244, 237, 0.55); }
.bench-output .btn-link:hover {
  color: var(--accent-2);
  background: rgba(14, 158, 143, 0.12);
}

/* ---------- COPY BUTTON (output card) ---------- */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid rgba(247, 244, 237, 0.14);
  background: rgba(247, 244, 237, 0.04);
  color: var(--cream);
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .2s ease;
}
.btn-copy:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-copy:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-copy svg { width: 15px; height: 15px; }
.btn-copy.copied { background: #2A8049; border-color: #2A8049; }

.copy-toast {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2A8049;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px) scale(0.95);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 5;
}
.copy-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- NEURAL NETWORK ---------- */
.forge-network {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 44px) clamp(22px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(14, 20, 27, 0.5);
}
.forge-network::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 25% 0%, rgba(14, 158, 143, 0.14), transparent 60%),
    radial-gradient(600px 320px at 85% 100%, rgba(63, 212, 192, 0.09), transparent 60%);
  pointer-events: none;
}
.forge-network > * { position: relative; }

.network-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.network-head .net-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.network-head .net-title-block h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.network-head .net-title-block h3 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.network-head .net-bench-eyebrow {
  color: var(--accent-2);
}

.network-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, 0.6);
  background: rgba(247, 244, 237, 0.04);
  border: 1px solid rgba(247, 244, 237, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.network-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(247, 244, 237, 0.3);
  transition: background .25s, box-shadow .25s;
}
.forge-network.is-running .network-status::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 158, 143, 0.2);
  animation: forge-pulse 1.1s ease-in-out infinite;
}
.forge-network.is-done .network-status::before {
  background: #6FD58A;
  box-shadow: 0 0 0 4px rgba(76, 175, 108, 0.18);
}
@keyframes forge-pulse {
  50% { box-shadow: 0 0 0 10px rgba(14, 158, 143, 0); }
}

.network-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1200/280;
  background: rgba(247, 244, 237, 0.02);
  border: 1px solid rgba(247, 244, 237, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.forge-edge {
  stroke: rgba(247, 244, 237, 0.08);
  stroke-width: 0.8;
  transition: stroke .35s, stroke-width .35s;
}
.forge-edge.is-active {
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 5 3;
  animation: forge-edge-flow 1s linear infinite;
}
@keyframes forge-edge-flow {
  to { stroke-dashoffset: -16; }
}
.forge-node {
  fill: rgba(247, 244, 237, 0.06);
  stroke: rgba(247, 244, 237, 0.22);
  stroke-width: 1;
  transition: fill .3s, stroke .3s, r .35s ease;
}
.forge-node.is-active {
  fill: var(--accent);
  stroke: var(--accent-2);
  stroke-width: 1.5;
  filter: url(#node-glow);
}
.forge-node-input.is-active { animation: pulse-in 1.6s ease-out infinite; }
@keyframes pulse-in {
  0%, 100% { r: 9; }
  50% { r: 11; }
}
.scan-line {
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
}
.scan-line.is-sweeping {
  animation: sweep 1.8s ease-out forwards;
}
@keyframes sweep {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: translateX(1200px); opacity: 0; }
}

/* ---------- STAGE PROGRESS BAR ---------- */
.stage-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.stage-item {
  position: relative;
  padding: 16px 18px 18px;
  background: rgba(247, 244, 237, 0.03);
  border: 1px solid rgba(247, 244, 237, 0.06);
  border-radius: var(--radius-md);
  transition: background .3s, border-color .3s, transform .3s;
  overflow: hidden;
}
.stage-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .45s cubic-bezier(0.4, 0, 0.2, 1);
}
.stage-item.is-active {
  background: rgba(14, 158, 143, 0.08);
  border-color: rgba(14, 158, 143, 0.4);
  transform: translateY(-2px);
}
.stage-item.is-active::before { width: 100%; }
.stage-item.is-done {
  background: rgba(76, 175, 108, 0.06);
  border-color: rgba(76, 175, 108, 0.3);
}
.stage-item.is-done::before {
  width: 100%;
  background: rgba(76, 175, 108, 0.6);
}
.stage-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(247, 244, 237, 0.4);
  margin-bottom: 6px;
}
.stage-item.is-active .stage-num { color: var(--accent-2); }
.stage-item.is-done .stage-num { color: #6FD58A; }
.stage-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 6px;
}
.stage-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(247, 244, 237, 0.55);
}

/* ---------- HISTORY ---------- */
.forge-history {
  margin-top: 8px;
}
.forge-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.forge-history-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.history-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px rgba(20, 24, 31, 0.15);
}
.history-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.history-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.history-mode::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.history-ts {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.history-preview {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.history-del {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background .15s, color .15s;
}
.history-card:hover .history-del { display: inline-flex; }
.history-del:hover { color: var(--accent); background: var(--accent-soft); }
.history-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 14.5px;
}
.history-empty em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}

/* ---------- MOBILE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    padding: 24px 20px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }
  .nav.open .nav-links a.active::after { display: none; }
  .nav.open .nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
  }
  .hero { padding: 60px 0 150px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .page-header-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px; }
  .stat + .stat { border-left: none; padding-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 22px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; margin-bottom: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-mini { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-visual { max-width: 460px; margin: 0 auto; }
  .about-bullets { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .detail-card { grid-template-columns: 1fr; padding: 32px; gap: 28px; }
  .detail-card .feature-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .tl-row { grid-template-columns: 1fr; padding: 32px; gap: 16px; }
  .tl-row .deliverables { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 36px; }
  .cta-actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .featured-product { grid-template-columns: 1fr; padding: 32px; }
  .fp-visual { aspect-ratio: 5/3; max-width: 480px; }
  .forge-bench { grid-template-columns: 1fr; gap: 18px; }
  .bench-card { min-height: auto; padding: 22px; }
  .bench-textarea { min-height: 180px; }
  .forge-network { padding: 26px 20px; }
  .network-canvas { aspect-ratio: 4/3; }
  .stage-bar { grid-template-columns: repeat(2, 1fr); }
  .history-grid { grid-template-columns: 1fr; }
  .forge-pillbar { gap: 12px; }
  .pillbar { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .pill { padding: 9px 14px; font-size: 13px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(2), .stat:nth-child(3), .stat:nth-child(4) {
    border-top: 1px solid var(--line); padding-top: 22px;
  }
  .process-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .stage-bar { grid-template-columns: 1fr; }
  .bench-foot { width: 100%; }
  .btn-strengthen { width: 100%; }
  .network-canvas { aspect-ratio: 3/4; }
}
