/* Orbit Circle — Warp 스타일 레퍼런스 기반 (refero.design, warp.dev/code)
   따뜻한 무채색 캔버스 + 크림 텍스트, 크로매틱 컬러는 코드/섹션 헤딩에만 */
:root {
  color-scheme: dark;

  /* Colors */
  --color-warm-off-white: #faf9f6;
  --color-bone-gray: #868684;
  --color-pale-stone: #b4b4b2;
  --color-faint-linen: #e3e2e0;
  --color-smoke-charcoal: #2f2f2f;
  --color-iron-veil: #383838;
  --color-slate-hearth: #40403f;
  --color-deep-ember: #121212;
  --color-smoked-onyx: #1e1e1d;
  --color-absolute: #000000;
  --color-ink-black: #080808;
  --color-gold-leaf: #bd9f65;
  --color-muted-cobalt: #6f839f;
  --color-prompt-green: #7ba564;

  /* Surfaces */
  --surface-canvas: #121212;
  --surface-banded-section: #1e1e1d;
  --surface-card: #2f2f2f;
  --surface-elevated-control: #383838;
  --surface-floating-panel: #40403f;

  /* Hairlines (faint-linen at low alpha) */
  --line: rgba(227, 226, 224, .1);
  --line-2: rgba(227, 226, 224, .18);

  /* Typography — Matter/Geist는 라이선스 폰트라 대체 스택 사용 */
  --font-matter: "Matter", "Söhne", "Inter", "Pretendard", system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --text-caption-tracked: 11px;
  --tracking-caption-tracked: 2.2px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading: 32px;
  --text-heading-lg: 48px;
  --text-display: 68px;

  /* Radius */
  --radius-buttons: 4px;
  --radius-nav: 4px;
  --radius-cards: 8px;
  --radius-icons: 8px;
  --radius-images: 20px;

  /* Signature glow — 단 한 곳(에이전트 활성 상태)에만 사용 */
  --shadow-xl: rgba(33, 126, 255, 0.5) 0px 0px 32px 10px;

  --page-max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-matter);
  font-size: var(--text-body);
  line-height: 1.38;
  letter-spacing: .01em;
  background: var(--surface-canvas);
  color: var(--color-warm-off-white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "tnum" on;
  word-break: keep-all;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.wrap { max-width: var(--page-max-width); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--color-bone-gray); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--color-faint-linen); outline-offset: 3px; }

/* Eyebrow — tracked caption voice */
.eyebrow {
  font-size: var(--text-caption-tracked);
  line-height: 1.2;
  letter-spacing: var(--tracking-caption-tracked);
  text-transform: uppercase;
  color: var(--color-pale-stone);
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; border: 0; border-radius: var(--radius-buttons); cursor: pointer;
  font: 500 16px/1.2 var(--font-matter);
  color: var(--surface-canvas); background: var(--color-warm-off-white);
  transition: background .15s;
}
.btn:hover { background: var(--color-faint-linen); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.link-ghost { color: var(--color-warm-off-white); transition: color .15s; }
.link-ghost:hover { color: var(--color-pale-stone); }

/* Announcement banner */
.banner {
  background: var(--color-absolute);
  border-bottom: 1px solid var(--surface-card);
  padding: 10px 16px; text-align: center;
  font-size: 13px; color: var(--color-warm-off-white);
}
.banner a { text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.banner a:hover { color: var(--color-pale-stone); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--color-absolute);
  border-bottom: 1px solid var(--color-ink-black);
}
.nav-inner { display: flex; align-items: center; height: 60px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.logo { width: 20px; height: 20px; color: var(--color-warm-off-white); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 15px; color: var(--color-warm-off-white); transition: color .15s; }
.nav-links a:hover { color: var(--color-pale-stone); }
.nav-cta { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 15px; }

/* Hero — two-column split */
.hero {
  padding: 96px 0 40px;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(189, 159, 101, .07), transparent 70%),
    radial-gradient(700px 400px at 10% 0%, rgba(111, 131, 159, .06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, var(--text-display));
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.lead { font-size: var(--text-subheading); line-height: 1.4; letter-spacing: -0.01em; color: var(--color-pale-stone); }
.cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.cmd {
  display: flex; align-items: center; gap: 10px; margin-top: 24px;
  font: 400 16px/1 var(--font-mono); color: var(--color-warm-off-white);
}
.prompt { width: 8px; height: 8px; border-radius: 50%; background: var(--color-prompt-green); flex: none; }

/* Runtime mockup (terminal product mockup) */
.runtime {
  border-radius: var(--radius-cards); overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--color-ink-black);
}
.rt-bar, .term-bar {
  display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px;
  background: var(--surface-elevated-control);
}
.dots { display: flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc20; }
.dots i:nth-child(3) { background: #28c840; }
.rt-title, .term-title { font: 400 12px/1 var(--font-mono); color: var(--color-bone-gray); }
.rt-chip { margin-left: auto; font: 400 11px/1 var(--font-mono); color: var(--color-gold-leaf); }
.rt-body { display: flex; min-height: 400px; }
.rt-dock { display: flex; flex-direction: column; gap: 10px; padding: 12px 8px; border-right: 1px solid var(--line); }
.dock-app {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-icons);
  color: var(--color-pale-stone); border: 1px solid var(--line-2);
}
.dock-app svg { width: 18px; height: 18px; }
.dock-app.is-market { border-style: dashed; color: var(--color-bone-gray); }
.dock-sep { height: 1px; background: var(--line); margin: 2px 4px; }

.rt-desk { position: relative; flex: 1; padding: 16px; }
.win {
  position: absolute; border-radius: var(--radius-cards); overflow: hidden;
  background: var(--surface-canvas); border: 1px solid var(--line-2);
  transition: opacity .45s ease, transform .45s ease;
}
.win-head {
  display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 10px;
  border-bottom: 1px solid var(--line); font-size: 12px;
}
.win-head small { color: var(--color-bone-gray); font: 400 11px/1 var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-content { padding: 16px; }

.win-docs { left: 16px; top: 16px; width: 60%; bottom: 70px; }
.doc-h { height: 12px; width: 45%; border-radius: 2px; background: var(--surface-floating-panel); margin-bottom: 14px; }
.doc-line { height: 6px; border-radius: 2px; background: var(--surface-card); margin: 8px 0; }
.w90 { width: 90%; } .w85 { width: 85%; } .w75 { width: 75%; } .w60 { width: 60%; }
.doc-figure { position: relative; margin: 14px 0; width: 64%; transition: width .5s ease; }
.figure-img {
  position: relative; height: 90px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, #4a4438, #2c2a26 55%, #3a3f46);
  outline: 1px solid transparent; outline-offset: 3px;
  transition: outline-color .3s, background .5s;
}
.subject {
  position: absolute; left: 50%; bottom: 0; width: 40px; height: 56px; transform: translateX(-50%);
  border-radius: 20px 20px 4px 4px; background: #b4a58a;
}
.subject::before {
  content: ""; position: absolute; left: 50%; top: -20px; width: 26px; height: 26px; transform: translateX(-50%);
  border-radius: 50%; background: #cdbfa4;
}
.ctx-menu {
  position: absolute; left: 58%; top: 36px; z-index: 2; display: grid; min-width: 148px; padding: 4px;
  border-radius: var(--radius-buttons); background: var(--surface-floating-panel); border: 1px solid var(--line-2);
  font-size: 12px; color: var(--color-pale-stone);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.ctx-menu span { padding: 6px 8px; border-radius: 2px; white-space: nowrap; }
.ctx-hl { color: var(--surface-canvas); background: var(--color-warm-off-white); }
.link-badge {
  position: absolute; right: 6px; top: 6px; padding: 3px 6px; border-radius: 2px;
  font: 400 10px/1.2 var(--font-mono); color: var(--color-gold-leaf); background: rgba(18, 18, 18, .85);
  opacity: 0; transition: opacity .3s;
}

.win-image { right: 16px; top: 48px; width: 46%; opacity: 0; transform: translateY(12px); }
.canvas {
  position: relative; height: 160px; border-radius: 4px; overflow: hidden;
  background: linear-gradient(160deg, #4a4438, #2c2a26 55%, #3a3f46);
  transition: background .5s;
}
.canvas .subject { width: 60px; height: 84px; border-radius: 30px 30px 6px 6px; }
.canvas .subject::before { width: 38px; height: 38px; top: -30px; }
.tools { display: flex; gap: 8px; margin-top: 12px; }
.tools i { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--line-2); }
.tools i:first-child { background: var(--surface-elevated-control); }

.agent {
  position: absolute; left: 16px; right: 16px; bottom: 14px; height: 42px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: var(--radius-buttons);
  background: var(--surface-canvas); border: 1px solid var(--line-2);
  font: 400 13px/1 var(--font-mono); color: var(--color-bone-gray);
  transition: box-shadow .4s, border-color .3s;
}
.agent-icon { color: var(--color-prompt-green); font-size: 16px; }
.agent-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbd { font: 400 11px/1 var(--font-mono); padding: 4px 6px; border-radius: 2px; border: 1px solid var(--line-2); color: var(--color-bone-gray); }

/* Demo step states */
.runtime[data-step="0"] .figure-img,
.runtime[data-step="1"] .figure-img { outline-color: var(--color-faint-linen); }
.runtime[data-step="1"] .ctx-menu { opacity: 1; transform: none; }
.runtime[data-step="1"] .win-image,
.runtime[data-step="2"] .win-image { opacity: 1; transform: none; }
.runtime[data-step="2"] .agent { border-color: rgba(33, 126, 255, .6); box-shadow: var(--shadow-xl); }
.runtime[data-step="2"] .agent-text { color: var(--color-gold-leaf); }
.runtime[data-step="3"] .agent-text { color: var(--color-muted-cobalt); }
.runtime[data-step="2"] .canvas,
.runtime[data-step="3"] .figure-img { background: repeating-conic-gradient(#2f2f2f 0 25%, #262626 0 50%) 0 0 / 12px 12px; }
.runtime[data-step="3"] .doc-figure { width: 100%; }
.runtime[data-step="3"] .link-badge { opacity: 1; }
.runtime[data-step="3"] .win-image { opacity: 0; transform: translateY(8px); }

.steps {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.steps button {
  width: 100%; height: 100%; padding: 10px 12px; border-radius: var(--radius-buttons); cursor: pointer; text-align: left;
  font: 400 13px/1.3 var(--font-matter); color: var(--color-bone-gray);
  background: transparent; border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.steps button b { display: block; font: 400 11px/1 var(--font-mono); margin-bottom: 6px; }
.steps button:hover { color: var(--color-pale-stone); background: var(--surface-banded-section); }
.steps button.is-active { color: var(--color-warm-off-white); border-color: var(--color-faint-linen); }

/* Sections */
.section { padding: 120px 0 0; }
.section h2 {
  font-size: clamp(32px, 4.4vw, var(--text-heading-lg));
  line-height: 1.1; letter-spacing: -0.03em;
  color: var(--color-muted-cobalt);
  margin-bottom: 48px;
}

.grid-3, .grid-4 { display: grid; gap: 10px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .feature {
  padding: 24px; border-radius: var(--radius-cards);
  background: var(--surface-banded-section);
  border: 1px solid var(--line);
  transition: background .2s;
}
.card:hover, .feature:hover { background: var(--surface-card); }
.card h3, .feature h3 { font-size: var(--text-subheading); line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p, .feature p { font-size: var(--text-body-sm); line-height: 1.38; color: var(--color-bone-gray); }
.num { display: block; font: 400 12px/1 var(--font-mono); color: var(--color-bone-gray); margin-bottom: 40px; }
.tag { display: inline-block; margin-bottom: 32px; font: 400 12px/1 var(--font-mono); color: var(--color-muted-cobalt); }
.f-icon { width: 24px; height: 24px; margin-bottom: 30px; color: var(--color-warm-off-white); }

/* Code terminal block */
.terminal {
  margin-top: 64px; border-radius: var(--radius-cards); overflow: hidden;
  background: var(--surface-card); border: 1px solid var(--color-ink-black);
}
.term-body {
  margin: 0; padding: 24px; overflow-x: auto;
  font: 400 14px/1.6 var(--font-mono); letter-spacing: -0.012em; color: var(--color-warm-off-white);
}
.term-body .s { color: var(--color-gold-leaf); }
.term-body .k { color: var(--color-muted-cobalt); }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.split h2 { margin-bottom: 24px; }
.split .muted { font-size: 18px; line-height: 1.4; }
.refs { margin-top: 32px; font-size: var(--text-body-sm); color: var(--color-bone-gray); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: s; border-top: 1px solid var(--line); }
.timeline li {
  position: relative; padding: 24px 0 24px 54px; border-bottom: 1px solid var(--line);
  color: var(--color-pale-stone); counter-increment: s;
}
.timeline li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 24px; font: 400 12px/1.6 var(--font-mono); color: var(--color-bone-gray); }
.timeline b { color: var(--color-warm-off-white); font-weight: 500; }

.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 24px; font-size: var(--text-body-sm); color: var(--color-pale-stone); }
.checks li::before { content: "—"; position: absolute; left: 0; color: var(--color-bone-gray); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-cards); border: 1px solid var(--line); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--text-body); min-width: 520px; }
.compare th, .compare td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-size: var(--text-caption-tracked); letter-spacing: var(--tracking-caption-tracked); text-transform: uppercase;
  color: var(--color-bone-gray); background: var(--surface-banded-section);
}
.compare td { color: var(--color-bone-gray); }
.compare td.hl { color: var(--color-warm-off-white); background: var(--surface-banded-section); }
.compare thead th.hl { color: var(--color-warm-off-white); background: var(--surface-card); }

.revenue { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius-cards); overflow: hidden; }
.rev { display: grid; gap: 10px; padding: 24px; font-size: var(--text-body-sm); color: var(--color-bone-gray); border-right: 1px solid var(--line); }
.rev:last-child { border-right: 0; }
.rev-k { font-size: var(--text-heading-sm); letter-spacing: -0.03em; color: var(--color-warm-off-white); }

/* Final CTA */
.final { padding-bottom: 120px; }
.final-inner { max-width: 900px; text-align: center; }
.final h2 { margin-bottom: 16px; }
.final .muted { max-width: 60ch; margin: 0 auto; font-size: 18px; }
.waitlist { display: flex; gap: 10px; max-width: 600px; margin: 40px auto 0; }
.waitlist input, .waitlist select {
  height: 42px; padding: 0 12px; border-radius: var(--radius-buttons);
  border: 1px solid var(--line-2); background: var(--surface-banded-section);
  font: 400 15px var(--font-matter); color: var(--color-warm-off-white); min-width: 0;
}
.waitlist input { flex: 1; }
.waitlist input::placeholder { color: var(--color-bone-gray); }
.waitlist select { color: var(--color-pale-stone); cursor: pointer; }
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--color-faint-linen); }
.form-note { margin-top: 16px; font-size: var(--text-body-sm); color: var(--color-bone-gray); }
.form-note a { color: var(--color-muted-cobalt); }
.form-note a:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--surface-banded-section); border-top: 1px solid var(--line-2); padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-note { margin-top: 16px; font-size: var(--text-body-sm); color: var(--color-bone-gray); }
.foot-col { display: grid; gap: 10px; align-content: start; font-size: var(--text-body-sm); }
.foot-col h4 { font-size: var(--text-caption-tracked); letter-spacing: var(--tracking-caption-tracked); text-transform: uppercase; color: var(--color-bone-gray); margin-bottom: 6px; }
.foot-col a { color: var(--color-pale-stone); }
.foot-col a:hover { color: var(--color-warm-off-white); }

/* Reveal on scroll (JS가 .reveal 부여) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.nf h1 { font-size: var(--text-display); letter-spacing: -0.03em; color: var(--color-muted-cobalt); }
.nf p { color: var(--color-pale-stone); margin: 10px 0 32px; font-size: var(--text-subheading); }

/* Responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 640px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .revenue { grid-template-columns: repeat(3, 1fr); }
  .rev:nth-child(3) { border-right: 0; }
  .rev:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-links, .nav-cta .link-ghost { display: none; }
  .hero { padding-top: 64px; }
  .lead { font-size: 18px; }
  .cmd { font-size: 14px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .revenue { grid-template-columns: 1fr 1fr; }
  .rev { border-right: 0; border-bottom: 1px solid var(--line); }
  .rev:nth-child(odd) { border-right: 1px solid var(--line); }
  .rev:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .section { padding-top: 80px; }
  .rt-dock, .rt-chip { display: none; }
  .rt-body { min-height: 360px; }
  .rt-desk { padding: 12px; }
  .win-docs { left: 12px; right: 12px; top: 12px; width: auto; bottom: 66px; }
  .win-image { right: 12px; top: 56px; width: 74%; }
  .agent { left: 12px; right: 12px; bottom: 12px; font-size: 12px; }
  .ctx-menu { left: 30%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .waitlist { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
