:root {
  --bg: #0f1419;
  --surface: #1a222c;
  --surface-2: #232d3a;
  --text: #e8edf4;
  --muted: #9aa8b8;
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max: 920px;
  --max-wide: 1720px;
  --max-board: min(1960px, 98vw);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #134e4a 0%, transparent 55%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header--wide {
  max-width: var(--max-wide);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.92rem;
}

.header-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.login-actions,
.user-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.login-actions--panel {
  margin: 0 0 1rem;
}

.user-actions__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.btn-auth {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-auth:hover,
.btn-auth:focus-visible {
  border-color: var(--accent);
}

.btn-auth--ghost {
  background: transparent;
  font-weight: 500;
  color: var(--muted);
}

/* —— Gateway (/) —— */
.gateway-main {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 24px 20px 48px;
}

.gateway-card {
  width: min(720px, 100%);
  text-align: center;
}

.gateway-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
}

.gateway-card p {
  margin: 0 0 32px;
  color: var(--muted);
}

.gateway-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .gateway-actions {
    grid-template-columns: 1fr;
  }
}

.gateway-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 168px;
  padding: 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gateway-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.45);
  background: var(--surface-2);
  text-decoration: none;
}

.gateway-btn strong {
  font-size: 1.15rem;
}

.gateway-btn span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.gateway-btn--primary {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.08));
  border-color: rgba(16, 185, 129, 0.35);
}

/* —— Intro (/intro) —— */
.page-intro {
  overflow-x: auto;
}

.intro-hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 12px 20px 28px;
  text-align: center;
}

.intro-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.intro-hero .lead {
  margin: 0 auto 20px;
  max-width: 36em;
  color: var(--muted);
  word-break: keep-all;
}

.hero-highlights {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 28em;
  display: grid;
  gap: 10px;
  text-align: left;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.hero-highlights li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* —— Feature board —— */
.features-board {
  margin: 0 auto;
  padding: 0 20px 48px;
  max-width: var(--max-board);
}

.board-label {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.features-row {
  display: grid;
  gap: 28px;
}

.feature-pair {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px 24px;
  min-width: 0;
}

.feature-tab-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #6ee7b7;
}

.feature-pair-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.shot {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.shot--desktop {
  flex: 0 0 auto;
  width: auto;
  max-width: 54%;
  height: auto;
  max-height: min(560px, 68vh);
  object-fit: contain;
}

.feature-notes {
  flex: 1 1 0;
  min-width: 0;
}

.feature-tab-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-notes .note {
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.feature-notes .note strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}

.feature-notes .note span {
  display: block;
}

.feature-notes a,
.steps a {
  color: #7dd3fc;
}

.note-group-label {
  margin: 22px 0 12px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #facc15;
}

.workflow-step {
  margin: 0 0 14px;
}

.workflow-step > strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.workflow-step p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.workflow-step p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .feature-pair-inner {
    flex-direction: column;
  }

  .shot--desktop {
    flex: none;
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    align-self: center;
  }
}

/* —— Download page —— */
.page-download {
  padding-bottom: 48px;
}

.download-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px 0;
}

.download-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.download-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.download-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.download-hero__lead {
  margin: 0.75rem auto 0;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  word-break: keep-all;
}

.download-hero__keep {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .download-hero__keep {
    white-space: normal;
  }
}

.panel {
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.panel + .panel {
  margin-top: 1rem;
}

.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.meta {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.meta strong {
  color: var(--text);
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.download-button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.download-button.is-disabled {
  background: #475569;
  pointer-events: none;
  cursor: not-allowed;
}

.steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.steps li + li {
  margin-top: 0.35rem;
}

.shot--hint {
  display: block;
  width: min(100%, 360px);
  margin: 0.75rem 0 0.25rem;
  max-height: none;
}

.steps code {
  font-size: 0.88em;
  color: #6ee7b7;
}

.panel .release-note {
  margin: 1rem 0 0;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer {
  max-width: var(--max-wide);
  margin: 32px auto 0;
  padding: 0 20px 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
}
