:root {
  --bg: #080a10;
  --bg-soft: #10141f;
  --bg-panel: rgba(18, 22, 34, 0.84);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f2e8;
  --muted: #a9a8b7;
  --gold: #f2b84b;
  --gold-2: #ffdf73;
  --orange: #f0782e;
  --green: #4ef0a6;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(242, 184, 75, 0.14), transparent 28rem),
    radial-gradient(circle at 80% 15%, rgba(240, 120, 46, 0.13), transparent 24rem),
    linear-gradient(180deg, #070910 0%, #0b0f19 42%, #070910 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 82%);
  z-index: -1;
}

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

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

button,
input {
  font: inherit;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #080a10;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  box-shadow: 0 0 60px rgba(242, 184, 75, 0.35);
  animation: float 1.5s ease-in-out infinite;
}

.loader-mark img {
  width: 72px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 10, 16, 0.64);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
  background: rgba(8, 10, 16, 0.92);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--gold), var(--orange));
  padding: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.nav a,
.nav-login {
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active,
.nav-login:hover {
  color: #111217;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 42px;
  height: 42px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 6px auto;
  background: var(--text);
  transition: 0.2s ease;
}

.section {
  padding: 96px max(22px, calc((100vw - var(--max)) / 2));
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 44px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,10,16,0.92) 0%, rgba(8,10,16,0.72) 54%, rgba(8,10,16,0.88) 100%),
    radial-gradient(circle at 70% 36%, rgba(242, 184, 75, 0.28), transparent 22rem),
    url("data:image/svg+xml,%3Csvg width='1400' height='820' viewBox='0 0 1400 820' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2323293d'/%3E%3Cstop offset='1' stop-color='%230c0f18'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='1400' height='820'/%3E%3Cpath d='M0 600 C180 510 270 660 430 560 C620 440 720 590 900 470 C1080 350 1220 450 1400 360 L1400 820 L0 820Z' fill='%23141d2c'/%3E%3Cpath d='M100 505 L180 340 L250 505Z M330 520 L420 260 L520 520Z M1120 505 L1205 310 L1310 505Z' fill='%23182030'/%3E%3Ccircle cx='1030' cy='180' r='72' fill='%23f2b84b' opacity='.72'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-content h1 {
  margin: 14px 0 20px;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-shadow: 0 10px 45px rgba(0,0,0,0.45);
}

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

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #16120a;
  background: linear-gradient(135deg, var(--gold-2), var(--gold), var(--orange));
  box-shadow: 0 12px 34px rgba(242, 184, 75, 0.25);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.btn-dark,
.btn-copy {
  color: var(--text);
  background: #151a26;
  border-color: var(--line);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 42px;
}

.hero-meta div,
.panel-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta strong {
  color: var(--gold-2);
  font-size: 28px;
}

.hero-meta span,
.panel-grid span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.hero-panel,
.download-card,
.guide-shell {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 24px;
}

.status-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.status-top small {
  color: var(--muted);
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(78, 240, 166, 0.6);
  animation: pulse 1.5s infinite;
}

.mini-map {
  position: relative;
  min-height: 310px;
  margin: 24px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(242, 184, 75, 0.18);
  background:
    radial-gradient(circle at 30% 30%, rgba(242,184,75,.22), transparent 7rem),
    radial-gradient(circle at 80% 70%, rgba(78,240,166,.15), transparent 9rem),
    linear-gradient(135deg, #111725, #080a10);
}

.mini-map::before,
.mini-map::after {
  content: "";
  position: absolute;
  inset: auto -30px -90px -30px;
  height: 210px;
  background: #161d2b;
  transform: rotate(-7deg);
  border-radius: 50% 50% 0 0;
}

.mini-map::after {
  inset: 72px -50px auto auto;
  width: 240px;
  height: 190px;
  background: rgba(242, 184, 75, 0.1);
  transform: rotate(20deg);
}

.node {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 24px var(--gold);
}

.node-1 { left: 18%; top: 28%; }
.node-2 { left: 55%; top: 18%; }
.node-3 { left: 72%; top: 54%; }
.node-4 { left: 34%; top: 70%; }

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

.panel-grid strong {
  display: block;
  margin-top: 4px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2,
.download-card h2,
.guide-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-head p,
.download-card p,
.guide-copy p,
.card p,
.news-card p,
.step p {
  color: var(--muted);
  line-height: 1.7;
}

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

.card,
.news-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  padding: 24px;
  min-height: 250px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover,
.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242, 184, 75, 0.45);
  background: linear-gradient(180deg, rgba(242,184,75,0.12), rgba(255,255,255,0.035));
}

.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(242,184,75,0.13);
  color: var(--gold-2);
  font-size: 28px;
  margin-bottom: 24px;
}

.card h3,
.news-card h3,
.step h3 {
  margin: 0 0 10px;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 54px);
  background:
    radial-gradient(circle at right, rgba(242,184,75,0.18), transparent 20rem),
    var(--bg-panel);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter.active,
.filter:hover {
  color: #14100a;
  border-color: transparent;
  background: var(--gold);
}

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

.news-card.hide {
  display: none;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #15100a;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.news-card time {
  display: block;
  margin-top: 24px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

.guide-shell {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  padding: clamp(28px, 5vw, 52px);
}

.timeline {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.step span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #15100a;
  background: var(--gold);
  font-weight: 900;
}

.step.active {
  border-color: rgba(242,184,75,0.42);
  background: rgba(242,184,75,0.1);
}

.footer {
  padding: 42px max(22px, calc((100vw - var(--max)) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.footer img {
  width: 38px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 22px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: min(100%, 430px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #111722;
  box-shadow: var(--shadow);
}

.modal-card img {
  width: 62px;
  height: 62px;
  padding: 8px;
  border-radius: 18px;
  background: var(--gold);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 26px;
}

.modal form {
  display: grid;
  gap: 14px;
}

.modal label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.modal input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080b12;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.modal input:focus {
  border-color: rgba(242,184,75,0.5);
}

.modal-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--gold);
  color: #15100a;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

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

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

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

@keyframes pulse {
  70% { box-shadow: 0 0 0 14px rgba(78, 240, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(78, 240, 166, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .hero,
  .download-card,
  .guide-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

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

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 86px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8,10,16,0.96);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a,
  .nav-login {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .hero-meta,
  .feature-grid,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 74px;
    padding-bottom: 74px;
  }
}


/* SEO FAQ section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.faq-grid details {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--gold-2);
  list-style: none;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "+";
  float: right;
  color: var(--text);
}

.faq-grid details[open] summary::after {
  content: "−";
}

.faq-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Full-ready content upgrades */
.feature-grid .card:nth-child(n+5) {
  min-height: 230px;
}
.news-card time {
  letter-spacing: .03em;
}
@media (min-width: 981px) {
  .features .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
