:root {
  --bg: #05070d;
  --text: #f4f7fb;
  --muted: #aab7c7;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #65e9ff;
  --blue: #5b8cff;
  --green: #76f7c4;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(91, 140, 255, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 25%, rgba(101, 233, 255, 0.13), transparent 30rem),
    linear-gradient(135deg, #04050a 0%, #07101b 52%, #04070d 100%);
  overflow-x: hidden;
}

button, a { font: inherit; }

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 34px clamp(32px, 4vw, 64px) 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

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

.ambient-one { top: 5%; left: -12%; background: var(--blue); }
.ambient-two { right: -14%; bottom: 5%; background: var(--cyan); }

.header, .hero, .footer { position: relative; z-index: 2; }

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

.brand {
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.05em;
  font-weight: 800;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1;
}

.brand-code { color: var(--cyan); margin-left: 2px; }

.ghost-link {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: 180ms ease;
}

.ghost-link:hover {
  color: var(--text);
  border-color: rgba(101, 233, 255, 0.45);
  background: rgba(101, 233, 255, 0.08);
}

.hero {
  align-self: center;
  width: min(100%, 1050px);
  margin: 0 auto;
  text-align: center;
  padding: 20px 0 18px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.22em;
  font-weight: 700;
}

h1 {
  max-width: 1050px;
  margin: 0 auto;
  font-size: clamp(40px, 4.9vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.subtitle {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.28vw, 19px);
  line-height: 1.48;
  text-wrap: balance;
}

.modules {
  margin: 21px auto 0;
  color: #d7e1ec;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modules span {
  color: var(--cyan);
  margin: 0 8px;
}

.ai-note {
  max-width: 560px;
  margin: 9px auto 0;
  color: rgba(170, 183, 199, 0.82);
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.45;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.primary-button, .secondary-button, .modal-button {
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: 180ms ease;
}

.primary-button {
  border: 1px solid rgba(101, 233, 255, 0.75);
  color: #041019;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
  box-shadow: 0 0 34px rgba(101, 233, 255, 0.22);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 46px rgba(101, 233, 255, 0.32);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(244, 247, 251, 0.64);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.footer p, .footer span { margin: 0; }

.footer span {
  color: rgba(101, 233, 255, 0.82);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(1, 4, 10, 0.76);
  backdrop-filter: blur(14px);
}

.modal-backdrop.is-open { display: grid; }

.modal-card {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(14, 25, 42, 0.96), rgba(5, 10, 18, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.modal-card h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.modal-card a { color: var(--cyan); }

.modal-button {
  display: inline-flex;
  margin-top: 14px;
  color: #041019 !important;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 800;
}

@media (max-width: 720px) {
  .page-shell {
    padding: 22px 18px;
  }

  .ghost-link { display: none; }

  .hero { padding: 44px 0; }

  h1 {
    font-size: clamp(34px, 11.4vw, 54px);
    line-height: 1.02;
  }

  .subtitle { font-size: 15.5px; }

  .modules {
    max-width: 320px;
    line-height: 1.9;
  }

  .ai-note { max-width: 320px; }

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

  .primary-button, .secondary-button { width: 100%; }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-card { padding: 30px 24px; }
}

@media (max-height: 820px) and (min-width: 721px) {
  .page-shell {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .hero { padding: 16px 0 14px; }

  .eyebrow { margin-bottom: 16px; }

  h1 {
    font-size: clamp(38px, 4.45vw, 60px);
    line-height: 1.02;
  }

  .subtitle {
    margin-top: 18px;
    font-size: clamp(14px, 1.13vw, 17px);
  }

  .modules { margin-top: 18px; }
  .ai-note { margin-top: 8px; }
  .actions { margin-top: 20px; }
}
