:root {
  --bg: #0a0d16;
  --bg-2: #0f1424;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #f2f4fb;
  --text-dim: #98a1b8;
  --text-faint: #5b6478;
  --accent-1: #7c5cff;
  --accent-2: #33d6c0;
  --accent-3: #25d366;
  --danger: #ff6b6b;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient animated background blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob.b1 {
  width: 480px; height: 480px;
  background: var(--accent-1);
  top: -120px; left: -100px;
}
.blob.b2 {
  width: 420px; height: 420px;
  background: var(--accent-2);
  bottom: -140px; right: -80px;
  animation-delay: -6s;
}
.blob.b3 {
  width: 320px; height: 320px;
  background: #ff5ca8;
  top: 40%; left: 55%;
  opacity: 0.18;
  animation-delay: -11s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.08); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 64px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.45);
}
.pill {
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--card-border);
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
}

/* Hero */
main.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px 100px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-2);
  background: rgba(51, 214, 192, 0.08);
  border: 1px solid rgba(51, 214, 192, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}
h1.headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 780px;
  background: linear-gradient(180deg, #ffffff 20%, #b8c0d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.headline .grad {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
p.subhead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 40px;
  line-height: 1.6;
}

.cta {
  appearance: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #0a0d16;
  padding: 16px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #d7dbe8);
  box-shadow: 0 10px 40px -8px rgba(124, 92, 255, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 46px -6px rgba(124, 92, 255, 0.65); }
.cta:active { transform: translateY(0px) scale(0.98); }

.trust-row {
  margin-top: 56px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
}
.trust-row span { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 15px; height: 15px; color: var(--accent-2); }

footer.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  color: var(--text-faint);
  font-size: 12px;
}

/* ---------- Bubble modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(6, 8, 14, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.bubble {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, #161c30, #10141f);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.02);
  transform: scale(0.92) translateY(14px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.28s ease;
}
.overlay.open .bubble { transform: scale(1) translateY(0); opacity: 1; }

.bubble-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.bubble-close:hover { color: var(--text); background: rgba(255,255,255,0.07); }

.bubble-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px -6px rgba(124, 92, 255, 0.5);
}
.bubble h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bubble p.desc {
  margin: 0 0 22px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 7px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input[type="email"]::placeholder { color: var(--text-faint); }
.field input[type="email"]:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.code-inputs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.code-inputs input {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
  font-family: "SF Mono", Consolas, Menlo, monospace;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.code-inputs input:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18);
}

.btn-primary {
  width: 100%;
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-1), #5a3ff0);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-ghost {
  width: 100%;
  appearance: none;
  border: 1px solid var(--card-border);
  cursor: pointer;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.msg {
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: none;
}
.msg.show { display: block; }
.msg.error { background: rgba(255, 107, 107, 0.1); color: #ffb3b3; border: 1px solid rgba(255,107,107,0.25); }
.msg.info { background: rgba(51, 214, 192, 0.08); color: #a6f3e8; border: 1px solid rgba(51,214,192,0.25); }

.spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.step { display: none; }
.step.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(51, 214, 192, 0.12);
  border: 1px solid rgba(51, 214, 192, 0.35);
  display: flex; align-items: center; justify-content: center;
  margin: 4px auto 20px;
}
.success-check svg { width: 28px; height: 28px; color: var(--accent-2); }

/* -------- Standalone card pages (verify.html / access.html) -------- */
.center-page {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #161c30, #10141f);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.card h1 {
  font-size: 20px;
  margin: 4px 0 10px;
}
.card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 12px 34px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.15s ease;
}
.wa-btn:hover { transform: translateY(-2px); }
.wa-btn svg { width: 20px; height: 20px; }

.icon-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.icon-circle.ok { background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37,211,102,0.3); }
.icon-circle.err { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255,107,107,0.3); }
.icon-circle.pending { background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124,92,255,0.3); }
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle.ok svg { color: var(--accent-3); }
.icon-circle.err svg { color: var(--danger); }
.icon-circle.pending .spinner { width: 22px; height: 22px; border-width: 3px; border-color: rgba(124,92,255,0.35); border-top-color: var(--accent-1); }
