:root {
  --bg: #050505;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #3f3f46;
  --accent: #625bff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; }

.page-shell {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 62%, rgba(92, 75, 255, .08), transparent 28%),
    linear-gradient(180deg, #050505 0%, #030303 100%);
}

main {
  min-height: 0;
}

.site-header,
.site-footer {
  width: min(80%, 1420px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.site-header { padding-top: 38px; }
.brand { display: inline-flex; text-decoration: none; }
.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.site-nav { display: flex; gap: 44px; }
.site-nav a {
  text-decoration: none;
  font-size: 1rem;
  color: #e4e4e7;
  position: relative;
  padding-bottom: 8px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.hero {
  width: min(80%, 1420px);
  margin-inline: auto;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding-block: clamp(32px, 7vh, 72px);
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 7.1vw, 7rem);
  line-height: .98;
  letter-spacing: -0.065em;
  font-weight: 600;
}
h1 span { display: block; }
.accent { display: inline; color: var(--accent); }

.divider {
  width: 48px;
  height: 2px;
  background: #71717a;
  margin: 62px 0 48px;
}
.prompt {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  letter-spacing: -0.035em;
}
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  transition: color .2s ease, transform .2s ease;
}
.email-link:hover,
.email-link:focus-visible { color: #c7c4ff; transform: translateX(4px); }

.wave {
  position: absolute;
  inset: auto -8vw 0 -8vw;
  height: 48%;
  overflow: hidden;
  pointer-events: none;
  opacity: .95;
  transform: perspective(700px) rotateX(54deg) translateY(10%);
  transform-origin: bottom center;
}
.wave::before,
.wave::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(99, 102, 241, .95) 0 1px, transparent 1.5px);
  background-size: 11px 11px;
  mask-image: linear-gradient(to top, #000 15%, transparent 88%);
  -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 88%);
}
.wave::before {
  transform: skewY(-8deg) scaleY(.8);
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, .35));
}
.wave::after {
  opacity: .48;
  transform: translateY(38px) skewY(7deg) scaleY(.72);
}
.wave-glow {
  position: absolute;
  inset: 25% 6% -25%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, .23), transparent 67%);
  filter: blur(22px);
}
.wave-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(92deg, transparent 0 22px, rgba(124, 117, 255, .12) 23px 24px),
    repeating-linear-gradient(2deg, transparent 0 22px, rgba(124, 117, 255, .08) 23px 24px);
  mask-image: linear-gradient(to top, #000, transparent 88%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 88%);
}

.site-footer {
  color: var(--muted);
  font-size: .95rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.dot { color: var(--accent); margin-inline: 8px; }

@media (max-width: 800px) {
  .site-header,
  .site-footer,
  .hero { width: min(100% - 32px, 1420px); }
  .site-header { padding-top: 24px; }
  .site-nav { gap: 24px; }
  .hero { min-height: 0; align-items: center; }
  .hero-copy { padding-block: clamp(32px, 6vh, 64px); }
  .divider { margin: 48px 0 38px; }
  .wave { height: 38%; inset-inline: -30vw; }
  .site-footer { gap: 20px; align-items: flex-end; }
}

@media (max-width: 560px) {
  .brand-mark { width: 48px; height: 48px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .prompt, .email-link { font-size: 1.9rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-height: 700px) {
  .page-shell { min-height: 500px; }
  h1 { font-size: clamp(3rem, 6.5vw, 5.5rem); }
  .divider { margin: 32px 0 26px; }
  .prompt { margin-bottom: 14px; }
  .wave { height: 40%; }
}

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