/* Lidnight landing — no frameworks */
:root {
  --night-0: #0a0b24;
  --night-1: #0f1030;
  --night-2: #2b1f6e;
  --night-3: #5b35d6;
  --indigo: #6366f1;
  --violet: #9d5cfa;
  --cyan: #22d3ee;
  --mint: #33d69e;
  --coral: #ff6b6b;

  --text: #eef0ff;
  --text-2: #b9bce3;
  --text-3: #9095c4;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--night-0);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* Language switching: both languages live in the markup */
html[lang="ko"] body [lang="en"],
html[lang="en"] body [lang="ko"] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: #fff; color: var(--night-1); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 38, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--text-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--glass-2); }
.lang-toggle {
  appearance: none; border: 1px solid var(--line-2); background: var(--glass);
  color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 36px;
  display: inline-flex; align-items: center; gap: 6px;
}
.lang-toggle:hover { background: var(--glass-2); }
.lang-toggle svg { width: 15px; height: 15px; opacity: .8; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 110%, rgba(91, 53, 214, .75), transparent 60%),
    radial-gradient(900px 500px at 10% -10%, rgba(99, 102, 241, .28), transparent 60%),
    linear-gradient(165deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 115%);
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
  margin-top: -64px; padding-top: calc(64px + clamp(48px, 8vw, 104px));
}
.hero::after { /* fade into page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--night-0));
}
.stars { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 28%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 36% 74%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 58%, #fff 50%, transparent 51%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #d9dcff;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(51, 214, 158, .18); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.14; letter-spacing: -0.035em; font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #a5f3fc 0%, var(--cyan) 30%, #c4b5fd 75%, #e9d5ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 20px; font-size: clamp(16.5px, 1.6vw, 19px); color: #d3d5f5; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: #fff; color: #1a1450; box-shadow: 0 10px 30px -10px rgba(165, 180, 252, .7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(165, 180, 252, .9); }
.btn-pro {
  color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px -12px rgba(157, 92, 250, .9);
}
.btn-pro:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 14px 38px -10px rgba(157, 92, 250, 1); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; color: #c3c6ee; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--mint); }

/* Product shot */
.shot { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.shot::before { /* glow */
  content: ""; position: absolute; inset: 8% -6% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(34, 211, 238, .38), rgba(157, 92, 250, .28) 55%, transparent);
  filter: blur(30px);
}
.shot-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 80px -30px rgba(5, 4, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.shot-frame img { width: 100%; height: auto; }
/* Placeholder shown only when the image fails to load */
.shot-placeholder { display: none; }
.shot.is-missing .shot-frame > img { display: none; }
.shot.is-missing .shot-placeholder { display: block; }
.ph { aspect-ratio: 4 / 5; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ph-top { display: flex; align-items: center; gap: 12px; }
.ph-top img { width: 40px; height: 40px; border-radius: 10px; }
.ph-lines { flex: 1; display: grid; gap: 7px; }
.ph-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.ph-bar.s { width: 55%; background: rgba(255, 255, 255, .10); }
.ph-status {
  border-radius: 16px; padding: 18px; display: grid; gap: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(157, 92, 250, .25));
  border: 1px solid rgba(255, 255, 255, .14);
}
.ph-status b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.ph-status b i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.ph-rows { display: grid; gap: 10px; }
.ph-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.ph-row em { font-style: normal; color: var(--text); font-weight: 600; }
.ph-toggle { width: 36px; height: 22px; border-radius: 999px; background: var(--mint); position: relative; flex: none; }
.ph-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.ph-note { margin-top: auto; text-align: center; font-size: 12px; color: var(--text-3); }

/* ---------- Agents strip ---------- */
.agents { padding: 8px 0 24px; }
.agents p.label { text-align: center; color: var(--text-3); font-size: 13.5px; font-weight: 500; letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.chips li {
  font-size: 14.5px; font-weight: 600; color: #dfe1ff; padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: step; position: relative; }
.step { padding: 28px; position: relative; }
.step .ico {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(99, 102, 241, .16); border: 1px solid rgba(129, 140, 248, .3);
}
.step .ico svg { width: 28px; height: 28px; }
.step:nth-child(2) .ico { background: rgba(157, 92, 250, .15); border-color: rgba(157, 92, 250, .32); }
.step:nth-child(3) .ico { background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .3); }
.step-num { position: absolute; top: 26px; right: 26px; font-size: 13px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 22px; font-size: 19px; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; grid-column: span 2; display: flex; flex-direction: column; }
.feature.wide { grid-column: span 3; }
.feature .f-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.feature .f-ico svg { width: 22px; height: 22px; }
.f-indigo { background: rgba(99, 102, 241, .16); color: #a5b4fc; }
.f-violet { background: rgba(157, 92, 250, .16); color: #c4b5fd; }
.f-cyan { background: rgba(34, 211, 238, .13); color: var(--cyan); }
.f-mint { background: rgba(51, 214, 158, .13); color: var(--mint); }
.f-coral { background: rgba(255, 107, 107, .13); color: #ff9b9b; }
.feature h3 { margin-top: 18px; font-size: 19px; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature > p { margin-top: 8px; color: var(--text-2); font-size: 15.5px; }
.tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: rgba(157, 92, 250, .2); color: #d8c7ff; border: 1px solid rgba(157, 92, 250, .35); }
.ticks { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: #d6d8f6; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(51, 214, 158, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2333D69E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Timeline mini-visual inside auto mode card */
.timeline { margin-top: 20px; padding: 16px; border-radius: 14px; background: rgba(10, 11, 36, .55); border: 1px solid var(--line); }
.tl-track { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 3px; }
.tl-track span { display: block; height: 100%; border-radius: 3px; }
.tl-a { flex: 5; background: linear-gradient(90deg, var(--indigo), var(--violet)); }
.tl-b { flex: 3; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.tl-q { flex: 2; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 4px, transparent 4px 8px); }
.tl-s { flex: 1; background: rgba(51, 214, 158, .55); }
.tl-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--text-3); }
.tl-labels span:last-child { color: var(--mint); }

/* Privacy band */
.privacy { margin-top: 20px; padding: 24px 28px; display: flex; gap: 18px; align-items: flex-start; }
.privacy .f-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.privacy .f-ico svg { width: 22px; height: 22px; }
.privacy h3 { font-size: 17px; letter-spacing: -0.01em; }
.privacy p { margin-top: 4px; color: var(--text-2); font-size: 15.5px; }

/* ---------- Pricing ---------- */
.pricing-bg::before {
  content: ""; position: absolute; inset: 10% 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 400px at 70% 45%, rgba(91, 53, 214, .28), transparent 70%);
}
.pricing-bg { isolation: isolate; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.plan { padding: 32px; display: flex; flex-direction: column; }
.plan h3 { font-size: 20px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan .price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price strong { font-size: 44px; line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.plan .price span { color: var(--text-2); font-size: 15px; }
.plan .sub { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.plan .ticks { margin-top: 22px; margin-bottom: 28px; }
.plan .btn { margin-top: auto; width: 100%; }
.btn-ghost { color: var(--text); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }
.plan-pro {
  position: relative;
  background:
    linear-gradient(180deg, rgba(99, 102, 241, .16), rgba(157, 92, 250, .07)) padding-box,
    linear-gradient(160deg, rgba(34, 211, 238, .7), rgba(157, 92, 250, .6) 45%, rgba(99, 102, 241, .25)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 70px -30px rgba(157, 92, 250, .55);
}
.plan-pro .ticks li::before { background-color: rgba(34, 211, 238, .14); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(34, 211, 238, .15); color: #a5f3fc; border: 1px solid rgba(34, 211, 238, .35); letter-spacing: .01em; }
.includes { margin-top: 16px; font-size: 14px; color: var(--text-3); }
.trial {
  max-width: 880px; margin: 20px auto 0; padding: 16px 20px; border-radius: 14px; text-align: center;
  font-size: 15px; color: #d6d8f6; background: rgba(51, 214, 158, .07); border: 1px solid rgba(51, 214, 158, .25);
}
.trial strong { color: var(--mint); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.faq details[open] { background: var(--glass-2); border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); transition: transform .25s ease; }
.faq summary .chev svg { width: 14px; height: 14px; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }
.faq .answer p + p { margin-top: 8px; }
.faq .warn { color: #ffb0b0; }
.faq code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; color: #e4e6ff; }

/* ---------- Final CTA ---------- */
.final {
  margin-top: clamp(24px, 4vw, 40px); padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 56px); text-align: center; border-radius: 28px;
  background:
    radial-gradient(600px 240px at 50% 120%, rgba(34, 211, 238, .22), transparent 70%),
    linear-gradient(160deg, var(--night-1), var(--night-2) 60%, var(--night-3) 130%);
  border: 1px solid var(--line-2);
}
.final h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.03em; line-height: 1.25; }
.final .cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: clamp(56px, 8vw, 96px); color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand { font-size: 15px; color: var(--text-2); font-weight: 600; }
.site-footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { text-decoration: none; color: var(--text-2); }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .shot-frame { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .cta, .hero-meta { justify-content: center; }
  .shot { max-width: 380px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.wide { grid-column: span 1; }
  .feature.wide:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-pro { order: -1; }
  .nav { display: none; }
  .lang-toggle { margin-left: auto; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .step, .feature, .plan { padding: 24px; }
  .privacy { padding: 22px; flex-direction: column; gap: 14px; }
  .cta .btn { flex: 1 1 100%; }
  .final .cta .btn { flex: 1 1 100%; }
  .faq summary { padding: 16px 18px; font-size: 16px; }
  .faq .answer { padding: 0 18px 18px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* Timeline labels stay on one line on phones */
.tl-labels span { white-space: nowrap; }
@media (max-width: 600px) { .tl-labels { font-size: 11.5px; } }
@media (max-width: 420px) { .tl-labels span:nth-child(2) { display: none; } }
