/* SJ AI Studio — link.sjaistudio.com
   One stylesheet, no build step, no external requests. */

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-alt: #0e1729;
  --card: #111c31;
  --card-2: #0f1a2d;
  --line: #1f2d45;
  --line-strong: #2b3d5c;
  --ink: #eaf0fa;
  --ink-soft: #c3cfe2;
  --muted: #8ba0bd;
  --brand: #3b82f6;
  --brand-2: #2dd4bf;
  --brand-ink: #06122a;
  --high: #f87171;
  --med: #fbbf24;
  --pass: #34d399;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, .9);
  --radius: 18px;
  --wrap: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-alt: #eef2f8;
  --card: #ffffff;
  --card-2: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-soft: #26344a;
  --muted: #5b6b83;
  --brand: #1d4ed8;
  --brand-2: #0d9488;
  --brand-ink: #ffffff;
  --high: #dc2626;
  --med: #b45309;
  --pass: #15803d;
  --shadow: 0 22px 50px -38px rgba(15, 23, 42, .6);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

img, svg { max-width: 100%; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(59, 130, 246, .14);
  border: 1px solid rgba(59, 130, 246, .25);
  border-radius: 6px;
  padding: .05em .35em;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 820px; }
.dim { color: var(--muted); }
.small { font-size: 13px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 99;
}
.skip:focus { left: 0; }

/* Language switching: both languages are in the HTML so either one is crawlable. */
html[data-lang="en"] .t-ko { display: none !important; }
html[data-lang="ko"] .t-en { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(140%) blur(12px);
  background: var(--bg); /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-size: 15.5px; }
.nav { display: flex; gap: 20px; margin-left: 10px; font-size: 14.5px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.ghost {
  appearance: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  min-height: 34px; padding: 0 10px;
}
.ghost:hover { color: var(--ink); border-color: var(--muted); }
.ghost.icon { padding: 0 8px; display: inline-flex; align-items: center; }
.ghost .moon { display: none; }
html[data-theme="light"] .ghost .sun { display: none; }
html[data-theme="light"] .ghost .moon { display: inline; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 650; font-size: 15px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  box-shadow: 0 10px 26px -16px rgba(59, 130, 246, .9);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; margin-top: auto; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brand-2); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 62px 0 40px;
  background:
    radial-gradient(120% 130% at 88% -10%, rgba(45, 212, 191, .16) 0%, transparent 55%),
    radial-gradient(100% 120% at 6% 0%, rgba(59, 130, 246, .18) 0%, transparent 52%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr);
  gap: 44px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent);
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 760;
}
h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede { margin: 0 0 26px; font-size: 17px; color: var(--ink-soft); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin: 32px 0 0; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.facts div { min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

.hero-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.score-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pill {
  font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-soft);
}
.pill-live { color: var(--med); border-color: color-mix(in srgb, var(--med) 40%, transparent); background: color-mix(in srgb, var(--med) 12%, transparent); }
.score-num { margin: 10px 0 6px; font-size: 46px; font-weight: 780; letter-spacing: -.04em; line-height: 1; }
.score-num span { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bars { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.bars li { font-size: 12.5px; color: var(--muted); }
.bars span { display: block; margin-bottom: 5px; }
.bars i {
  display: block; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.bars .w100 { width: 100%; }
.bars .w88 { width: 88%; }
.bars .w84 { width: 84%; }
.bars .w70 { width: 70%; }
.findings { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.findings li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.tag { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; margin-top: 1px; }
.tag.high { color: var(--high); background: color-mix(in srgb, var(--high) 15%, transparent); }
.tag.med { color: var(--med); background: color-mix(in srgb, var(--med) 15%, transparent); }
.note { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 34px; }
.label {
  margin: 0 0 10px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2);
}
h2 { margin: 0 0 12px; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.18; letter-spacing: -.025em; font-weight: 730; }
h3 { margin: 0; font-size: 17.5px; letter-spacing: -.01em; }
.sub { margin: 0; color: var(--muted); font-size: 15.5px; }
.section .wrap > p { color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card.featured { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.card.featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 22%, transparent), transparent 42%);
}
.ribbon {
  position: absolute; top: -11px; right: 20px; margin: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.price { margin: 0; font-size: 13px; color: var(--muted); }
.price b { font-size: 22px; color: var(--ink); letter-spacing: -.02em; margin-right: 6px; }
.card-lede { margin: 0 0 16px; font-size: 14.5px; color: var(--ink-soft); }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--pass); border-bottom: 2px solid var(--pass);
  transform: rotate(-45deg); transform-origin: left bottom;
  border-radius: 1px;
}

/* ---------- split / tools ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.split p { color: var(--ink-soft); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; background: var(--card);
}

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  font-size: 13px; font-weight: 700; color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  margin-bottom: 14px;
}
.steps p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { margin-top: 26px; display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-weight: 620; font-size: 15.5px; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 14px;
  color: var(--muted); font-size: 20px; font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- cta band ---------- */
.cta-band {
  padding: 56px 0;
  background:
    radial-gradient(90% 160% at 10% 0%, rgba(45, 212, 191, .16), transparent 60%),
    radial-gradient(90% 160% at 90% 100%, rgba(59, 130, 246, .2), transparent 60%);
}
.band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.foot { padding: 40px 0 34px; background: var(--bg); }
.foot-row { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot-brand { margin: 0 0 6px; font-weight: 700; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.foot-fine { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-fine p { margin: 0; max-width: 90ch; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { max-width: 460px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .nav { display: none; }
  .hero { padding-top: 44px; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
  .bar { gap: 10px; }
  .brand-text { font-size: 14.5px; }
  .bar-actions .btn { display: none; }
  .band { flex-direction: column; align-items: flex-start; }
  .band .btn { width: 100%; }
}

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.nf .code { font-size: 15px; letter-spacing: .2em; color: var(--brand-2); font-weight: 700; }
.nf h1 { margin: 10px 0 14px; font-size: clamp(30px, 5vw, 46px); }
.nf p { color: var(--muted); margin: 0 auto 26px; max-width: 46ch; }
