:root {
  color-scheme: light;
  --brand: #6478ff;
  --button: #4356df;
  --button-ink: #fff;
  --accent: #414fca;
  --canvas: #f8f9ff;
  --surface: #fff;
  --ink: #141735;
  --subtle: #525875;
  --line: #e1e5f4;
  --tint: #ecefff;
  --glow: #dfe4ff;
  font: 100%/1.65 "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --button: #a6b2ff;
  --button-ink: #121635;
  --accent: #b3beff;
  --canvas: #101329;
  --surface: #181c36;
  --ink: #f3f4ff;
  --subtle: #b5bcda;
  --line: #333955;
  --tint: #222a53;
  --glow: #292e63;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --button: #a6b2ff;
    --button-ink: #121635;
    --accent: #b3beff;
    --canvas: #101329;
    --surface: #181c36;
    --ink: #f3f4ff;
    --subtle: #b5bcda;
    --line: #333955;
    --tint: #222a53;
    --glow: #292e63;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; word-break: keep-all; overflow-wrap: anywhere; }
main { flex: 1; padding-bottom: 5rem; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
svg { display: block; width: 1.25rem; height: 1.25rem; flex: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.045em; }
p, li { color: var(--subtle); }
.shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 3; padding: .65rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 1.75rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 850; font-size: 1.25rem; letter-spacing: .035em; text-decoration: none; }
.tile-icon { display: inline-grid; place-items: center; }
.brand-icon { display: block; width: 2.25rem; height: 2.25rem; flex: none; border-radius: .55rem; }
.top nav { display: flex; justify-content: center; align-items: center; gap: .2rem; flex: 1; }
.top nav a { font-size: .875rem; font-weight: 650; padding: .55rem .75rem; border-radius: .5rem; text-decoration: none; white-space: nowrap; color: var(--subtle); }
.top nav a:hover, .top nav a[aria-current] { color: var(--accent); background: var(--tint); }
.theme { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; padding: 0; border: 1px solid var(--line); border-radius: .75rem; background: var(--canvas); color: var(--ink); cursor: pointer; }
.theme[hidden] { display: none; }
.theme:hover, .theme[aria-pressed=true] { color: var(--accent); background: var(--tint); }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 3rem; padding-block: 4rem; }
.eyebrow { display: flex; align-items: center; gap: .45rem; color: var(--accent); font-size: .875rem; font-weight: 800; letter-spacing: .15em; }
.hero h1 { font-size: clamp(3.5rem, 6.4vw, 6.2rem); font-weight: 850; line-height: 1.06; margin-block: .9rem 1.3rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-copy > p:not(.eyebrow) { font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.7rem; }
.button { display: inline-flex; gap: .55rem; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem .95rem; border: 1px solid transparent; border-radius: .7rem; font-weight: 750; text-decoration: none; font-size: .9375rem; }
.button svg { width: 1.05rem; height: 1.05rem; }
.button:hover { text-decoration: underline; text-underline-offset: .22em; }
.primary { background: var(--button); color: var(--button-ink); }
.secondary { background: var(--surface); border-color: var(--line); }
.hero-art { position: relative; isolation: isolate; min-height: 26rem; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 1.6rem; padding: 1.1rem 1.1rem 2.5rem; background: radial-gradient(ellipse at 70% 48%, var(--glow), transparent 80%), var(--tint); }
.orbit { position: absolute; z-index: -1; width: 74%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--brand) 33%, transparent); border-radius: 50%; }
.orbit-outer { width: 98%; }
.preview-link { display: block; width: 100%; min-width: 0; border-radius: .85rem; cursor: zoom-in; }
.chat-preview { display: block; width: 100%; min-width: 0; height: auto; border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 1.3rem 3.5rem #232a7940; }
.tile-icon { background: var(--tint); color: var(--accent); border-radius: .7rem; }
.hero-art figcaption { position: absolute; bottom: .65rem; right: 1.15rem; color: var(--subtle); font-size: .8rem; }
.home-features { border-top: 1px solid var(--line); padding-top: 2.3rem; }
.home-features h2, .story h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .5rem 0 1.35rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .panel { border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; background: var(--surface); }
.card h2, .card h3, .panel h2 { font-size: 1.25rem; }
.card p, .panel p { margin-top: .5rem; }
.tile-icon { width: 2.6rem; height: 2.6rem; margin-bottom: .8rem; }
.panel { margin-top: 1.25rem; background: var(--tint); }
.panel .button, .card .button { margin-top: .9rem; }
.page-intro { padding-block: clamp(2rem, 7vw, 5rem) 2rem; }
.page-intro h1 { font-size: clamp(2.4rem, 7vw, 4.8rem); margin: .45rem 0 .8rem; }
.page-intro p:last-child { font-size: 1.1rem; }
.badge { display: inline-block; font-size: .875rem; color: var(--accent); font-weight: 750; border-radius: .5rem; padding: .22rem .55rem; background: var(--tint); }
.platforms .badge { margin-top: .85rem; }
.stack { display: grid; gap: .9rem; max-width: 51rem; }
.stack ol, .stack ul { padding-left: 1.35rem; margin-bottom: 0; }
.stack time { color: var(--subtle); display: block; margin-bottom: .35rem; }
.quote { margin: 0 0 2rem; background: var(--tint); border-left: .25rem solid var(--brand); border-radius: .4rem 1rem 1rem .4rem; padding: 1.5rem; font-size: clamp(1.45rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.05em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 1.4rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -.35rem; top: .45rem; background: var(--brand); border-radius: 50%; width: .6rem; height: .6rem; }
.timeline li span { font-weight: 750; color: var(--accent); font-size: .875rem; }
.timeline h3 { margin-block: .25rem; color: var(--ink); }
.text-link { display: inline-block; margin-top: .75rem; color: var(--accent); font-weight: 700; text-underline-offset: .2em; }
.status-card { display: flex; align-items: start; gap: 1rem; max-width: 48rem; }
.status-card .tile-icon { flex: none; }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; padding-block: 1.2rem; color: var(--subtle); }
.footer-inner .brand { color: var(--ink); }
.footer-inner > a:last-child { margin-left: auto; text-underline-offset: .2em; }
@media (max-width: 55rem) {
  .top-inner { flex-wrap: wrap; gap: 0; padding-top: .65rem; justify-content: space-between; }
  .top nav { order: 3; flex: 0 0 100%; flex-wrap: wrap; justify-content: flex-start; padding-block: .4rem; }
  .hero { gap: 1.6rem; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .hero { grid-template-columns: 1fr; padding-block: 2.2rem; }
  .hero-art { min-height: 0; padding: .75rem .75rem 2.5rem; }
  .home-features .cards, .page-intro + .cards:not(.platforms) { grid-template-columns: 1fr; }
  .card, .panel { padding: 1rem; }
  .top nav a { padding: .45rem .45rem; }
}
@media (max-width: 22rem) {
  .platforms { grid-template-columns: 1fr; }
}
