:root {
  --bg: #0b1020;
  --bg-soft: #111935;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #e6eaf5;
  --muted: #97a0bf;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --radius: 18px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 40%,
    transparent 100%
  );
}
.bg-glow {
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  z-index: -1;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(99, 102, 241, 0.45),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 40%,
      rgba(34, 211, 238, 0.35),
      transparent 60%
    );
  filter: blur(60px);
  opacity: 0.7;
}

/* Nav */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #0b1020;
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px -8px rgba(34, 211, 238, 0.7);
}
.btn-ghost {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 10px 16px;
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Shared accents */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 7px rgba(34, 211, 238, 0);
  }
}
.grad {
  background: linear-gradient(120deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto;
}

/* Portal */
.portal {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px 50px;
  text-align: center;
}
.portal h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 20px 0 14px;
  font-weight: 800;
}

/* App buttons (hero) */
.apps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
  flex-wrap: wrap;
  margin: 46px auto 30px;
}
.app-tile {
  flex: 1 1 320px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 40px 30px 32px;
  text-decoration: none;
  color: var(--text);
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(
      120% 120% at 50% 0%,
      rgba(99, 102, 241, 0.16),
      rgba(34, 211, 238, 0.06) 55%,
      transparent 100%
    ),
    var(--bg-soft);
  box-shadow: 0 18px 50px -34px rgba(0, 0, 0, 0.9);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.22s ease;
}
.app-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 30px 60px -28px rgba(34, 211, 238, 0.5);
}
.app-ico {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 12px 28px -10px rgba(34, 211, 238, 0.6);
}
.app-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.app-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 280px;
}
.app-cta {
  margin-top: 10px;
  width: 100%;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  color: #0b1020;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.6);
  transition:
    box-shadow 0.2s ease,
    transform 0.12s ease;
}
.app-tile:hover .app-cta {
  box-shadow: 0 16px 38px -10px rgba(34, 211, 238, 0.8);
}
.help-note {
  color: var(--muted);
  font-size: 14px;
  margin: 14px 0 0;
}
.help-note a,
.foot-link {
  color: var(--cyan);
  text-decoration: none;
}
.help-note a:hover,
.foot-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 24px 50px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.footer img {
  opacity: 0.9;
}

/* Lead modal */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 18, 0.7);
  backdrop-filter: blur(4px);
}
.modal-bg.open {
  display: flex;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}
.modal h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.modal-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover {
  color: var(--text);
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-form input {
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(11, 16, 32, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.lead-form input:focus {
  outline: none;
  border-color: var(--cyan);
}
.lead-form .btn {
  margin-top: 4px;
}
.form-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: #4ade80;
  font-weight: 600;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 720px) {
  .apps {
    grid-template-columns: 1fr;
  }
}
