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

:root {
  --bg: #050816;
  --bg-alt: #0c1020;
  --card: #11172c;
  --border: rgba(255, 255, 255, 0.05);
  --accent: #42e6ff;
  --accent-soft: rgba(66, 230, 255, 0.25);
  --text: #f5f7ff;
  --muted: #9ea5c7;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.7);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1b1c3a 0, #050816 45%, #02030b 100%);
}

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

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

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

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.95),
    rgba(5, 8, 22, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--accent);
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 6px #00eaff);
}

.site-header .logo {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

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

.nav a:hover {
  color: var(--accent);
}

/* MOBILE NAV */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 22, 0.65);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: 0.18s ease-out;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.nav-toggle-icon {
  position: relative;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 2px;
  display: block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 2px;
  transition: 0.18s ease-out;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

body.menu-open .nav-toggle-icon {
  background: transparent;
}

body.menu-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

body.menu-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 22, 0.92);
  backdrop-filter: blur(18px);
}

.mobile-menu-inner {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0 1.1rem;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.86);
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.mobile-menu .mobile-cta {
  width: 100%;
  justify-content: center;
  background: rgba(5, 8, 22, 0.7);
}

@media (max-width: 860px) {
  .desktop-nav,
  .desktop-cta {
    display: none;
  }

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

  .header-inner {
    gap: 0.75rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #42e6ff, #7a5cff);
  color: #050816;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--muted);
  background: rgba(5, 8, 22, 0.85);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* FORMS */

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.cta-input {
  flex: 1 1 210px;
  min-width: 0;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 8, 22, 0.95);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.cta-input::placeholder {
  color: var(--muted);
}

.cta-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 12px 30px rgba(0, 0, 0, 0.7);
}

/* HERO */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 2.9vw + 1rem, 3rem);
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

.subtitle {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.4rem;
}

.hero-image {
  background: radial-gradient(circle at top, rgba(66, 230, 255, 0.1), transparent 50%);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-image img {
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-caption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* SECTIONS */

.section {
  padding: 2.8rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #0c1020, #050816);
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* GRID / CARDS */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

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

.card-inline {
  max-width: 680px;
  margin: 0 auto;
}

.card-inline ul {
  padding-left: 1.1rem;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.disclosure {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  padding-top: 0.75rem;
}

/* FAQ */

.faq {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(66, 230, 255, 0.05), #070b18);
  padding: 1rem 1.1rem;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA BOX */

.cta-box {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.cta-box.in-view {
  opacity: 1;
  transform: translateY(0);
}

.cta-box p {
  max-width: 30rem;
  margin: 0 auto 1.2rem;
  color: var(--muted);
}

/* Inline form status under dev-updates form */
.form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status.error {
  color: #ff7a7a;
}

/* FOOTER */

.site-footer {
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #040614;
}

.footer-inner {
  text-align: center;
}

.footer-small {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-legal-link {
  font-size: 12px;
  opacity: 0.85;
  margin-left: 12px;
  text-decoration: none;
}

.footer-legal-link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* TOAST */

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;

  min-width: 220px;
  max-width: 360px;

  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.25;

  background: rgba(5, 8, 22, 0.95);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);

  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;

  /* Helps long messages */
  word-break: break-word;
}

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

.toast-success {
  border-color: rgba(66, 230, 255, 0.6);
}

.toast-error {
  border-color: rgba(255, 122, 122, 0.7);
}

/* Mobile: full-width, easier to read */
@media (max-width: 600px) {
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    border-radius: 14px;
  }
}

/* RESPONSIVE */

@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    order: -1;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .nav {
    display: none; /* keep header simple on mobile */
  }

  .btn-outline {
    font-size: 0.8rem;
    padding-inline: 0.9rem;
  }
}

@media (max-width: 600px) {
  .toast {
    left: 1rem;
    right: 1rem;
    border-radius: 12px;
  }
}

/* Hide honeypot field */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Optional: visual state while submitting */
.js-gammoridin-form.is-submitting .btn-primary {
  opacity: 0.7;
  pointer-events: none;
}

/* =========================
   Consent checkbox (global)
   ========================= */

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.consent-group .consent-checkbox {
  margin-top: 0.22rem; /* good baseline for multi-line text */
  flex: 0 0 auto;
}

/* =========================
   DOWNLOAD section polish
   (supports .cta-bullets, .micro-mission, .cta-small)
   ========================= */

#download.section {
  padding: 2.8rem 0;
}

@media (max-width: 600px) {
  #download.section {
    padding: 2.1rem 0;
  }
}

#download .cta-box h1 {
  margin-bottom: 0.7rem;
}

/* Override generic cta-box paragraph sizing just for download */
#download .cta-box p {
  max-width: 40rem;
  margin: 0 auto 0.9rem;
  line-height: 1.45;
}

#download .cta-box p:first-of-type {
  font-size: 1.02rem;
}

/* Bullets */
#download .cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto 0.95rem;
  max-width: 520px;
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

#download .cta-bullets li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#download .cta-bullets li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

#download .cta-bullets strong {
  color: var(--text);
}

/* Tester mission */
#download .micro-mission {
  max-width: 520px;
  margin: 0 auto 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(66, 230, 255, 0.06);
  border: 1px solid rgba(66, 230, 255, 0.18);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: left;
}

#download .micro-mission strong {
  color: var(--text);
}

#download .cta-small {
  max-width: 520px;
  margin: 0 auto 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* DOWNLOAD form layout (stacked/centered) */
#download .cta-form.cta-form--stacked {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

#download .cta-form.cta-form--stacked .cta-input {
  width: 100%;
  max-width: 520px;
  flex: none;
}

#download .cta-form.cta-form--stacked .btn {
  width: 100%;
  max-width: 520px;
}

/* Download consent: keep left-aligned + perfect checkbox placement */
#download .cta-form.cta-form--stacked .consent-group {
  width: 100%;
  max-width: 520px;
  align-items: flex-start;
  text-align: left;
}

#download .hero-note {
  max-width: 520px;
  margin: 0.85rem auto 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
