:root {
  color-scheme: dark;
  --bg: #030507;
  --bg-soft: #0a0f17;
  --card: rgba(6, 10, 17, 0.6);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #97a3ba;
  --accent: #9cf5df;
  --accent-strong: #7087ff;
  --font-sans: "Space Grotesk", "Helvetica Neue", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.25vw, 19px);
  background: linear-gradient(135deg, #010204, #050812 60%, #020305 100%);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.65;
}

::selection {
  background: rgba(156, 245, 223, 0.3);
  color: #050608;
}

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

.page {
  position: relative;
  padding: 24px clamp(32px, 6vw, 72px) 64px;
}

.page--home {
  position: relative;
}

.page--home::before,
.page--home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.page--home::before {
  background: radial-gradient(circle at 30% 20%, rgba(112, 135, 255, 0.18), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(107, 242, 216, 0.15), transparent 40%);
  filter: blur(20px);
}

.page--home::after {
  background: linear-gradient(
      120deg,
      rgba(1, 4, 12, 0.7),
      rgba(5, 9, 18, 0.4) 40%,
      rgba(1, 3, 8, 0.8)
    ),
    linear-gradient(
      90deg,
      rgba(112, 135, 255, 0.15),
      rgba(107, 242, 216, 0.05),
      rgba(10, 18, 36, 0.8)
    );
  mix-blend-mode: screen;
  opacity: 0.75;
}

main {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.signal-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen;
}

.nav {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 5, 7, 0.8);
  backdrop-filter: blur(18px);
}

.page--home .nav {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 25px 60px rgba(5, 8, 15, 0.35);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.nav__logo {
  font-weight: 700;
  letter-spacing: 0.35em;
  background: linear-gradient(120deg, #9cf5df, #7087ff, #9cf5df);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-text 3.5s linear infinite;
}

@keyframes shimmer-text {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.nav__links {
  display: inline-flex;
  gap: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav__links a {
  padding-bottom: 0.25rem;
  color: var(--muted);
  position: relative;
}

.nav__links a.is-active::after,
.nav__links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.chip__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.4;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero {
  margin: 3rem auto 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: rgba(5, 8, 15, 0.55);
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 45px 120px rgba(5, 8, 15, 0.45);
}

.hero__content h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.hero__content p {
  margin: 0.8rem 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05em;
}

.hero__punch {
  color: var(--text);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #05070d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.button--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  letter-spacing: 0.12em;
}

.button--solid {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent));
  color: #05070d;
  width: fit-content;
}

.nav__cta {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.footer {
  width: min(1100px, 100%);
  margin: 4rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.contact {
  margin: 4rem auto 0;
  padding: clamp(1.75rem, 3vw, 3rem);
  border: 1px solid rgba(156, 245, 223, 0.2);
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(6, 10, 17, 0.75), rgba(5, 7, 11, 0.55));
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 45px 120px rgba(5, 8, 15, 0.4);
}

.contact__content {
  flex: 1 1 260px;
  min-width: 240px;
}

.contact__form {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9em;
}

.input-field span {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

.input-field input,
.input-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  background: rgba(3, 5, 9, 0.75);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.input-field--full {
  width: 100%;
}

.input-field textarea {
  resize: vertical;
  min-height: 140px;
}

.input-field input:focus,
.input-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 10px 45px rgba(156, 245, 223, 0.18);
  transform: translateY(-2px);
}

.contact__status {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0;
}

.contact__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact--overlay {
  position: relative;
  z-index: 2;
  width: min(1060px, 100%);
  margin-top: 3rem;
  background: linear-gradient(150deg, rgba(6, 10, 17, 0.9), rgba(8, 12, 20, 0.7));
  border-color: rgba(255, 255, 255, 0.15);
}

/* MEMG page */
.page--memg {
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 80px;
}

.page--memg main {
  width: min(1060px, 100%);
  position: relative;
  z-index: 2;
}

.page--memg .nav {
  position: sticky;
  top: 16px;
  background: rgba(3, 5, 7, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
}

.nav--overlay {
  width: min(1060px, 100%);
}

.memg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) brightness(0.92);
  opacity: 0;
}

.memg-video.is-active {
  opacity: 1;
}

.memg-video__veil {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 4, 7, 0.45) 0%,
    rgba(2, 4, 7, 0.6) 45%,
    rgba(2, 4, 7, 0.75) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.memg-stack {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.memg-section {
  background: rgba(6, 10, 17, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 35px 80px rgba(3, 5, 7, 0.35);
}

.memg-section--intro {
  flex-direction: column;
  gap: 1rem;
}

.memg-section--intro h1 {
  text-align: center;
  letter-spacing: 0.25em;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.memg-section--specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: rgba(6, 10, 17, 0.35);
}

.spec__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.spec__value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
}

.memg-section--narrative {
  align-items: center;
  justify-content: space-between;
}

.memg-callout {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: rgba(3, 5, 7, 0.5);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.4;
}

.memg-section--story {
  flex-direction: column;
}

.memg-section__title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.memg-section__title--center {
  text-align: center;
}

.memg-section__title--center h1,
.memg-section__title--center h2,
.memg-section__title--center p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.memg-section__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.02em;
  color: var(--muted);
}

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

.story-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(7, 11, 18, 0.55);
  position: relative;
  overflow: hidden;
}

.story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(112, 135, 255, 0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.story-card:hover::after {
  opacity: 1;
}

.story-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.story-card--inline {
  background: rgba(2, 4, 7, 0.5);
  border-style: dashed;
}

.story-note {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(3, 5, 9, 0.65);
  box-shadow: 0 20px 60px rgba(5, 8, 15, 0.35);
  color: var(--muted);
}

.whatif-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.whatif__display {
  width: 100%;
}

.whatif__sentence {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.whatif__lead {
  font-weight: 600;
  color: var(--text);
  transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

.whatif__dynamic {
  display: inline;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease);
}

.whatif__dynamic.is-final {
  color: var(--text);
  text-shadow: 0 0 25px rgba(107, 242, 216, 0.6);
}

.whatif__lead.is-final {
  color: var(--text);
  text-shadow: 0 0 20px rgba(107, 242, 216, 0.6);
}
.whatif__lines {
  display: none;
}

.memg-questions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.memg-questions li {
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 14, 25, 0.55);
  border-radius: 16px;
}

.memg-questions__highlight {
  border-color: rgba(156, 245, 223, 0.4);
  background: linear-gradient(130deg, rgba(112, 135, 255, 0.25), rgba(9, 14, 25, 0.6));
  color: var(--text);
  box-shadow: 0 20px 60px rgba(112, 135, 255, 0.25);
}

.memg-questions__highlight strong {
  font-size: 1.1em;
  letter-spacing: 0.05em;
}

.story-grid--band {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.story-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-card--flow {
  border-left: 2px solid rgba(112, 135, 255, 0.3);
}

.memg-emphasis {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(130deg, rgba(112, 135, 255, 0.2), rgba(9, 14, 25, 0.5));
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.memg-highlight {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.memg-highlight span {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.15em;
  color: var(--text);
}

.binary-options {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.binary-options__item {
  flex: 1 1 220px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  background: rgba(7, 11, 18, 0.7);
  box-shadow: 0 20px 60px rgba(5, 8, 15, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
  min-height: clamp(170px, 22vw, 230px);
}

.binary-options__item span {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.binary-options__item strong {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

.binary-options__item--wearable {
  border-color: rgba(112, 135, 255, 0.7);
  box-shadow: 0 30px 80px rgba(112, 135, 255, 0.3);
}

.binary-options__item--accurate {
  border-color: rgba(107, 242, 216, 0.7);
  box-shadow: 0 30px 80px rgba(107, 242, 216, 0.25);
}

.binary-options__divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.85;
}

.binary-options__divider::before,
.binary-options__divider::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.memg-section--band .memg-section__body p:last-child {
  color: var(--text);
  font-weight: 600;
}

.memg-band__body {
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.memg-band__stage {
  position: sticky;
  top: clamp(96px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1;
  padding-bottom: 1.5rem;
}

.memg-band__media {
  position: relative;
  z-index: 1;
}

.memg-band__frame {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  box-shadow: 0 45px 90px rgba(2, 4, 9, 0.55);
  background: radial-gradient(circle at 30% 20%, rgba(112, 135, 255, 0.25), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(107, 242, 216, 0.3), transparent 45%),
    rgba(5, 8, 15, 0.92);
}

.memg-band__video {
  display: block;
  width: 100%;
  height: clamp(320px, 52vw, 540px);
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.memg-band__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 4, 8, 0.25), rgba(5, 10, 16, 0.45));
  mix-blend-mode: screen;
}

.memg-section--band .story-flow {
  position: relative;
  z-index: 2;
  margin-top: 0;
  gap: 1.5rem;
}

.memg-band__spacer {
  height: clamp(520px, 55vh, 800px);
}

.memg-section--band .story-card--flow {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.memg-section--band .story-card--flow.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.memg-section--outro {
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  align-items: center;
}

.footer--overlay {
  position: relative;
  z-index: 2;
  border-top-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .page {
    padding: 16px 18px 56px;
  }

  .nav {
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 32px;
    padding: 0.85rem 1.25rem;
  }

  .nav__links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 1.75rem;
  }

  .memg-section {
    padding: 1.25rem;
    border-radius: 20px;
    gap: 1.25rem;
  }

  .memg-section__body {
    font-size: 1rem;
  }

  .memg-section__title h1,
  .memg-section__title h2 {
    letter-spacing: 0.12em;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .binary-options {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .binary-options__divider {
    display: flex;
    width: 100%;
    margin: 0.35rem 0;
    letter-spacing: 0.5em;
  }

  .binary-options__divider::before,
  .binary-options__divider::after {
    flex: 1;
    max-width: 80px;
  }

  .binary-options__item {
    width: auto;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem;
    flex: initial;
    min-height: clamp(210px, 48vw, 260px);
    width: 100%;
  }

  .story-card {
    padding: 1.1rem;
  }

  .memg-section--narrative {
    flex-direction: column;
  }

  .whatif__sentence {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .memg-band__stage {
    top: clamp(72px, 10vh, 110px);
  }

  .memg-band__frame {
    border-radius: 24px;
  }

  .memg-band__video {
    height: clamp(240px, 70vw, 440px);
  }

  .memg-band__spacer {
    height: clamp(460px, 70vh, 860px);
  }

  .contact {
    padding: 1.25rem;
    flex-direction: column;
  }

  .contact__content,
  .contact__form {
    flex: 1 1 100%;
  }

  .contact__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .memg-questions li {
    flex-direction: column;
  }

  .input-field input,
  .input-field textarea {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 14px 14px 48px;
  }

  .nav {
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .memg-section {
    padding: 1rem;
    border-radius: 18px;
  }

  .whatif__sentence {
    font-size: clamp(1.1rem, 7vw, 1.6rem);
    line-height: 1.35;
  }

  .story-card {
    padding: 1rem;
  }

  .memg-band__video {
    height: clamp(220px, 78vw, 380px);
  }

  .memg-band__stage {
    top: clamp(64px, 12vh, 96px);
  }

  .contact {
    padding: 1rem;
  }
}

