:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2128;
  --inset: #010409;
  --line: #30363d;
  --ink: #e6edf3;
  --muted: #8b949e;
  --green: #3fb950;
  --cyan: #39c5cf;
  --blue: #2f81f7;
  --red: #f85149;
  --sans: 'Noto Sans KR', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(57, 197, 207, 0.08), transparent 60%),
    radial-gradient(800px 500px at 0% 0%, rgba(47, 129, 247, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ── Particle Canvas ── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.nav-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo-icon {
  color: var(--cyan);
  font-size: 14px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(139, 148, 158, 0.1);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    gap: 2px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }
}

/* ── Shell ── */
.shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 80px;
}

/* ── Scroll Fade ── */
.scroll-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section headings ── */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--green);
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}
.section-eyebrow::before { content: "// "; color: var(--muted); }

.section-title {
  margin: 0 0 36px;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ── Terminal Hero ── */
.terminal {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f56; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #27c93f; }

.term-file { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.term-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
}

.term-body { padding: 30px clamp(20px, 4vw, 44px) 38px; }

.prompt-line {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
  overflow-wrap: anywhere;
}
.prompt-line .sigil { color: var(--green); }
.prompt-line .cmd { color: var(--cyan); }
.prompt-line .cur {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--green);
  margin-left: 4px;
  vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--green);
  margin: 0 0 14px;
}
.eyebrow::before { content: "// "; color: var(--muted); }

h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 .hl { color: var(--cyan); }

.lede {
  max-width: 60ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--inset);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 6px;
}
.chip b { color: var(--green); font-weight: 700; }

/* ── Timeline ── */
.timeline-section {
  margin-top: 72px;
}

.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.tl-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.tl-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--cyan);
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tl-item:hover .tl-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(57, 197, 207, 0.15);
}

.tl-step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.tl-content h3 {
  margin: 6px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.tl-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.tl-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--cyan), var(--line));
  margin-top: 28px;
  opacity: 0.4;
  border-radius: 1px;
}

@media (max-width: 720px) {
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .tl-item {
    flex-direction: row;
    text-align: left;
    gap: 18px;
    max-width: 400px;
    width: 100%;
    padding: 16px 0;
  }

  .tl-icon {
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
  }

  .tl-connector {
    width: 2px;
    height: 24px;
    flex: none;
    margin-top: 0;
    margin-bottom: 0;
    background: linear-gradient(180deg, var(--line), var(--cyan), var(--line));
  }

  .tl-content { padding-top: 2px; }
  .tl-content h3 { font-size: 16px; margin-bottom: 4px; }
  .tl-content p { font-size: 14px; }
}

/* ── Form Panel ── */
.panel {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 32px;
  align-items: start;
}
.panel-head h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; }
.panel-head p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.panel-head .meta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border-left: 2px solid var(--green);
  padding-left: 12px;
  line-height: 1.9;
}

.console {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: clamp(20px, 3vw, 28px);
}

/* ── Progress Bar ── */
.progress-bar {
  height: 4px;
  background: var(--inset);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  transition: opacity 0.3s;
}

.progress-labels span.active {
  color: var(--cyan);
  font-weight: 700;
}

.progress-labels .done-label {
  color: var(--green);
  font-weight: 700;
}

.lead-form { display: grid; gap: 18px; }
.step { display: grid; gap: 16px; }
.step-two { border-top: 1px dashed var(--line); padding-top: 20px; }
.step-two[hidden] { display: none; }

.step-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.field { display: grid; gap: 7px; }

label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
label .key { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--cyan); }
label .req { font-family: var(--mono); color: var(--red); }

input,
select,
textarea {
  width: 100%;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder,
textarea::placeholder { color: #586069; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(57, 197, 207, 0.18);
}

textarea { resize: vertical; min-height: 92px; }

.help {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
}
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--green); }
.check a { color: var(--cyan); }

.btn {
  width: 100%;
  border: 1px solid #2ea043;
  border-radius: 8px;
  background: linear-gradient(180deg, #2ea043, #238636);
  color: #f0fff4;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 16px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s, box-shadow 0.2s;
}
.btn::before { content: "> "; color: rgba(255, 255, 255, 0.7); }
.btn:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(46, 160, 67, 0.25); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: wait; opacity: 0.6; filter: none; box-shadow: none; }

.status {
  min-height: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.status[data-tone="error"] { color: var(--red); }
.status[data-tone="success"] { color: var(--green); }

/* ── Thank You Screen ── */
.thankyou {
  text-align: center;
  padding: 28px 12px 8px;
  animation: thankyouFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes thankyouFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.thankyou-check {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.checkmark-svg {
  width: 64px;
  height: 64px;
}

.checkmark-circle {
  stroke: var(--green);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: checkmarkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards;
}

.checkmark-check {
  stroke: var(--green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmarkStroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes checkmarkStroke {
  100% { stroke-dashoffset: 0; }
}

.thankyou-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.thankyou-text {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.thankyou-meta {
  display: flex;
  justify-content: center;
}

/* ── Evidence ── */
.evidence {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ev {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ev:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 8px 24px -8px rgba(57, 197, 207, 0.12); }
.ev h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.ev h3::before { content: "# "; font-family: var(--mono); color: var(--green); }
.ev p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── FAQ ── */
.faq-section {
  margin-top: 72px;
  padding-bottom: 16px;
}

.faq-list {
  max-width: 720px;
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(57, 197, 207, 0.3);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q:hover {
  background: rgba(139, 148, 158, 0.06);
}

.faq-q span {
  padding-right: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-a {
  padding: 0 20px 18px;
  animation: faqSlideIn 0.25s ease-out;
}

@keyframes faqSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-a p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-a a {
  color: var(--cyan);
  text-decoration: none;
}
.faq-a a:hover { text-decoration: underline; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

.footer-link {
  font-size: 12.5px;
  color: var(--cyan);
  text-decoration: none;
  transition: opacity 0.15s;
}

.footer-link:hover { opacity: 0.8; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; gap: 20px; }
  .evidence { grid-template-columns: 1fr; }
  .shell { padding: 80px 0 64px; }
}

@media (max-width: 480px) {
  .chips { gap: 8px; }
  .chip { font-size: 11.5px; padding: 6px 10px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-line .cur { animation: none; }
  .ev, .btn, .tl-icon, .faq-item { transition: none; }
  .scroll-fade { opacity: 1; transform: none; transition: none; }
  .thankyou { animation: none; }
  .checkmark-circle, .checkmark-check { animation: none; stroke-dashoffset: 0; }
  .faq-a { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── AI Interview ── */
.interview-root { display: flex; flex-direction: column; gap: 12px; }
.iv-log { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.iv-bubble { padding: 10px 12px; border-radius: 10px; max-width: 85%; white-space: pre-wrap; line-height: 1.5; }
.iv-assistant { background: rgba(57,197,207,0.12); align-self: flex-start; }
.iv-user { background: rgba(255,255,255,0.06); align-self: flex-end; }
.iv-input { display: flex; gap: 8px; }
.iv-input textarea { flex: 1; min-height: 56px; resize: vertical; }
.iv-input .btn { width: auto; flex: 0 0 auto; align-self: flex-start; }
.iv-status[data-tone="error"] { color: #ff8a8a; }
.iv-gate, .iv-rate { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.iv-consent { display: flex; gap: 8px; font-size: 0.85rem; align-items: flex-start; }
.iv-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.iv-card { border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.iv-card.chosen { border-color: var(--green, #39c5cf); }
.iv-card-body { white-space: pre-wrap; line-height: 1.5; font-size: 0.92rem; }
.iv-done { margin-top: 12px; color: var(--green, #39c5cf); }
/* markdown-rendered content inside answers/bubbles */
.iv-card-body h4, .iv-card-body h5, .iv-card-body h6, .iv-bubble h4, .iv-bubble h5, .iv-bubble h6 { margin: 10px 0 4px; line-height: 1.3; }
.iv-card-body h4, .iv-bubble h4 { font-size: 1rem; }
.iv-card-body h5, .iv-bubble h5 { font-size: 0.95rem; }
.iv-card-body h6, .iv-bubble h6 { font-size: 0.9rem; color: var(--muted, #8b949e); }
.iv-card-body p, .iv-bubble p { margin: 6px 0; }
.iv-card-body p:first-child, .iv-bubble p:first-child { margin-top: 0; }
.iv-card-body ul, .iv-card-body ol, .iv-bubble ul, .iv-bubble ol { margin: 6px 0; padding-left: 20px; }
.iv-card-body li, .iv-bubble li { margin: 3px 0; }
.iv-card-body pre, .iv-bubble pre { background: var(--inset, #010409); border: 1px solid var(--line, #30363d); border-radius: 8px; padding: 10px; overflow-x: auto; margin: 8px 0; }
.iv-card-body pre code, .iv-bubble pre code { background: none; padding: 0; font-family: var(--mono); font-size: 0.82rem; white-space: pre; }
.iv-card-body code, .iv-bubble code { background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 0.85em; }
.iv-card-body hr, .iv-bubble hr { border: none; border-top: 1px solid var(--line, #30363d); margin: 10px 0; }
@media (max-width: 640px) { .iv-ab { grid-template-columns: 1fr; } }