/* Dawnflick site, dark premium: near-black canvas, warm charcoal surfaces, amber light. One accent, used for actions and the sunrise glow. */
:root {
  --bg: #0d0d0c;
  --bg-2: #141412;
  --surface: #1a1917;
  --surface-2: #22211e;
  --line: #2b2a26;
  --line-2: #3a3833;
  --text: #f2f0ea;
  --text-2: #a9a59b;
  --text-3: #7d796f;
  --amber: #f6b142;
  --amber-2: #ffc768;
  --sans: 'Pretendard Variable', Pretendard, 'Inter', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --shell: min(1200px, 100% - 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
:lang(ko) body { word-break: keep-all; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--amber); color: #171715; }
.skip:focus { top: 12px; }

/* Type */
.display, .title { margin: 0; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.display { font-size: clamp(46px, 7.2vw, 96px); line-height: 1.02; }
.display em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd27a 0%, #f6b142 45%, #e8862b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; max-width: 18ch; }
.kicker { margin: 0 0 14px; color: var(--amber); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lead { max-width: 60ch; margin: 22px 0 0; color: var(--text-2); font-size: clamp(17px, 1.5vw, 20px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; color: var(--text);
  font: 650 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { border-color: #57544c; background: var(--surface); }
.btn-primary { border-color: transparent; background: var(--amber); color: #171715; box-shadow: 0 8px 30px -10px #f6b14299; }
.btn-primary:hover { border-color: transparent; background: var(--amber-2); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #ffffff10; background: #0d0d0cd0; backdrop-filter: blur(14px) saturate(140%); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: 15px; font-weight: 550; text-decoration: none; }
.nav a:hover { background: var(--surface); color: var(--text); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { min-width: 44px; min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--text-2); font: 700 13px/1 var(--sans); cursor: pointer; }
.lang:hover { color: var(--text); border-color: #57544c; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 128px) 0 0; text-align: center; isolation: isolate; }
.hero-glow {
  position: absolute; z-index: -1; left: 50%; top: 340px; width: min(1400px, 160vw); aspect-ratio: 2 / 1;
  border-radius: 50% 50% 0 0; transform: translateX(-50%);
  background: radial-gradient(closest-side at 50% 100%, #f6b14255, #e8862b22 45%, transparent 75%);
  filter: blur(20px);
  animation: glow 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes glow { from { opacity: 0; transform: translate(-50%, 120px); } to { opacity: 1; transform: translate(-50%, 0); } }
.hero-inner { display: grid; justify-items: center; }
.hero .lead { margin-inline: auto; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: #ffffff08; color: var(--text-2); font-size: 14px; font-weight: 600; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px #f6b14230; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.product-shot { margin-top: clamp(56px, 7vw, 88px); }
.window {
  margin: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px #00000080, 0 40px 120px -40px #f6b14240, 0 30px 60px -30px #000;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window-bar b { margin-inline: auto; padding-right: 50px; color: var(--text-3); font-size: 12px; font-weight: 500; }
.window img { width: 100%; height: auto; }

/* Formats strip */
.strip { padding: 28px 0 8px; }
.strip-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.formats li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 550; }

/* Sections */
.section { padding: clamp(88px, 11vw, 140px) 0 0; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.compare-col { padding: clamp(26px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.compare-col.is-scale { border-color: #f6b14255; background: linear-gradient(160deg, #f6b1421a, var(--bg-2) 55%); }
.compare-col h3 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.is-stall h3 { color: var(--text-2); }
.compare-col ul { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.compare-col li { position: relative; padding-left: 34px; color: var(--text-2); }
.is-scale li { color: var(--text); }
.compare-col li::before { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; font-weight: 800; }
.is-stall li::before { content: '✕'; background: var(--surface-2); color: var(--text-3); }
.is-scale li::before { content: '✓'; background: var(--amber); color: #171715; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { display: grid; align-content: start; gap: 12px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #f6b14240; border-radius: 13px; background: #f6b14214; }
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 12px 0 0; font-size: 21px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--text-2); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; padding: 0; list-style: none; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); }
.step-num { display: inline-block; color: var(--amber); font-size: 15px; font-weight: 750; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.step h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Playable demo */
.play-panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(120% 120% at 100% 0%, #f6b14214, transparent 50%), var(--bg-2);
}
.switches { display: grid; gap: 12px; margin-top: 32px; }
.switch { display: inline-flex; align-items: center; gap: 14px; width: fit-content; font-weight: 650; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex: none; width: 50px; height: 28px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); transition: background .2s, border-color .2s; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.switch input:checked + .switch-track { border-color: transparent; background: var(--amber); }
.switch input:checked + .switch-track::after { transform: translateX(22px); background: #171715; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--amber); outline-offset: 3px; }
.play-caption { min-height: 3.2em; margin: 22px 0 0; color: var(--text-2); font-size: 15px; }
.device { margin: 0; padding: 10px; border: 1px solid var(--line-2); border-radius: 26px; background: #050505; box-shadow: 0 40px 80px -40px #000, 0 0 80px -30px #f6b14240; }
.device-screen { position: relative; overflow: hidden; border-radius: 18px; background: #171129; }
.device-screen canvas { width: 100%; height: auto; }
.game-ui { position: absolute; inset: auto 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#game-score { margin: 0; padding: 6px 14px; border-radius: 999px; background: #000000b0; color: #fff; font-size: 15px; }
#game-score strong { color: var(--amber); }
.endcard { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; background: #0d0d0cf0; text-align: center; animation: fade .3s ease both; }
.endcard[hidden] { display: none; }
.endcard .mark { width: 64px; height: 64px; }
.endcard strong { font-size: clamp(20px, 2.4vw, 28px); }
.endcard-replay { border: 0; background: none; color: var(--text-2); font: 600 14px/1 var(--sans); text-decoration: underline; cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Pilot */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.offer { padding: 32px; border: 1px solid #f6b14255; border-radius: 22px; background: linear-gradient(170deg, #f6b14214, var(--bg-2) 40%); }
.offer h3 { margin: 0; color: var(--amber); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.price { margin: 8px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.offer ul { display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; list-style: none; }
.offer li { position: relative; padding-left: 28px; color: var(--text-2); }
.offer li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--amber); font-weight: 800; }
form, #brief-output { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
#brief-output { margin-top: 18px; }
#brief-output[hidden] { display: none; }
label { color: var(--text-2); font-size: 14px; font-weight: 650; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--text); font: 16px/1.4 var(--sans); }
input::placeholder { color: var(--text-3); }
input:focus, textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px #f6b14233; }
input[aria-invalid="true"] { border-color: #ff6b5f; }
form .btn { margin-top: 8px; }
.form-error { margin: 0; color: #ff8a80; font-size: 14px; font-weight: 600; }
.form-error[hidden] { display: none; }
#copy-status { margin: 0; min-height: 1.4em; color: var(--text-2); font-size: 14px; }

/* Final call */
.final { position: relative; overflow: hidden; margin-top: clamp(88px, 11vw, 140px); padding: clamp(96px, 12vw, 160px) 0; border-top: 1px solid var(--line); text-align: center; isolation: isolate; }
.final-glow { position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 1100px; max-width: 160vw; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, #f6b14240, transparent 70%); }
.final-inner { display: grid; justify-items: center; gap: 34px; }
.final .display { max-width: 15ch; font-size: clamp(40px, 6vw, 80px); }

/* Footer */
.footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer .brand { color: var(--text); font-size: 16px; }
.footer a:last-child { margin-left: auto; color: var(--text-2); }
.footer a:last-child:hover { color: var(--text); }

@media (max-width: 1000px) {
  .nav { display: none; }
  .header-tools { margin-left: auto; }
  .cards, .play-panel, .pilot-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .compare, .steps { grid-template-columns: minmax(0, 1fr); }
  .header-tools .btn { display: none; }
  .window-bar b { display: none; }
  .play-panel { padding: 22px; border-radius: 22px; }
  .footer a:last-child { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow, .endcard { animation: none; }
  .btn, .card { transition: none; }
}
