:root {
  --bg: #111111;
  --panel: rgba(26, 26, 26, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.42);
  --muted-strong: rgba(255, 255, 255, 0.68);
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --accent-glow: rgba(124, 58, 237, 0.28);
  --success: #86efac;
  --error: #fca5a5;
  --grid: rgba(255, 255, 255, 0.035);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(124, 58, 237, 0.12), transparent 28%),
    linear-gradient(180deg, #111111 0%, #0d0d0f 100%);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

button,
input {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.ambient {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-left {
  top: -10rem;
  left: -8rem;
  background: rgba(124, 58, 237, 0.2);
}

.ambient-right {
  top: 8rem;
  right: -12rem;
  background: rgba(67, 56, 202, 0.14);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 82%);
  pointer-events: none;
}

.site-header,
.hero,
.feature-strip {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent-glow);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-link {
  color: var(--muted);
  transition: color 160ms ease;
}

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

.header-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.hero {
  min-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 0 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  margin-bottom: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.85);
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: clamp(3.3rem, 7vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.headline-primary {
  color: var(--text);
  font-weight: 800;
}

.headline-secondary {
  color: #555555;
  font-weight: 800;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 22px auto 36px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.75;
}

.hero-card {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.hero-card-glow {
  position: absolute;
  inset: -18px;
  border-radius: 40px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.18), transparent 65%);
  filter: blur(32px);
  opacity: 0.8;
  pointer-events: none;
}

.waitlist-panel,
.feature-card {
  position: relative;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.waitlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
}

.waitlist-label,
.feature-kicker {
  margin: 0 0 12px;
  color: #b9a7ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.waitlist-copy h2,
.feature-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.waitlist-copy p:last-child,
.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 8px 0 72px;
}

.feature-card {
  overflow: hidden;
  min-height: 290px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.96), rgba(19, 19, 21, 0.96));
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #c4b5fd;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.feature-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8b5cf6;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.8);
}

.feature-card h3 {
  max-width: 11ch;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  line-height: 0.98;
}

.feature-card p {
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.newsletter-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.newsletter-form-input {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.97);
  color: #111111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.newsletter-form-input:focus {
  border-color: rgba(124, 58, 237, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.newsletter-form-button,
.newsletter-loading-button,
.newsletter-back-button {
  border: 0;
  cursor: pointer;
}

.newsletter-form-button,
.newsletter-loading-button {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.28);
  transition: background 160ms ease, transform 160ms ease;
}

.newsletter-form-button:hover,
.newsletter-back-button:hover {
  transform: translateY(-1px);
}

.newsletter-form-button:hover {
  background: var(--accent-hover);
}

.newsletter-loading-button {
  display: none;
}

.newsletter-success,
.newsletter-error {
  display: none;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 14px;
}

.newsletter-success-message,
.newsletter-error-message {
  margin: 0;
  font-size: 0.95rem;
}

.newsletter-success-message {
  color: var(--success);
}

.newsletter-error-message {
  color: var(--error);
}

.newsletter-back-button {
  display: none;
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
}

@media (max-width: 920px) {
  .waitlist-panel,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 20px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 18px 0;
  }

  .header-actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-card,
  .waitlist-panel,
  .feature-card {
    border-radius: 24px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form-button,
  .newsletter-loading-button {
    width: 100%;
  }
}
