@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-soft: #0b0b10;
  --panel: rgba(17, 17, 23, 0.92);
  --panel-strong: rgba(22, 22, 31, 0.96);
  --panel-glass: rgba(12, 12, 18, 0.74);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(231, 199, 106, 0.22);
  --text: #f7f4ec;
  --muted: #bbb6ae;
  --muted-strong: #d6d1c8;
  --gold: #e7c76a;
  --gold-strong: #f4df9a;
  --gold-deep: #b3872d;
  --success: #9de6aa;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(231, 199, 106, 0.14), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(231, 199, 106, 0.1), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(244, 223, 154, 0.08), transparent 20%),
    linear-gradient(180deg, #08080c 0%, #040406 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(20px);
}

body::before {
  width: 280px;
  height: 280px;
  left: -120px;
  top: 84px;
  background: rgba(231, 199, 106, 0.08);
}

body::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -100px;
  background: rgba(244, 223, 154, 0.06);
}

a {
  color: inherit;
}

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

.site-shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(6, 6, 9, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topbar-inner,
.container,
.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-word {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

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

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 180ms ease;
  font-weight: 700;
  font-size: 0.94rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.container {
  padding: 42px 0 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.feature-card,
.article-card,
.toc-card,
.support-card,
.contact-card,
.summary-card,
.cta-panel,
.section-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 38px;
}

.hero-copy::before,
.hero-visual::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(231, 199, 106, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 35%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(231, 199, 106, 0.08);
  border: 1px solid rgba(231, 199, 106, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 20px 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.feature-card p,
.support-card p,
.article-card p,
.article-card li,
.summary-card p,
.cta-panel p,
.section-panel p,
.section-panel li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #120f08;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-grid,
.support-grid,
.summary-grid,
.feature-grid,
.link-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  margin-top: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-tile {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.stat-value {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-strong);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 30px;
  display: flex;
  align-items: center;
}

.phone-mock {
  width: min(100%, 390px);
  margin: 0 auto;
  border-radius: 34px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(12, 12, 16, 0.98), rgba(8, 8, 11, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.46);
}

.phone-notch {
  width: 36%;
  height: 18px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.phone-card,
.phone-pill,
.phone-bubble,
.phone-bar,
.mini-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-card {
  padding: 16px;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-chip {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.phone-title {
  font-size: 1rem;
  font-weight: 800;
}

.phone-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.phone-bar {
  height: 12px;
  margin-top: 18px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
}

.phone-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.phone-feed {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.phone-bubble {
  padding: 14px;
}

.phone-bubble.gold {
  background: rgba(231, 199, 106, 0.12);
  border-color: rgba(231, 199, 106, 0.16);
}

.phone-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.phone-footer .phone-bar:first-child {
  flex: 1;
  margin: 0;
  height: 42px;
  border-radius: 999px;
}

.phone-footer .phone-pill {
  min-width: 62px;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #120f08;
}

.section-block {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  max-width: 560px;
}

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

.feature-card,
.support-card,
.summary-card,
.section-panel,
.cta-panel {
  padding: 24px;
}

.feature-kicker,
.mini-kicker {
  color: var(--gold-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-card h3,
.support-card h3,
.summary-card h3,
.section-panel h3,
.article-card h2,
.article-card h3,
.toc-card h3,
.cta-panel h3,
.page-hero h2 {
  margin: 12px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  margin-bottom: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.page-hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.page-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.toc-card {
  position: sticky;
  top: 96px;
  padding: 22px;
  background: var(--panel-glass);
}

.toc-card ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.toc-card a {
  text-decoration: none;
  color: var(--muted-strong);
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  transition: 180ms ease;
}

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

.article-card {
  padding: 28px;
}

.article-card section + section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.article-card ul,
.article-card ol,
.section-panel ul,
.section-panel ol {
  margin: 0;
  padding-left: 20px;
}

.article-card li + li,
.section-panel li + li {
  margin-top: 10px;
}

.callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(231, 199, 106, 0.08);
  border: 1px solid rgba(231, 199, 106, 0.16);
}

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

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

.summary-card strong,
.support-card strong,
.article-card strong {
  color: var(--text);
}

.link-grid a,
.inline-link {
  color: var(--gold-strong);
  text-decoration: none;
}

.link-grid a:hover,
.inline-link:hover {
  text-decoration: underline;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 8, 11, 0.84);
  backdrop-filter: blur(12px);
}

.footer-inner {
  padding: 28px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer-copy {
  color: var(--muted);
  max-width: 560px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: var(--gold-strong);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(157, 230, 170, 0.08);
  border: 1px solid rgba(157, 230, 170, 0.18);
  color: var(--success);
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(157, 230, 170, 0.1);
}

.table-like {
  display: grid;
  gap: 12px;
}

.table-like .row {
  display: grid;
  gap: 8px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.table-like .row:first-child {
  border-top: none;
  padding-top: 0;
}

.table-like .label {
  color: var(--muted-strong);
  font-weight: 800;
}

.list-tight {
  display: grid;
  gap: 10px;
}

@media (max-width: 1040px) {
  .hero,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

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

@media (max-width: 760px) {
  .topbar-inner,
  .container,
  .footer-inner {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .container {
    padding-top: 24px;
    padding-bottom: 68px;
  }

  .hero-copy,
  .hero-visual,
  .page-hero,
  .feature-card,
  .support-card,
  .summary-card,
  .section-panel,
  .cta-panel,
  .article-card,
  .toc-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-grid,
  .feature-grid,
  .support-grid,
  .support-grid.three,
  .summary-grid,
  .link-grid,
  .table-like .row {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
