@font-face {
  font-family: 'HeirofLight';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/HeirofLightRegular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HeirofLight';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/HeirofLightBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0f14;
  --bg-2: #0f1620;
  --bg-3: #131d2a;
  --surface: #162232;
  --border: #1f2e42;
  --text: #e6edf5;
  --text-dim: #93a3b8;
  --text-mute: #6b7c93;
  --accent: #facc15;
  --accent-2: #ca8a04;
  --accent-glow: rgba(250, 204, 21, 0.55);
  --danger: #f87171;
  --warn: #fbbf24;
  --ok: #34d399;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
a img, button img { pointer-events: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 20, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--border);
}
.brand-mark.small {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  box-shadow: none;
}
.brand-name { font-size: 15px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #3d2104;
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 60px var(--accent-glow), 0 12px 28px rgba(0, 0, 0, 0.5); }
.hero .btn-primary {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 0 50px var(--accent-glow), 0 10px 30px rgba(0, 0, 0, 0.55);
}
.btn-primary .btn-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  padding: 14px 22px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero .btn-secondary {
  background: rgba(10, 15, 20, 0.55);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font-weight: 700;
}
.hero .btn-secondary:hover {
  background: rgba(10, 15, 20, 0.75);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  padding: 8px 14px;
  background: var(--surface);
  border-color: var(--border);
  font-size: 13px;
  flex-direction: row;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  padding: 80px 0 14vh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: calc(100vh - 80px - 14vh);
}
.hero-top,
.hero-middle,
.hero-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-top { padding-top: 8px; }
.hero-middle {
  margin-top: auto;
  margin-bottom: 28px;
}
.hero-bottom { gap: 18px; max-width: 720px; margin: 0 auto; }
.hero-bottom .lead { margin: 0 auto; }
.hero-cta { justify-content: center; }
.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(46, 28, 0, 0.7);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(250, 204, 21, 0.5);
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 16px rgba(250, 204, 21, 0.25);
}
.hero h1,
.cta-bottom .cta-inner h2,
.section-title {
  font-family: 'HeirofLight', 'Pretendard', serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  background: linear-gradient(180deg,
    #ffffff 0%,
    #f1f4f9 22%,
    #cdd4df 48%,
    #98a2b1 62%,
    #d9dee7 80%,
    #f7f9fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45))
          drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
}
.hero h1 { font-size: clamp(34px, 4.5vw, 56px); margin: 0; }
.cta-bottom .cta-inner h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0 0 18px; }
.accent {
  background: linear-gradient(135deg, var(--accent), #fde047);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero .lead,
.cta-bottom .cta-inner p {
  color: #e1e4eb;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
  max-width: 620px;
  margin: 0;
}
.hero .hint {
  color: #c8ccd5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  margin: 0;
}
.hero .hero-cta { margin: 0; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.hint {
  font-size: 13px;
  color: var(--text-mute);
  margin: 6px 0 0;
}

/* ---------- hero visual ---------- */
.hero-visual {
  position: relative;
  height: 420px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}
.orb-1 { width: 280px; height: 280px; background: var(--accent); top: 20px; right: 40px; opacity: 0.25; }
.orb-2 { width: 180px; height: 180px; background: #fde047; bottom: 30px; left: 20px; opacity: 0.2; }
.orb-3 { width: 120px; height: 120px; background: #0ea5e9; top: 200px; left: 180px; opacity: 0.15; }

.card-glow {
  position: absolute;
  inset: 40px 0 40px 60px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ef4444; }
.dot-y { background: #f59e0b; }
.dot-g { background: #10b981; }
.card-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-mute);
  font-family: 'Consolas', 'Menlo', monospace;
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-dim);
}
.stat:last-of-type { border-bottom: 0; padding-bottom: 0; }
.stat b { color: var(--text); font-size: 18px; font-weight: 700; }
.stat .ok { color: var(--ok); font-size: 14px; }
.bar {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
  margin-top: 6px;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fde047);
  border-radius: 999px;
  animation: grow 4s ease-in-out infinite;
}
@keyframes grow {
  0%, 100% { width: 72%; }
  50% { width: 86%; }
}

/* ---------- section ---------- */
.section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: rgba(10, 15, 20, 0.7);
}
.section .container { width: 100%; }
.section-alt { background: rgba(10, 15, 20, 0.75); }
.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 40px;
  text-align: center;
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: rgba(22, 34, 50, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(250, 204, 21, 0.18), rgba(202, 138, 4, 0.1));
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 30px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-icon i {
  display: inline-flex;
  line-height: 1;
}
.feature-icon i::before {
  filter: drop-shadow(0 2px 4px rgba(202, 138, 4, 0.5));
}
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.65; }

/* ---------- requirements ---------- */
.req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.req-col {
  background: rgba(22, 34, 50, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.req-col h4 {
  margin: 0 0 16px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.req-col ul { margin: 0; padding: 0; list-style: none; }
.req-col li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 14.5px;
}
.req-col li:last-child { border-bottom: 0; }

/* ---------- changelog ---------- */
.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.changelog li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.changelog li.placeholder { color: var(--text-mute); text-align: center; padding: 32px; }
.cl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cl-version {
  font-weight: 800;
  font-size: 17px;
}
.cl-date {
  font-size: 13px;
  color: var(--text-mute);
}
.cl-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: var(--accent);
  border: 1px solid rgba(250, 204, 21, 0.35);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cl-body { color: var(--text-dim); font-size: 14.5px; }
.cl-body ul { margin: 4px 0 0 18px; padding: 0; }
.cl-body li { background: transparent; border: 0; padding: 2px 0; }

/* ---------- bottom cta ---------- */
.cta-bottom {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(10, 15, 20, 0.7), rgba(10, 15, 20, 0.75));
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}
.cta-inner h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.cta-inner p { margin: 0; color: var(--text-dim); }

/* ---------- footer ---------- */
.footer {
  padding: 28px 0 16px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  position: relative;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-line {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1.7;
}
.footer-line a {
  color: var(--text-dim);
  text-decoration: none;
}
.footer-line a:hover,
.footer-line .rating-trigger:hover { color: var(--text); }
.footer-sep { color: var(--text-mute); opacity: 0.6; }
.footer-sub { font-size: 12.5px; color: var(--text-mute); }
.footer-address { font-size: 10.5px; color: var(--text-mute); opacity: 0.85; margin-top: -8px; }
.footer-logo {
  height: 90px;
  width: auto;
  margin-top: 4px;
  margin-bottom: -16px;
  filter: invert(1) brightness(1.1);
  opacity: 0.65;
}

/* ---------- rating ---------- */
.rating-trigger {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.rating-wrap {
  position: relative;
  display: inline-block;
}
.rating-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: #dbeafe;
  color: #1e293b;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  padding: 14px 14px 12px;
  width: 720px;
  max-width: calc(100vw - 32px);
  font-size: 12px;
  border: 0;
}
.rating-popup[hidden] { display: none; }
.rating-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #dbeafe;
}
.rating-body {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.rating-table {
  flex: 1;
  border-collapse: collapse;
  font-size: 11.5px;
  line-height: 1.4;
}
.rating-table th,
.rating-table td {
  padding: 5px 10px;
  border: 1px solid #ffffff;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.rating-table th {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  width: 1%;
  letter-spacing: -0.01em;
}
.rating-table td {
  background: rgba(255, 255, 255, 0.55);
  color: #0f172a;
}
.rating-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: stretch;
}
.rating-badge-img {
  height: auto;
  width: 68px;
  display: block;
  flex-shrink: 0;
  align-self: stretch;
  object-fit: contain;
}
.rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
}
.rating-badge-num {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3b5bdb, #1e40af);
  color: #ffffff;
  font-weight: 900;
  font-size: 30px;
  font-family: 'Pretendard', system-ui, sans-serif;
  letter-spacing: -0.02em;
  box-shadow: 0 3px 8px rgba(30, 64, 175, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
  border: 2px solid #1e3a8a;
}
.rating-badge-icon {
  font-size: 30px;
  line-height: 1;
}
.rating-badge-icon i { display: block; line-height: 1; }
.rating-badge-text {
  font-size: 11px;
  font-weight: 700;
  color: #1e3a8a;
  text-align: center;
}
@media (max-width: 760px) {
  .rating-popup {
    width: calc(100vw - 32px);
  }
  .rating-body { flex-direction: column; }
  .rating-table th, .rating-table td { white-space: normal; }
  .rating-badges { justify-content: center; }
  .rating-badge-img { width: 76px; align-self: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 50px 0 60px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; font-size: 13px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .btn-primary, .btn-secondary { width: 100%; }
  .hero-cta { flex-direction: column; }
}
@media (max-height: 760px), (max-width: 720px) {
  .section { padding: 70px 0; }
}
