:root {
  --bg: #07080c;
  --bg-2: #0e1018;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --panel-dark: rgba(9, 11, 18, 0.72);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --muted: #b7bccb;
  --muted-strong: #dbe0ec;
  --accent: #c7ff6b;
  --accent-2: #7be8ff;
  --accent-3: #ffcf72;
  --shadow: 0 28px 84px rgba(0, 0, 0, 0.4);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 232, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(199, 255, 107, 0.14), transparent 30%),
    linear-gradient(180deg, #0b0d12 0%, #07080c 100%);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

body::after {
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 40%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 55% 80%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
  background-size: 280px 280px, 340px 340px, 420px 420px;
  opacity: 0.3;
}

img {
  max-width: 100%;
  display: block;
}

button,
a,
input {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
.metric-card strong,
.meta-box strong,
.section-summary,
.archive-title,
.weekly-title,
.log-title {
  font-family: 'Syne', 'Noto Sans KR', sans-serif;
}

.page-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.panel,
.product-card,
.footer,
.trend-card,
.weekly-card,
.log-card,
.archive-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(310px, 0.9fr);
  gap: 24px;
  margin-bottom: 20px;
}

.hero-copy,
.hero-panel,
.info-strip,
.command-panel,
.footer {
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 34px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-copy-top {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-2);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  color: var(--muted-strong);
}

.hero-actions,
.link-row,
.command-panel-controls,
.archive-links,
.info-stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #eaffba);
  color: #101311;
  border-color: transparent;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.metric-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-label,
.meta-box span,
.reaction-label,
.log-date,
.weekly-date,
.weekly-product {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.4;
}

.info-strip,
.command-panel {
  padding: 22px 24px;
  margin-bottom: 28px;
}

.info-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 22px;
}

.info-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-label.subtle {
  color: var(--accent-2);
}

.info-strip p,
.command-panel p,
.product-summary,
.reaction-box p,
.weekly-card p,
.trend-card p,
.log-card p,
.archive-card p,
.bullet-list li,
.source-list a,
.empty-state,
.footer p {
  line-height: 1.78;
}

.info-stat-grid {
  align-content: start;
}

.info-stat-grid > div {
  min-width: 140px;
  flex: 1;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-stat-grid strong {
  font-size: 22px;
  font-weight: 800;
}

.command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: center;
}

.command-panel h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.command-panel p {
  margin: 12px 0 0;
  color: var(--muted-strong);
}

.command-panel-controls {
  justify-content: end;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--panel-dark);
}

.search-box:focus-within {
  border-color: rgba(123, 232, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(123, 232, 255, 0.08);
}

.search-icon {
  font-size: 18px;
  color: var(--accent-2);
}

.search-box input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: rgba(219, 224, 236, 0.52);
}

.section-block + .section-block {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head-with-meta {
  align-items: start;
}

.section-description {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted-strong);
}

.section-meta {
  display: flex;
  align-items: center;
}

.section-summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(199, 255, 107, 0.24), rgba(123, 232, 255, 0.16));
  border-color: rgba(199, 255, 107, 0.4);
  color: var(--text);
}

.weekly-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.weekly-card {
  border-radius: 24px;
  padding: 18px;
}

.weekly-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.weekly-date,
.weekly-product {
  margin: 0;
}

.weekly-product {
  color: var(--accent);
}

.weekly-title {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.product-grid {
  display: grid;
  gap: 20px;
}

.product-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.product-visual-wrap {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.product-visual {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.product-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 18, 0.58);
  backdrop-filter: blur(12px);
}

.badge.status {
  color: #121212;
  background: var(--accent);
  border-color: transparent;
}

.archive-status {
  color: #101010;
  background: linear-gradient(135deg, rgba(123, 232, 255, 0.92), rgba(199, 255, 107, 0.9));
  border-color: transparent;
}

.product-body {
  padding: 24px;
}

.product-topline {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
}

.product-topline h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.product-note {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.launch-window {
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
}

.product-summary {
  margin: 14px 0 18px;
  color: var(--muted-strong);
  font-size: 16px;
}

.bullet-list,
.source-list {
  margin: 0;
  padding-left: 18px;
}

.why-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.meta-grid,
.reaction-grid,
.trend-grid,
.changelog-grid,
.archive-grid {
  display: grid;
  gap: 14px;
}

.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.meta-box,
.reaction-box,
.trend-card,
.log-card {
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-box strong {
  font-size: 24px;
}

.reaction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.reaction-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.reaction-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.source-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.source-list a,
.text-link {
  color: var(--accent-2);
  text-decoration: none;
}

.source-list a:hover,
.text-link:hover {
  text-decoration: underline;
}

.archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.archive-card {
  border-radius: 22px;
  padding: 18px;
  min-height: 100%;
}

.archive-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.archive-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.archive-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.archive-date {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.archive-summary {
  margin: 0;
  color: var(--muted-strong);
}

.archive-note {
  margin: 14px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.archive-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.archive-links {
  margin-top: 16px;
}

.trend-grid,
.changelog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trend-card h3,
.log-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.log-date {
  margin-bottom: 6px;
  color: var(--accent-2);
}

.insights-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.empty-state {
  border-radius: 20px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.footer {
  margin-top: 40px;
  padding: 22px 24px;
  color: var(--muted);
}

.error-card {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 120, 120, 0.28);
  background: rgba(120, 16, 16, 0.18);
}

@media (max-width: 1240px) {
  .weekly-grid,
  .archive-grid,
  .trend-grid,
  .changelog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero,
  .command-panel,
  .info-strip,
  .product-card,
  .reaction-grid,
  .weekly-grid,
  .archive-grid,
  .trend-grid,
  .changelog-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    aspect-ratio: 16 / 10;
  }

  .command-panel-controls {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1360px);
    padding-top: 12px;
    padding-bottom: 48px;
  }

  .hero {
    gap: 14px;
    margin-bottom: 14px;
  }

  .hero-copy,
  .hero-panel,
  .info-strip,
  .command-panel,
  .product-body,
  .footer,
  .archive-card,
  .weekly-card,
  .trend-card,
  .log-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy,
  .hero-panel,
  .info-strip,
  .command-panel,
  .product-card,
  .footer,
  .archive-card,
  .weekly-card,
  .trend-card,
  .log-card {
    border-radius: 20px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 0.98;
  }

  .hero-copy {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 18px;
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-copy-top {
    max-width: none;
  }

  .hero-subtitle {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 0;
    gap: 8px;
  }

  .hero-actions .button {
    flex: 1 1 calc(50% - 8px);
    min-height: 40px;
    padding: 0 14px;
  }

  .hero-actions .button.primary {
    flex-basis: 100%;
  }

  .hero-panel {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }

  .metric-card {
    padding: 14px;
    border-radius: 18px;
  }

  .metric-card strong {
    font-size: 21px;
  }

  .info-strip,
  .command-panel {
    padding-top: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .info-strip p,
  .command-panel p,
  .section-description,
  .product-summary,
  .archive-summary,
  .weekly-card p,
  .trend-card p,
  .log-card p,
  .footer p {
    line-height: 1.62;
  }

  .section-block + .section-block {
    margin-top: 28px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2,
  .command-panel h2 {
    font-size: 28px;
  }

  .section-description {
    margin-top: 10px;
  }

  .weekly-grid,
  .product-grid,
  .archive-grid,
  .trend-grid,
  .changelog-grid {
    gap: 12px;
  }

  .product-body {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .archive-card-top,
  .product-topline,
  .weekly-topline {
    flex-direction: column;
    align-items: start;
  }

  .section-summary,
  .archive-date {
    white-space: normal;
  }

  .search-box {
    min-width: 100%;
    min-height: 50px;
  }
}
