:root {
  --bg: #191b1c;
  --bg-soft: #242728;
  --panel: rgba(35, 39, 40, 0.78);
  --panel-strong: rgba(25, 27, 28, 0.94);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-soft: rgba(255, 255, 255, 0.08);
  --text: #f7f1e8;
  --muted: #b5ada0;
  --amber: #ffac3f;
  --amber-soft: #ffd08a;
  --blue: #ffac3f;
  --blue-soft: rgba(255, 172, 63, 0.3);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.15);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --display: "Plus Jakarta Sans", sans-serif;
  --body: "Plus Jakarta Sans", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
}

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

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

code {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(255, 172, 63, 0.12);
  color: var(--amber-soft);
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── Topbar ───────────────────────────────────────────── */

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 1px solid var(--stroke-soft);
  border-radius: 999px;
  background: rgba(31, 34, 35, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: sticky;
  top: 16px;
  z-index: 100;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 164px;
  height: auto;
}

.topbar-meta {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.topbar-pill.is-live {
  color: #23180a;
  background: var(--amber-soft);
  border-color: rgba(255, 208, 138, 0.5);
}

/* ── Guide Layout ─────────────────────────────────────── */

.guide-layout {
  padding-top: 48px;
}

.guide-layout > section {
  margin-bottom: 56px;
}

/* ── Hero ─────────────────────────────────────────────── */

.guide-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.guide-hero .hero-copy {
  position: relative;
  z-index: 1;
}

.guide-hero .hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-hero .hero-art {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

.guide-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.guide-hero h1 span {
  display: block;
  margin-top: 18px;
  max-width: 28ch;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: rgba(247, 241, 232, 0.72);
}

.lead {
  max-width: 62ch;
  margin: 26px 0 0;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Section Headers ──────────────────────────────────── */

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--muted);
}

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

/* ── Context Banner ───────────────────────────────────── */

.context-banner {
  display: flex;
  gap: 20px;
  padding: 28px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 172, 63, 0.22);
  background: linear-gradient(135deg, rgba(255, 172, 63, 0.07) 0%, rgba(25, 27, 28, 0.94) 60%);
  box-shadow: var(--shadow);
}

.context-icon {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  color: var(--amber);
}

.context-icon svg {
  width: 28px;
  height: 28px;
}

.context-body h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--amber-soft);
}

.context-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.98rem;
}

.context-body p:last-child {
  margin-bottom: 0;
}

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

/* ── DNS Cards ────────────────────────────────────────── */

.dns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dns-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  transition: border-color 240ms ease, transform 240ms ease;
}

.dns-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.dns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--amber);
}

.dns-card h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.dns-addresses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dns-addr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-soft);
}

.dns-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dns-addr code {
  background: none;
  padding: 0;
  font-size: 1.05rem;
  color: var(--text);
}

/* ── Tabs ─────────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  flex: 1;
  min-width: max-content;
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.tab.is-active {
  color: #23180a;
  background: var(--amber-soft);
}

.tab-panel {
  display: none;
}

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

/* ── Steps ────────────────────────────────────────────── */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  border: 1px solid var(--stroke-soft);
  transition: border-color 200ms ease;
}

.step:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: #23180a;
  background: var(--amber-soft);
}

.step-body h4 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.step-tip {
  margin-top: 16px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: var(--green-soft);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.step-tip strong {
  color: var(--green);
}

/* ── App Card (Quick Solution) ────────────────────────── */

.app-card {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-card-inner {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.app-info {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.app-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f48120, #fbbd08);
  box-shadow: 0 8px 24px rgba(244, 129, 32, 0.3);
}

.app-icon-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.app-info h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.app-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 56ch;
}

.app-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button.is-primary {
  color: #23180a;
  background: var(--amber-soft);
  box-shadow:
    0 14px 28px rgba(255, 172, 63, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.button.is-outline {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--stroke);
}

.button.is-outline:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

/* ── FAQ ──────────────────────────────────────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border: 1px solid var(--stroke-soft);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item[open] {
  border-color: rgba(255, 172, 63, 0.25);
}

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  transition: color 200ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform 200ms ease, color 200ms ease, background 200ms ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: rgba(255, 172, 63, 0.15);
  color: var(--amber);
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.95rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ol {
  margin: 8px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.95rem;
}

.faq-answer li {
  margin-bottom: 4px;
}

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

/* ── Footer ───────────────────────────────────────────── */

.guide-footer {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--stroke-soft);
  text-align: center;
}

.footer-notice {
  padding: 22px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 172, 63, 0.2);
  background: rgba(255, 172, 63, 0.06);
  margin-bottom: 28px;
}

.footer-notice p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.footer-notice a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-hero .hero-visual {
    order: -1;
  }

  .guide-hero .hero-art {
    max-width: 280px;
  }

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

  .app-info {
    flex-direction: column;
  }
}

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

  .topbar {
    padding: 16px 18px;
    border-radius: 22px;
    position: static;
  }

  .brand img {
    width: 140px;
  }

  .guide-layout {
    padding-top: 32px;
  }

  .guide-layout > section {
    margin-bottom: 40px;
  }

  .guide-hero .hero-art {
    max-width: 200px;
  }

  .context-banner {
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
  }

  .tabs {
    gap: 4px;
    padding: 4px;
  }

  .tab {
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .step {
    padding: 18px;
    gap: 14px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
    border-radius: 10px;
  }

  .app-card-inner {
    padding: 22px;
  }

  .app-links {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .footer-notice {
    padding: 18px 20px;
  }
}
