:root {
  color-scheme: dark;
  --black: #000;
  --white: #f5f7ff;
  --muted: #9aa3ba;
  --blue: #235cff;
  --violet: #7438ff;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  overflow: hidden;
  color: var(--white);
  font-family: "Inter", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 50%;
  width: min(1240px, calc(100% - 40px));
  height: 72px;
  padding: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(35, 92, 255, .36), rgba(112, 124, 173, .13) 18%, rgba(112, 124, 173, .13) 82%, rgba(116, 56, 255, .36));
  opacity: .55;
  pointer-events: none;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 500 16px "Space Grotesk", sans-serif;
  letter-spacing: -.018em;
}

.header-symbol {
  width: 46px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
}

.header-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  transform: scale(1.22);
  filter: brightness(1.18) contrast(1.08) saturate(1.12) drop-shadow(0 0 10px rgba(63, 78, 255, .48));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 13px;
}

nav a {
  padding: 8px 0;
  border-radius: 0;
  transition: color .25s ease;
}
nav a:hover,
nav a:focus-visible {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  transition: color .25s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #9db4ff;
}

.cta-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(151, 163, 211, .28);
  border-radius: 50%;
  color: #dfe5ff;
  font-size: 11px;
  box-shadow: inset 0 0 14px rgba(55, 78, 255, .07);
}

.menu-button {
  display: none;
  color: inherit;
  border: 0;
  background: transparent;
}

.brand-stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(24, 31, 70, .2) 0%, rgba(4, 5, 10, .15) 35%, transparent 67%),
    #000;
}

.brand-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent 0%, rgba(35, 92, 255, .028) 47%, rgba(116, 56, 255, .035) 53%, transparent 100%);
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -2;
  width: min(42vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(145px);
  opacity: .08;
  pointer-events: none;
}

.ambient-blue { left: 8%; top: 16%; background: var(--blue); }
.ambient-violet { right: 8%; bottom: 12%; background: var(--violet); }

.grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .08;
  background-image: linear-gradient(rgba(118, 128, 177, .06) 1px, transparent 1px);
  background-size: 100% 92px;
  mask-image: linear-gradient(transparent 8%, black 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(transparent 8%, black 45%, transparent 92%);
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
  width: min(92vw, 1060px);
  min-height: 220px;
  padding: 30px 42px;
  border-top: 1px solid rgba(128, 140, 192, .09);
  border-bottom: 1px solid rgba(128, 140, 192, .09);
  animation: lockupIn 1s cubic-bezier(.2,.75,.2,1) both;
}

.brand-lockup::before,
.brand-lockup::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 22%;
  top: -1px;
  pointer-events: none;
}

.brand-lockup::before {
  left: 28%;
  background: linear-gradient(90deg, transparent, rgba(35, 92, 255, .48));
}

.brand-lockup::after {
  left: 50%;
  background: linear-gradient(90deg, rgba(35, 92, 255, .48), rgba(116, 56, 255, .42), transparent);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 28px);
  min-width: 0;
}

.blue-bar {
  width: 5px;
  height: clamp(54px, 7vw, 76px);
  flex: 0 0 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #35a7ff 0%, var(--blue) 58%, #663dff 100%);
  box-shadow: 0 0 12px rgba(35, 92, 255, .78), 0 0 32px rgba(48, 72, 255, .32);
}

h1 {
  margin: 0;
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.018em;
  color: var(--white);
  text-shadow: 0 0 34px rgba(75, 83, 255, .16);
}

.separator {
  width: 1px;
  height: 82px;
  flex: 0 0 1px;
  background: linear-gradient(transparent, rgba(131, 142, 189, .24), transparent);
}

.symbol-window {
  position: relative;
  width: clamp(190px, 22vw, 270px);
  height: clamp(130px, 15vw, 184px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.symbol-glow {
  position: absolute;
  width: 72%;
  height: 48%;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  filter: blur(28px);
  opacity: .2;
  animation: breathe 6s ease-in-out infinite;
}

.brand-symbol {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.04) saturate(1.06) drop-shadow(0 0 13px rgba(62, 72, 255, .2));
}

@keyframes lockupIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes breathe {
  0%, 100% { opacity: .14; transform: scale(.9); }
  50% { opacity: .28; transform: scale(1.08); }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    height: 64px;
  }

  nav { display: none; }

  .nav-cta {
    display: inline-flex;
    margin-left: auto;
    margin-right: 2px;
    font-size: 11px;
  }

  .cta-arrow {
    width: 25px;
    height: 25px;
  }

  .menu-button {
    display: grid;
    gap: 5px;
    padding: 12px;
  }

  .menu-button span {
    display: block;
    width: 20px;
    height: 1px;
    background: #ccd2e5;
  }

  .site-header.menu-open nav {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 70px;
    left: 0;
    right: 0;
    gap: 22px;
    padding: 24px;
    border: 1px solid rgba(144, 155, 205, .16);
    border-radius: 16px;
    background: rgba(7, 8, 15, .97);
  }

  .brand-lockup {
    width: calc(100% - 34px);
    min-height: 300px;
    padding: 38px 24px;
    flex-direction: column;
    gap: 18px;
  }

  .separator { width: min(64vw, 290px); height: 1px; background: linear-gradient(90deg, transparent, rgba(131, 142, 189, .24), transparent); }
  .symbol-window { width: 190px; height: 128px; }
  .wordmark { gap: 16px; }
  .blue-bar { width: 4px; flex-basis: 4px; height: 44px; }
  h1 { font-size: clamp(2rem, 10vw, 3.35rem); }
}

@media (max-width: 390px) {
  .brand-lockup { padding-inline: 14px; }
  .wordmark { gap: 12px; }
  h1 { font-size: 1.95rem; }
  .header-brand { font-size: 13px; }
  .header-symbol { width: 40px; height: 34px; flex-basis: 40px; }
  .header-actions { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-lockup,
  .symbol-glow { animation: none; }
}
