: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: 28px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  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, 2.2vw, 32px);
  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;
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0 34px;
}

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

h1 {
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(42px, 6.1vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.subtitle {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.5;
  text-wrap: balance;
}

.modules {
  margin: 24px auto 0;
  color: #d7e1ec;
  font-size: clamp(12px, 1.2vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

.primary-button,
.secondary-button,
.modal-button {
  border-radius: 999px;
  padding: 13px 21px;
  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;
  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: 48px 0;
  }

  h1 {
    font-size: clamp(40px, 13.5vw, 62px);
    line-height: 0.98;
  }

  .subtitle {
    font-size: 16px;
  }

  .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: 760px) and (min-width: 721px) {
  .page-shell {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .hero {
    padding: 22px 0 20px;
  }

  h1 {
    font-size: clamp(40px, 5.35vw, 70px);
  }

  .subtitle {
    margin-top: 20px;
    font-size: clamp(15px, 1.25vw, 18px);
  }

  .modules {
    margin-top: 20px;
  }

  .actions {
    margin-top: 22px;
  }
}
