:root {
  --bg: #050816;
  --bg-2: #0a1228;
  --bg-elevated: rgba(12, 22, 48, 0.72);
  --ink: #eef4ff;
  --muted: #9bb0d0;
  --line: rgba(120, 180, 255, 0.16);
  --cyan: #3ee0ff;
  --cyan-soft: rgba(62, 224, 255, 0.18);
  --purple: #c084fc;
  --purple-soft: rgba(192, 132, 252, 0.2);
  --gold: #ffb84d;
  --gold-soft: rgba(255, 184, 77, 0.22);
  --serif: Fraunces, "Times New Roman", serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --header-h: 4.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255, 184, 77, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 20%, rgba(62, 224, 255, 0.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 80%, rgba(192, 132, 252, 0.06), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg-2);
  padding: 0.5rem 0.75rem;
  z-index: 40;
  color: var(--ink);
}

/* –– Header –– */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  height: var(--header-h);
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  background: linear-gradient(
    180deg,
    rgba(5, 8, 22, 0.55) 0%,
    rgba(5, 8, 22, 0.18) 70%,
    transparent 100%
  );
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 1;
  color: var(--cyan);
}

nav {
  display: flex;
  gap: 1.35rem;
}

nav a {
  color: rgba(238, 244, 255, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--ink);
}

/* –– Hero: true edge-to-edge full-bleed first viewport –– */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding:
    calc(var(--header-h) + 1.25rem)
    max(1.25rem, calc((100% - 1120px) / 2))
    clamp(2.25rem, 7vh, 4.5rem);
  overflow: hidden;
  background: #03060f;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 22, 0.35) 0%,
      rgba(5, 8, 22, 0.08) 32%,
      rgba(5, 8, 22, 0.2) 58%,
      rgba(5, 8, 22, 0.72) 82%,
      rgba(5, 8, 22, 0.92) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5, 8, 22, 0.42) 0%,
      rgba(5, 8, 22, 0.08) 45%,
      rgba(5, 8, 22, 0.28) 100%
    );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(42rem, 100%);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Bold display type with outline so it reads on sunrise + dark space */
.brand-hero {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: #fff8ef;
  -webkit-text-stroke: 1.5px rgba(5, 8, 22, 0.88);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(5, 8, 22, 0.95),
    0 1px 0 rgba(5, 8, 22, 0.9),
    0 -1px 0 rgba(5, 8, 22, 0.9),
    1px 0 0 rgba(5, 8, 22, 0.9),
    -1px 0 0 rgba(5, 8, 22, 0.9),
    2px 2px 0 rgba(5, 8, 22, 0.55),
    0 8px 28px rgba(5, 8, 22, 0.45);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #f4f8ff;
  -webkit-text-stroke: 1px rgba(5, 8, 22, 0.85);
  paint-order: stroke fill;
  text-shadow:
    0 0 1px rgba(5, 8, 22, 0.95),
    0 1px 0 rgba(5, 8, 22, 0.85),
    0 -1px 0 rgba(5, 8, 22, 0.85),
    1px 0 0 rgba(5, 8, 22, 0.85),
    -1px 0 0 rgba(5, 8, 22, 0.85),
    0 6px 22px rgba(5, 8, 22, 0.5);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.lede {
  margin: 0;
  max-width: 30rem;
  color: rgba(232, 240, 255, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 2px 14px rgba(5, 8, 22, 0.75);
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.cta {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 11.5rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(62, 224, 255, 0.28);
  border-radius: 2px;
  background: rgba(8, 14, 32, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: inherit;
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cta-human:hover {
  border-color: rgba(255, 184, 77, 0.65);
  background: rgba(255, 184, 77, 0.1);
}

.cta-agent {
  border-color: rgba(192, 132, 252, 0.4);
}

.cta-agent:hover {
  border-color: rgba(62, 224, 255, 0.7);
  background: rgba(62, 224, 255, 0.1);
}

.cta-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan);
}

.cta-agent .cta-label {
  color: var(--purple);
}

.cta-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* –– Page body –– */
.page-body {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 1rem;
}

.section {
  padding: 3.4rem 0;
  border-top: 1px solid var(--line);
}

h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.55rem, 2.8vw, 1.95rem);
  background: linear-gradient(100deg, var(--ink), var(--cyan) 70%, var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: var(--ink);
}

.lede-sm {
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  color: var(--muted);
}

.split em {
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

.points {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.points li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--gold), var(--cyan), var(--purple)) 1;
  background: linear-gradient(
    90deg,
    rgba(62, 224, 255, 0.06),
    transparent 70%
  );
}

.points strong {
  color: var(--ink);
  font-weight: 600;
}

.links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-panel {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(160deg, rgba(62, 224, 255, 0.06), transparent 45%),
    var(--bg-elevated);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.link-panel:hover {
  color: inherit;
  border-color: rgba(62, 224, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.link-panel p {
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
}

.link-url {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

#stack p {
  color: var(--muted);
  max-width: 42rem;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  color: var(--cyan);
  background: rgba(62, 224, 255, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

.text-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-link:hover {
  color: var(--gold);
}

/* –– Waitlist modal –– */
body.wl-locked {
  overflow: hidden;
}

.wl-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.wl-modal[hidden] {
  display: none;
}

.wl-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(62, 224, 255, 0.12), transparent 55%),
    rgba(3, 6, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: wl-fade 0.28s ease both;
}

.wl-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.65rem 1.5rem 1.45rem;
  border: 1px solid rgba(62, 224, 255, 0.28);
  border-radius: 2px;
  background:
    linear-gradient(165deg, rgba(62, 224, 255, 0.08), transparent 40%),
    linear-gradient(200deg, rgba(12, 22, 48, 0.96), rgba(5, 8, 22, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: wl-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wl-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.wl-close:hover {
  color: var(--ink);
}

.wl-mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 0.85rem;
  border-radius: 5px;
  object-fit: contain;
}

.wl-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--purple);
}

.wl-panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  background: linear-gradient(100deg, var(--ink), var(--cyan) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wl-copy {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wl-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(155, 176, 208, 0.9);
}

#waitlist-email,
#waitlist-message {
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(120, 180, 255, 0.22);
  border-radius: 2px;
  background: rgba(5, 8, 22, 0.65);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#waitlist-email:focus,
#waitlist-message:focus {
  border-color: rgba(62, 224, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(62, 224, 255, 0.12);
}

#waitlist-email[aria-invalid="true"] {
  border-color: rgba(255, 120, 120, 0.7);
}

.wl-error,
.wl-success {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.wl-error {
  color: #ffb4b4;
}

.wl-success {
  color: #9df0c8;
}

.wl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.wl-submit,
.wl-cancel {
  font: inherit;
  cursor: pointer;
  border-radius: 2px;
  padding: 0.7rem 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wl-submit {
  border: 1px solid rgba(62, 224, 255, 0.55);
  background: rgba(62, 224, 255, 0.16);
  color: var(--ink);
  font-weight: 600;
}

.wl-submit:hover:not(:disabled) {
  background: rgba(62, 224, 255, 0.28);
}

.wl-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.wl-cancel {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.wl-cancel:hover {
  color: var(--ink);
  border-color: rgba(120, 180, 255, 0.2);
}

@keyframes wl-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wl-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wl-backdrop,
  .wl-panel {
    animation: none;
  }
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.footer-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--cyan);
}

/* –– Motion –– */
@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1%, -0.6%, 0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .hero-copy,
  .brand-hero,
  .hero h1,
  .lede,
  .cta-group {
    animation: none;
  }

  .hero-image {
    transform: scale(1.02);
  }
}

@media (max-width: 860px) {
  .split,
  .links {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .hero {
    align-items: flex-end;
    min-height: 100svh;
    min-height: 100dvh;
    padding-bottom: 2.25rem;
  }

  .hero-image {
    object-position: 58% 38%;
  }

  .brand-hero {
    -webkit-text-stroke-width: 1.25px;
  }

  .hero h1 {
    -webkit-text-stroke-width: 0.9px;
  }

  .cta {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cta-group {
    flex-direction: column;
  }

  .cta {
    width: 100%;
  }

  .brand-hero {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }
}
