/* THROW ANYTHING — landing site.
   One stylesheet for every language and page. Dark arcade surface, a single
   accent, cards that stay readable at 360 px. */

:root {
  --bg: #0b1016;
  --bg-soft: #0f1720;
  --panel: #131c27;
  --panel-2: #172231;
  --ink: #f2f6fa;
  --ink-dim: rgba(242, 246, 250, 0.68);
  --ink-faint: rgba(242, 246, 250, 0.44);
  --accent: #ffcb45;
  --accent-ink: #1a1205;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(255, 203, 69, 0.14), transparent 62%),
    radial-gradient(840px 520px at 6% 4%, rgba(79, 168, 255, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Malgun Gothic",
    "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans", "Noto Sans KR",
    "Noto Sans SC", "Noto Sans TC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

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

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 22, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 15px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), #ff9c2f);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  font-size: 15px;
  flex: none;
}

.brand-text { white-space: nowrap; }

.topbar-spacer { flex: 1; }

.lang-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f2f6fa' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center/10px 7px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 32px 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  max-width: 44vw;
  text-overflow: ellipsis;
}

.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px rgba(255, 203, 69, 0.24); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ---------- hero ---------- */

.hero { padding: 54px 0 24px; }

.hero-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 203, 69, 0.12);
  border: 1px solid rgba(255, 203, 69, 0.28);
  border-radius: 999px;
  padding: 6px 13px;
}

.hero h1 {
  font-size: clamp(34px, 8.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
  white-space: pre-line;
}

.hero p.lead { font-size: 17px; color: var(--ink-dim); margin: 0 0 26px; max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.stat-n { font-size: 22px; font-weight: 800; display: block; }
.stat-l { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.05em; text-transform: uppercase; }

/* phone mock, drawn in CSS so the page needs no artwork */
.phone {
  position: relative;
  width: min(280px, 74vw);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, #1b2837, #0d141d 62%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 203, 69, 0.08));
  border-top: 2px solid rgba(255, 255, 255, 0.10);
}

.phone-arc,
.phone-shot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The hero holds the real scene, so the painted floor line underneath it
   would show through at the edges. */
.phone:has(.phone-shot)::after { display: none; }

/* ---------- sections ---------- */

section { padding: 40px 0; }

h2.section-title {
  font-size: clamp(22px, 5vw, 30px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

p.section-sub { color: var(--ink-dim); margin: 0 0 22px; }

/* ---------- tabs ---------- */

.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.tab {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

[data-panel] { display: none; }
[data-panel][data-active="true"] { display: block; }

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.card:hover { border-color: rgba(255, 203, 69, 0.46); transform: translateY(-2px); }

.card-art {
  height: 136px;
  border-radius: var(--radius-sm);
  margin-bottom: 13px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The scenes are portrait and the card is a letterbox. The floor sits at 90%
     of the artwork, so the crop is held down there - the wall alone says
     nothing about which room this is. */
  object-position: center 88%;
  display: block;
}

/* Keeps the label readable whatever the artwork does behind it. */
.card-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56%;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 17, 0.78));
  pointer-events: none;
}

.card-art span {
  position: absolute;
  left: 12px;
  bottom: 9px;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.card h3 { margin: 0 0 4px; font-size: 17px; }
.card-meta { font-size: 13px; color: var(--ink-faint); display: flex; gap: 10px; }
.card-foot { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; }

.pill {
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 203, 69, 0.14);
  color: var(--accent);
  border: 1px solid rgba(255, 203, 69, 0.3);
}

/* ---------- chips: one thing you throw, hit or bounce off ---------- */

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim);
}

.chip img,
.chip-blank {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.chip-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.chip-groups {
  display: grid;
  gap: 22px;
  margin-bottom: 26px;
}

@media (min-width: 720px) {
  .chip-groups { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- features / steps ---------- */

.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 203, 69, 0.14);
  font-size: 19px;
  margin-bottom: 12px;
}

.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-dim); font-size: 15px; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }

ol.steps li {
  counter-increment: s;
  position: relative;
  padding: 16px 18px 16px 58px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
}

ol.steps li::before {
  content: counter(s);
  position: absolute;
  left: 18px; top: 14px;
  width: 26px; height: 26px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 14px;
}

/* ---------- scores ---------- */

.score-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.score-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.score-n { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.score-l { font-size: 13px; color: var(--ink-faint); }
.score-note { font-size: 13px; color: var(--ink-faint); margin-top: 12px; }

/* ---------- faq ---------- */

details.faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 10px;
}

details.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--ink-dim); margin: 10px 0 2px; }

/* ---------- share ---------- */

.share-row { display: flex; flex-wrap: wrap; gap: 9px; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover { border-color: rgba(255, 203, 69, 0.5); }
.share-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* ---------- level table (SEO pages) ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table.levels { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.levels th, table.levels td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.levels th { color: var(--ink-faint); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
table.levels tr:last-child td { border-bottom: 0; }
table.levels td { color: var(--ink-dim); }
table.levels td:first-child { color: var(--ink); font-weight: 700; }

.crumbs { font-size: 13px; color: var(--ink-faint); padding-top: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- legal ---------- */

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(25px, 5vw, 32px); margin: 8px 0 6px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; color: var(--accent); }
.legal p, .legal li { color: var(--ink-dim); font-size: 15px; }
.legal .meta { font-size: 13px; color: var(--ink-faint); }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 30px 0 56px;
  background: rgba(0, 0, 0, 0.22);
}

.foot-top { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-bottom: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.foot-links a { color: var(--ink-dim); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

.foot-langs { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; margin: 14px 0 18px; }
.foot-langs a { color: var(--ink-faint); text-decoration: none; }
.foot-langs a:hover { color: var(--ink); }
.foot-langs a[aria-current="true"] { color: var(--accent); font-weight: 700; }

.biz { font-size: 12.5px; color: var(--ink-faint); line-height: 1.85; }
.biz strong { color: var(--ink-dim); font-weight: 700; }
.copy { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }

/* ---------- narrow phones ---------- */

/* Below this the bar cannot hold the name, the language and a button at a
   readable size, and the hero already offers the same button. */
@media (max-width: 560px) {
  .topbar-inner .btn { display: none; }
  .topbar-inner { gap: 8px; }
  .brand { font-size: 13px; gap: 7px; }
  .brand-mark { width: 22px; height: 22px; font-size: 13px; }
  /* min-width: 0 lets the flex row shrink the select instead of overflowing. */
  .lang-select { flex: 0 1 auto; min-width: 0; max-width: 46vw; font-size: 12px; padding: 8px 28px 8px 11px; overflow: hidden; }
}

/* ---------- wide screens ---------- */

@media (min-width: 880px) {
  .hero { padding: 72px 0 30px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 48px; }
  .phone { width: min(320px, 38vw); }
}

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