/* ============================================================
   ZORA — AI Agent Orchestration Platform
   Dark / neon / futuristic landing page
   ============================================================ */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

:root {
  /* surfaces */
  --bg:      #05060a;
  --bg-1:    #090b11;
  --bg-2:    #0d1018;
  --panel:   rgba(255,255,255,0.025);
  --panel-2: rgba(255,255,255,0.045);
  --line:    rgba(255,255,255,0.09);
  --line-2:  rgba(255,255,255,0.14);

  /* text */
  --text:   #eef1f7;
  --dim:    #aab2c5;
  --mute:   #6a7185;
  --faint:  #424859;

  /* brand neon */
  --cyan:   #34e3e0;
  --violet: #b07cff;
  --accent: var(--cyan);

  /* agent palette */
  --director: #34e3e0; /* cyan   */
  --creater:  #ff6ad5; /* magenta*/
  --watcher:  #45f0a6; /* green  */
  --vanguard: #5e8cff; /* blue   */
  --parser:   #b07cff; /* violet */

  /* type */
  --sans: 'Pretendard', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', 'Pretendard', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  /* layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

::selection { background: color-mix(in oklab, var(--cyan) 35%, transparent); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }

/* fixed canvas particle layer behind everything */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.shell { position: relative; z-index: 1; }

/* ----------------------------------------------------------- helpers */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.mono { font-family: var(--mono); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* ----------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 26px; height: 26px; }
.brand .name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.18em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { font-size: 14.5px; color: var(--dim); transition: color .25s; }
.nav-links > a:hover { color: var(--text); }

/* grouped dropdown items */
.nav-item { position: relative; }
.nav-top {
  font-family: var(--sans); font-size: 14.5px; color: var(--dim);
  background: none; border: 0; cursor: pointer; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 7px; transition: color .25s;
}
.nav-top:hover, .nav-item:hover .nav-top, .nav-item.open .nav-top { color: var(--text); }
.nav-top .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px,-1px); transition: transform .25s; opacity: .7; }
.nav-item:hover .nav-top .caret, .nav-item.open .nav-top .caret { transform: rotate(225deg) translate(-1px,-1px); }

.dd {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 210px; padding: 10px; border-radius: 16px;
  background: color-mix(in oklab, var(--bg-1) 92%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, transform .25s, visibility .25s; z-index: 50;
}
.dd::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; } /* hover bridge */
.nav-item:hover .dd, .nav-item:focus-within .dd, .nav-item.open .dd {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dd a {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 10px;
  font-size: 14.5px; color: var(--dim); transition: background .2s, color .2s;
}
.dd a .dc { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--c, var(--cyan)); box-shadow: 0 0 8px 1px var(--c, var(--cyan)); opacity: .85; }
.dd a:hover { background: var(--panel-2); color: var(--text); }
.dd a.active { color: var(--text); }
.nav-links > a.active, .nav-top.active { color: var(--text); }

/* hamburger toggle (mobile only) */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--panel); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s, color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text); color: #07080c;
  box-shadow: 0 0 0 rgba(52,227,224,0);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px color-mix(in oklab, var(--cyan) 60%, transparent); }
.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--cyan) 55%, var(--line-2)); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(3px); }

/* ----------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; left: 50%; top: 38%;
  width: min(1100px, 120vw); aspect-ratio: 1;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle at 50% 50%,
      color-mix(in oklab, var(--cyan) 16%, transparent) 0%,
      color-mix(in oklab, var(--violet) 12%, transparent) 32%,
      transparent 62%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em;
  color: var(--dim);
  margin-bottom: 30px;
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px var(--cyan);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(.7)} }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 30px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--dim);
  max-width: 56ch;
  line-height: 1.62;
  margin-bottom: 42px;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* agent chips row */
.agent-rail {
  margin-top: 64px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
}
.agent-rail .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; color: var(--mute); text-transform: uppercase; margin-right: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px; color: var(--dim);
  transition: border-color .3s, transform .25s, background .3s, color .3s;
  cursor: default;
}
.chip:hover { transform: translateY(-3px); color: var(--text); }
.chip .cdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip b { font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3em;
  color: var(--mute); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--mute), transparent); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content:""; position:absolute; top:-40%; left:0; width:1px; height:40%; background: var(--cyan); animation: scrolldown 2s infinite; }
@keyframes scrolldown { 0%{top:-40%} 100%{top:100%} }

/* ----------------------------------------------------------- section frame */
section { position: relative; }
.band { padding: clamp(90px, 13vh, 160px) 0; }

.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 18px 0 20px;
}
.sec-head p { font-size: clamp(16px,1.8vw,19px); color: var(--dim); max-width: 60ch; text-wrap: pretty; }

/* ----------------------------------------------------------- why / problem */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), transparent);
  padding: 30px 28px 34px;
  position: relative;
  overflow: hidden;
}
.why-card .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.18em; }
.why-card h3 { font-size: 21px; font-weight: 600; margin: 16px 0 10px; letter-spacing: -0.01em; }
.why-card p { font-size: 15.5px; color: var(--dim); line-height: 1.62; }
.why-card::after {
  content:""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 60%, transparent), transparent);
  opacity: 0; transition: opacity .4s;
}
.why-card:hover::after { opacity: 1; }

/* ----------------------------------------------------------- system diagram */
.system { background: linear-gradient(180deg, transparent, var(--bg-1) 30%, var(--bg-1) 70%, transparent); }
.sys-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }

.diagram { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node {
  position: absolute; transform: translate(-50%,-50%);
  width: 116px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  z-index: 3;
}
.node .orb {
  width: 64px; height: 64px; border-radius: 18px;
  color: var(--c);
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--c) 50%, var(--line));
  background: radial-gradient(circle at 50% 35%, color-mix(in oklab, var(--c) 26%, transparent), color-mix(in oklab, var(--c) 6%, var(--bg-2)));
  box-shadow: 0 0 30px -8px color-mix(in oklab, var(--c) 70%, transparent), inset 0 0 18px -8px color-mix(in oklab, var(--c) 80%, transparent);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.node:hover .orb { transform: translateY(-4px) scale(1.05); box-shadow: 0 0 46px -6px color-mix(in oklab, var(--c) 85%, transparent), inset 0 0 18px -8px color-mix(in oklab, var(--c) 80%, transparent); }
.node .orb svg { width: 30px; height: 30px; }
.node .nm { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.05em; color: var(--text); }
.node .ko { font-size: 11.5px; color: var(--mute); font-family: var(--mono); letter-spacing: 0.06em; }
.node.center .orb { width: 86px; height: 86px; border-radius: 24px; }
.node.center .orb svg { width: 40px; height: 40px; }
.node.center .nm { font-size: 15px; }

.sys-copy h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px,3.8vw,46px); line-height: 1.1; letter-spacing: -0.025em; margin: 16px 0 22px; }
.sys-copy p { color: var(--dim); font-size: 17px; line-height: 1.65; margin-bottom: 18px; text-wrap: pretty; }
.sys-copy .feat { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.sys-feat { display: flex; gap: 14px; align-items: flex-start; }
.sys-feat .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display:grid; place-items:center; border: 1px solid var(--line-2); background: var(--panel); }
.sys-feat .ic span { width: 8px; height: 8px; border-radius: 50%; background: var(--parser); box-shadow: 0 0 10px 1px var(--parser); }
.sys-feat div b { display:block; font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.sys-feat div p { margin: 0; font-size: 14.5px; color: var(--mute); }

/* ----------------------------------------------------------- agents */
.agent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.agent-grid .featured { grid-column: span 2; }

.agent {
  --c: var(--cyan);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 32px 36px;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--c) 10%, transparent), transparent 55%),
    linear-gradient(180deg, var(--panel), transparent);
  overflow: hidden;
  transition: border-color .4s, transform .4s cubic-bezier(.2,.7,.2,1);
}
.agent:hover { border-color: color-mix(in oklab, var(--c) 55%, var(--line)); transform: translateY(-4px); }
.agent .glow {
  position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--c) 40%, transparent), transparent 70%);
  filter: blur(30px); opacity: .5; pointer-events: none;
  transition: opacity .4s;
}
.agent:hover .glow { opacity: .9; }

.agent-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.agent .emblem {
  width: 56px; height: 56px; border-radius: 16px;
  color: var(--c);
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--c) 45%, var(--line));
  background: color-mix(in oklab, var(--c) 8%, var(--bg-2));
  box-shadow: inset 0 0 20px -10px var(--c);
}
.agent .emblem svg { width: 28px; height: 28px; }
.agent .status {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--c); display: inline-flex; align-items: center; gap: 7px;
}
.agent .status.locked { color: var(--mute); }
.agent .status .s { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px 1px currentColor; }
.agent .ko { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em; color: var(--c); text-transform: uppercase; }
.agent h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.01em; margin: 7px 0 14px; }
.agent .desc { color: var(--dim); font-size: 15.5px; line-height: 1.62; max-width: 46ch; text-wrap: pretty; }
.agent .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.agent .tags span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  padding: 6px 11px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--dim);
  background: var(--panel);
}
.agent .featured-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.agent.featured .desc { max-width: 52ch; font-size: 16.5px; }
.featured-visual { position: relative; height: 180px; display:grid; place-items:center; }

/* ----------------------------------------------------------- reach / seo-aeo-geo */
.reach { background: linear-gradient(180deg, transparent, var(--bg-1) 26%, var(--bg-1) 74%, transparent); }
.reach-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 60px; align-items: center; }
.reach-copy h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px,3.8vw,46px); line-height: 1.1; letter-spacing: -.025em; margin: 16px 0 20px; }
.reach-copy p { color: var(--dim); font-size: 17px; line-height: 1.66; max-width: 52ch; text-wrap: pretty; }
.reach-copy p b { color: var(--text); font-weight: 600; }

.schema-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.schema-tags span { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); background: var(--panel); }
.schema-tags .live { color: var(--cyan); border-color: color-mix(in oklab, var(--cyan) 45%, var(--line-2)); display: inline-flex; align-items: center; gap: 9px; }
.schema-tags .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 1px var(--cyan); animation: pulse 2.2s infinite; }

.codecard { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; background: #07090f; overflow: hidden; }
.cc-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cc-dots { display: flex; gap: 6px; }
.cc-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); display: block; }
.cc-title { font-family: var(--mono); font-size: 12.5px; color: var(--mute); flex: 1; }
.cc-live { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--watcher); display: inline-flex; align-items: center; gap: 7px; }
.cc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--watcher); box-shadow: 0 0 8px 1px var(--watcher); animation: pulse 1.8s infinite; }
.codecard pre { margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--dim); white-space: pre; overflow-x: auto; }
.codecard pre .k { color: var(--cyan); }
.codecard pre .s { color: var(--violet); }
.codecard pre .c { color: var(--mute); }

.reach-surfaces { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, var(--panel), transparent); padding: 28px; }
.surf-head { text-align: center; padding: 14px 0 22px; position: relative; }
.surf-head .src { display: block; font-weight: 600; font-size: 17px; }
.surf-head .via { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--cyan); }
.surf-head .via::before, .surf-head .via::after { content: ""; width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.surf-head .via::after { transform: scaleX(-1); }
.surf-head::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 16px; background: linear-gradient(var(--cyan), transparent); }
.surf-list { display: flex; flex-direction: column; gap: 12px; }
.surf { --c: var(--cyan); display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); transition: border-color .3s, transform .3s; }
.surf:hover { border-color: color-mix(in oklab, var(--c) 50%, var(--line)); transform: translateX(4px); }
.surf .sq { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 12px 1px color-mix(in oklab, var(--c) 70%, transparent); }
.surf .meta { flex: 1; }
.surf .meta b { display: block; font-weight: 600; font-size: 16px; }
.surf .meta p { margin: 2px 0 0; font-size: 13px; color: var(--mute); }
.surf .badge { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 6px 12px; border-radius: 999px; color: var(--c); border: 1px solid color-mix(in oklab, var(--c) 40%, var(--line)); }
.surf-foot { margin-top: 22px; text-align: center; font-size: 14px; color: var(--dim); line-height: 1.6; text-wrap: pretty; }

/* ----------------------------------------------------------- flow / how */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 30px 26px 30px 0; }
.step:not(:last-child)::after {
  content:""; position: absolute; top: 36px; right: 18px; left: auto; width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.step .k { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.16em; margin-bottom: 18px; }
.step .ring {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; margin-bottom: 20px;
  font-family: var(--display); font-weight: 600; color: var(--text);
  background: var(--panel);
}
.step h4 { font-size: 18px; font-weight: 600; margin-bottom: 9px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--mute); line-height: 1.6; }

/* ----------------------------------------------------------- CTA */
.cta-band { padding: clamp(90px,14vh,170px) 0; position: relative; }
.cta-box {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  padding: clamp(48px, 7vw, 90px) var(--gut);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
}
.cta-box .glow {
  position: absolute; left: 50%; top: 0; transform: translate(-50%,-50%);
  width: 700px; height: 400px;
  background: radial-gradient(circle, color-mix(in oklab, var(--cyan) 22%, transparent), transparent 60%);
  filter: blur(30px); pointer-events: none;
}
.cta-box h2 {
  position: relative;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.cta-box p { position: relative; color: var(--dim); font-size: clamp(16px,2vw,20px); max-width: 50ch; margin: 0 auto 38px; }
.cta-box .hero-cta { position: relative; justify-content: center; }

/* ----------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 60px 0 50px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.18em; margin-bottom: 14px; display:flex; align-items:center; gap: 11px; }
.foot-brand p { color: var(--mute); font-size: 14px; line-height: 1.6; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--dim); font-size: 14.5px; margin-bottom: 11px; transition: color .25s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-bottom span { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .sys-layout { grid-template-columns: 1fr; gap: 48px; }
  .reach-grid { grid-template-columns: 1fr; gap: 44px; }
  .why-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .agent .featured-inner { grid-template-columns: 1fr; gap: 24px; }
  .featured-visual { height: 140px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: 18px;
    background: color-mix(in oklab, var(--bg-1) 95%, transparent);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 30px 70px -24px rgba(0,0,0,.8);
    max-height: calc(100vh - 96px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-item { width: 100%; }
  .nav-top { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; }
  .nav-top .caret { transform: rotate(45deg); }
  .nav-item.open .nav-top .caret { transform: rotate(225deg) translate(-1px,-2px); }
  .dd {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; width: 100%; background: none; border: 0; box-shadow: none; backdrop-filter: none;
    padding: 0 0 8px 12px; display: none;
  }
  .nav-item.open .dd { display: flex; transform: none; }
  .dd::before { display: none; }
  .nav-links > a.btn { margin-top: 8px; justify-content: center; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-grid .featured { grid-column: span 1; }
  .flow-grid { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .diagram { max-width: 380px; }
}
