:root {
  color-scheme: dark;
  --font-title: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;

  --bg: #041021;
  --bg-soft: #0a1933;
  --surface: rgba(10, 29, 56, 0.8);
  --surface-strong: #10284d;
  --surface-muted: rgba(14, 34, 66, 0.82);
  --header-bg: rgba(3, 15, 31, 0.85);
  --text: #e8f2ff;
  --muted: #afc3e3;
  --border: rgba(126, 173, 236, 0.28);
  --brand: #19b38f;
  --brand-2: #2887ff;
  --brand-3: #ffc857;
  --shadow: 0 22px 44px rgba(1, 9, 18, 0.42);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef5ff;
  --bg-soft: #f9fcff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: rgba(233, 243, 255, 0.95);
  --header-bg: rgba(244, 250, 255, 0.9);
  --text: #132945;
  --muted: #496181;
  --border: rgba(21, 84, 144, 0.18);
  --brand: #007d66;
  --brand-2: #1862d8;
  --brand-3: #cf7a00;
  --shadow: 0 18px 34px rgba(38, 74, 122, 0.16);
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 8% 10%, rgba(40, 135, 255, 0.2), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(25, 179, 143, 0.2), transparent 35%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 100%);
}

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

code {
  font-family: "JetBrains Mono", "Consolas", "Courier New", monospace;
  padding: 0.18rem 0.4rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.22);
}

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

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.32;
  pointer-events: none;
}

.orb-a {
  top: -10rem;
  left: -8rem;
  background: linear-gradient(145deg, var(--brand-2), transparent 65%);
}

.orb-b {
  top: 22rem;
  right: -10rem;
  background: linear-gradient(145deg, var(--brand), transparent 70%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4.6rem;
  gap: 0.9rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  padding: 0.54rem 0.82rem;
  border-radius: 0.7rem;
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--surface-muted);
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--border);
  border-radius: 0.74rem;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.theme-toggle {
  padding: 0.54rem 0.8rem;
}

.menu-toggle {
  display: none;
  padding: 0.54rem 0.76rem;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--brand-2);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 4.6rem 0 2.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 19ch;
  line-height: 1.1;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.hero p,
.page-hero p {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  padding: 0.72rem 1rem;
  border-radius: 0.78rem;
  border: 1px solid transparent;
  font-weight: 760;
  font-size: 0.95rem;
  transition: transform 0.16s ease, opacity 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
}

.btn.secondary {
  background: var(--surface);
  border-color: var(--border);
}

.btn.ghost {
  color: var(--muted);
  border-color: var(--border);
}

.stat-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.92rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stat-card p {
  margin: 0;
}

.stat-value {
  font-family: var(--font-title);
  font-size: 1.34rem;
  font-weight: 760;
}

.stat-label {
  margin-top: 0.4rem !important;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 1.2rem 0;
}

.section-head {
  margin-bottom: 0.9rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-title);
  line-height: 1.2;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.lead {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 74ch;
}

.card-grid {
  display: grid;
  gap: 0.85rem;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.card p {
  margin: 0.62rem 0 0;
  color: var(--muted);
}

.article-meta {
  margin: 0 0 0.5rem !important;
  color: var(--brand-2) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.77rem;
  font-weight: 700;
}

.text-link {
  display: inline-block;
  margin-top: 0.82rem;
  font-weight: 700;
  color: var(--brand-2);
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.notice code {
  font-size: 0.94rem;
}

.notice p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 0.45rem;
}

.fine-print {
  margin-top: 0.84rem !important;
  font-size: 0.9rem;
}

.banner {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0% 10%, rgba(25, 179, 143, 0.22), transparent 30%),
    radial-gradient(circle at 100% 90%, rgba(40, 135, 255, 0.2), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
}

.banner h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
}

.banner p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.page-hero {
  padding: 4rem 0 1.2rem;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0.7rem;
}

.timeline-item {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.9rem;
}

.timeline-item p {
  margin: 0.5rem 0 0;
}

.download-list {
  display: grid;
  gap: 0.75rem;
}

.download-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.9rem;
}

.download-item p {
  margin: 0.45rem 0 0;
}

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

.contact-item {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.95rem;
}

.contact-item p {
  margin: 0.5rem 0 0;
}

.form-shell {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1rem;
}

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

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--muted);
}

.form-field textarea,
.form-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.7rem 0.72rem;
  background: var(--surface-muted);
  color: var(--text);
  font-family: var(--font-body);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(40, 135, 255, 0.55);
  outline-offset: 1px;
}

.consent-box {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-muted);
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.consent-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.consent-row input {
  margin-top: 0.2rem;
}

.consent-row a {
  color: var(--brand-2);
}

.policy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  margin-top: 2.6rem;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
}

.footer-grid {
  padding: 2rem 0 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-logo {
  margin-bottom: 0.6rem;
}

.site-footer h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-title);
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-meta {
  border-top: 1px solid var(--border);
  padding: 0.92rem 0 1.3rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.site-alert {
  margin: 0.9rem auto 0;
  width: min(1120px, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.74rem 0.9rem;
  background: var(--surface);
  color: var(--text);
}

.site-alert strong {
  font-family: var(--font-title);
}

.site-alert[data-severity="warning"] {
  border-color: rgba(255, 200, 87, 0.55);
}

.site-alert[data-severity="critical"] {
  border-color: rgba(255, 106, 106, 0.58);
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
}

.hero-visual {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 18rem;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kpi-strip {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  padding: 0.85rem;
  box-shadow: var(--shadow);
}

.kpi h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
}

.kpi p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.media-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
}

.media-card figcaption {
  padding: 0.74rem 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.icon-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.74rem;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.2s ease;
}

.icon-link:hover {
  transform: translateY(-1px);
  border-color: var(--brand-2);
}

.icon-link svg {
  width: 1.12rem;
  height: 1.12rem;
}

.feed-stack {
  display: grid;
  gap: 0.8rem;
}

[data-shop-categories] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.shop-card {
  display: grid;
  gap: 0.58rem;
}

.shop-card .hero-actions {
  margin-top: 0.2rem;
  justify-content: space-between;
  align-items: center;
}

.shop-media {
  border-radius: 0.84rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.shop-media img {
  width: 100%;
  display: block;
  max-height: 180px;
  object-fit: cover;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.plan-card .price {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 760;
}

.plan-card .muted {
  font-size: 0.88rem;
}

.plan-feature {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.support-tier {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.support-tier p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.support-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 8, 17, 0.66);
  z-index: 120;
}

.support-modal.is-open {
  display: flex;
}

.support-box {
  width: min(450px, 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.support-box h3 {
  margin: 0;
  font-family: var(--font-title);
}

.support-box p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.support-status {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.policy-shell {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.policy-content {
  white-space: pre-wrap;
  color: var(--muted);
}

.auth-shell {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.auth-shell h2 {
  margin: 0;
  font-family: var(--font-title);
}

.auth-shell p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

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

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatGentle {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

.float-gentle {
  animation: floatGentle 5.4s ease-in-out infinite;
}

@media (max-width: 1040px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 0.62rem);
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.72rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.68rem 0.72rem;
  }

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

  .theme-toggle {
    order: 3;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 3.4rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }

  .split,
  .card-grid.three,
  .card-grid.two,
  .form-grid,
  .contact-grid,
  .stat-grid,
  .footer-grid,
  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .notice,
  .download-item {
    align-items: flex-start;
  }
}
