:root {
  --navy: #0d0c55;
  --navy-mid: #141379;
  --navy-deep: #05043a;
  --navy-abyss: #02021f;
  --teal: #00d6c8;
  --yellow: #ffce00;
  --orange: #ff8737;
  --white: #ffffff;
  --ink: #0a0a2e;
  --glass-bg: rgba(126, 175, 255, 0.06);
  --glass-border: rgba(126, 175, 255, 0.22);
  --shadow-strong: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(0, 214, 200, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 15% 0%, var(--navy-mid) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 0% 100%, rgba(0, 214, 200, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 70% at 90% 100%, #0a2560 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 60%, var(--navy-abyss) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Ambient background blobs ---------- */
.blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.blob.teal   { width: 520px; height: 520px; background: var(--teal);     top: -140px; right: -160px; opacity: 0.35; }
.blob.blue   { width: 480px; height: 480px; background: #2a4bc7;          bottom: -180px; left: -140px; animation-delay: -6s; opacity: 0.45; }
.blob.accent { width: 320px; height: 320px; background: #1f58b8;          top: 55%; left: 55%; animation-delay: -12s; opacity: 0.30; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.05); }
  66%      { transform: translate(-30px, 40px) scale(0.97); }
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 32px 20px 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.topbar .wordmark {
  height: 44px;
  width: auto;
  opacity: 0.95;
}

.topbar .env-pill {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

/* ---------- Card ---------- */
.card {
  width: min(460px, 100%);
  padding: 44px 36px 36px;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(20, 19, 121, 0.55) 0%, rgba(13, 12, 85, 0.65) 60%, rgba(5, 4, 58, 0.7) 100%);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-strong);
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--navy) 0%, #1f1e8a 60%, #00a79b 140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 40px -18px rgba(0, 214, 200, 0.45),
              0 14px 28px -8px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  margin-bottom: 22px;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}
.card:hover .icon-wrap { transform: rotate(0deg) scale(1.02); }

.icon-wrap img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #bce9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.features {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  text-align: left;
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.features li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal);
  background-image:
    linear-gradient(45deg, transparent 45%, var(--navy) 45%, var(--navy) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--navy) 45%, var(--navy) 55%, transparent 55%);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  background: var(--teal);
}

/* ---------- CTA button ---------- */
.cta {
  position: relative;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 18px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--teal) 0%, #7ff0e6 100%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 32px -12px rgba(0, 214, 200, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -12px rgba(0, 214, 200, 0.65),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.cta:hover::after { transform: translateX(100%); }
.cta:active { transform: translateY(0); filter: brightness(0.95); }
.cta svg { width: 20px; height: 20px; }

.cta[disabled] {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}
.cta[disabled]::after { display: none; }

/* ---------- Helper text ---------- */
.hint {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.notice {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 206, 0, 0.12);
  border: 1px solid rgba(255, 206, 0, 0.35);
  color: #ffe58a;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}
.notice.show { display: block; animation: rise 0.4s ease both; }
.notice strong { color: var(--yellow); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  padding-top: 24px;
}
footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .page { padding: 20px 16px; }
  .card { padding: 36px 24px 28px; border-radius: 24px; }
  .title { font-size: 28px; }
  .icon-wrap { width: 104px; height: 104px; }
  .icon-wrap img { width: 76px; height: 76px; }
  .topbar .wordmark { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .card, .notice { animation: none; }
  .cta::after { display: none; }
}
