:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 251, 245, 0.88);
  --surface-strong: #fff8ef;
  --ink: #14263d;
  --muted: #5c6b7a;
  --line: rgba(20, 38, 61, 0.12);
  --accent: #ff6a2b;
  --accent-deep: #de5218;
  --accent-soft: rgba(255, 106, 43, 0.14);
  --teal: #14857f;
  --teal-soft: rgba(20, 133, 127, 0.12);
  --shadow: 0 24px 60px rgba(20, 38, 61, 0.12);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 43, 0.16), transparent 24rem),
    radial-gradient(circle at top right, rgba(20, 133, 127, 0.12), transparent 28rem),
    linear-gradient(180deg, #fbf6ef 0%, #f2eadf 100%);
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 38, 61, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 38, 61, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18));
}

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

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

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

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(246, 241, 232, 0.84);
  border-bottom: 1px solid rgba(20, 38, 61, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(20, 133, 127, 0.25);
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a:not(.button) {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:not(.button):hover,
.site-nav a:not(.button):focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 28px rgba(222, 82, 24, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 38, 61, 0.12);
}

.eyebrow,
.kicker,
.tag,
.news-meta {
  margin: 0;
  color: var(--accent-deep);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  padding: 84px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.page-hero-inner,
.feature-card,
.advantage-card,
.advantage-visual,
.download-preview-card,
.news-card,
.faq-card,
.download-card,
.subscription-card,
.news-row,
.article-header,
.toc,
.article-content,
.metrics-grid article {
  background: var(--surface);
  border: 1px solid rgba(20, 38, 61, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy,
.hero-panel {
  border-radius: 38px;
  padding: 34px;
}

.hero-copy h1,
.page-hero h1,
.article-header h1 {
  margin: 10px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 38, 61, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(20, 38, 61, 0.94), rgba(20, 38, 61, 0.82)),
    linear-gradient(135deg, rgba(255, 106, 43, 0.12), rgba(20, 133, 127, 0.1));
  color: #f9f6f1;
}

.hero-card,
.hero-mini {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.hero-card strong {
  display: block;
  margin: 8px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
}

.hero-card p,
.hero-mini span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-card-accent {
  background: linear-gradient(135deg, rgba(255, 106, 43, 0.88), rgba(20, 133, 127, 0.78));
}

.hero-card-accent .kicker,
.hero-card-accent p,
.hero-card-accent strong {
  color: #fff;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.metrics {
  padding: 20px 0 12px;
}

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

.metrics-grid article {
  border-radius: 28px;
  padding: 24px;
}

.metrics-grid span {
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.metrics-grid h2,
.section-heading h2,
.news-row h2 {
  margin: 10px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.metrics-grid p,
.section-heading p,
.feature-card p,
.advantage-card p,
.advantage-visual p,
.download-preview-card p,
.news-card p,
.faq-card p,
.download-card p,
.subscription-card p,
.news-row p,
.article-content p,
.article-byline,
.article-figure figcaption {
  margin: 0;
  color: var(--muted);
}

.section-block {
  padding: 26px 0 44px;
}

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  bottom: 16px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(20, 38, 61, 0.06);
  border-bottom: 1px solid rgba(20, 38, 61, 0.06);
}

.section-heading {
  margin-bottom: 24px;
}

.feature-grid,
.download-preview,
.faq-grid,
.download-grid,
.news-grid {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.download-preview-card,
.faq-card,
.download-card,
.subscription-card,
.news-card,
.news-row {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.feature-card h3,
.advantage-card h3,
.download-preview-card h3,
.news-card h3,
.faq-card h3,
.download-card h3,
.subscription-card h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.feature-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.advantage-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
}

.advantage-stack {
  display: grid;
  gap: 18px;
}

.advantage-card,
.advantage-visual {
  border-radius: 34px;
  padding: 28px;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
}

.advantage-visual {
  background:
    linear-gradient(180deg, rgba(20, 133, 127, 0.84), rgba(20, 38, 61, 0.88)),
    var(--surface);
  color: #fff;
}

.status-board {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.status-row strong {
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
}

.download-preview-card,
.news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-link {
  color: var(--accent-deep);
  font-weight: 700;
}

.news-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.news-card-featured {
  background:
    linear-gradient(145deg, rgba(20, 38, 61, 0.95), rgba(20, 38, 61, 0.84)),
    var(--surface);
  color: #fff;
}

.news-card-featured .news-meta,
.news-card-featured p,
.news-card-featured h3 {
  color: #fff;
}

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

.page-main {
  padding-bottom: 32px;
}

.page-hero {
  padding: 72px 0 18px;
}

.page-hero-inner {
  border-radius: 38px;
  padding: 34px;
}

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

.download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.download-head span {
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.address-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 38, 61, 0.08);
}

.address-box + .address-box {
  margin-top: 12px;
}

.address-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.address-box code {
  word-break: break-all;
  color: var(--ink);
  font-size: 0.9rem;
  font-family: "Space Grotesk", monospace;
}

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

.news-list {
  display: grid;
  gap: 16px;
}

.news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-row h2 {
  font-size: 1.8rem;
}

.news-row-featured {
  background: linear-gradient(145deg, rgba(255, 106, 43, 0.96), rgba(222, 82, 24, 0.92));
  color: #fff;
}

.news-row-featured .news-meta,
.news-row-featured h2,
.news-row-featured p {
  color: #fff;
}

.article-page {
  padding-top: 44px;
}

.article-shell {
  display: grid;
  gap: 24px;
}

.article-header {
  border-radius: 40px;
  padding: 34px;
}

.article-byline {
  margin-top: -4px;
  font-size: 0.95rem;
}

.article-figure {
  margin: 28px 0 0;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border-radius: 28px;
}

.article-figure figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
}

.article-figure a {
  color: var(--accent-deep);
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  border-radius: 28px;
  padding: 24px;
}

.toc p {
  margin: 0 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.toc a {
  color: var(--muted);
  font-size: 0.96rem;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent-deep);
}

.article-content {
  border-radius: 34px;
  padding: 30px;
}

.article-content section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(20, 38, 61, 0.08);
}

.article-content h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.sources-list {
  margin: 0;
  padding-left: 20px;
}

.sources-list li + li {
  margin-top: 10px;
}

.sources-list a {
  color: var(--accent-deep);
  word-break: break-word;
}

.site-footer {
  padding: 28px 0 22px;
  border-top: 1px solid rgba(20, 38, 61, 0.08);
}

.footer-grid,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid {
  padding-top: 16px;
}

.brand-footer {
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 36rem;
  margin: 0;
  color: var(--muted);
}

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

.footer-links a,
.footer-bottom {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-bottom {
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid rgba(20, 38, 61, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 248, 239, 0.98);
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: inline-block;
  }

  .hero-grid,
  .metrics-grid,
  .feature-grid,
  .advantage-layout,
  .download-preview,
  .news-grid,
  .faq-grid,
  .download-grid,
  .subscription-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .news-row,
  .footer-grid,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .header-inner {
    gap: 12px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-copy,
  .hero-panel,
  .page-hero-inner,
  .feature-card,
  .advantage-card,
  .advantage-visual,
  .download-preview-card,
  .news-card,
  .faq-card,
  .download-card,
  .subscription-card,
  .news-row,
  .article-header,
  .toc,
  .article-content,
  .metrics-grid article {
    padding: 22px;
    border-radius: 24px;
  }

  .button,
  .download-actions {
    width: 100%;
  }

  .download-actions .button {
    width: 100%;
  }

  .signal-list {
    flex-direction: column;
  }
}
