/* ==========================================================================
   Aravoza (알아보자 AI) — AI 툴 비교 허브
   styles.css
   ========================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #07080d;
  --bg-soft: #0b0d16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #10121d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef0f8;
  --text-soft: #c3c8da;
  --muted: #8d94ab;
  --muted-2: #6b7189;

  --accent: #7c5cff;
  --accent-soft: #a58fff;
  --accent-2: #00e5c8;
  --accent-3: #5b8cff;
  --warn: #ffb454;
  --danger: #ff6b81;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 24px 60px -28px rgba(124, 92, 255, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1180px;
}

* { box-sizing: border-box; }

/* hidden 속성이 display 규칙에 덮이지 않도록 고정 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }
body.has-compare { padding-bottom: 92px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.03em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.noscript-bar {
  padding: 14px 24px;
  text-align: center;
  font-size: 0.86rem;
  color: #ffd39b;
  background: rgba(255, 180, 84, 0.12);
  border-bottom: 1px solid rgba(255, 180, 84, 0.3);
}

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

/* Background glow ---------------------------------------------------------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 420px at 12% -6%, rgba(124, 92, 255, 0.28), transparent 65%),
    radial-gradient(680px 400px at 88% 4%, rgba(0, 229, 200, 0.13), transparent 62%),
    radial-gradient(900px 600px at 50% 108%, rgba(91, 140, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #07080d 0%, #080a11 45%, #06070b 100%);
  pointer-events: none;
}

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 18px rgba(124, 92, 255, 0.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  background: linear-gradient(100deg, #fff 10%, #c9bcff 55%, #8ee9dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.14em; font-weight: 500; }

.header-nav { display: flex; gap: 4px; margin-left: 10px; }
.header-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.header-nav a:hover { background: var(--surface-2); color: #fff; }

.header-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-soft);
  background: var(--surface);
  white-space: nowrap;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 229, 200, 0.14);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(0, 229, 200, 0.14); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(0, 229, 200, 0.05); }
}

/* Hero --------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-top: 74px;
  padding-bottom: 58px;
}

.eyebrow { margin-bottom: 20px; }
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #d5ccff;
  background: linear-gradient(120deg, rgba(124, 92, 255, 0.24), rgba(0, 229, 200, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.32);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.grad {
  background: linear-gradient(100deg, #a58fff 0%, #7c5cff 40%, #00e5c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-soft);
  font-weight: 500;
}
.hero-desc {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-desc strong { color: var(--text-soft); font-weight: 600; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  min-width: 108px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #fff, #b9aaff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.73rem; color: var(--muted); letter-spacing: 0.01em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: linear-gradient(100deg, #8b6bff, #6a5cff 55%, #4f7cff);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(124, 92, 255, 0.8);
}
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(124, 92, 255, 0.95); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(124, 92, 255, 0.5); }
.btn-text { background: none; color: var(--muted); padding: 10px 12px; }
.btn-text:hover { color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* Hero card ---------------------------------------------------------------- */
.hero-card {
  position: relative;
  padding: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.55), transparent 40%, rgba(0, 229, 200, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.hero-card-title { font-size: 0.8rem; font-weight: 700; color: var(--text-soft); letter-spacing: 0.02em; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
}
.pill-live { background: rgba(0, 229, 200, 0.12); color: #7df0e0; border: 1px solid rgba(0, 229, 200, 0.28); }

.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-steps li { display: flex; gap: 13px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 0.78rem; font-weight: 800;
  color: #d8ceff;
  background: rgba(124, 92, 255, 0.18);
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.hero-steps strong { display: block; font-size: 0.92rem; font-weight: 650; color: var(--text); }
.hero-steps p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* Controls ----------------------------------------------------------------- */
.controls-wrap { padding-bottom: 20px; scroll-margin-top: 84px; }

.controls {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.search-field { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 16px; width: 19px; height: 19px; color: var(--muted-2); pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 14px 46px 14px 45px;
  background: rgba(6, 7, 12, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.search-field input::placeholder { color: var(--muted-2); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field input:focus {
  outline: none;
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.14);
  background: rgba(6, 7, 12, 0.9);
}
.search-clear {
  position: absolute; right: 12px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--surface-2); color: var(--muted);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.search-clear:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.tab:hover { border-color: var(--border-strong); color: #fff; background: var(--surface-2); }
.tab[aria-pressed="true"] {
  background: linear-gradient(100deg, rgba(124, 92, 255, 0.9), rgba(91, 140, 255, 0.85));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px -12px rgba(124, 92, 255, 0.9);
}
.tab[aria-pressed="true"] .tab-count { opacity: 0.85; }
.tab-count {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  padding-left: 2px;
}

.controls-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  position: relative;
  width: 40px; height: 23px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  transition: background 0.2s var(--ease), border-color 0.2s;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff;
  transition: transform 0.22s var(--ease), background 0.2s;
}
.switch input:checked + .switch-track {
  background: linear-gradient(100deg, #8b6bff, #4f7cff);
  border-color: transparent;
}
.switch input:checked + .switch-track .switch-thumb { transform: translateX(17px); background: #fff; }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.switch-label { font-size: 0.85rem; color: var(--text-soft); white-space: nowrap; }

.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 36px 9px 14px;
  background: rgba(6, 7, 12, 0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.18s var(--ease);
}
.select-wrap select:hover { border-color: var(--border-strong); }
.select-arrow {
  position: absolute; right: 12px; width: 16px; height: 16px;
  color: var(--muted); pointer-events: none;
}

.result-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem; color: var(--muted);
}
.result-meta strong { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--accent-soft); font-size: 0.83rem; font-weight: 600;
  padding: 4px 0;
}
.link-btn:hover { color: #fff; }

/* Grid & cards ------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(304px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.9);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
  animation: cardIn 0.4s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.42);
  box-shadow: 0 26px 50px -30px rgba(124, 92, 255, 0.7);
}
.card.is-selected {
  border-color: rgba(0, 229, 200, 0.55);
  box-shadow: var(--shadow-glow);
}
.card.is-selected::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 160px at 100% 0%, rgba(0, 229, 200, 0.1), transparent 70%);
  pointer-events: none;
}

.card-top { display: flex; align-items: flex-start; gap: 12px; }
.logo {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  background: linear-gradient(142deg, hsl(var(--h, 260) 78% 62%), hsl(calc(var(--h, 260) + 44) 72% 48%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px -10px rgba(0, 0, 0, 0.8);
}
.card-title { flex: 1; min-width: 0; }
.card-title h3 { font-size: 1.08rem; font-weight: 750; letter-spacing: -0.035em; }
.card-vendor { font-size: 0.75rem; color: var(--muted-2); margin-top: 1px; }

.badge-cat {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #cfc6ff;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.26);
  white-space: nowrap;
}

.card-tagline { font-size: 0.87rem; color: var(--text-soft); line-height: 1.55; }

.free-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(0, 229, 200, 0.06);
  border: 1px solid rgba(0, 229, 200, 0.16);
  font-size: 0.79rem;
  color: #a9f2e8;
  line-height: 1.5;
}
.free-row.is-none {
  background: rgba(255, 180, 84, 0.07);
  border-color: rgba(255, 180, 84, 0.22);
  color: #ffd39b;
}
.free-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 229, 200, 0.18);
  color: #8ff3e6;
  margin-top: 1px;
}
.free-row.is-none .free-tag { background: rgba(255, 180, 84, 0.18); color: #ffce8f; }

.price-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 12px; }
.price-main { display: flex; flex-direction: column; }
.price-label { font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.02em; }
.price-usd {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.price-usd span { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.price-krw { font-size: 0.84rem; color: var(--accent-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.price-note {
  flex: 1 1 100%;
  font-size: 0.72rem;
  color: var(--muted-2);
  text-align: left;
  line-height: 1.5;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-ko-full { background: rgba(0, 229, 200, 0.12); color: #86f0e2; border-color: rgba(0, 229, 200, 0.24); }
.badge-ko-part { background: rgba(91, 140, 255, 0.12); color: #a8c4ff; border-color: rgba(91, 140, 255, 0.26); }
.badge-ko-en { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: var(--border); }
.badge-aff-yes { background: rgba(255, 180, 84, 0.1); color: #ffc98c; border-color: rgba(255, 180, 84, 0.24); }
.badge-aff-no { background: rgba(255, 255, 255, 0.04); color: var(--muted-2); border-color: var(--border); }
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.highlights li {
  position: relative;
  padding-left: 15px;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.5;
}
.highlights li::before {
  content: "";
  position: absolute; left: 2px; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent-soft), var(--accent-2));
}

.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-actions .btn { flex: 1; padding: 10px 14px; font-size: 0.84rem; border-radius: 11px; }
.btn-compare {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
}
.btn-compare:hover { background: var(--surface-2); color: #fff; border-color: rgba(124, 92, 255, 0.5); }
.btn-compare[aria-pressed="true"] {
  background: rgba(0, 229, 200, 0.14);
  border-color: rgba(0, 229, 200, 0.45);
  color: #8ff3e6;
}

/* Empty / error ------------------------------------------------------------ */
.empty, .load-error {
  margin-top: 30px;
  padding: 54px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty-icon { font-size: 2rem; margin-bottom: 10px; }
.empty h2, .load-error h2 { font-size: 1.15rem; margin-bottom: 8px; }
.empty p, .load-error p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.load-error pre {
  display: inline-block;
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: var(--accent-2);
  text-align: left;
  overflow-x: auto;
  max-width: 100%;
}

/* Guide / About ------------------------------------------------------------ */
.guide { padding: 76px 24px 20px; scroll-margin-top: 84px; }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -0.045em; }
.section-sub { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.guide-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.guide-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 750;
  color: #cfc6ff;
  background: rgba(124, 92, 255, 0.16);
  margin-bottom: 10px;
}
.guide-card h3 { font-size: 1rem; margin-bottom: 7px; }
.guide-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

.about { padding: 66px 24px 80px; }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.09), rgba(255, 255, 255, 0.015) 55%);
}
.about-inner p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.about-inner p strong { color: var(--text-soft); }
.about-inner .section-title { margin-bottom: 4px; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.86rem;
  color: var(--muted);
}
.about-list li strong { color: var(--text); font-weight: 750; }

/* Footer ------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
  padding: 40px 0 60px;
}
.footer-inner { display: grid; gap: 14px; }
.footer-brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.footer-brand .brand-name { font-size: 1.05rem; }
.footer-site {
  font-size: 0.78rem; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16); padding-bottom: 1px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-site:hover { color: var(--text-soft); border-color: rgba(255, 255, 255, 0.4); }
.footer-meta { font-size: 0.82rem; color: var(--muted); display: grid; gap: 4px; }
.footer-meta #footerUpdated, .footer-meta #footerRate { color: var(--text-soft); font-weight: 600; }
.footer-note { font-size: 0.76rem; color: var(--muted-2); line-height: 1.65; max-width: 92ch; }
.muted { color: var(--muted-2); }

/* Compare bar -------------------------------------------------------------- */
.compare-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  border-top: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(10, 11, 19, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, 0.95);
  animation: barIn 0.3s var(--ease) both;
}
@keyframes barIn { from { transform: translateY(100%); } to { transform: none; } }
.compare-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.compare-slots { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 38px; }
.slot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  font-size: 0.83rem;
  font-weight: 600;
}
.slot button {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.95rem; line-height: 1; cursor: pointer;
}
.slot button:hover { background: var(--danger); color: #fff; }
.slot-empty {
  padding: 8px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.compare-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Modal -------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.2s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative;
  width: min(940px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(170deg, #12141f, #0b0c14 65%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 1);
  animation: modalIn 0.28s var(--ease) both;
  overflow: hidden;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 1.1rem; letter-spacing: -0.03em; }
.modal-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: var(--surface-2); color: #fff; }
.modal-body { padding: 0 24px 26px; overflow-y: auto; }

.cmp-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
table.cmp th, table.cmp td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
table.cmp thead th {
  position: sticky; top: 0;
  background: #101220;
  padding-top: 18px;
  z-index: 1;
}
table.cmp thead th:first-child { width: 122px; }
table.cmp tbody th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
table.cmp td { color: var(--text-soft); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }
.cmp-head { display: flex; align-items: center; gap: 10px; }
.cmp-head .logo { width: 34px; height: 34px; border-radius: 10px; font-size: 0.9rem; }
.cmp-head strong { font-size: 0.98rem; display: block; letter-spacing: -0.03em; }
.cmp-head span { font-size: 0.72rem; color: var(--muted-2); }
.cmp-price { font-size: 1.05rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cmp-krw { display: block; font-size: 0.78rem; color: var(--accent-2); font-weight: 650; }
.cmp-highlights { margin: 0; padding-left: 15px; display: grid; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.cmp-cta { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 52px; padding-bottom: 40px; }
  .hero-card { max-width: 520px; }
  .header-nav { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 62px; gap: 12px; }
  .header-meta { padding: 6px 10px; font-size: 0.72rem; }
  .header-meta span:last-child { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .hero-stats { gap: 9px; }
  .stat { flex: 1 1 30%; min-width: 0; padding: 10px 13px; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.66rem; }
  .controls { padding: 15px; }
  .controls-row { flex-direction: column; align-items: stretch; }
  .controls-right { justify-content: space-between; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 18px; }
  .price-note { max-width: none; }
  .guide, .about { padding-left: 18px; padding-right: 18px; }
  .guide { padding-top: 54px; }
  .compare-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .compare-actions { justify-content: flex-end; }
  .modal { padding: 0; place-items: end center; }
  .modal-panel { max-height: 92vh; border-radius: 20px 20px 0 0; }
  .modal-body { padding: 0 16px 22px; }
  .modal-head { padding: 16px 18px; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .card-top { flex-wrap: wrap; }
  .badge-cat { order: 3; }
}

/* Motion & print ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .compare-bar, .modal, .controls, .hero-actions, .bg-glow { display: none !important; }
  body { background: #fff; color: #000; }
  .card { break-inside: avoid; border-color: #ddd; background: none; }
}
