/* ============================================================
   DEV4AGER design system v2
   near-black monochrome · hairline borders · one quiet accent
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0c;
  --surface: #101014;
  --surface-2: #131318;

  --text-1: #f7f8f8;
  --text-2: #9a9fa8;
  --text-3: #63666d;

  --accent: #6a7cff;
  --accent-soft: rgba(106, 124, 255, 0.16);
  --green: #3fb950;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --card-bg: rgba(255, 255, 255, 0.02);
  --card-bg-hover: rgba(255, 255, 255, 0.045);

  --r-lg: 16px;
  --r-md: 12px;
  --r-pill: 999px;

  --font: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: 1200px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }

::selection { background: rgba(106, 124, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232329; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e2e35; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-3); }
.dim { color: var(--text-3); }
.title-dot { color: var(--accent); }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(880px, 100% - 48px); margin-inline: auto; }

main { position: relative; z-index: 2; }

/* ---------- progress bar ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 2px; width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- section & headings ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 152px) 0; scroll-margin-top: 84px; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.014) 18%, rgba(255, 255, 255, 0.014) 82%, transparent); }

.sec-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 76px); position: relative; z-index: 2; }
.sec-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: 18px 0 18px; letter-spacing: -0.035em; text-wrap: balance; }
.lead { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase;
}
.eyebrow-idx { color: var(--accent); letter-spacing: 0.08em; }
.eyebrow-center { justify-content: center; }
.eyebrow-mini { font-size: 0.7rem; letter-spacing: 0.18em; color: var(--text-3); }

/* ---------- icons ---------- */
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ic-box {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 10px; color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: color 0.25s, border-color 0.25s;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 0.92rem; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
}
.btn .ic { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }

.btn-primary { background: #fff; color: #0a0a0c; }
.btn-primary:hover { background: #e4e4e8; }

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.03); }

.btn-text { padding: 12px 4px; color: var(--text-2); }
.btn-text:hover { color: var(--text-1); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 15px 32px; font-size: 0.98rem; }

/* ---------- chips, badges, dots ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-2); font-size: 0.85rem; font-weight: 450;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--text-1); background: rgba(255, 255, 255, 0.03); }
.chip-sm { padding: 4px 11px; font-size: 0.72rem; font-family: var(--font-mono); color: var(--text-3); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }

.pulse-dot {
  position: relative; width: 7px; height: 7px; flex: none;
  border-radius: 50%; background: var(--green);
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--green); opacity: 0.5;
  animation: pulseRing 2.4s var(--ease) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.4); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: auto; }

/* ---------- cards (uniform, calm) ---------- */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: background 0.3s, border-color 0.3s;
  overflow: hidden;
}
.card:hover { background: var(--card-bg-hover); border-color: var(--border-strong); }
.card:hover .ic-box { color: var(--text-1); border-color: var(--border-strong); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 11px 0;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
}
.logo-mark .ic { width: 15px; height: 15px; }
.logo-word { font-weight: 600; font-size: 1.16rem; letter-spacing: -0.02em; }
.logo-word em { color: var(--accent); }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 7px 13px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 450; color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--text-1); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px; padding: 10px;
  border: 1px solid var(--border-strong); border-radius: 10px;
}
.nav-toggle span { height: 1.5px; width: 100%; background: var(--text-1); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em;
  padding: 10px 0; color: var(--text-1);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.2s;
}
.mobile-menu.open .mobile-links a { opacity: 1; transform: none; }
.mobile-links a:hover { color: var(--text-2); }
.mobile-links .mm-idx { font-size: 0.75rem; color: var(--text-3); }
.mobile-links .mm-cta { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(140px, 17vh, 200px) 0 clamp(48px, 6vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 72% -8%, rgba(106, 124, 255, 0.07), transparent 65%),
    radial-gradient(900px 500px at 20% -12%, rgba(255, 255, 255, 0.03), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  position: relative; z-index: 2;
}

.hero-status {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 7px 15px; margin-bottom: 30px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 450; color: var(--text-2);
}
.hero-status .mono { font-size: 0.64rem; letter-spacing: 0.14em; }
.hs-sep { width: 1px; height: 13px; background: var(--border-strong); }

.hero-title {
  font-size: clamp(2.6rem, 5.3vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04; letter-spacing: -0.045em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero-sub {
  color: var(--text-2);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  max-width: 540px; margin-bottom: 38px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 9px; }

/* ----- workspace ----- */
.hero-visual { position: relative; z-index: 2; }
.workspace { position: relative; height: 590px; }

.panel {
  position: absolute;
  background: #0e0e12;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 24px 64px -28px rgba(0, 0, 0, 0.85);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: border-color 0.25s;
}
.panel:hover { border-color: var(--border-strong); }

.panel-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.pb-tight { padding: 9px 13px; }
.panel-title { font-size: 0.76rem; font-weight: 500; color: var(--text-2); }

.tl-dots { display: inline-flex; gap: 6px; flex: none; }
.tl-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c33; }

/* editor */
.p-editor { left: 0; top: 20px; width: 68%; z-index: 2; }
.editor-tabs { display: flex; gap: 4px; overflow: hidden; }
.editor-tabs .tab {
  padding: 4px 12px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3);
  border: 1px solid transparent; white-space: nowrap;
}
.editor-tabs .tab.active {
  color: var(--text-1); background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}
.bar-tag {
  margin-left: auto; font-size: 0.62rem; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 3px 8px;
}
.editor-body {
  padding: 16px 16px 18px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem; line-height: 1.75;
  min-height: 268px;
  counter-reset: line;
  white-space: pre; overflow: hidden;
}
.cline { display: flex; min-height: 1.3em; }
.cline::before {
  counter-increment: line; content: counter(line, decimal-leading-zero);
  width: 30px; flex: none; color: #2e2e36; text-align: right; margin-right: 14px;
  user-select: none;
}
.tk-kw { color: #b3a9f4; }
.tk-fn { color: #7fa3f7; }
.tk-str { color: #8fbf9f; }
.tk-cm { color: #55565e; font-style: italic; }
.tk-cl { color: #d9b38a; }
.tk-nm { color: #d9b38a; }
.tk-pl { color: #c5c9d3; }

.type-cursor {
  display: inline-block; width: 7px; height: 1.05em;
  background: #d5d7dd; vertical-align: -0.15em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.editor-foot {
  display: flex; gap: 18px; padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.62rem; color: var(--text-3);
}
.editor-foot .ok { color: var(--green); }

/* assistant */
.p-assistant { right: 0; top: 0; width: 46%; z-index: 3; }
.ai-ic { color: var(--accent); font-size: 0.5rem; }
.assistant-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 176px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 10px; font-size: 0.74rem; line-height: 1.5; }
.msg-who { display: block; font-size: 0.56rem; letter-spacing: 0.16em; margin-bottom: 3px; color: var(--text-3); }
.m-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
}
.m-ai {
  align-self: flex-start;
  background: rgba(106, 124, 255, 0.06);
  border: 1px solid rgba(106, 124, 255, 0.18);
  color: #cdd3ea;
}
.m-typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.m-typing i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--text-2);
  animation: tdot 1.1s ease-in-out infinite;
}
.m-typing i:nth-child(2) { animation-delay: 0.15s; }
.m-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.assistant-status {
  padding: 8px 14px; border-top: 1px solid var(--border);
  font-size: 0.6rem; color: var(--text-3); letter-spacing: 0.06em;
}

/* dashboard */
.p-dash { left: 2%; bottom: 16px; width: 38%; z-index: 3; padding: 15px 16px 14px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chip-up { font-size: 0.62rem; color: var(--green); padding: 2px 0; }
.dash-num { font-size: 1.3rem; font-weight: 600; color: var(--text-1); letter-spacing: -0.02em; }
.dash-sub { font-size: 0.6rem; color: var(--text-3); font-weight: 400; }
.dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 12px; }
.dash-bars i {
  flex: 1; border-radius: 3px 3px 1px 1px;
  background: rgba(255, 255, 255, 0.22);
  height: var(--h);
  transform-origin: bottom;
  animation: barIn 0.9s var(--ease) backwards;
}
.dash-bars i:nth-child(1) { animation-delay: 0.1s; }
.dash-bars i:nth-child(2) { animation-delay: 0.16s; }
.dash-bars i:nth-child(3) { animation-delay: 0.22s; }
.dash-bars i:nth-child(4) { animation-delay: 0.28s; }
.dash-bars i:nth-child(5) { animation-delay: 0.34s; }
.dash-bars i:nth-child(6) { animation-delay: 0.4s; }
.dash-bars i:nth-child(7) { animation-delay: 0.46s; background: var(--accent); }
@keyframes barIn { from { transform: scaleY(0); } }

/* terminal */
.p-term { right: 2%; bottom: 0; width: 54%; z-index: 4; }
.term-body {
  padding: 13px 15px; min-height: 138px;
  font-family: var(--font-mono);
  font-size: 0.7rem; line-height: 1.85; color: var(--text-2);
}
.term-line { white-space: nowrap; overflow: hidden; }
.term-line .prompt { color: var(--green); }
.term-line.t-ok { color: var(--green); }
.term-line.t-dim { color: var(--text-3); }
.term-line.t-url { color: var(--accent); }

/* deploy card */
.p-deploy { left: 50%; top: 46%; z-index: 5; padding: 12px 16px; width: auto; }
.deploy-row { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 500; }
.deploy-row .mono { font-size: 0.6rem; }
.deploy-url { font-family: var(--font-mono); color: var(--accent); font-size: 0.64rem; margin-top: 5px; }
.deploy-meta { font-family: var(--font-mono); color: var(--text-3); font-size: 0.58rem; margin-top: 3px; }

.bob { animation: bob 8s ease-in-out infinite alternate; }
.bob-slow { animation: bob 10s ease-in-out infinite alternate-reverse; }
@keyframes bob { from { margin-top: 0; } to { margin-top: -6px; } }

/* floating tags */
.float-tag {
  position: absolute; z-index: 6;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.03em; color: var(--text-2);
  background: #0e0e12;
  border: 1px solid var(--border-strong);
  animation: floatTag 7s ease-in-out infinite alternate;
}
.ft-1 { top: -12px; left: 6%; animation-delay: 0s; }
.ft-2 { top: 27%; right: -14px; animation-delay: 0.9s; }
.ft-3 { top: 47%; left: -18px; animation-delay: 1.6s; }
.ft-4 { bottom: -12px; left: 26%; animation-delay: 0.5s; }
.ft-5 { bottom: 27%; right: -10px; animation-delay: 1.2s; }
.ft-6 { top: -10px; right: 24%; animation-delay: 2s; }
@keyframes floatTag { from { transform: translateY(3px); } to { transform: translateY(-5px); } }

/* pipeline */
.pipeline {
  display: flex; align-items: center; gap: 18px;
  margin-top: clamp(48px, 6vw, 76px);
  padding: 20px 26px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card-bg);
  position: relative; z-index: 2;
}
.pipe-node { display: flex; align-items: center; gap: 12px; flex: none; }
.pipe-ic {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.pipe-ic .ic { width: 16px; height: 16px; }
.pipe-label { font-size: 0.64rem; letter-spacing: 0.14em; color: var(--text-3); }
.pipe-line {
  position: relative; flex: 1; height: 1px; min-width: 20px;
  background: var(--border-strong);
}
.pipe-line::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: var(--accent);
  animation: travel 3.2s ease-in-out infinite;
}
@keyframes travel {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

/* ============================================================
   MARQUEE (tools ticker)
   ============================================================ */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee-track span { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--text-3); white-space: nowrap; }
.marquee-track i { color: var(--text-3); font-style: normal; font-size: 0.7rem; opacity: 0.6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative; z-index: 2;
}
.svc-card { padding: 22px 22px 0; display: flex; flex-direction: column; }
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.svc-ar {
  margin-left: auto; width: 15px; height: 15px; color: var(--text-3);
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity 0.25s, transform 0.25s var(--ease), color 0.25s;
}
.svc-card:hover .svc-ar { opacity: 1; transform: none; color: var(--text-1); }
.svc-head .ic-box { width: 36px; height: 36px; border-radius: 9px; }
.svc-head .ic { width: 17px; height: 17px; }
.svc-card h3 { font-size: 0.98rem; letter-spacing: -0.015em; }
.svc-card > p { font-size: 0.84rem; color: var(--text-2); line-height: 1.55; flex: 1; }

/* mini previews: monochrome, quiet */
.pv {
  margin-top: 16px; height: 60px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  opacity: 0.4;
  transition: opacity 0.35s;
}
.svc-card:hover .pv { opacity: 0.9; }

.pv-bars { gap: 5px; align-items: flex-end; padding: 12px 0; }
.pv-bars i {
  width: 9px; border-radius: 2px 2px 1px 1px;
  background: rgba(255, 255, 255, 0.25);
  animation: pvBar 2.6s ease-in-out infinite alternate;
}
.pv-bars i:nth-child(1) { height: 38%; animation-delay: 0s; }
.pv-bars i:nth-child(2) { height: 62%; animation-delay: 0.2s; }
.pv-bars i:nth-child(3) { height: 46%; animation-delay: 0.4s; }
.pv-bars i:nth-child(4) { height: 78%; animation-delay: 0.6s; }
.pv-bars i:nth-child(5) { height: 58%; animation-delay: 0.8s; background: rgba(106, 124, 255, 0.55); }
@keyframes pvBar { to { transform: scaleY(0.65); } }

.pv-code { flex-direction: column; align-items: flex-start; gap: 7px; padding: 0 8px; }
.pv-code i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); animation: pvFade 2.8s ease-in-out infinite; }
.pv-code i:nth-child(1) { width: 55%; background: rgba(106, 124, 255, 0.35); animation-delay: 0s; }
.pv-code i:nth-child(2) { width: 78%; animation-delay: 0.3s; }
.pv-code i:nth-child(3) { width: 40%; animation-delay: 0.6s; }
.pv-code i:nth-child(4) { width: 66%; animation-delay: 0.9s; }
@keyframes pvFade { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.pv-flow { gap: 0; }
.pv-flow b { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.32); flex: none; animation: pvNode 2.6s ease-in-out infinite; }
.pv-flow b:nth-child(3) { animation-delay: 0.8s; border-color: rgba(106, 124, 255, 0.7); }
.pv-flow b:nth-child(5) { animation-delay: 1.6s; }
.pv-flow u { width: 34px; height: 1px; text-decoration: none; background: rgba(255, 255, 255, 0.16); }
@keyframes pvNode { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.pv-grid { display: grid; grid-template-columns: repeat(6, 12px); grid-auto-rows: 12px; gap: 4px; }
.pv-grid i { border-radius: 3px; background: rgba(255, 255, 255, 0.07); animation: pvCell 3.2s ease-in-out infinite; }
.pv-grid i:nth-child(3n) { animation-delay: 0.5s; }
.pv-grid i:nth-child(3n+1) { animation-delay: 1.1s; }
.pv-grid i:nth-child(4n) { animation-delay: 1.7s; }
@keyframes pvCell { 0%, 100% { background: rgba(255, 255, 255, 0.07); } 50% { background: rgba(106, 124, 255, 0.35); } }

.pv-check { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 8px; }
.pv-check i { display: flex; align-items: center; gap: 7px; height: auto; }
.pv-check i::before {
  content: "✓"; display: grid; place-items: center;
  width: 12px; height: 12px; border-radius: 4px;
  font-size: 8px; color: var(--bg); font-weight: 700;
  background: var(--green); opacity: 0.85;
  animation: pvPop 3.2s var(--ease) infinite;
}
.pv-check i::after { content: ""; width: 62px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.pv-check i:nth-child(2)::before { animation-delay: 0.4s; }
.pv-check i:nth-child(2)::after { width: 44px; }
.pv-check i:nth-child(3)::before { animation-delay: 0.8s; }
.pv-check i:nth-child(3)::after { width: 54px; }
@keyframes pvPop { 0%, 100% { transform: scale(0.85); opacity: 0.4; } 30%, 70% { transform: scale(1); opacity: 0.9; } }

.pv-gauge { position: relative; }
.pv-gauge i {
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(rgba(106, 124, 255, 0.8) 0 74%, rgba(255, 255, 255, 0.1) 74% 100%);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
}
.pv-gauge::after {
  content: "98"; position: absolute;
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-2); font-weight: 500;
}

.pv-window { padding: 0 10px; }
.pv-window i {
  width: 100%; height: 42px; border-radius: 6px 6px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0;
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 10px, transparent 10px);
}
.pv-window i::before {
  content: ""; position: absolute; left: 8px; top: 16px;
  width: 40%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 9px 0 -1px rgba(255, 255, 255, 0.14), 0 17px 0 -2px rgba(255, 255, 255, 0.1);
}
.pv-window i::after {
  content: ""; position: absolute; right: 8px; top: 16px;
  width: 26%; height: 20px; border-radius: 4px;
  background: rgba(106, 124, 255, 0.25);
  animation: pvFade 2.8s ease-in-out infinite;
}

.pv-phone { gap: 10px; }
.pv-phone i {
  width: 28px; height: 46px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative; overflow: hidden;
}
.pv-phone i::before {
  content: ""; position: absolute; inset: 6px 5px auto;
  height: 7px; border-radius: 2px; background: rgba(106, 124, 255, 0.3);
  animation: pvFade 2.6s ease-in-out infinite;
}
.pv-phone i::after {
  content: ""; position: absolute; inset: 17px 5px 6px;
  border-radius: 2px; background: rgba(255, 255, 255, 0.07);
}

.pv-spark svg { width: 84%; height: 44px; overflow: visible; }
.pv-spark polyline {
  fill: none; stroke: rgba(106, 124, 255, 0.75); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: pvDraw 3.4s var(--ease) infinite;
}
@keyframes pvDraw { 25%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }

.pv-pills { gap: 6px; flex-wrap: wrap; padding: 0 10px; }
.pv-pills i {
  padding: 3px 10px; border-radius: var(--r-pill); font-style: normal;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-3);
  animation: pvPill 3s ease-in-out infinite;
}
.pv-pills i:nth-child(2) { animation-delay: 0.4s; }
.pv-pills i:nth-child(3) { animation-delay: 0.8s; }
@keyframes pvPill {
  0%, 100% { border-color: rgba(255, 255, 255, 0.14); color: var(--text-3); }
  50% { border-color: rgba(106, 124, 255, 0.4); color: var(--text-2); }
}

.pv-table { flex-direction: column; gap: 5px; padding: 0 10px; align-items: stretch; }
.pv-table i { display: flex; gap: 5px; }
.pv-table i::before, .pv-table i::after { content: ""; height: 5px; border-radius: 2px; }
.pv-table i::before { width: 26%; background: rgba(106, 124, 255, 0.3); }
.pv-table i::after { flex: 1; background: rgba(255, 255, 255, 0.1); animation: pvFade 2.7s ease-in-out infinite; }
.pv-table i:nth-child(2)::after { animation-delay: 0.35s; }
.pv-table i:nth-child(3)::after { animation-delay: 0.7s; }

/* ============================================================
   WORKFLOW TIMELINE
   ============================================================ */
.wf-wrap { position: relative; max-width: 820px; z-index: 2; }
.wf-track {
  position: absolute; left: 21px; top: 10px; bottom: 10px;
  width: 1px; background: var(--border);
  overflow: hidden;
}
.wf-fill {
  display: block; width: 100%; height: 0%;
  background: var(--accent);
  transition: height 0.2s linear;
}
.wf-list { display: flex; flex-direction: column; gap: 20px; }
.wf-step { display: flex; gap: 26px; align-items: flex-start; }
.wf-node {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 0.72rem; font-weight: 500; color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px var(--bg);
  position: relative; z-index: 2;
}
.wf-card { flex: 1; padding: 22px 24px; }
.wf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.wf-head h3 { font-size: 1.12rem; }
.wf-tag {
  font-size: 0.58rem; letter-spacing: 0.16em; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 3px 8px;
}
.wf-card p { color: var(--text-2); font-size: 0.9rem; margin-bottom: 14px; }
.wf-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.wf-note { max-width: 820px; margin-top: 32px; }
.wf-note-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.68rem; color: var(--text-3);
}
.wf-note-body { padding: 20px 24px 24px; }
.wf-note-body .cm { color: var(--green); font-size: 0.76rem; margin-bottom: 8px; opacity: 0.85; }
.wf-note-body p:last-child { font-size: 1.02rem; color: var(--text-2); max-width: 640px; }
.wf-note-body b { color: var(--text-1); font-weight: 600; }

.tools-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; max-width: 820px; position: relative; z-index: 2; }

/* ============================================================
   OUTSOURCING
   ============================================================ */
.eng-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  position: relative; z-index: 2;
}
.eng-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.eng-top { display: flex; align-items: center; justify-content: space-between; }
.eng-tag {
  font-size: 0.58rem; letter-spacing: 0.14em; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 5px; padding: 4px 9px;
}
.eng-tag-hot { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 500; }
.eng-card h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.eng-card > p { color: var(--text-2); font-size: 0.9rem; flex: 1; }
.eng-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 6px; }
.eng-list li { position: relative; padding-left: 22px; font-size: 0.86rem; color: var(--text-2); }
.eng-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 600; opacity: 0.9; }
.eng-featured { border-color: rgba(106, 124, 255, 0.35); }
.eng-featured:hover { border-color: rgba(106, 124, 255, 0.5); }

.roles-strip { margin-top: 44px; position: relative; z-index: 2; }
.roles-label { display: block; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--text-3); margin-bottom: 16px; }
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.role-chip {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--card-bg);
  font-size: 0.86rem; font-weight: 450; color: var(--text-2);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.role-chip .ic { width: 17px; height: 17px; color: var(--text-3); transition: color 0.25s; }
.role-chip:hover { border-color: var(--border-strong); color: var(--text-1); background: var(--card-bg-hover); }
.role-chip:hover .ic { color: var(--text-1); }

.uc-panel { margin-top: 44px; padding: 30px 32px 34px; }
.uc-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.uc-head h3 { font-size: 1.4rem; letter-spacing: -0.02em; }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.uc-grid li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 0.92rem; }
.uc-ic { width: 18px; height: 18px; color: var(--green); margin-top: 3px; opacity: 0.9; }

/* ============================================================
   COMMUNITY
   ============================================================ */
.com-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 24px; position: relative; z-index: 2;
}
.stat {
  padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--card-bg);
}
.stat-num {
  display: block; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600;
  color: var(--text-1); letter-spacing: -0.02em;
}
.stat-label { font-size: 0.78rem; color: var(--text-3); }

.com-graph { height: 440px; padding: 0; cursor: crosshair; }
.com-graph canvas { width: 100%; height: 100%; display: block; border-radius: inherit; }
.com-hint {
  position: absolute; left: 18px; bottom: 14px;
  font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-3);
  pointer-events: none;
}

.com-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; position: relative; z-index: 2; }
.com-chip { cursor: pointer; }
.com-chip.hot { border-color: rgba(106, 124, 255, 0.5); color: var(--text-1); background: rgba(106, 124, 255, 0.08); }

.com-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 36px; position: relative; z-index: 2; }
.com-cta .mono { font-size: 0.64rem; letter-spacing: 0.16em; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; z-index: 2; }
.ind-tile {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  padding: 19px 22px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--card-bg);
  font-weight: 500; font-size: 0.92rem; letter-spacing: -0.01em;
  transition: border-color 0.25s, background 0.25s;
}
.ind-tile .ic { color: var(--text-3); transition: color 0.25s; }
.ind-tile em { position: absolute; right: 16px; top: 12px; font-size: 0.58rem; color: var(--text-3); opacity: 0.6; }
.ind-tile:hover { border-color: var(--border-strong); background: var(--card-bg-hover); }
.ind-tile:hover .ic { color: var(--text-1); }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 2; }
.cap-card { padding: 26px; }
.cap-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cap-head h3 { font-size: 1.12rem; }
.cap-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { position: relative; z-index: 2; }
.step-row {
  display: grid; grid-template-columns: 88px 1fr;
  gap: 26px; align-items: center;
  padding: 26px 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.step-row:first-child { border-top: 1px solid var(--border); }
.step-num {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 500; line-height: 1;
  color: var(--text-3);
  transition: color 0.25s;
}
.step-body h3 { font-size: 1.22rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.step-body p { color: var(--text-2); font-size: 0.9rem; }
.step-row:hover { background: rgba(255, 255, 255, 0.015); }
.step-row:hover .step-num { color: var(--accent); }
.microcopy { margin-top: 30px; text-align: center; color: var(--text-3); font-size: 0.78rem; letter-spacing: 0.05em; }

/* ============================================================
   PROJECT TYPES
   ============================================================ */
.pt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 2; }
.pt-card {
  position: relative; display: block;
  padding: 22px 22px 56px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card-bg);
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s;
}
.pt-card em { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-3); }
.pt-card h3 { font-size: 1.22rem; margin: 10px 0 6px; letter-spacing: -0.02em; }
.pt-card p { font-size: 0.8rem; color: var(--text-3); transition: color 0.25s; }
.pt-ar {
  position: absolute; right: 20px; bottom: 18px;
  width: 20px; height: 20px; color: var(--text-3);
  transition: 0.3s var(--ease);
}
.pt-card:hover { background: var(--card-bg-hover); border-color: var(--border-strong); }
.pt-card:hover .pt-ar { color: var(--text-1); transform: translate(2px, -2px); }
.pt-card:hover p { color: var(--text-2); }

/* ============================================================
   WHY: interactive list
   ============================================================ */
.why-list { border-top: 1px solid var(--border); position: relative; z-index: 2; }
.why-item { position: relative; border-bottom: 1px solid var(--border); }
.why-head {
  display: flex; align-items: baseline; gap: 26px;
  width: 100%; padding: 24px 6px; text-align: left; cursor: pointer;
}
.why-idx { font-size: 0.7rem; color: var(--text-3); flex: none; width: 26px; transition: color 0.3s; }
.why-title {
  flex: 1;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.15;
  color: var(--text-3);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.why-plus { font-size: 1rem; color: var(--text-3); flex: none; transition: transform 0.3s var(--ease), color 0.3s; }
.why-head:hover .why-title { color: var(--text-2); }
.why-item.is-active .why-title { color: var(--text-1); transform: translateX(6px); }
.why-item.is-active .why-idx { color: var(--accent); }
.why-item.is-active .why-plus { transform: rotate(45deg); color: var(--text-1); }
.why-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.why-body-in { overflow: hidden; }
.why-body-in p { color: var(--text-2); font-size: 0.95rem; max-width: 620px; padding: 0 6px 26px 58px; }
.why-item.is-active .why-body { grid-template-rows: 1fr; }
.why-bar {
  position: absolute; left: 0; bottom: -1px; height: 1px; width: 0;
  background: var(--accent); z-index: 1; pointer-events: none;
}

/* about: founder */
.founder-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; position: relative; z-index: 2; }
.founder-card {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card-bg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: 96px;
}
.founder-avatar {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--accent); font-size: 1.05rem; font-weight: 500;
  background: rgba(106, 124, 255, 0.06);
  margin-bottom: 10px;
}
.founder-card h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.founder-role { font-size: 0.6rem; letter-spacing: 0.14em; color: var(--text-3); line-height: 1.8; }
.founder-links { display: flex; gap: 14px; margin-top: 12px; }
.founder-links a { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--text-3); transition: color 0.2s; }
.founder-links a:hover { color: var(--text-1); }

/* about — the group / brand family */
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; z-index: 2; }
.brand-card { padding: 24px; display: flex; flex-direction: column; gap: 9px; }
.brand-tag { font-size: 0.58rem; letter-spacing: 0.14em; color: var(--accent); }
.brand-card h3 { font-size: 1.12rem; letter-spacing: -0.015em; }
.brand-card p { font-size: 0.85rem; color: var(--text-2); flex: 1; }
.brand-domain { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-3); transition: color 0.25s; }
.brand-domain .ic { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.brand-card:hover .brand-domain { color: var(--text-1); }
.brand-card:hover .brand-domain .ic { transform: translate(2px, -2px); }
.brand-card-self { border-style: dashed; }
.brand-card-self:hover { transform: none; background: var(--card-bg); border-color: var(--border); }

.footer-parent { font-size: 0.8rem; color: var(--text-3); margin-top: -4px; }
.footer-parent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); transition: text-decoration-color 0.2s, color 0.2s; }
.footer-parent a:hover { color: var(--text-1); text-decoration-color: var(--accent); }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { padding: clamp(90px, 12vw, 150px) 0 clamp(40px, 5vw, 60px); text-align: center; }
.statement-text {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.04em;
  max-width: 1000px; margin-inline: auto;
  text-wrap: balance;
}
.statement-text span { color: var(--text-3); }

/* ============================================================
   CTA
   ============================================================ */
#cta { padding-bottom: clamp(100px, 12vw, 160px); }
.cta-panel {
  position: relative; text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 80px);
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 110% at 50% 0%, rgba(106, 124, 255, 0.06), transparent 55%),
    var(--surface);
  overflow: hidden;
}
.cta-panel h2 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -0.04em; margin: 20px 0 18px;
  text-wrap: balance;
}
.cta-panel .lead { margin-inline: auto; max-width: 600px; }
.cta-btns {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-top: 38px;
}
.cta-term {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 44px; padding: 11px 20px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--text-2);
}
.cta-term .term-prompt { color: var(--green); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
}
.footer-top {
  display: flex; gap: 48px; align-items: flex-start;
  padding-bottom: 40px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-brand { max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { color: var(--text-2); font-size: 0.88rem; }
.footer-tag { font-size: 0.6rem !important; letter-spacing: 0.15em; color: var(--text-3) !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; }
.footer-links a { color: var(--text-2); font-size: 0.88rem; font-weight: 450; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-1); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-3); transition: color 0.2s; }
.footer-social a:hover { color: var(--text-1); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.66rem; color: var(--text-3); letter-spacing: 0.05em;
}
.footer-status { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid, .pt-grid { grid-template-columns: repeat(3, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 640px; }
  .workspace { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .panel { position: static; width: auto !important; animation: none; }
  .p-editor, .p-term { grid-column: 1 / -1; }
  .float-tag { display: none; }
  .editor-body { min-height: 0; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }

  .cap-grid, .eng-grid { grid-template-columns: 1fr 1fr; }
  .com-stats { grid-template-columns: 1fr 1fr; }
  .services-grid, .pt-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-card { position: static; }
  .uc-grid { grid-template-columns: 1fr; }
  .com-graph { height: 360px; }

  .pipeline { flex-wrap: wrap; gap: 14px 22px; justify-content: center; }
  .pipe-line { display: none; }
}

@media (max-width: 620px) {
  .container, .container-narrow { width: calc(100% - 40px); }
  .section { padding: 80px 0; }

  .hero { padding-top: 116px; }
  .hero-title { font-size: clamp(2.1rem, 9.4vw, 2.8rem); }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero-ctas .btn-text { flex: none; }

  .workspace { grid-template-columns: 1fr; }
  .p-assistant, .p-dash { width: auto; }
  .p-deploy { display: none; }

  .services-grid, .pt-grid, .cap-grid, .eng-grid, .roles-grid, .ind-grid { grid-template-columns: 1fr; }
  .why-head { gap: 16px; padding: 20px 2px; }
  .why-body-in p { padding-left: 42px; }
  .why-item.is-active .why-title { transform: none; }
  .com-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px 18px; }
  .com-graph { height: 300px; }

  .wf-step { gap: 16px; }
  .wf-node { width: 36px; height: 36px; font-size: 0.64rem; box-shadow: 0 0 0 5px var(--bg); }
  .wf-track { left: 17px; }

  .step-row { grid-template-columns: 44px 1fr; }

  .cta-btns .btn { flex: 1 1 100%; }
  .footer-links { margin-left: 0; }
}

/* ============================================================
   SUBPAGES: page hero, breadcrumbs, blog, prose, FAQ, about
   ============================================================ */
.text-link { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.3); }
.text-link:hover { text-decoration-color: var(--accent); }

.page-hero { position: relative; padding: clamp(140px, 16vh, 190px) 0 clamp(28px, 4vw, 48px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 400px at 60% -10%, rgba(106, 124, 255, 0.06), transparent 65%);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.06;
  margin: 16px 0 20px; max-width: 860px; text-wrap: balance;
  position: relative;
}
.page-hero .lead { position: relative; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 18px; position: relative;
}
.breadcrumbs a { color: var(--text-3); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--text-1); }
.breadcrumbs .bc-here { color: var(--text-2); }

/* blog cards */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 2; }
.blog-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.post-card h3 { font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.3; }
.post-card p { font-size: 0.86rem; color: var(--text-2); flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 500; color: var(--text-3); transition: color 0.25s; }
.post-more .ic { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.post-card:hover .post-more { color: var(--text-1); }
.post-card:hover .post-more .ic { transform: translateX(2px); }
.blog-more { margin-top: 28px; position: relative; z-index: 2; }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3);
}

/* article prose */
.post-hero { padding-bottom: 16px; }
.post-body { padding: 28px 0 clamp(80px, 10vw, 120px); position: relative; }
.prose { max-width: 720px; color: var(--text-2); font-size: 1.01rem; line-height: 1.75; position: relative; z-index: 2; }
.prose h2 { color: var(--text-1); font-size: 1.5rem; letter-spacing: -0.025em; margin: 2.4em 0 0.65em; }
.prose h3 { color: var(--text-1); font-size: 1.13rem; letter-spacing: -0.015em; margin: 1.9em 0 0.55em; }
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--text-1); font-weight: 600; }
.prose blockquote { border-left: 2px solid var(--border-strong); padding: 2px 0 2px 20px; margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.88rem; }
.prose th {
  text-align: left; font-family: var(--font-mono); font-weight: 500;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
}
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose td:first-child { color: var(--text-1); font-weight: 500; }
.prose code { font-family: var(--font-mono); font-size: 0.85em; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text-1); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.6em 0; }
.table-scroll { overflow-x: auto; }

.tldr {
  border: 1px solid var(--border); border-left: 2px solid var(--accent);
  border-radius: var(--r-md); background: var(--card-bg);
  padding: 18px 22px; margin: 0 0 2.2em;
}
.tldr .tldr-label { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 6px; }
.tldr p { margin: 0; font-size: 0.95rem; }

.post-cta { margin-top: 3em; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card-bg); padding: 28px; }
.post-cta h3 { margin: 0 0 6px; font-size: 1.2rem; color: var(--text-1); }
.post-cta p { margin: 0 0 18px; font-size: 0.92rem; }

/* FAQ */
.faq-list { max-width: 820px; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 21px 4px; cursor: pointer;
  font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.05rem;
  color: var(--text-3); flex: none;
  transition: transform 0.25s var(--ease), color 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--text-1); }
.faq-item summary:hover::after { color: var(--text-1); }
.faq-a { padding: 0 40px 22px 4px; color: var(--text-2); font-size: 0.93rem; max-width: 720px; }
.faq-a a { color: var(--text-1); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }
.faq-a a:hover { text-decoration-color: var(--accent); }

/* about */
.about-story { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); max-width: 1020px; position: relative; z-index: 2; }
.about-story h2 { font-size: 1.6rem; letter-spacing: -0.03em; }
.about-kicker { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; display: block; }

/* 404 */
.err-wrap { min-height: 88vh; display: grid; place-items: center; padding: 120px 24px 80px; text-align: center; }
.err-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.14em; margin-bottom: 18px; }
.err-code b { color: var(--accent); font-weight: 500; }
.err-wrap h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -0.04em; margin-bottom: 14px; }
.err-wrap p { color: var(--text-2); margin-bottom: 30px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
  position: relative; z-index: 2;
}
.contact-form-wrap { padding: clamp(20px, 3vw, 34px); }
.form-label { display: block; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--text-3); margin-bottom: 14px; }

.intake-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.intake-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.015);
  color: var(--text-2); font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.intake-tab .ic { width: 15px; height: 15px; color: var(--text-3); transition: color 0.25s; }
.intake-tab:hover { color: var(--text-1); border-color: var(--border-strong); }
.intake-tab.active { color: var(--text-1); border-color: rgba(106, 124, 255, 0.5); background: rgba(106, 124, 255, 0.08); }
.intake-tab.active .ic { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 500; color: var(--text-2); }
.field .req { color: var(--accent); }
.field .opt { color: var(--text-3); font-weight: 400; font-size: 0.76rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--text-1);
  font: inherit; font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2363666d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 40px; cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input.invalid, .field textarea.invalid, .field select.invalid { border-color: var(--red); }

.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.check {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.015); font-size: 0.82rem; color: var(--text-2); cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.check input { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.check:hover { border-color: var(--border-strong); color: var(--text-1); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot .btn { flex: none; }
.form-note { font-size: 0.68rem; letter-spacing: 0.05em; color: var(--text-3); }
.form-status { padding: 14px 16px; border-radius: var(--r-md); font-size: 0.9rem; border: 1px solid var(--border); margin-top: 4px; }
.form-status.ok { border-color: rgba(63, 185, 80, 0.4); background: rgba(63, 185, 80, 0.09); color: #a7e0ad; }
.form-status.err { border-color: rgba(251, 113, 133, 0.4); background: rgba(251, 113, 133, 0.09); color: #f3b4bc; }
#submitBtn.is-loading { opacity: 0.65; pointer-events: none; }

.contact-aside { display: flex; flex-direction: column; gap: 12px; }
.aside-card { padding: 22px; }
.aside-card .ic-box { margin-bottom: 12px; }
.aside-card h3 { font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.015em; }
.aside-card p { font-size: 0.86rem; color: var(--text-2); }
.aside-link { display: inline-block; margin-top: 10px; font-size: 0.82rem; color: var(--text-1); word-break: break-word; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }
.aside-link:hover { text-decoration-color: var(--accent); }
.aside-trust { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 0; }
.aside-trust li { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-2); }
.aside-trust .ic { width: 17px; height: 17px; color: var(--green); flex: none; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .intake-tab { flex: 1 1 auto; justify-content: center; }
  .form-foot .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============================================================
   RESPONSIVE SAFETY (applies site-wide)
   ============================================================ */
.prose p, .prose li, .lead, .hero-sub, .faq-a, .why-body-in p, .eng-card p, .aside-card p { overflow-wrap: break-word; }
.wf-head h3, .sec-head h2, .hero-title, .cta-panel h2, .page-hero h1 { overflow-wrap: break-word; }
.breadcrumbs { flex-wrap: wrap; }
@media (max-width: 620px) {
  /* 16px inputs prevent iOS Safari from zooming in on focus */
  .field input, .field select, .field textarea { font-size: 16px; }
  .cta-term, .deploy-url, .aside-link { word-break: break-word; }
  .marquee-track { gap: 24px; }
}

@media (max-width: 900px) {
  .blog-grid, .blog-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .group-grid { grid-template-columns: 1fr 1fr; }
  .about-story { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .blog-grid, .blog-grid.cols-3 { grid-template-columns: 1fr; }
  .group-grid { grid-template-columns: 1fr; }
  .faq-a { padding-right: 4px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; transform: none; }
}
