:root {
  color-scheme: dark;
  --background: #0b0a12;
  --surface: #16141f;
  --card: #1c1927;
  --card-hover: #242033;
  --primary: #9d7bff;
  --primary-light: #c5a8ff;
  --primary-dark: #6f52e6;
  --button: #a67cff;
  --button-hover: #b893ff;
  --text-primary: #ffffff;
  --text-secondary: #c9c8d1;
  --text-hint: #8b8898;
  --border: #2a2737;
  --border-active: #a67cff;
  --success: #35d07f;
  --danger: #ff5d6e;
  --warning: #ffc857;
  --live-red: #ff4040;
  --news-purple: #b08cff;
  --nav-bar: #16141f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text-primary);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--background);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100svh;
  background: var(--background);
}

.topbar {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(11, 10, 18, 0.92), rgba(11, 10, 18, 0.54), transparent);
  backdrop-filter: blur(14px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(135deg, #ff4040, #a67cff 58%, #ffc857),
    var(--card);
  box-shadow: 0 0 22px rgba(166, 124, 255, 0.36);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #090811;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 10, 18, 0.96), rgba(11, 10, 18, 0.78) 38%, rgba(11, 10, 18, 0.30)),
    linear-gradient(180deg, rgba(11, 10, 18, 0.18), rgba(11, 10, 18, 0.92)),
    url("/share-card.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(72rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 8rem 0 5rem;
  display: grid;
  gap: 1.35rem;
}

.eyebrow {
  margin: 0;
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.document-hero h1,
.simple-card h1 {
  max-width: 54rem;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(3.2rem, 11vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p,
.document-hero p,
.simple-card p {
  max-width: 43rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 2.4vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.doc-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.4rem;
}

.button {
  min-height: 3.2rem;
  padding: 0 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #08070d;
  background: var(--button);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(157, 123, 255, 0.28);
}

.button:hover {
  background: var(--button-hover);
}

.button.secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.section {
  width: min(72rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  max-width: 45rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.feature-card,
.document-card,
.simple-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)), var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
}

.feature-card {
  min-height: 12rem;
  padding: 1.25rem;
  display: grid;
  align-content: space-between;
  gap: 1.4rem;
}

.feature-card b {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.chip-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.chip {
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #211e2c;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 800;
}

.document-page {
  width: min(58rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

.document-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.document-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.document-card h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.18rem;
}

.document-card h2:first-child {
  margin-top: 0;
}

.document-card p,
.document-card li {
  color: var(--text-secondary);
  line-height: 1.72;
}

.document-card ul {
  padding-left: 1.1rem;
}

.document-card strong {
  color: var(--text-primary);
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--text-hint);
}

.footer-inner {
  width: min(72rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 800;
}

.simple-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.simple-card {
  width: min(34rem, 100%);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.share-hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    linear-gradient(180deg, rgba(11, 10, 18, 0.62), var(--background)),
    url("/share-card.png") center / cover no-repeat;
}

.share-card {
  width: min(31rem, 100%);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(22, 20, 31, 0.82);
  backdrop-filter: blur(18px);
}

.share-label {
  justify-self: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(166, 124, 255, 0.14);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.share-label.live {
  background: var(--live-red);
  color: var(--text-primary);
}

.share-card h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 0.95;
}

.share-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 760px) {
  .topbar {
    position: absolute;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(11, 10, 18, 0.28), rgba(11, 10, 18, 0.96)),
      url("/share-card.png") center / cover no-repeat;
  }

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

  .document-page {
    padding-top: 6rem;
  }

  .footer-inner {
    display: grid;
  }
}
