/* ShadowCue homepage — one stylesheet for every page. Light and dark follow the visitor's system. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#fafafc, #0b0d12);
  --bg-alt: light-dark(#f1f3f8, #10131a);
  --surface: light-dark(#ffffff, #151922);
  --line: light-dark(#e2e5ee, #232834);
  --text: light-dark(#12151d, #f1f3f8);
  --muted: light-dark(#596173, #9aa2b4);
  --accent: light-dark(#1b63c9, #8fd0ff);
  --accent-text: light-dark(#ffffff, #08111f);
  --listen: light-dark(#1b63c9, #8fd0ff);
  --quiz: light-dark(#a8650a, #ffc46b);
  --speak: light-dark(#167a4a, #6ee7a0);
  --expr: light-dark(#7a4fc4, #c9a8ff);
  --radius: 18px;
  accent-color: var(--accent);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss06", "tnum" 0; /* Pretendard: clearer Korean punctuation spacing */
  word-break: keep-all; /* Korean wraps between words, not inside them */
  overflow-wrap: anywhere;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.022em; line-height: 1.25; }
p { text-wrap: pretty; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 40px); }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.brand, .top nav a, .btn, .eyebrow { white-space: nowrap; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.top nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.top nav a.lang { border: 1px solid var(--line); color: var(--text); margin-left: 6px; }

/* hero */
.hero { padding: 76px 0 56px; text-align: center; background: radial-gradient(900px 420px at 50% -80px, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.eyebrow { display: inline-block; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.16; font-weight: 800; letter-spacing: -0.035em; margin: 0 auto 20px; max-width: 16em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 0 auto 30px; max-width: 38em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn[aria-disabled="true"] { opacity: 0.72; cursor: default; }
.note { font-size: 14px; color: var(--muted); }

/* the demo "player" with the live panel on it — always dark, like a video */
.stage { position: relative; margin: 52px auto 0; border-radius: 22px; overflow: hidden; text-align: left; color-scheme: dark; background: #0d1018; border: 1px solid light-dark(#d5d9e4, #232834); box-shadow: 0 40px 90px -30px rgb(10 14 30 / 0.55); min-height: 560px; display: flex; align-items: center; justify-content: flex-end; padding: 36px; }
.scene { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 25% 30%, #3b4a6b 0%, #1d2436 45%, #0d1018 100%); }
.glow { position: absolute; border-radius: 50% 50% 14px 14px; }
.glow.g1 { left: 10%; top: 22%; width: 14%; height: 36%; background: #e9a17833; }
.glow.g2 { left: 28%; top: 27%; width: 12%; height: 31%; background: #8fd0ff2a; }
.cap { position: absolute; left: 4%; width: 52%; bottom: 15%; margin: 0; text-align: center; color: #fff; font-size: clamp(18px, 2.1vw, 26px); font-weight: 600; line-height: 1.35; text-shadow: 0 2px 8px #000; }
.demo-note { position: absolute; left: 24px; bottom: 16px; margin: 0; color: #ffffff80; font-size: 13px; }
.slot { position: relative; width: min(420px, 100%); }
.try { margin: 12px 0 0; text-align: center; color: #ffffffa6; font-size: 14px; font-weight: 500; }
.panel { display: block; width: 100%; max-width: 420px; min-height: 300px; opacity: 0; transition: opacity 0.25s; }
.panel.ready { opacity: 1; min-height: 0; }
.panel.failed { display: none; }
@media (prefers-reduced-motion: reduce) { .panel { transition: none; } }

/* facts */
.facts { padding: 44px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts .wrap > div { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.facts b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.facts span { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
section h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 800; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 8px; max-width: 40em; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; margin-top: 72px; }
.feature:nth-of-type(even) .text { order: 2; }
.feature .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.feature.listen { --c: var(--listen); }
.feature.quiz { --c: var(--quiz); }
.feature.speak { --c: var(--speak); }
.feature.expr { --c: var(--expr); }
.feature h3 { font-size: clamp(23px, 2.5vw, 30px); font-weight: 800; margin: 16px 0 12px; }
.feature .text > p { color: var(--muted); margin: 0 0 18px; font-size: 17.5px; }
/* the panel's own background is slightly see-through (it sits on video); give it a dark backing on the page */
.feature .panel { justify-self: center; background: #0d1018; border-radius: 16px; box-shadow: 0 30px 60px -20px rgb(10 14 30 / 0.45); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ic { margin-top: 0.3em; color: var(--c, var(--accent)); }

.tablewrap { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-x: auto; }
.levels { width: 100%; border-collapse: collapse; }
.levels th, .levels td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 16px; }
.levels tbody tr:last-child > * { border-bottom: 0; }
.levels thead th { color: var(--muted); font-weight: 600; font-size: 14px; }
.levels tbody th { font-weight: 700; white-space: nowrap; }
.cefr { display: inline-block; min-width: 44px; text-align: center; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
section .note { margin-top: 14px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 36px 0 0; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.keys span { display: inline-flex; align-items: center; gap: 8px; }
kbd { font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 8px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); color: var(--text); white-space: nowrap; }

.cards { display: grid; gap: 18px; margin-top: 32px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card > .ic { width: 26px; height: 26px; color: var(--accent); }
.card h3 { margin: 10px 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.more { margin: 24px 0 0; font-weight: 600; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-top: 12px; }
#faq h2 { margin-bottom: 24px; }
details summary { cursor: pointer; font-weight: 700; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 0; padding: 0 0 18px; }

.closing { text-align: center; background: radial-gradient(700px 300px at 50% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.closing h2 { margin-bottom: 26px; }
.closing .note { margin-top: 16px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 52px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: grid; gap: 10px; }
footer p { margin: 0; max-width: 62em; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.foot-top .brand { font-size: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }

/* legal pages */
.doc { padding: 56px 0 40px; max-width: 760px; }
.doc h1 { font-size: 36px; font-weight: 800; margin: 0 0 6px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--muted); }

@media (max-width: 960px) {
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; }
  .feature:nth-of-type(even) .text { order: 0; }
  .stage { min-height: 0; padding: 20px 16px 16px; justify-content: center; }
  .scene .cap, .scene .glow, .demo-note { display: none; }
  .cards.three, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .top nav a.hide-sm { display: none; }
  .top nav a { padding: 8px 9px; }
  .eyebrow { font-size: 13px; }
  .btn { padding: 12px 18px; font-size: 15px; }
  .cards.two { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: 1fr; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .levels th, .levels td { padding: 12px 14px; font-size: 15px; }
}
