/* ── Variables ── */
:root {
  --bg-dark: #17171c;
  --bg-feed: #17171c;
  --bg-card: #25252d;
  --bg-hover: #2e2e38;
  --primary: #4593fc;
  --primary-dark: #3578d8;
  --status-orange: #ffb74d;
  --status-red: #ff6b6b;
  --text-primary: #ffffff;
  --text-secondary: #b4b4b4;
  --text-muted: #6b6b6b;
  --border: #2c2c36;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --font: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }

/* ── Header ── */
.header {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  text-align: center;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}
.logo-img {
  height: 36px;
  width: auto;
}
.header-title {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.header-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Tab Nav ── */
.tab-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.tab-nav-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--space-sm);
}
.tab-nav-inner::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Feed Layout ── */
.feed {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px var(--space-xl);
}

/* ── Section ── */
.menu-section {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 52px;
}
.menu-section:last-child { border-bottom: none; }

.section-eyebrow {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Block Label ── */
.block-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: var(--space-lg) 0 var(--space-sm);
}

/* ── Feature List (Block 2) ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.feature-item.has-badge {
  flex-direction: column;
  gap: 8px;
}
.feature-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(69, 147, 252, 0.12);
  border: 1px solid rgba(69, 147, 252, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}
.feature-bullets li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}
.feature-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}
.feature-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 6px rgba(69, 147, 252, 0.5);
}
.feature-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.feature-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Step Cards (Block 3) ── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
}
.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(69, 147, 252, 0.4);
  margin-top: 1px;
}
.step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.step-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.step-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Step Content ── */
.step-content {
  flex: 1;
  min-width: 0;
}

/* ── Step Image ── */
.step-img-wrap {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.step-img-wrap.placeholder {
  border: 1.5px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-img-wrap.placeholder::after {
  content: "이미지 추가 예정";
  color: var(--text-muted);
  font-size: 0.75rem;
}
.step-img-wrap.placeholder .step-img { display: none; }
.step-img {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
  border: 1px solid var(--border);
}

/* ── Login Card ── */
.login-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.login-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.875rem;
}
.login-label {
  color: var(--text-muted);
  font-weight: 600;
  min-width: 32px;
  font-size: 0.8125rem;
}
.login-value {
  color: var(--text-secondary);
}
.login-value a {
  color: var(--primary);
}
.login-value a:hover {
  text-decoration: underline;
}

/* ── Info Box ── */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.info-box.tip {
  background: rgba(69, 147, 252, 0.08);
  border-left: 3px solid var(--primary);
  color: var(--text-secondary);
}
.info-box.warn {
  background: rgba(255, 183, 77, 0.08);
  border-left: 3px solid var(--status-orange);
  color: var(--text-secondary);
}
.info-box.danger {
  background: rgba(255, 107, 107, 0.08);
  border-left: 3px solid var(--status-red);
  color: var(--text-secondary);
}
.info-box-icon { flex-shrink: 0; line-height: 1.55; }
.info-box strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Schedule View Grid ── */
.view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.view-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
}
.view-icon {
  font-size: 1.375rem;
  margin-bottom: 8px;
}
.view-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.view-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: var(--text-muted);
  font-size: 0.8125rem;
  border-top: 1px solid var(--border);
  margin-top: var(--space-md);
}

/* ── Fade In Up Animation ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Language Splash ── */
.lang-splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.35s ease;
}
.lang-splash.splash-out {
  opacity: 0;
  pointer-events: none;
}
.splash-logo {
  height: 44px;
  width: auto;
}
.splash-prompt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-align: center;
}
.lang-buttons {
  display: flex;
  gap: 12px;
}
.lang-btn {
  padding: 14px 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font);
}
.lang-btn:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

/* ── Language Toggle ── */
.lang-toggle {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 200;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font);
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  :root {
    --space-lg: 28px;
    --space-xl: 36px;
  }
  .section-title { font-size: 1.5rem; }
  .tab-btn { padding: 13px 12px; font-size: 0.8125rem; }
}
