@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --bg: #050f17;
  --bg-2: #08202c;
  --green: #22e58b;
  --blue: #3ea6ff;
  --teal: #19d3c5;
  --text: #eaf4fa;
  --muted: #a9bfcf;
  --card: rgba(8, 26, 38, 0.74);
  --card-border: rgba(94, 200, 210, 0.22);
}

/* overflow-x is set on html only: on both html and body it breaks position: sticky */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--bg);
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layers: bg 0, canvas 1, content 2, nav 100 ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(62, 166, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 166, 255, 0.055) 1px, transparent 1px),
    linear-gradient(160deg, #04121b 0%, #061a26 45%, #072a2f 100%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
}

#scale-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.hero,
.cards-section,
.cta,
.signal-line {
  position: relative;
  z-index: 2;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 22px 0;
  background: rgba(5, 15, 23, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(94, 200, 210, 0.1);
  transition: padding 250ms ease, background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  transition: font-size 250ms ease;
}

.site-nav .logo svg {
  width: 30px;
  height: 30px;
  transition: width 250ms ease, height 250ms ease;
}

.site-nav .logo .scale {
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav .logo .tld {
  color: var(--muted);
  font-weight: 500;
}

#buy_now_link {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #04121b;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 0 0 rgba(34, 229, 139, 0);
  transition: padding 250ms ease, font-size 250ms ease, transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

#buy_now_link:hover {
  color: #04121b;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(34, 229, 139, 0.35);
}

#buy_now_link:focus-visible,
#buy_now_bottom:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.site-nav.nav-scrolled {
  padding: 10px 0;
  background: rgba(5, 15, 23, 0.94);
  border-bottom-color: rgba(94, 200, 210, 0.22);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.site-nav.nav-scrolled .logo {
  font-size: 1.25rem;
}

.site-nav.nav-scrolled .logo svg {
  width: 22px;
  height: 22px;
}

.site-nav.nav-scrolled #buy_now_link {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12vh 24px 8vh;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 2px 30px rgba(5, 15, 23, 0.9), 0 0 2px rgba(5, 15, 23, 0.6);
}

.hero h1 span {
  display: block;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--green) 0%, var(--teal) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero p {
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-shadow: 0 1px 18px rgba(5, 15, 23, 0.95);
}

/* ---------- Cards ---------- */

.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4vh 24px 10vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cards-section .card {
  display: block;
  padding: 38px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.cards-section .card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 229, 139, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 229, 139, 0.12);
}

.cards-section .card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 229, 139, 0.18), rgba(62, 166, 255, 0.18));
  border: 1px solid rgba(94, 200, 210, 0.3);
}

.cards-section .card .icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cards-section .card h3 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

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

/* ---------- CTA ---------- */

.cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6vh 24px 18vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.cta .signal-status {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--green);
  text-shadow: 0 0 18px rgba(34, 229, 139, 0.45);
}

#buy_now_bottom {
  display: inline-block;
  padding: 22px 52px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #04121b;
  text-decoration: none;
  background: linear-gradient(90deg, var(--green), var(--blue));
  box-shadow: 0 10px 40px rgba(34, 229, 139, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

#buy_now_bottom:hover {
  color: #04121b;
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 16px 52px rgba(62, 166, 255, 0.45);
}

#buy_now_bottom:active {
  transform: translateY(0) scale(0.99);
}

.cta .signal-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Footer ---- */
/* Footer markup is injected via SSI and is not edited per-domain. Kept opaque,
   above the fixed background and canvas, with symmetric compact padding. */

footer {
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  background: #050f17;
  color: var(--muted);
  border-top: 1px solid var(--card-border);
}

footer div,
footer p,
footer span {
  margin: 4px 0;
  color: var(--muted);
}

footer a {
  color: var(--green);
  text-decoration: underline;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .site-nav {
    padding: 14px 0;
  }
  .site-nav .nav-inner {
    padding: 0 16px;
  }
  .site-nav .logo {
    font-size: 1.25rem;
    gap: 8px;
  }
  .site-nav .logo svg {
    width: 24px;
    height: 24px;
  }
  #buy_now_link {
    padding: 9px 16px;
    font-size: 0.85rem;
  }
  .site-nav.nav-scrolled {
    padding: 8px 0;
  }
  .site-nav.nav-scrolled .logo {
    font-size: 1.1rem;
  }
  .site-nav.nav-scrolled .logo svg {
    width: 20px;
    height: 20px;
  }
  .site-nav.nav-scrolled #buy_now_link {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
  .hero {
    padding: 10vh 18px 6vh;
  }
  .cards-section {
    padding: 3vh 16px 8vh;
  }
  .cards-section .card {
    padding: 30px 26px;
  }
  .cta {
    padding: 4vh 16px 14vh;
  }
  #buy_now_bottom {
    padding: 18px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .site-nav,
  .site-nav .logo,
  .site-nav .logo svg,
  #buy_now_link {
    transition: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .cards-section .card:hover,
  #buy_now_link:hover,
  #buy_now_bottom:hover {
    transform: none;
  }
}
