:root {
  --bg-0: #edf2f8;
  --bg-1: #f9fbff;
  --text: #111827;
  --muted: #5f6b82;
  --line: rgba(18, 30, 52, 0.06);
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --brand: #0f66d7;
  --brand-2: #3ca3ff;
  --brand-3: #49ddff;
  --brand-deep: #083f91;
  --danger: #dc4a4a;
  --radius-xl: 32px;
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-s: 12px;
  --shadow-soft: 0 30px 90px rgba(13, 28, 55, 0.09);
  --shadow-float: 0 18px 42px rgba(15, 28, 52, 0.13);
  --container-max: 1480px;
  --container-pad: clamp(0.42rem, 1.15vw, 1.1rem);
  --container: min(var(--container-max), calc(100% - (var(--container-pad) * 2)));
  --vh: 1vh;
  --keyboard-offset: 0px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(1000px 560px at 8% -16%, rgba(118, 178, 255, 0.16), transparent 62%),
    radial-gradient(920px 520px at 96% 0%, rgba(111, 222, 255, 0.16), transparent 58%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.19) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.19) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000 34%, transparent 92%);
  z-index: -1;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

input,
select,
textarea,
button {
  font: inherit;
}

.page {
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  flex: 1;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 140;
  pointer-events: none;
  padding-top: max(0.5rem, env(safe-area-inset-top));
}

.topbar {
  pointer-events: auto;
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.7), rgba(244, 250, 255, 0.56));
  backdrop-filter: blur(16px) saturate(145%);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  padding: 0.6rem 0.9rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.topbar.is-scrolled {
  transform: translateY(-2px);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.82), rgba(244, 250, 255, 0.74));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  border: 0;
  padding: 0.18rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #5b6780;
  border-radius: 999px;
  padding: 0.46rem 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
}

.nav-links a:active {
  transform: scale(0.985);
}

.nav-links .feature-disabled {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.62);
  position: relative;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #1a243c;
  border-radius: 999px;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-toggle span {
  top: 20px;
}

.menu-toggle::before {
  top: 13px;
}

.menu-toggle::after {
  top: 27px;
}

body.nav-open .menu-toggle span {
  opacity: 0;
}

body.nav-open .menu-toggle::before {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(5, 13, 28, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

body.nav-open .mobile-nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #8cb2ff;
}

.btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0.72rem 1.18rem;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(134deg, var(--brand-2), var(--brand));
  box-shadow: 0 10px 20px rgba(13, 88, 184, 0.24);
}

.btn-primary:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn-secondary {
  color: #162238;
  background: rgba(16, 24, 40, 0.1);
}

.site-footer {
  width: var(--container);
  margin: 0 auto max(1rem, env(safe-area-inset-bottom));
  border-radius: var(--radius-m);
  border: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 0.78rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: #6a7387;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition: opacity 0.54s ease, transform 0.54s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: -42%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(112, 182, 255, 0.16), transparent 40%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.spotlight:hover::after {
  opacity: 1;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    left: 0.4rem;
    right: 0.4rem;
    top: max(4.4rem, calc(env(safe-area-inset-top) + 3.9rem));
    z-index: 135;
    display: grid;
    gap: 0.4rem;
    border-radius: 20px;
    padding: 0.58rem;
    background: rgba(255, 255, 255, 0.86);
    border: 0;
    box-shadow: var(--shadow-float);
    transform: translateY(-10px) scale(0.985);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .nav-links a {
    border-radius: 12px;
    padding: 0.76rem 0.84rem;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  :root {
    --container-pad: clamp(0.34rem, 2.3vw, 0.7rem);
  }

  .topbar {
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 0.9rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  :root {
    --container-pad: 0.28rem;
  }

  .topbar {
    padding: 0.62rem 0.72rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .btn {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
