:root {
  --bg: #071426;
  --bg-soft: #0a1b30;
  --panel: rgba(11, 29, 50, 0.86);
  --panel-strong: #0c213a;
  --line: rgba(126, 169, 219, 0.17);
  --line-strong: rgba(61, 165, 255, 0.36);
  --text: #f6f9ff;
  --muted: #9caec3;
  --blue: #1d6cff;
  --cyan: #35d5ff;
  --amber: #ffbd4a;
  --green: #37dda0;
  --red: #ff6e7f;
  --shadow: 0 26px 80px rgba(0, 6, 18, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% -20%, rgba(29, 108, 255, 0.2), transparent 35%),
    linear-gradient(180deg, #071426 0%, #06111f 55%, #050e1a 100%);
  color: var(--text);
  font-family:
    "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar,
main,
footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand b {
  font-size: 17px;
  letter-spacing: -0.04em;
}

.brand small {
  color: #7890aa;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(29, 108, 255, 0.18), rgba(53, 213, 255, 0.04));
}

.brand-mark span {
  position: absolute;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.brand-mark span:nth-child(1) {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border: 0;
}

.brand-mark span:nth-child(2) {
  width: 18px;
  height: 18px;
}

.brand-mark span:nth-child(3) {
  width: 29px;
  height: 29px;
  opacity: 0.5;
}

.unofficial {
  color: var(--amber);
  border: 1px solid rgba(255, 189, 74, 0.28);
  background: rgba(255, 189, 74, 0.07);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 76px;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  z-index: -1;
}

.hero-glow-one {
  width: 440px;
  height: 440px;
  right: -80px;
  top: 70px;
  background: radial-gradient(circle, rgba(29, 108, 255, 0.18), transparent 68%);
}

.hero-glow-two {
  width: 280px;
  height: 280px;
  left: 20%;
  bottom: -180px;
  background: radial-gradient(circle, rgba(53, 213, 255, 0.1), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b8c9dc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 189, 74, 0.1), 0 0 18px var(--amber);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 8px rgba(255, 189, 74, 0.04), 0 0 8px var(--amber);
  }
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 24px;
  font-size: clamp(43px, 5.1vw, 68px);
  line-height: 1.09;
  letter-spacing: -0.065em;
}

h1 span {
  color: transparent;
  background: linear-gradient(100deg, #45b6ff 0%, #2477ff 55%, #7ee7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 540px;
  margin-top: 26px;
  color: #afc0d3;
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -0.02em;
}

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

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.notice-box a:focus-visible,
.copy-button:focus-visible {
  outline: 3px solid rgba(53, 213, 255, 0.45);
  outline-offset: 3px;
}

.button-primary {
  color: white;
  background: linear-gradient(110deg, #1760ed, #238eff);
  box-shadow: 0 15px 35px rgba(29, 108, 255, 0.28);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(13, 34, 58, 0.6);
  color: #dbe8f8;
}

.paper-plane {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: white;
  font-size: 15px;
}

.cta-note {
  margin-top: 13px;
  color: #768ca4;
  font-size: 12px;
}

.notification-proof {
  margin-top: 14px;
  width: fit-content;
  min-height: 34px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(55, 221, 160, 0.18);
  border-radius: 999px;
  background: rgba(55, 221, 160, 0.055);
  color: #8ba3b9;
  font-size: 11px;
}

.notification-proof strong {
  color: #d7fff0;
  font-size: 12px;
}

.notification-proof-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(55, 221, 160, 0.65);
}

.radar-card {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(17, 47, 80, 0.78), rgba(7, 22, 39, 0.93)),
    var(--panel);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.radar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 30%);
  pointer-events: none;
}

.radar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 2px 16px;
  color: #b8c9db;
  font-size: 13px;
  font-weight: 700;
}

.status-chip {
  padding: 6px 9px;
  color: var(--cyan);
  background: rgba(53, 213, 255, 0.08);
  border: 1px solid rgba(53, 213, 255, 0.2);
  border-radius: 999px;
  font-size: 11px;
}

.status-chip.is-paused {
  color: var(--amber);
  background: rgba(255, 189, 74, 0.08);
  border-color: rgba(255, 189, 74, 0.2);
}

.status-chip.is-ended {
  color: var(--muted);
  background: rgba(156, 174, 195, 0.08);
  border-color: var(--line);
}

.radar-screen {
  height: 285px;
  border: 1px solid rgba(67, 159, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(rgba(23, 85, 142, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 85, 142, 0.06) 1px, transparent 1px),
    radial-gradient(circle at center, #0a2c4b, #061728 72%);
  background-size: 28px 28px, 28px 28px, auto;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.radar-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.radar-rings i {
  position: absolute;
  border: 1px solid rgba(53, 213, 255, 0.17);
  border-radius: 50%;
}

.radar-rings i:nth-child(1) {
  width: 90px;
  height: 90px;
}

.radar-rings i:nth-child(2) {
  width: 170px;
  height: 170px;
}

.radar-rings i:nth-child(3) {
  width: 255px;
  height: 255px;
}

.radar-rings b {
  position: absolute;
  width: 128px;
  height: 128px;
  top: 14px;
  left: 50%;
  transform-origin: 0 100%;
  background: linear-gradient(135deg, rgba(53, 213, 255, 0.22), transparent 62%);
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.radar-message {
  width: 78%;
  min-height: 116px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  border: 1px solid rgba(53, 213, 255, 0.31);
  border-radius: 18px;
  background: rgba(7, 25, 43, 0.88);
  box-shadow: 0 0 50px rgba(29, 108, 255, 0.22);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.radar-icon {
  grid-row: 1 / 3;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(53, 213, 255, 0.22), rgba(29, 108, 255, 0.25));
  color: var(--cyan);
  font-size: 27px;
}

.radar-message strong {
  align-self: end;
  font-size: 15px;
}

.radar-message small {
  color: #88a1b9;
  line-height: 1.45;
  align-self: start;
}

.monitor-metrics {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.monitor-metrics div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 17, 31, 0.46);
}

.monitor-metrics dt {
  color: #71879f;
  font-size: 10px;
}

.monitor-metrics dd {
  margin: 5px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 800;
}

.quick-guide {
  min-height: 108px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 30px;
}

.guide-item + .guide-item {
  border-left: 1px solid var(--line);
}

.guide-item > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.guide-item div {
  display: grid;
  gap: 5px;
}

.guide-item b {
  font-size: 14px;
}

.guide-item small {
  color: #7e93a9;
  font-size: 11px;
}

.section {
  padding: 94px 0 0;
}

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

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.055em;
}

.updated-label,
.text-link {
  color: #7f95ac;
  font-size: 12px;
}

.text-link {
  transition: color 150ms ease;
}

.text-link:hover {
  color: var(--cyan);
}

.today-code-card {
  min-height: 152px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  gap: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(14, 37, 63, 0.9), rgba(8, 24, 42, 0.84));
}

.today-code-card.has-code {
  border-color: rgba(53, 213, 255, 0.38);
  box-shadow: inset 4px 0 0 var(--cyan), 0 20px 60px rgba(14, 107, 185, 0.11);
}

.code-empty-icon {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #7d93aa;
  background: rgba(119, 151, 186, 0.08);
  border: 1px solid var(--line);
  font-size: 22px;
  letter-spacing: 0.1em;
}

.today-code-card b {
  display: block;
  font-size: 18px;
}

.today-code-card p {
  margin-top: 7px;
  color: #8298ae;
  font-size: 13px;
  line-height: 1.6;
}

.code-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.code-result-main {
  min-width: 0;
}

.code-result-main small {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
}

.code-value {
  display: block;
  margin-top: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.copy-button {
  flex: 0 0 auto;
  border: 1px solid rgba(53, 213, 255, 0.28);
  border-radius: 12px;
  background: rgba(53, 213, 255, 0.09);
  color: #d8f8ff;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.warning-line {
  margin-top: 13px;
  color: #70879e;
  font-size: 11px;
}

.video-list {
  display: grid;
  gap: 12px;
}

.video-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 27, 47, 0.72);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(12, 34, 59, 0.86);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #06101c;
  position: relative;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 16px;
  text-shadow: 0 2px 12px #000;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.18));
}

.video-copy {
  min-width: 0;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.video-time {
  color: #7189a1;
  font-size: 11px;
}

.analysis-badge {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(156, 174, 195, 0.08);
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
}

.analysis-badge.is-checking {
  color: var(--amber);
  border-color: rgba(255, 189, 74, 0.22);
  background: rgba(255, 189, 74, 0.07);
}

.analysis-badge.is-found {
  color: var(--cyan);
  border-color: rgba(53, 213, 255, 0.24);
  background: rgba(53, 213, 255, 0.07);
}

.video-copy h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.video-copy p {
  margin-top: 8px;
  color: #7d93a9;
  font-size: 11px;
}

.video-code {
  min-width: 115px;
  text-align: right;
}

.video-code small {
  display: block;
  margin-bottom: 6px;
  color: #6f879e;
  font-size: 9px;
}

.video-code code {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: #8198af;
}

.empty-state b {
  margin-top: 18px;
  color: #c7d5e4;
  font-size: 15px;
}

.empty-state p {
  margin-top: 7px;
  font-size: 12px;
}

.loading-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 24px;
}

.loading-bars i {
  width: 4px;
  height: 9px;
  border-radius: 3px;
  background: var(--blue);
  animation: bars 1s infinite ease-in-out;
}

.loading-bars i:nth-child(2) {
  height: 19px;
  animation-delay: 130ms;
}

.loading-bars i:nth-child(3) {
  height: 13px;
  animation-delay: 260ms;
}

@keyframes bars {
  50% {
    transform: scaleY(0.45);
    opacity: 0.45;
  }
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.process-grid li {
  min-height: 235px;
  padding: 27px 25px;
  position: relative;
  background: rgba(10, 27, 47, 0.62);
}

.process-grid li + li {
  border-left: 1px solid var(--line);
}

.step-number {
  color: #4e6780;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 30px 0 17px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(29, 108, 255, 0.1);
  border: 1px solid rgba(53, 213, 255, 0.15);
  font-size: 18px;
}

.process-grid b {
  font-size: 14px;
}

.process-grid p {
  margin-top: 8px;
  color: #7189a0;
  font-size: 11px;
  line-height: 1.6;
}

.notice-box {
  margin-top: 94px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid rgba(255, 189, 74, 0.17);
  border-radius: 18px;
  background: rgba(255, 189, 74, 0.045);
}

.notice-box b {
  display: block;
  margin-bottom: 7px;
  color: #e9c983;
  font-size: 13px;
}

.notice-box p {
  max-width: 850px;
  color: #8396aa;
  font-size: 11px;
  line-height: 1.7;
}

.notice-box a {
  flex: 0 0 auto;
  color: #d6ba7c;
  font-size: 12px;
  font-weight: 800;
}

footer {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #587088;
  font-size: 11px;
}

footer a:hover {
  color: var(--cyan);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  transform: translate(-50%, 18px);
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #102942;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 80px 0;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .notification-proof {
    margin-inline: auto;
  }

  .quick-guide {
    grid-template-columns: 1fr;
    padding: 13px 0;
  }

  .guide-item {
    padding: 18px 24px;
  }

  .guide-item + .guide-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-grid li:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .topbar,
  main,
  footer {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    height: 68px;
  }

  .unofficial {
    padding: 6px 8px;
    font-size: 9px;
  }

  .hero {
    min-height: auto;
    padding: 64px 0;
  }

  h1 {
    margin-top: 20px;
    font-size: clamp(37px, 11vw, 54px);
  }

  .hero-description {
    font-size: 15px;
  }

  .button {
    width: 100%;
  }

  .radar-card {
    padding: 14px;
    border-radius: 20px;
  }

  .radar-screen {
    height: 240px;
  }

  .radar-message {
    width: 90%;
    padding: 15px;
  }

  .monitor-metrics {
    gap: 5px;
  }

  .monitor-metrics div {
    padding: 9px 7px;
  }

  .monitor-metrics dd {
    font-size: 10px;
  }

  .section {
    padding-top: 70px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .today-code-card {
    padding: 22px 20px;
  }

  .code-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .video-card {
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
  }

  .video-card .video-code {
    grid-column: 1 / 3;
    text-align: left;
    padding: 0 5px 5px;
  }

  .video-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }

  .video-copy p {
    display: none;
  }

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

  .process-grid li {
    min-height: auto;
    padding: 22px;
  }

  .process-grid li + li,
  .process-grid li:nth-child(3),
  .process-grid li:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .step-icon {
    margin: 18px 0 13px;
  }

  .notice-box {
    margin-top: 70px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  footer {
    height: 110px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
}

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