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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background-color: #030707;
}

html {
  min-height: 100%;
  background:
    repeating-linear-gradient(
      98deg,
      rgba(90, 246, 186, 0.14) 0,
      rgba(90, 246, 186, 0.14) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(1000px 680px at 50% 6%, rgba(74, 222, 128, 0.2), transparent 65%),
    radial-gradient(920px 620px at 88% 88%, rgba(41, 212, 238, 0.1), transparent 64%),
    linear-gradient(165deg, var(--bg-0) 0%, #050a09 50%, #030707 100%);
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  background:
    repeating-linear-gradient(
      98deg,
      rgba(90, 246, 186, 0.14) 0,
      rgba(90, 246, 186, 0.14) 1px,
      transparent 1px,
      transparent 16px
    ),
    radial-gradient(1000px 680px at 50% 6%, rgba(74, 222, 128, 0.2), transparent 65%),
    radial-gradient(920px 620px at 88% 88%, rgba(41, 212, 238, 0.1), transparent 64%),
    linear-gradient(165deg, var(--bg-0) 0%, #050a09 50%, #030707 100%);
  overflow-x: hidden;
}

.tech-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(153, 197, 179, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 197, 179, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.09;
  mask-image: radial-gradient(90% 80% at 50% 30%, #fff 25%, transparent 100%);
  mix-blend-mode: screen;
}

.marketing-home .tech-grid {
  display: none;
}

.tech-grid::before,
.tech-grid::after {
  display: none;
}

.tech-grid::before {
  background: none;
}

.tech-grid::after {
  background: none;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.non-reactive-waves {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  min-height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.waves-canvas {
  display: none;
}

.wave-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130vw;
  height: 84vh;
  border-radius: 50%;
  filter: blur(54px);
  transform: translate(-50%, -50%);
}

.wave-glow-a {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.28), transparent 66%);
  animation: waveDriftA 20s ease-in-out infinite;
}

.wave-glow-b {
  background: radial-gradient(circle, rgba(41, 212, 238, 0.14), transparent 68%);
  animation: waveDriftB 26s ease-in-out infinite;
}

.non-reactive-waves::after {
  content: "";
  position: absolute;
  inset: -2svh -8vw -8svh -8vw;
  background:
    radial-gradient(55% 44% at 50% 48%, rgba(3, 7, 6, 0.48), rgba(3, 7, 6, 0.14) 60%, transparent 84%),
    linear-gradient(180deg, rgba(3, 8, 7, 0.2), rgba(3, 8, 7, 0.56));
}

.marketing-home .non-reactive-waves::before {
  content: "";
  position: absolute;
  inset: -4svh -16vw -10svh -16vw;
  background:
    repeating-linear-gradient(
      96deg,
      rgba(77, 231, 170, 0.22) 0,
      rgba(77, 231, 170, 0.22) 1px,
      transparent 1px,
      transparent 18px
    ),
    radial-gradient(70% 72% at 52% 24%, rgba(58, 210, 145, 0.18), transparent 72%);
  opacity: 0.86;
  filter: saturate(1.08);
}

.shell {
  width: 94vw;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 0 56px;
  position: relative;
  z-index: 3;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(10, 18, 15, 0.88), rgba(7, 12, 11, 0.76));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-panel);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-soft));
  color: var(--accent-ink);
  font: 800 14px/1 "Outfit", sans-serif;
  box-shadow: 0 8px 18px rgba(20, 85, 58, 0.38);
}

.brand-name {
  font: 700 20px/1 "Outfit", sans-serif;
  letter-spacing: -0.03em;
}

.brand-name .hl {
  color: var(--accent);
}

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

.top-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  opacity: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan-soft));
  transition: width var(--duration-fast) var(--ease-out);
}

.top-nav a:hover,
.top-nav a.active {
  color: #ffffff;
  opacity: 1;
}

.top-nav a:hover::after,
.top-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(12, 20, 18, 0.78);
  color: #d7efe5;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  border: 1px solid transparent;
  background: linear-gradient(140deg, var(--accent), var(--accent-soft));
  box-shadow: 0 8px 16px rgba(20, 85, 58, 0.28);
}

.hero {
  text-align: center;
  padding: 58px 0 24px;
}

.hero.compact {
  padding-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  background: rgba(8, 14, 13, 0.74);
  font-size: 12px;
  color: #bde5d3;
}

.hero h1 {
  margin: 16px auto 12px;
  max-width: 920px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(34px, 6.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 12px;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    filter var(--duration-fast) var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  left: -120%;
  top: -60%;
  width: 45%;
  height: 220%;
  transform: rotate(22deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  opacity: 0.28;
  transition: transform 700ms var(--ease-out), opacity 320ms ease;
}

.btn:hover {
  transform: translateY(-3px);
  filter: saturate(1.06);
}

.btn:hover::after {
  transform: translateX(215%) rotate(22deg);
  opacity: 0.4;
}

.btn-primary {
  color: var(--accent-ink);
  border-color: rgba(175, 239, 209, 0.62);
  background: linear-gradient(140deg, rgba(182, 255, 226, 0.9), rgba(97, 237, 165, 0.88));
  box-shadow:
    0 18px 32px rgba(20, 85, 58, 0.35),
    0 0 22px rgba(74, 222, 128, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
}

.btn-ghost {
  color: #d7efe5;
  background: linear-gradient(160deg, rgba(14, 23, 21, 0.88), rgba(10, 17, 15, 0.72));
}

.btn-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.1);
}

.micro {
  margin-top: 10px;
  color: #8eb4a5;
  font-size: 12px;
}

.section-block {
  padding: 36px 0;
}

.section-head {
  text-align: left;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -0.022em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.public-content-surface {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow-panel);
  padding: 18px;
}

.site-footer {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(149, 191, 173, 0.24);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #89a79b;
  font-size: 12px;
}

.site-footer a {
  color: #b2d8c8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #d7f2e6;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.reveal-on-scroll,
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px) scale(0.992);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    filter var(--duration-base) var(--ease-out);
}

.reveal-on-scroll.is-visible,
.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition-duration: 1ms !important;
}

@media (max-width: 920px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-wrap: wrap;
  }

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

  .top-nav {
    display: none;
    width: 100%;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(149, 191, 173, 0.22);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .topbar.nav-open .top-nav {
    display: flex;
  }

  .top-nav a {
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(149, 191, 173, 0.22);
    background: rgba(8, 14, 13, 0.56);
  }

.btn-nav {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 820px), (hover: none) {
  html,
  body {
    background-color: #030707;
    background:
      repeating-linear-gradient(
        98deg,
        rgba(90, 246, 186, 0.14) 0,
        rgba(90, 246, 186, 0.14) 1px,
        transparent 1px,
        transparent 16px
      ),
      radial-gradient(1000px 680px at 50% 6%, rgba(74, 222, 128, 0.2), transparent 65%),
      radial-gradient(920px 620px at 88% 88%, rgba(41, 212, 238, 0.1), transparent 64%),
      linear-gradient(165deg, var(--bg-0) 0%, #050a09 50%, #030707 100%);
  }

  .marketing-home .non-reactive-waves {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    overflow: visible;
  }

}
