:root {
  --bg: #07111b;
  --bg-deep: #03080f;
  --surface: rgba(10, 20, 32, 0.86);
  --surface-strong: rgba(13, 24, 38, 0.96);
  --surface-soft: rgba(9, 17, 28, 0.74);
  --text: #edf3ff;
  --text-soft: #aac0d9;
  --text-muted: #7f94aa;
  --line: rgba(132, 168, 206, 0.14);
  --line-strong: rgba(132, 168, 206, 0.24);
  --blue: #6ec2ff;
  --blue-strong: #2c8fe3;
  --gold: #d3a043;
  --gold-soft: #f0c56a;
  --mint: #7ad5bf;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.24);
  --radius: 28px;
  --radius-sm: 20px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(circle at 12% 0%, rgba(44, 143, 227, 0.18), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(122, 213, 191, 0.12), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(211, 160, 67, 0.08), transparent 24%),
    linear-gradient(180deg, #091420 0%, #07111b 44%, #03080f 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2) 65%, transparent);
}

body::selection {
  background: rgba(110, 194, 255, 0.24);
}

main {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: rgba(110, 194, 255, 0.24);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: 0.85rem;
  background: linear-gradient(180deg, rgba(3, 8, 15, 0.9), rgba(3, 8, 15, 0.6), rgba(3, 8, 15, 0));
}

.nav-shell,
.footer-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 17, 27, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  color: var(--text-muted);
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.56rem 0.86rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.nav a:hover,
.nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  color: var(--text);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(110, 194, 255, 0.1);
  border-color: rgba(110, 194, 255, 0.18);
}

.nav a.nav-flagship {
  color: var(--text);
  background: rgba(211, 160, 67, 0.12);
  border-color: rgba(211, 160, 67, 0.22);
}

.button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.92rem 1.2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.button-primary,
.nav-cta {
  background: linear-gradient(135deg, var(--blue-strong) 0%, var(--blue) 55%, #9bd6ff 100%);
  color: #04101a;
  box-shadow: 0 16px 34px rgba(44, 143, 227, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.button-gold {
  background: linear-gradient(135deg, #b47f2b 0%, var(--gold-soft) 100%);
  color: #120d07;
  box-shadow: 0 16px 34px rgba(211, 160, 67, 0.26);
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
}

.hero-section,
.section-block,
.archive-section,
.article-page {
  padding-top: clamp(3.2rem, 6vw, 5rem);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: 1.4rem;
  align-items: stretch;
}

.panel,
.hero-copy-block,
.hero-panel,
.offer-card,
.problem-card,
.proof-card,
.article-card,
.note-panel,
.article-hero,
.prose-panel,
.quote-card {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 24, 38, 0.96), rgba(7, 15, 26, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel::before,
.hero-copy-block::before,
.hero-panel::before,
.offer-card::before,
.problem-card::before,
.proof-card::before,
.article-card::before,
.note-panel::before,
.article-hero::before,
.prose-panel::before,
.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px rgba(255,255,255,0.04);
}

.hero-copy-block,
.hero-panel,
.offer-card,
.problem-card,
.proof-card,
.article-card,
.note-panel,
.article-hero,
.prose-panel,
.quote-card {
  padding: clamp(1.35rem, 2.6vw, 2rem);
}

.hero-copy-block {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(110, 194, 255, 0.14), transparent 30%),
    radial-gradient(circle at 16% 12%, rgba(211, 160, 67, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(13, 24, 38, 0.98), rgba(7, 15, 26, 0.96));
}

.hero-copy-block::after {
  content: "";
  position: absolute;
  inset: auto -10% -26% auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(110, 194, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(122, 213, 191, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 19, 31, 0.96), rgba(6, 13, 22, 0.96));
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 8.6ch;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  margin-bottom: 0.85rem;
  max-width: 15ch;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.lede,
.hero-copy-block p,
.hero-panel li,
.offer-card p,
.problem-card p,
.proof-card p,
.article-card p,
.note-panel p,
.footer-shell p,
.prose-panel p,
.prose-panel li,
.quote-card p {
  color: var(--text-soft);
}

.lede {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 64ch;
}

.hero-actions,
.note-actions,
.tag-row,
.card-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.signal-row,
.method-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.signal-pill,
.method-pill,
.card-kicker,
.article-meta,
.article-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.signal-pill,
.method-pill {
  padding: 0.48rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.card-kicker,
.article-meta,
.article-tags {
  color: var(--gold-soft);
}

.grid-stack,
.offer-grid,
.problem-grid,
.proof-grid,
.article-grid {
  display: grid;
  gap: 1.25rem;
}

.offer-grid,
.problem-grid,
.proof-grid,
.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.offer-card.is-highlight {
  background:
    radial-gradient(circle at top right, rgba(211, 160, 67, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(14, 26, 41, 0.98), rgba(8, 16, 27, 0.96));
}

.hero-panel h2,
.hero-panel h3,
.offer-card h3,
.problem-card h3,
.proof-card h3,
.article-card h3,
.note-panel h2,
.quote-card h3 {
  max-width: 100%;
}

.hero-panel ul,
.bullet-list,
.prose-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li,
.bullet-list li {
  position: relative;
  padding-left: 1rem;
}

.hero-panel li + li,
.bullet-list li + li {
  margin-top: 0.72rem;
}

.hero-panel li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
  transform: translateY(-50%);
}

.section-heading {
  margin-bottom: 1.5rem;
  max-width: 52rem;
}

.microcopy {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.stat-line {
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.operation-stack {
  display: grid;
  gap: 1rem;
}

.operation-card {
  padding: 1rem 1rem 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.operation-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-card h3 a,
.article-card a.standalone-link {
  color: var(--text);
  text-decoration: none;
}

.article-card h3 a:hover,
.article-card a.standalone-link:hover {
  color: var(--blue);
}

.note-panel {
  background:
    radial-gradient(circle at top right, rgba(110, 194, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(10, 18, 29, 0.98), rgba(7, 14, 24, 0.96));
}

.note-panel strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-page {
  max-width: 920px;
}

.article-hero {
  background:
    radial-gradient(circle at top right, rgba(110, 194, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 24, 38, 0.98), rgba(7, 15, 26, 0.96));
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--text-muted);
}

.quote-card {
  margin-top: 1.25rem;
  border-color: rgba(211, 160, 67, 0.22);
  background: linear-gradient(180deg, rgba(19, 28, 38, 0.98), rgba(11, 17, 24, 0.96));
}

.quote-card p {
  font-size: 1.04rem;
  color: var(--text);
}

.prose-panel {
  margin-top: 1.25rem;
}

.prose-panel h2,
.prose-panel h3 {
  margin-top: 1.9rem;
  max-width: none;
}

.prose-panel p + p {
  margin-top: 1rem;
}

.prose-panel ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.prose-panel li + li {
  margin-top: 0.45rem;
}

.prose-panel code {
  padding: 0.14rem 0.34rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.site-footer {
  margin-top: 4.5rem;
  padding-bottom: 1rem;
}

.footer-shell {
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 20px;
}

.footer-shell p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .hero-section,
  .offer-grid,
  .problem-grid,
  .proof-grid,
  .article-grid,
  .problem-grid.problem-grid-2,
  .article-grid.article-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  h1,
  h2 {
    max-width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1.2rem), var(--shell));
  }

  .site-header {
    padding-top: 0.5rem;
  }

  .nav-shell,
  .footer-shell {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding: 0.9rem;
    border-radius: 20px;
  }

  .nav {
    overflow: visible;
    flex-wrap: wrap;
  }

  .nav a {
    white-space: normal;
  }

  .hero-section,
  .section-block,
  .archive-section,
  .article-page {
    padding-top: 3rem;
  }

  .hero-copy-block,
  .hero-panel,
  .offer-card,
  .problem-card,
  .proof-card,
  .article-card,
  .note-panel,
  .article-hero,
  .prose-panel,
  .quote-card {
    padding: 1.2rem;
  }

  .hero-actions,
  .note-actions,
  .card-actions,
  .panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }
}
