:root {
  --bg-0: #0c111a;
  --bg-1: #101826;
  --bg-2: #162236;
  --text: #ebf1ff;
  --muted: #9fb0ca;
  --panel: rgba(18, 29, 44, 0.78);
  --panel-soft: rgba(23, 37, 58, 0.56);
  --line: rgba(131, 156, 196, 0.28);
  --line-strong: rgba(171, 198, 239, 0.42);
  --accent: #30c9b1;
  --accent-2: #2a8dff;
  --accent-hot: #f5cb7d;
  --danger: #d65d75;
  --shadow: 0 24px 60px rgba(3, 7, 14, 0.55);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Pretendard", "Sora", "Noto Sans KR", sans-serif;
  background: radial-gradient(circle at 22% 8%, #1b2a42 0%, #101826 48%, #0b1018 100%);
}

a,
button,
input,
select,
textarea {
  font-family: inherit;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(149, 175, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 175, 214, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 20%, black 28%, transparent 78%);
}

.bg-glow {
  position: fixed;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(56px);
  z-index: -3;
  pointer-events: none;
}

.glow-left {
  top: -14vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(42, 141, 255, 0.33), rgba(42, 141, 255, 0));
}

.glow-right {
  bottom: -18vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(48, 201, 177, 0.28), rgba(48, 201, 177, 0));
}

.wrap {
  width: min(1320px, 96vw);
  margin: 0 auto;
}

.hero-nav {
  margin-top: 14px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 20, 31, 0.72);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 10px;
  z-index: 50;
  box-shadow: var(--shadow);
}

.brand-wordmark {
  color: #f5f9ff;
  text-decoration: none;
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(45, 63, 90, 0.52);
  padding: 9px 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 3px;
  background: #f3f7ff;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.menu-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.left-nav,
.right-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.right-nav {
  margin-left: auto;
  justify-content: flex-end;
}

.lang-switch {
  height: 40px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(34, 49, 73, 0.56);
  display: inline-flex;
  gap: 4px;
}

.lang-btn {
  min-width: 48px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #c9d6eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: linear-gradient(120deg, rgba(42, 141, 255, 0.45), rgba(48, 201, 177, 0.45));
  color: #ffffff;
}

.nav-pill {
  min-width: 106px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(150, 175, 214, 0.3);
  background: rgba(42, 58, 83, 0.56);
  color: #eff5ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  cursor: pointer;
  transition: 170ms ease;
}

.nav-pill:hover {
  transform: translateY(-1px);
  background: rgba(63, 84, 117, 0.62);
}

.nav-pill.active {
  border-color: rgba(153, 220, 255, 0.56);
  background: linear-gradient(128deg, rgba(42, 141, 255, 0.36), rgba(48, 201, 177, 0.34));
}

.nav-pill.nav-home {
  min-width: 40px;
  width: 40px;
  padding: 0;
}

.home-icon {
  font-size: 18px;
  line-height: 1;
}

.nav-pill.link {
  min-width: 90px;
}

.nav-pill.nav-logout {
  border-color: rgba(237, 146, 167, 0.46);
  background: rgba(148, 60, 83, 0.45);
}

.auth-user-chip {
  max-width: 220px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(161, 186, 226, 0.3);
  background: rgba(35, 49, 71, 0.65);
  color: #dbe6fb;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-main {
  padding-top: 18px;
  padding-bottom: 40px;
}

.tab-panel {
  display: none;
  margin-top: 12px;
}

.tab-panel.active {
  display: block;
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(33, 50, 75, 0.54), rgba(17, 27, 42, 0.72)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.glass-panel h2 {
  margin: 0;
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: clamp(20px, 1.5vw, 28px);
  letter-spacing: -0.01em;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.66;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 14px;
}

.hero-copy {
  padding: 8px 4px 2px;
}

.hero-mini {
  margin: 0;
  color: #9ad7ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: 10px 0 0;
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: clamp(34px, 5.1vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.highlight-1 {
  color: #f1f6ff;
}

.highlight-2 {
  color: var(--accent-hot);
  text-shadow: 0 0 26px rgba(245, 203, 125, 0.24);
}

.hero-sub {
  margin: 14px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.74;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-main {
  min-width: 220px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(130, 223, 236, 0.46);
  background: linear-gradient(125deg, rgba(42, 141, 255, 0.9), rgba(48, 201, 177, 0.88));
  color: #f9fdff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(27, 93, 158, 0.44);
}

.hero-points {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(141, 170, 214, 0.3);
  background: rgba(28, 42, 64, 0.64);
  color: #cfddf3;
  font-size: 13px;
}

.hero-visual {
  display: grid;
  gap: 10px;
}

.pulse-card {
  border: 1px solid rgba(140, 165, 205, 0.28);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(29, 45, 67, 0.8), rgba(19, 31, 48, 0.78));
  padding: 14px;
}

.pulse-card p {
  margin: 0;
  color: #b2c2dc;
  font-size: 13px;
}

.pulse-card strong {
  margin-top: 6px;
  display: block;
  font-size: 17px;
  line-height: 1.36;
}

.status-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.status-card span {
  font-size: 12px;
  color: var(--muted);
}

.status-card strong {
  font-size: clamp(14px, 1.2vw, 17px);
  letter-spacing: -0.01em;
}

.home-shortcuts {
  margin-top: 12px;
}

.shortcut-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.howto-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d9e5fb;
  font-size: 14px;
  line-height: 1.58;
}

.intro-grid,
.setup-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}

.flow-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.flow-list li {
  border: 1px solid rgba(134, 160, 198, 0.24);
  border-radius: var(--radius-md);
  background: rgba(28, 42, 64, 0.58);
  padding: 12px;
}

.flow-list h3 {
  margin: 0;
  font-size: 16px;
}

.flow-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.56;
}

.feedback-steps {
  margin: 12px 0 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feedback-steps li {
  border: 1px solid rgba(134, 160, 198, 0.24);
  border-radius: var(--radius-md);
  background: rgba(28, 42, 64, 0.58);
  padding: 12px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
}

.feedback-steps span {
  border-radius: 10px;
  background: rgba(59, 95, 137, 0.6);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.feedback-steps h3 {
  margin: 0;
  font-size: 15px;
}

.feedback-steps p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.52;
}

.intro-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 214px 1fr;
  gap: 8px 12px;
  align-items: center;
}

label {
  color: var(--muted);
  font-size: 14px;
}

.label-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-tip {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(167, 199, 245, 0.48);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #f5fbff;
  background: rgba(42, 141, 255, 0.56);
  cursor: help;
  user-select: none;
}

.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) scale(0.96);
  width: min(340px, 80vw);
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 16, 26, 0.98);
  color: #dbe8ff;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: 120ms ease;
}

.info-tip:hover::after,
.info-tip:focus::after,
.info-tip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

input,
select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(134, 161, 200, 0.32);
  background: rgba(12, 19, 30, 0.8);
  color: #f2f7ff;
  padding: 0 12px;
  font-size: 15px;
}

input::placeholder {
  color: #8ea2c6;
}

.form-actions {
  grid-column: 1 / 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.help-inline {
  margin: 0;
  color: #c5d3ea;
  font-size: 13px;
  line-height: 1.5;
}

.help-inline.full {
  grid-column: 1 / 3;
}

.soft-btn {
  border: 1px solid rgba(149, 175, 214, 0.34);
  height: 44px;
  border-radius: 999px;
  background: rgba(39, 55, 79, 0.62);
  color: #eff5ff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  transition: 160ms ease;
}

.soft-btn:hover {
  transform: translateY(-1px);
  background: rgba(58, 80, 111, 0.66);
}

.soft-btn.primary {
  background: rgba(52, 75, 106, 0.72);
}

.soft-btn.accent {
  border-color: rgba(138, 225, 230, 0.52);
  background: linear-gradient(125deg, rgba(42, 141, 255, 0.82), rgba(48, 201, 177, 0.78));
}

.soft-btn.danger {
  border-color: rgba(241, 162, 181, 0.44);
  background: rgba(149, 64, 85, 0.62);
}

.soft-btn:focus-visible,
.cta-main:focus-visible,
.nav-pill:focus-visible,
.lang-btn:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid rgba(245, 203, 125, 0.92);
  outline-offset: 2px;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.side-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.action-stack {
  display: grid;
  gap: 8px;
}

.top-gap {
  margin-top: 6px;
}

.verify-form {
  display: grid;
  gap: 8px;
}

.billing-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.billing-item {
  border: 1px solid rgba(138, 165, 204, 0.25);
  border-radius: 12px;
  background: rgba(27, 41, 62, 0.58);
  padding: 11px;
  display: grid;
  gap: 5px;
}

.billing-item span {
  color: var(--muted);
  font-size: 13px;
}

.billing-item strong {
  font-size: 15px;
}

.guide-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #cfddf5;
  font-size: 14px;
  line-height: 1.54;
}

.compact-pre {
  min-height: 160px;
  max-height: 300px;
}

.result-area {
  margin-top: 14px;
  display: none;
}

.result-area h2 {
  margin: 0 0 10px;
}

pre {
  margin: 0;
  min-height: 220px;
  max-height: 460px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(131, 156, 196, 0.28);
  background: rgba(8, 13, 22, 0.92);
  color: #d2def4;
  padding: 14px;
  font-size: 13px;
  line-height: 1.54;
}

.theme-auth .bg-grid,
.theme-auth .bg-glow {
  opacity: 0.65;
}

.auth-wrap {
  width: min(560px, 92vw);
  margin: 0 auto;
  padding: 38px 0;
}

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

.auth-topbar .lang-switch {
  flex-shrink: 0;
}

.brand-link {
  color: #f4f8ff;
  text-decoration: none;
  font-family: "Sora", "Pretendard", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.auth-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(33, 50, 75, 0.54), rgba(17, 27, 42, 0.72)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}

.auth-card h1 {
  margin: 0;
  font-size: 34px;
}

.auth-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.auth-form {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.auth-foot {
  margin-top: 12px;
}

.auth-foot a {
  color: #d5e4ff;
  font-weight: 700;
}

.auth-result {
  margin-top: 12px;
  min-height: 120px;
}

@media (max-width: 1180px) {
  .hero-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-panel {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .left-nav,
  .right-nav {
    justify-content: center;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

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

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .guide-grid,
  .intro-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .hero-nav {
    position: relative;
    top: 0;
  }

  .brand-wordmark {
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 14px;
    top: 12px;
  }

  .menu-panel {
    margin-top: 46px;
    display: none;
    padding-top: 8px;
    border-top: 1px solid rgba(131, 156, 196, 0.2);
  }

  .hero-nav.menu-open .menu-panel {
    display: grid;
    gap: 10px;
  }

  .left-nav,
  .right-nav {
    display: grid;
    gap: 8px;
  }

  .nav-pill,
  .nav-pill.link {
    width: 100%;
    min-width: 100%;
  }

  .nav-pill.nav-home {
    width: 100%;
  }

  .hero-nav .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .auth-user-chip {
    max-width: 100%;
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 10vw, 50px);
  }

  .status-row {
    grid-template-columns: 1fr 1fr;
  }

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

  .form-actions,
  .help-inline.full {
    grid-column: 1;
  }

  .soft-btn,
  .cta-main {
    width: 100%;
  }

  .feedback-steps li {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .status-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 2px;
  }

  .hero-mini {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.62;
  }

  .glass-panel {
    padding: 14px;
  }

  .label-with-tip {
    justify-content: space-between;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .auth-wrap {
    padding: 24px 0;
  }

  .auth-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
