:root {
  --bg: #08111b;
  --bg-soft: #0d1724;
  --surface: rgba(16, 29, 44, 0.92);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.03);

  --text: #edf3fa;
  --muted: #a5b4c7;
  --muted-2: #c2cfdd;

  --blue: #0150a4;
  --blue-2: #0d66c2;
  --blue-soft: #7eb0e8;

  --orange: #fb5602;
  --orange-soft: #ffbe73;
  --success: #6fd2a5;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.26);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.18);

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --container: 1280px;
  --header-h: 86px;
  --subnav-h: 62px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(1, 80, 164, 0.12), transparent 20%),
    radial-gradient(circle at top right, rgba(251, 86, 2, 0.08), transparent 18%),
    linear-gradient(180deg, #07111a 0%, #09131f 52%, #08111b 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #8fbaf1;
  text-decoration: none;
}

a:hover {
  color: #b9d7ff;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 27, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.top-nav a {
  color: #d7e3f1;
  font-size: 0.95rem;
  font-weight: 600;
}

.top-nav a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #ffffff;
}

.btn-primary:hover {
  background: #e84f00;
  color: #ffffff;
}

.btn-secondary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.btn-secondary:hover {
  background: #0754a0;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  background: rgba(8, 17, 27, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.subnav-inner {
  min-height: var(--subnav-h);
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  white-space: nowrap;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  color: #d7e3f1;
  font-size: 0.92rem;
  font-weight: 600;
  background: transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.subnav-link:hover,
.subnav-link.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero {
  padding: 54px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(350px, 0.94fr);
  gap: 30px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.search-card,
.search-results-panel,
.overview-card,
.section-card,
.topic-card,
.faq-card,
.cta-panel {
  background: rgba(16, 29, 44, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 36px;
  background:
    radial-gradient(circle at top right, rgba(1, 80, 164, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(251, 86, 2, 0.08), transparent 22%),
    rgba(16, 29, 44, 0.94);
}

.eyebrow,
.section-tag,
.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(1, 80, 164, 0.14);
  border: 1px solid rgba(126, 176, 232, 0.16);
  color: #d9eaff;
  font-size: 0.88rem;
  font-weight: 700;
  width: fit-content;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  max-width: 11ch;
}

.hero-copy p {
  margin: 0;
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
}

.hero-panel h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.connect-card {
  display: grid;
  gap: 12px;
}

.connect-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
}

.connect-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.connect-row strong {
  word-break: break-word;
  line-height: 1.45;
}

.section {
  padding: 82px 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.02));
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.search-card {
  border-radius: 30px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: center;
}

.search-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.search-copy p {
  margin: 0;
  color: var(--muted);
}

.search-box {
  display: flex;
  align-items: center;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.search-icon {
  min-width: 56px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 0 16px 0 0;
  height: 58px;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #8ca0b8;
}

.search-results-panel {
  border-radius: 24px;
  padding: 20px;
  margin-top: 16px;
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-results-header strong {
  font-size: 1.02rem;
}

.search-results-header span {
  color: var(--muted);
  font-weight: 700;
}

.search-results-list {
  display: grid;
  gap: 12px;
}

.search-result-card {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.search-result-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.search-result-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(1, 80, 164, 0.14);
  color: #d9eaff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.search-result-title {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.search-result-snippet {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.overview-grid,
.topics-grid,
.info-grid,
.modes-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.overview-card,
.topic-card,
.section-card {
  border-radius: 24px;
  padding: 24px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.overview-card:hover,
.topic-card:hover,
.section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(18, 32, 49, 0.96);
}

.card-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--orange-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overview-card h3,
.topic-card h3,
.section-card h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.overview-card p,
.topic-card p,
.section-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.section-card h4 {
  margin: 18px 0 10px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-2);
}

.clean-list li + li {
  margin-top: 8px;
}

.code-block {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(5, 10, 17, 0.78);
  border: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  position: relative;
}

.code-block code,
.code-block pre {
  margin: 0;
  color: #dce8f8;
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.10);
}

.notice-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted-2);
}

.faq-card {
  border-radius: 22px;
  padding: 20px 22px;
}

.faq-card summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  position: relative;
  padding-right: 28px;
}

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

.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--orange-soft);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-card[open] summary::after {
  content: "–";
}

.faq-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-panel {
  border-radius: 34px;
  padding: 38px;
  text-align: center;
}

.cta-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cta-panel p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.16);
}

.footer-inner {
  min-height: 110px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 48px;
  width: auto;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.search-highlight {
  outline: 2px solid rgba(251, 86, 2, 0.45);
  box-shadow: 0 0 0 6px rgba(251, 86, 2, 0.08);
}

@media (max-width: 1160px) {
  .hero-grid,
  .overview-grid,
  .topics-grid,
  .info-grid,
  .modes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .top-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid,
  .search-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .overview-grid,
  .topics-grid,
  .info-grid,
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  .header-actions,
  .top-nav {
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .search-card,
  .search-results-panel,
  .overview-card,
  .section-card,
  .topic-card,
  .faq-card,
  .cta-panel {
    padding-left: 22px;
    padding-right: 22px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}
