:root {
  --bg: #06081d;
  --paper: rgba(10, 16, 45, 0.78);
  --paper-strong: rgba(16, 24, 60, 0.88);
  --text: #f4f7ff;
  --muted: #a9b6e4;
  --accent: #1fc8ff;
  --accent-2: #9c4dff;
  --accent-soft: rgba(31, 200, 255, 0.14);
  --line: rgba(118, 146, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 200, 255, 0.26), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(156, 77, 255, 0.24), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(31, 200, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #050715 0%, #0a0f2e 52%, #060818 100%);
}

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

img {
  max-width: 100%;
}

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

:focus-visible {
  outline: 3px solid rgba(31, 200, 255, 0.45);
  outline-offset: 3px;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

main {
  display: grid;
  gap: 24px;
}

.card {
  padding: 32px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(125, 153, 255, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.32);
}

.brand__text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(98, 131, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  color: #dce8ff;
  background: linear-gradient(135deg, rgba(18, 29, 75, 0.9), rgba(15, 20, 52, 0.9));
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #dce8ff;
  font-weight: 800;
  line-height: 1.3;
  border: 1px solid rgba(98, 131, 255, 0.2);
  background: linear-gradient(135deg, rgba(18, 29, 75, 0.9), rgba(15, 20, 52, 0.9));
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav__link:hover,
.menu-toggle:hover,
.cta-button:hover,
.scenario-switcher__button:hover,
.scenario-nav__button:hover {
  transform: translateY(-1px);
}

.site-nav__link.is-active {
  background: linear-gradient(90deg, rgba(19, 185, 255, 0.95), rgba(143, 74, 255, 0.95));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(31, 99, 255, 0.28);
}

.page-panel {
  display: none;
}

.page-panel.is-active {
  display: grid;
  gap: 24px;
}

.guide-intro,
.content-intro {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(31, 200, 255, 0.18), transparent 32%),
    radial-gradient(circle at right center, rgba(156, 77, 255, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(9, 14, 40, 0.96), rgba(8, 10, 28, 0.98));
}

.guide-intro::after,
.content-intro::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 77, 255, 0.26), transparent 65%);
  pointer-events: none;
}

.hero__badge,
.scenario__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31, 200, 255, 0.2), rgba(156, 77, 255, 0.2));
  color: #dceaff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid rgba(113, 148, 255, 0.18);
}

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

h1 {
  margin: 20px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
}

h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

h3 {
  margin: 4px 0 10px;
  font-size: 22px;
}

.guide-intro__lead,
.content-intro p,
.intro p,
.scenario p,
.step p,
.info-card p,
.try-card p,
.site-footer p,
.content-note,
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.content-intro h1,
.guide-intro h1 {
  position: relative;
  z-index: 1;
}

.content-intro p,
.guide-intro__lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.cta-button,
.scenario-switcher__button,
.scenario-nav__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(19, 185, 255, 0.95), rgba(143, 74, 255, 0.95));
  box-shadow: 0 16px 30px rgba(31, 99, 255, 0.28);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.cta-button,
.footer-link {
  gap: 10px;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.platform-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cta-button--secondary,
.scenario-switcher__button,
.scenario-nav__button--secondary {
  color: #dce8ff;
  background: linear-gradient(135deg, rgba(18, 29, 75, 0.9), rgba(15, 20, 52, 0.9));
  border: 1px solid rgba(98, 131, 255, 0.2);
  box-shadow: none;
}

.intro {
  display: grid;
  gap: 16px;
}

.checklist {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  color: #ebf4ff;
  font-size: 18px;
  line-height: 1.7;
}

.scenario-switcher {
  position: sticky;
  top: 124px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scenario-switcher__button {
  display: grid;
  gap: 6px;
  align-items: start;
  cursor: pointer;
  text-align: left;
}

.scenario-switcher__step {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8fe7ff;
}

.scenario-switcher__text {
  display: block;
}

.scenario-switcher__current {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  color: #dce8ff;
  background: rgba(16, 24, 60, 0.72);
  border: 1px solid rgba(98, 131, 255, 0.18);
  font-size: 15px;
  line-height: 1.5;
}

.scenario-switcher__button.is-active,
.scenario-nav__button:not(.scenario-nav__button--secondary) {
  background: linear-gradient(90deg, rgba(19, 185, 255, 0.95), rgba(143, 74, 255, 0.95));
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(31, 99, 255, 0.28);
}

.scenario-panel {
  display: none;
}

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

.scenario__status {
  margin-bottom: 24px;
}

.scenario__draft,
.faq-list {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 20px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
}

.step__number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #17c7ff 0%, #7d46ff 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(38, 108, 255, 0.28);
}

.step__figure {
  margin: 18px 0 0;
}

.step__figure img {
  display: block;
  width: min(100%, 420px);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.step__figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.step__gallery,
.feature-grid,
.news-grid {
  display: grid;
  gap: 18px;
}

.step__gallery,
.news-grid,
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seo-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seo-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.scenario-overview {
  display: grid;
  gap: 18px;
}

.scenario-overview__intro {
  display: grid;
  gap: 12px;
}

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

.scenario-overview__card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.scenario-link-card {
  color: inherit;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.scenario-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 74, 255, 0.3);
  box-shadow: 0 20px 36px rgba(31, 99, 255, 0.2);
}

.note,
.content-note {
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(17, 26, 67, 0.96), rgba(50, 18, 93, 0.92));
  color: #fff8f0;
  font-size: 17px;
  line-height: 1.7;
  border: 1px solid rgba(110, 140, 255, 0.22);
}

.note strong,
.content-note strong {
  color: #8fe7ff;
}

.scenario__done {
  margin: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(18, 157, 222, 0.18), rgba(137, 76, 255, 0.18));
  border: 1px solid rgba(108, 142, 255, 0.24);
  color: #ebf4ff;
  font-size: 17px;
  line-height: 1.7;
}

.scenario-nav {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.subscenario-header {
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(17, 31, 79, 0.85), rgba(35, 14, 78, 0.78));
  border: 1px solid rgba(103, 136, 255, 0.2);
}

.subscenario-header__label {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(31, 200, 255, 0.12);
  color: #cdeaff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subscenario-header h3 {
  margin: 14px 0 10px;
}

.subscenario-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.info-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.plain-list {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
  color: #ebf4ff;
  font-size: 18px;
  line-height: 1.7;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  color: #f4f7ff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

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

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item p {
  padding: 0 28px 24px;
}

.try-card {
  display: grid;
  gap: 14px;
}

.site-footer {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  color: #dce8ff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    width: 100%;
    justify-content: flex-start;
  }

  .feature-grid,
  .seo-highlights,
  .news-grid,
  .scenario-overview__grid,
  .step__gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1080px);
    padding: 20px 0 40px;
  }

  .card {
    padding: 24px;
    border-radius: 24px;
  }

  .scenario-switcher {
    top: 108px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
  }

  .scenario-switcher__button {
    min-height: 0;
    padding: 12px 8px;
    border-radius: 14px;
    gap: 4px;
    text-align: center;
  }

  .scenario-switcher__step {
    font-size: 12px;
    color: inherit;
  }

  .scenario-switcher__text {
    display: none;
  }

  .scenario-switcher__current {
    display: block;
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 40px;
  }

  .guide-intro__lead,
  .content-intro p,
  .intro p,
  .scenario p,
  .step p,
  .info-card p,
  .try-card p,
  .site-footer p,
  .content-note,
  .faq-item p,
  .plain-list,
  .checklist,
  .faq-item summary {
    font-size: 16px;
  }

  .cta-row,
  .scenario-nav {
    flex-direction: column;
  }

  .cta-button,
  .scenario-switcher__button,
  .scenario-nav__button {
    width: 100%;
  }

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