/* ---- Design tokens ------------------------------------------------------- */
:root{
  --bg-1: #0e2a33;
  --bg-2: #1e3b47;
  --glass: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.14);
  --text: #eaf6ff;

  --cta-start: #00c6ff;
  --cta-end:   #0072ff;
  --cta-glow:  rgba(0, 145, 255, .55);

  --radius-card: 22px;
  --radius-pill: 40px;

  --shadow-soft: 0 18px 40px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.15);
}

/* ---- Base ---------------------------------------------------------------- */
*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 25% 20%, #112f3a 0%, transparent 60%),
              linear-gradient(135deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}

/* Subtle animated particles (very light) */
.stage::before{
  content:"";
  position: fixed;
  inset: -20vmax;
  background:
    radial-gradient(120px 120px at 30% 40%, rgba(255,255,255,.04), transparent 70%),
    radial-gradient(150px 150px at 70% 60%, rgba(255,255,255,.035), transparent 70%);
  filter: blur(2px);
  animation: drift 30s linear infinite;
  pointer-events: none;
}
@keyframes drift{
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  50%{ transform: translate3d(1.5rem, -1.2rem, 0) rotate(0.5deg); }
  100%{ transform: translate3d(0,0,0) rotate(0deg); }
}

/* ---- Layout -------------------------------------------------------------- */
.stage{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Glass card */
.card{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 4vw, 32px);
  width: min(680px, 92vw);
  padding: clamp(18px, 3.5vw, 28px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  position: relative;
  isolation: isolate;
}

/* soft inner bevel */
.card::after{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--shadow-inset);
  pointer-events: none;
}

/* Brand / Logo */
.brand{ display:flex; align-items:center; min-height: 64px; }
.logo{
  max-height: clamp(34px, 7vw, 48px);
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.06));
  user-select: none;
}

/* ---- CTA button ---------------------------------------------------------- */
.cta{
  --pad-y: 14px;
  --pad-x: 26px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: white;
  font-weight: 650;
  letter-spacing: .2px;

  background: linear-gradient(90deg, var(--cta-start), var(--cta-end));
  box-shadow:
    0 10px 24px var(--cta-glow),
    0 1px 0 rgba(255,255,255,.15) inset,
    0 -1px 0 rgba(0,0,0,.25) inset;

  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

/* soft glow aura */
.cta::before{
  content:"";
  position:absolute;
  inset: -10px -12px;
  border-radius: inherit;
  background: radial-gradient(60% 70% at 50% 30%, var(--cta-glow), transparent 65%);
  filter: blur(14px);
  opacity: .75;
  z-index: -1;
  transition: opacity .25s ease, filter .25s ease;
}

/* glossy highlight */
.cta span{
  position: relative;
  padding-inline: 2px;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.cta::after{
  content:"";
  position:absolute;
  top: 6px; left: 10%;
  width: 80%; height: 38%;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,0));
  filter: blur(1px);
  pointer-events: none;
  transition: opacity .25s ease;
}

/* Hover / focus states */
.cta:hover,
.cta:focus-visible{
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(0,145,255,.7),
    0 1px 0 rgba(255,255,255,.2) inset,
    0 -1px 0 rgba(0,0,0,.25) inset;
}
.cta:hover::before,
.cta:focus-visible::before{ opacity: 1; filter: blur(16px); }

.cta:active{
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(0,145,255,.5),
    0 1px 0 rgba(255,255,255,.12) inset,
    0 -1px 0 rgba(0,0,0,.35) inset;
}

/* Keyboard focus ring */
.cta:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.25),
    0 0 0 6px rgba(0,145,255,.45),
    0 16px 36px rgba(0,145,255,.7);
}

/* ---- Responsiveness ------------------------------------------------------ */
@media (max-width: 560px){
  .card{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .brand{ justify-content: center; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation: none !important; transition: none !important; }
}


/* Disabled look until JS enables the link */
.cta--disabled{
  filter: grayscale(0.2) brightness(0.9);
  cursor: not-allowed;
  pointer-events: none;
  opacity: .8;
  box-shadow: none;
}
