@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-VariableFont.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-VariableFont.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand-core-navy: #0f172a;
  --brand-core-ink: #1c1f26;
  --brand-core-olive: #3b5b4a;
  --brand-core-gold: #c8a46b;
  --brand-core-ivory: #f4f1eb;

  --dark-bg: #07111f;
  --dark-bg-soft: #0b1a2b;
  --dark-panel: #0d2236;
  --dark-border: rgba(151, 191, 222, 0.14);
  --dark-border-strong: rgba(151, 191, 222, 0.22);
  --dark-text-primary: #f3f0ea;
  --dark-text-secondary: rgba(243, 240, 234, 0.78);
  --dark-text-muted: rgba(243, 240, 234, 0.56);
  --dark-accent-gold: #c8a46b;
  --dark-accent-gold-soft: #d8bb88;

  --page-max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--dark-bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark-text-primary);
  background:
    radial-gradient(circle at 76% 34%, rgba(60, 111, 151, 0.15), transparent 29rem),
    radial-gradient(circle at 18% 8%, rgba(200, 164, 107, 0.055), transparent 24rem),
    linear-gradient(180deg, #06111f 0%, #071422 52%, #06101c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.012), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.008));
  opacity: 0.7;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(var(--page-max), calc(100% - 56px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px 0 26px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.brand-mark-image {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.62rem;
  font-weight: 510;
  letter-spacing: -0.025em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: clamp(3.5rem, 7.5vw, 8rem);
  flex: 1;
  padding: clamp(52px, 7.5vh, 92px) 0 clamp(38px, 5.4vh, 64px);
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--dark-accent-gold-soft);
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 25px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3.45rem, 5.35vw, 6.45rem);
  font-weight: 390;
  line-height: 0.96;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.intro {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--dark-text-secondary);
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  line-height: 1.68;
}

.waitlist {
  max-width: 620px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 6px;
  border: 1px solid rgba(200, 164, 107, 0.34);
  border-radius: 15px;
  background: rgba(4, 14, 25, 0.54);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-row:focus-within {
  border-color: rgba(216, 187, 136, 0.7);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.16),
    0 0 0 3px rgba(200, 164, 107, 0.075);
}

.form-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 13px;
  color: var(--dark-text-primary);
  background: transparent;
}

.form-row input::placeholder {
  color: var(--dark-text-muted);
}

.form-row button {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 13px 18px;
  color: #101820;
  background: linear-gradient(180deg, #d8bb88, #c8a46b);
  font-size: 0.9rem;
  font-weight: 720;
  white-space: nowrap;
  box-shadow: 0 8px 23px rgba(200, 164, 107, 0.12);
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.form-row button:hover {
  transform: translateY(-1px);
  filter: brightness(1.035);
  box-shadow: 0 10px 26px rgba(200, 164, 107, 0.16);
}

.form-row button:focus-visible,
.form-row input:focus-visible {
  outline: 2px solid var(--dark-accent-gold-soft);
  outline-offset: 3px;
}

.form-row button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.waitlist-note {
  max-width: 560px;
  margin: 10px 3px 0;
  color: var(--dark-text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.42em;
  margin: 7px 3px 0;
  color: var(--dark-text-secondary);
  font-size: 0.87rem;
}

.form-status.is-success {
  color: #a5e7e1;
}

.form-status.is-error {
  color: #ef9da9;
}

.portal {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 510px;
  isolation: isolate;
}

.portal-halo {
  position: absolute;
  z-index: -1;
  width: min(86%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 118, 164, 0.17), rgba(55, 118, 164, 0.055) 44%, transparent 71%);
  filter: blur(8px);
}

.portal-frame {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 0.74;
  filter: drop-shadow(0 34px 58px rgba(0, 0, 0, 0.3));
}

.portal-frame::before {
  content: "";
  position: absolute;
  inset: 6% 8% 8%;
  border: 1px solid rgba(200, 164, 107, 0.39);
  border-radius: 50% 50% 7% 7% / 29% 29% 5% 5%;
  pointer-events: none;
}

.portal-frame::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 6.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 164, 107, 0.42), transparent);
}

.portal-arch {
  position: absolute;
  inset: 9% 11% 11%;
  overflow: hidden;
  border: 1px solid rgba(216, 187, 136, 0.47);
  border-radius: 50% 50% 3% 3% / 27% 27% 3% 3%;
  background: #0a1c2c;
  box-shadow:
    inset 0 0 0 8px rgba(4, 13, 23, 0.24),
    inset 0 0 34px rgba(200, 164, 107, 0.055);
}

.portal-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(222, 199, 156, 0.075), transparent 19%),
    linear-gradient(180deg, #0b2947 0%, #0c2036 52%, #07131f 100%);
}

.moon {
  position: absolute;
  top: 18.5%;
  left: 51%;
  width: 80px;
  height: 80px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #e5cf9f;
  box-shadow: 0 0 31px rgba(229, 207, 159, 0.22);
}

.moon::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 25px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #0c223b;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(244, 241, 235, 0.65);
  box-shadow: 0 0 5px rgba(244, 241, 235, 0.45);
}

.star-one { top: 18%; left: 29%; }
.star-two { top: 31%; left: 72%; }
.star-three { top: 40%; left: 24%; }

.ridge {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1%;
  height: 45%;
  clip-path: polygon(0 76%, 11% 60%, 20% 68%, 32% 40%, 44% 62%, 57% 39%, 67% 55%, 81% 29%, 100% 67%, 100% 100%, 0 100%);
}

.ridge-back {
  bottom: 4.5%;
  opacity: 0.48;
  background: #1b3d50;
}

.ridge-front {
  background: linear-gradient(180deg, #112b38, #07111c);
}

.portal-step {
  position: absolute;
  left: 50%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(200, 164, 107, 0.32), transparent);
}

.portal-step-one {
  width: 68%;
  bottom: 4.3%;
}

.portal-step-two {
  width: 52%;
  bottom: 1.5%;
  opacity: 0.55;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--dark-border);
  padding-top: 23px;
}

.pillar {
  display: flex;
  gap: 14px;
  padding: 8px clamp(18px, 3vw, 42px);
  border-right: 1px solid var(--dark-border);
}

.pillar:first-child {
  padding-left: 0;
}

.pillar:last-child {
  padding-right: 0;
  border-right: 0;
}

.pillar-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border: 1px solid rgba(200, 164, 107, 0.3);
  border-radius: 50%;
  color: var(--dark-accent-gold-soft);
}

.pillar-icon svg {
  width: 17px;
  height: 17px;
}

.pillar h2 {
  margin-bottom: 5px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.04rem;
  font-weight: 510;
}

.pillar p {
  margin-bottom: 0;
  color: var(--dark-text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sr-only,
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: 3.25rem;
  }

  h1 {
    font-size: clamp(3.35rem, 6vw, 5.5rem);
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 34px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .portal {
    min-height: 390px;
  }

  .portal-frame {
    width: min(76vw, 410px);
  }

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

  .pillar,
  .pillar:first-child,
  .pillar:last-child {
    padding: 17px 0;
    border-right: 0;
    border-bottom: 1px solid var(--dark-border);
  }

  .pillar:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 520px);
    padding-top: 21px;
  }

  .brand-mark-image {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 34px;
  }

  .eyebrow {
    margin-bottom: 16px;
  }

  h1 {
    margin-bottom: 21px;
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .intro {
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row button {
    width: 100%;
  }

  .portal {
    min-height: 320px;
  }

  .portal-frame {
    width: min(88vw, 350px);
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.75rem;
  }
}

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