:root {
  color-scheme: dark;
  --bg: #0b0f19;
  --ink: #eef1f6;
  --muted: #9aa6b8;
  --faint: #5c6577;
  --line: rgba(184, 198, 216, 0.12);
  --line-soft: rgba(184, 198, 216, 0.04);
  --accent: #c9a55a;
  --blue: #3b6ae5;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(6, 8, 14, 0.45), rgba(11, 15, 25, 0) 34%),
    #0b0f19;
}

.starfield,
.grid,
.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.starfield {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.grid {
  z-index: 1;
  opacity: 0.48;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 70% at 50% 8%, #000 30%, transparent 80%);
}

.shade {
  z-index: 2;
  background:
    radial-gradient(70% 42% at 50% 108%, rgba(59, 106, 229, 0.12), transparent 66%),
    radial-gradient(80% 60% at 50% 120%, rgba(11, 15, 25, 0.76), transparent 55%);
}

.nav,
.hero-copy,
.footer {
  position: relative;
  z-index: 3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

.nav-cta,
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-cta {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(184, 198, 216, 0.2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
}

.nav-cta:hover,
.primary-cta:hover {
  transform: translateY(-1px);
}

.nav-cta:hover {
  border-color: rgba(184, 198, 216, 0.38);
}

.hero-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 32px 96px;
  text-align: center;
}

.hero-copy h1 {
  max-width: 1040px;
  margin: 0 0 30px;
  color: var(--ink);
  font-size: 78px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.break {
  display: block;
}

.market-line {
  display: inline;
}

.rotor {
  position: relative;
  display: inline-block;
  min-width: 5.92em;
  perspective: 760px;
  vertical-align: baseline;
}

.rotor-sizer {
  visibility: hidden;
  font-family: var(--font-serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
}

.rotor-word {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  opacity: 0;
  text-shadow: 0 0 42px rgba(201, 165, 90, 0.45);
  transform: rotateX(90deg);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  white-space: nowrap;
  animation: word-rotate 11.2s linear infinite both;
}

.rotor-word:nth-of-type(2) {
  animation-delay: 0s;
}

.rotor-word:nth-of-type(3) {
  animation-delay: 2.8s;
}

.rotor-word:nth-of-type(4) {
  animation-delay: 5.6s;
}

.rotor-word:nth-of-type(5) {
  animation-delay: 8.4s;
}

@keyframes word-rotate {
  0% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
  4%,
  22% {
    opacity: 1;
    transform: rotateX(0deg);
  }
  27%,
  100% {
    opacity: 0;
    transform: rotateX(90deg);
  }
}

.hero-copy p {
  max-width: 780px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.6;
  text-wrap: balance;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.primary-cta {
  min-height: 52px;
  gap: 10px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #0b0f19;
  font-size: 15px;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 14px 40px rgba(0, 0, 0, 0.45);
}

.primary-cta svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.primary-cta:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.52);
}

.email-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(184, 198, 216, 0.18);
  color: #7e889a;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.email-link:hover {
  border-color: rgba(184, 198, 216, 0.4);
  color: #cdd6e3;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
}

.not-found-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 32px 96px;
  text-align: center;
}

.not-found-code {
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.not-found-copy h1 {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 72px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.not-found-copy > p:not(.not-found-code) {
  max-width: 520px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 18.5px;
  line-height: 1.6;
  text-wrap: balance;
}

.not-found-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.investor-page {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  flex-direction: column;
  background: #0b0f19;
}

.investor-nav,
.investor-hero,
.investor-footer {
  position: relative;
  z-index: 3;
}

.investor-hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(260px, 0.48fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  width: min(1260px, calc(100% - 88px));
  margin: 0 auto;
  padding: 46px 0 78px;
}

.investor-copy {
  max-width: 430px;
}

.investor-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.investor-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 54px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: 0;
}

.investor-copy p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.video-stage {
  overflow: hidden;
  border: 1px solid rgba(184, 198, 216, 0.16);
  border-radius: 8px;
  background: rgba(238, 241, 246, 0.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 30px 80px rgba(0, 0, 0, 0.42);
}

.investor-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050810;
}

.video-stage--placeholder {
  display: grid;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(238, 241, 246, 0.06), rgba(238, 241, 246, 0.015)),
    #070b14;
}

.video-placeholder {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.placeholder-mark {
  width: 74px;
  height: 74px;
  color: rgba(238, 241, 246, 0.72);
}

.placeholder-mark circle {
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-opacity: 0.78;
}

.placeholder-mark .placeholder-core {
  fill: var(--accent);
  stroke: none;
}

.video-placeholder p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero-copy h1 {
    max-width: 860px;
    font-size: 68px;
  }

  .investor-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    width: min(920px, calc(100% - 64px));
    padding-top: 32px;
  }

  .investor-copy {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .nav {
    padding: 28px 30px;
  }

  .hero-copy {
    align-items: flex-start;
    justify-content: center;
    padding: 36px 40px 92px;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 560px;
    margin-bottom: 34px;
    font-size: 44px;
    line-height: 1.12;
  }

  .break {
    display: inline;
  }

  .hero-copy p {
    max-width: 420px;
    margin-bottom: 42px;
    font-size: 18px;
    line-height: 1.58;
    text-wrap: pretty;
  }

  .contact-stack {
    align-self: center;
  }

  .primary-cta {
    min-width: 224px;
    min-height: 58px;
    font-size: 17px;
  }

  .investor-hero {
    width: calc(100% - 48px);
    padding: 20px 0 64px;
  }

  .investor-copy h1 {
    font-size: 42px;
  }

  .investor-copy p:last-child {
    font-size: 17px;
  }

  .video-stage--placeholder {
    min-height: 220px;
  }

  .not-found-copy {
    align-items: flex-start;
    padding: 36px 40px 92px;
    text-align: left;
  }

  .not-found-copy h1 {
    max-width: 520px;
    font-size: 48px;
    line-height: 1.1;
  }

  .not-found-copy > p:not(.not-found-code) {
    max-width: 420px;
    font-size: 18px;
    text-wrap: pretty;
  }

  .not-found-actions {
    align-self: center;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .nav {
    padding: 28px 22px;
  }

  .brand {
    gap: 10px;
    font-size: 23px;
  }

  .nav-cta {
    min-height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }

  .hero-copy {
    padding: 30px 32px 88px;
  }

  .hero-copy h1 {
    max-width: 326px;
    font-size: 40px;
    line-height: 1.12;
  }

  .break,
  .market-line {
    display: block;
  }

  .hero-copy p {
    max-width: 326px;
    font-size: 18px;
  }

  .footer {
    padding: 22px 30px;
    font-size: 12px;
  }

  .not-found-copy {
    padding: 30px 32px 88px;
  }

  .not-found-copy h1 {
    max-width: 326px;
    font-size: 42px;
  }

  .not-found-copy > p:not(.not-found-code) {
    max-width: 326px;
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .nav {
    padding: 28px 26px;
  }

  .brand {
    font-size: 20px;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-copy {
    align-items: center;
    padding: 24px 26px 82px;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 300px;
    font-size: 38px;
    line-height: 1.12;
  }

  .rotor {
    display: block;
    min-width: 0;
    min-height: 1.08em;
  }

  .rotor-word {
    right: 0;
    left: 0;
  }

  .hero-copy p {
    max-width: 300px;
    margin-bottom: 36px;
    font-size: 17px;
    line-height: 1.58;
  }

  .contact-stack {
    align-self: center;
  }

  .not-found-copy {
    align-items: center;
    padding: 24px 26px 82px;
    text-align: center;
  }

  .not-found-copy h1 {
    max-width: 300px;
    font-size: 40px;
  }

  .not-found-copy > p:not(.not-found-code) {
    max-width: 300px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .rotor {
    min-width: 5.92em;
  }

  .rotor-word {
    animation: none;
  }

  .rotor-word:nth-of-type(3) {
    opacity: 1;
    transform: none;
  }
}
