:root {
  --bg: #06100c;
  --bg-2: #0a1712;
  --panel: #0e1d17;
  --panel-2: #12241c;
  --line: rgba(190, 242, 100, .12);
  --line-2: rgba(255, 255, 255, .08);
  --text: #e8f2ec;
  --muted: #9bb1a6;
  --dim: #6d857a;
  --teal: #5eead4;
  --green: #34d399;
  --lime: #bef264;
  --grad: linear-gradient(120deg, #5eead4 0%, #34d399 45%, #bef264 100%);
  --radius: 18px;
  --wrap: 1160px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.03em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; color: var(--lime); background: rgba(190,242,100,.08); padding: .1em .35em; border-radius: 6px; }
::selection { background: rgba(52, 211, 153, .35); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ic { width: 1.1em; height: 1.1em; flex: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn-primary { background: var(--grad); color: #03200f; box-shadow: 0 8px 30px -8px rgba(52, 211, 153, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(52, 211, 153, .75); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(190,242,100,.4); background: rgba(190,242,100,.05); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 16, 12, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--dim); font-family: var(--mono); transition: color .15s, background .15s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.on { color: #03200f; background: var(--grad); }

/* ---------- error ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.nf-mark { width: 72px; height: 72px; margin: 0 auto 28px; filter: drop-shadow(0 10px 30px rgba(52,211,153,.4)); }
.nf h1 { font-size: clamp(26px, 5vw, 40px); }
.nf p { color: var(--muted); margin: 14px 0 30px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 110px; }
.field-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(52, 211, 153, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(94, 234, 212, .10), transparent 70%);
}
.field-bg::after {
  /* 원근감 있는 밭고랑 */
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -10%; height: 70%;
  background:
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(190, 242, 100, .10) 58px 60px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(94, 234, 212, .06) 38px 40px);
  transform: perspective(520px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--lime);
  background: rgba(190, 242, 100, .07); border: 1px solid rgba(190, 242, 100, .2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(190,242,100,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(190,242,100,0); } 100% { box-shadow: 0 0 0 0 rgba(190,242,100,0); } }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.045em; }
.lead { margin-top: 22px; font-size: 18.5px; color: var(--muted); max-width: 560px; }
.lead strong { color: var(--text); font-weight: 600; }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ic { color: var(--green); }

.hero-visual { position: relative; }
.term {
  position: relative;
  background: linear-gradient(180deg, #0d1a15, #09130f);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(190,242,100,.05), 0 0 80px -20px rgba(52,211,153,.25);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: rgba(255,255,255,.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a33; }
.term-bar i:nth-child(1) { background: #ff6b5f; } .term-bar i:nth-child(2) { background: #ffbd2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.term-body { padding: 20px 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; }
.term-body p { opacity: 0; transform: translateY(4px); animation: line .35s ease forwards; }
.term-body p:nth-child(1) { animation-delay: .2s; } .term-body p:nth-child(2) { animation-delay: .7s; }
.term-body p:nth-child(3) { animation-delay: 1.2s; } .term-body p:nth-child(4) { animation-delay: 1.6s; }
.term-body p:nth-child(5) { animation-delay: 2.0s; } .term-body p:nth-child(6) { animation-delay: 2.4s; }
.term-body p:nth-child(7) { animation-delay: 2.8s; } .term-body p:nth-child(8) { animation-delay: 3.2s; }
.term-body p:nth-child(9) { animation-delay: 3.6s; } .term-body p:nth-child(10) { animation-delay: 4.0s; }
@keyframes line { to { opacity: 1; transform: none; } }
.t-user { font-family: "Pretendard Variable", Pretendard, sans-serif; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line-2); padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-size: 14.5px; }
.t-who { display: inline-block; font-size: 11.5px; font-weight: 700; color: #03200f; background: var(--teal); border-radius: 6px; padding: 0 6px; margin-right: 8px; }
.t-ai { display: flex; align-items: center; gap: 8px; font-family: "Pretendard Variable", Pretendard, sans-serif; color: var(--muted); margin-bottom: 10px; font-size: 14.5px; }
.t-ai .ic { color: var(--lime); }
.t-cmd { color: #d6e6dd; }
.t-cmd span { color: var(--green); margin-right: 8px; }
.t-out { color: var(--dim); margin-bottom: 4px; }
.t-out b { color: var(--lime); font-weight: 600; }
.caret { display: inline-block; width: 8px; height: 16px; margin-left: 6px; vertical-align: -3px; background: var(--lime); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(14, 29, 23, .92); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-weight: 700; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card > .ic { width: 22px; height: 22px; color: #fda4af; }
.fc-1 { left: -34px; top: -26px; }
.fc-2 { right: -22px; bottom: -30px; animation-delay: -3s; }
.ok { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #03200f; }
.ok .ic { width: 16px; height: 16px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line-2); }
.eyebrow { color: var(--green); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 17.5px; max-width: 680px; }

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

.card {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-2);
}
.card .q { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.card h3 { margin-top: 14px; font-size: 22px; }
.card p { margin-top: 12px; color: var(--muted); }

/* loop */
.loop { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.loop::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 26px; height: 2px;
  background: linear-gradient(90deg, rgba(94,234,212,.5), rgba(190,242,100,.5));
  opacity: .5;
}
.loop li { position: relative; padding: 0 6px; }
.step {
  position: relative; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid rgba(190,242,100,.35);
  font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--lime);
  box-shadow: 0 0 0 6px var(--bg-2);
}
.loop li:last-child .step { background: var(--grad); color: #03200f; border: 0; }
.loop li:last-child .step .ic { width: 24px; height: 24px; }
.loop h3 { margin-top: 20px; font-size: 19px; }
.loop p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* features */
.feat {
  padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(14,29,23,.4));
  border: 1px solid var(--line-2);
  transition: border-color .2s ease, transform .2s ease;
}
.feat:hover { border-color: rgba(190,242,100,.3); transform: translateY(-3px); }
.feat-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.25); color: var(--green);
}
.feat-ic .ic { width: 23px; height: 23px; }
.feat h3 { margin-top: 20px; font-size: 20px; }
.feat p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ai */
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line-2);
}
.chips small { color: var(--dim); font-weight: 500; margin-left: 4px; font-family: var(--mono); font-size: 12px; }
.keys { margin-top: 28px; display: grid; gap: 12px; }
.key { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); }
.key code { flex: none; margin-top: 2px; }
.key-admin code { color: #fda4af; background: rgba(253,164,175,.08); }
.key p { color: var(--muted); font-size: 15px; }
.key b { color: var(--text); }
.prompt-card {
  padding: 30px; border-radius: 22px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(52,211,153,.14), transparent 60%), var(--panel);
  border: 1px solid var(--line);
}
.prompt-label { display: flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 700; font-size: 14.5px; margin-bottom: 18px; }
.prompt-card blockquote {
  margin: 0 0 12px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2);
  font-size: 16.5px; color: var(--text);
}
.prompt-card blockquote:last-child { margin-bottom: 0; }

/* principles */
.principle { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); position: relative; overflow: hidden; }
.principle::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); opacity: .8; }
.principle h3 { font-size: 18.5px; }
.principle p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* roadmap */
.roadmap { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.roadmap li { padding: 30px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); }
.roadmap li.now { border-color: rgba(190,242,100,.4); background: radial-gradient(100% 70% at 0% 0%, rgba(190,242,100,.10), transparent 60%), var(--panel); }
.phase { font-size: 13.5px; font-weight: 700; color: var(--dim); font-family: var(--mono); }
.now .phase { color: var(--lime); }
.roadmap h3 { margin-top: 12px; font-size: 22px; }
.roadmap p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* cta */
.cta-final { padding-top: 40px; }
.cta-box {
  text-align: center; padding: 64px 32px; border-radius: 28px;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(52,211,153,.18), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
}
.cta-mark { width: 64px; height: 64px; margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(52,211,153,.45)); }
.cta-box h2 { font-size: clamp(26px, 3.6vw, 38px); }
.cta-box p { margin: 16px auto 30px; color: var(--muted); max-width: 520px; }

/* footer */
.footer { border-top: 1px solid var(--line-2); padding: 34px 0 44px; color: var(--dim); font-size: 14px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 17px; color: var(--text); }
.footer .brand-mark { width: 24px; height: 24px; }
.footer a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .ai-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 600px; margin: 0 auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(94,234,212,.5), rgba(190,242,100,.5)); }
  .loop li { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; padding: 0 0 28px; }
  .loop .step { grid-row: span 2; }
  .loop h3 { margin-top: 12px; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 80px; }
  .section { padding: 80px 0; }
  .grid-3, .grid-4, .roadmap { grid-template-columns: 1fr; }
  .br-wide { display: none; }
  .lead { font-size: 17px; }
  .fc-1 { left: 8px; top: -30px; }
  .fc-2 { right: 8px; bottom: -34px; }
  .term-body { font-size: 12.5px; padding: 16px; }
  .key { flex-direction: column; gap: 8px; }
  .btn { height: 48px; }
  .cta-box { padding: 48px 20px; }
  .nav-contact { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .term-body p { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
