:root {
  --ink: #f8fff1;
  --muted: #c6d5bd;
  --bg: #071309;
  --panel: #0f2615;
  --panel-2: #163820;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #f1b60e;
  --gold-2: #ffe271;
  --green: #2ab03c;
  --deep: #030f25;
  --paper: #f8fbf2;
  --text: #172016;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(42, 176, 60, 0.3), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(241, 182, 14, 0.18), transparent 24rem),
    linear-gradient(180deg, #061108 0%, #0c1b12 42%, #091009 100%);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: rgba(3, 15, 37, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
  padding: 8px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 132px;
}

.logo img {
  display: block;
  width: min(170px, 38vw);
  height: auto;
}

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

.top-nav a,
.header-cta,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
}

.top-nav a {
  color: var(--muted);
}

.top-nav a:hover {
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.06);
}

.header-cta,
.primary-btn {
  color: #04132e;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 16px 34px rgba(241, 182, 14, 0.24);
}

.secondary-btn {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 5vw, 68px);
  max-width: 1180px;
  min-height: calc(100svh - 98px);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 74px) 0 34px;
  width: min(1180px, calc(100% - 36px));
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-family: "Roboto Slab", Georgia, serif;
}

h1 {
  font-size: clamp(2.45rem, 4.2vw, 4.25rem);
  max-width: 11.8em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 62ch;
  margin: 22px 0 0;
  color: #e6f0df;
  font-size: 1.08rem;
}

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

.hero-media {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255, 226, 113, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: #0b1910;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.win-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(180px, calc(100% - 36px));
  padding: 14px;
  border-radius: 8px;
  color: #04132e;
  background: rgba(255, 226, 113, 0.94);
  font-weight: 900;
  line-height: 1.2;
}

.win-badge span {
  display: block;
  font-size: 2rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto 42px;
  padding: 0 clamp(18px, 4vw, 48px);
}

.quick-stats div {
  padding: 20px;
  background: rgba(3, 15, 37, 0.76);
  border: 1px solid var(--line);
}

.quick-stats div:first-child {
  border-radius: 8px 0 0 8px;
}

.quick-stats div:last-child {
  border-radius: 0 8px 8px 0;
}

.quick-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.quick-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--gold-2);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.page-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 58px;
}

.side-panel {
  position: relative;
}

.side-card {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 15, 37, 0.76);
}

.side-card h2 {
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 1.1rem;
}

.side-card a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.side-card a:hover,
.side-card a.is-active {
  color: #04132e;
  background: var(--gold);
}

.content {
  display: grid;
  gap: 22px;
}

.content-section {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(9, 45, 21, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: var(--paper);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.content-section h2 {
  color: #0b2c13;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.content-section h3 {
  margin-top: 32px;
  color: #1b5227;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.content-section p {
  margin: 16px 0 0;
}

.content-section ul,
.content-section ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.content-section li::marker {
  color: var(--green);
  font-weight: 900;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 18px;
  border-radius: 8px;
  border: 1px solid #d9e3d0;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #d9e3d0;
  text-align: left;
  vertical-align: top;
}

th {
  color: #071309;
  background: #e4f4d8;
}

tr:last-child td {
  border-bottom: 0;
}

.demo-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(3, 15, 37, 0.93), rgba(16, 73, 28, 0.92)),
    url("../img/hero.webp") center / cover;
}

.demo-section h2,
.demo-section h3 {
  color: #fff;
}

.demo-section p,
.demo-section li {
  color: #e5efde;
}

.faq-section details {
  margin-top: 14px;
  border: 1px solid #d8e3d0;
  border-radius: 8px;
  background: #fff;
}

.faq-section summary {
  cursor: pointer;
  padding: 16px 18px;
  color: #0b2c13;
  font-weight: 900;
}

.faq-section details p {
  margin: 0;
  padding: 0 18px 18px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 18px 42px;
  color: var(--muted);
  text-align: center;
  background: #030f25;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 820px;
}

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

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer img {
  width: min(180px, 60vw);
  height: auto;
}

.site-footer p {
  max-width: 780px;
  margin: 0;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #04132e;
  background: var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.policy-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto 58px;
  padding-top: clamp(34px, 6vw, 64px);
}

.policy-page .content-section {
  display: grid;
  gap: 18px;
}

.policy-page h1 {
  max-width: 100%;
  color: #0b2c13;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.policy-page h2 {
  margin-top: 10px;
}

.policy-page p,
.policy-page li {
  margin: 0;
}

@media (max-width: 920px) {
  .header-inner {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-stats div,
  .quick-stats div:first-child,
  .quick-stats div:last-child {
    border-radius: 8px;
  }

  .page-shell {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: none;
  }

  .demo-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .top-nav {
    display: none;
  }

  .header-inner {
    min-height: 0;
  }

  .header-cta,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 260px;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding: 22px 18px;
  }

  .win-badge {
    position: static;
    width: 100%;
    border-radius: 0;
  }
}
