/* BotGuard Landing v2 — main.css */

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

:root {
  --c-accent:   #c0365a;
  --c-page-bg:  #f0f2f5;
  --c-card:     #fff;
  --c-text:     #1a1a2e;
  --c-sub:      #8a90a0;
  --c-border:   rgba(0,0,0,.08);
  --c-ray:      #aab0be;
  --c-step-dim: #d4d8e2;
  --ease:       cubic-bezier(.16,1,.3,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
}

html { -webkit-font-smoothing:antialiased; font-size:16px; }

body.bg-landing {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--c-page-bg);
  color: var(--c-text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* ── BACKGROUND ─────────────────────────────── */
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: .6;
}
.bg-glow {
  position: fixed; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0;
  animation: glowFloat 10s ease-in-out infinite alternate;
}
.bg-glow--1 {
  width: 500px; height: 500px; top: -150px; right: -100px;
  background: color-mix(in srgb, var(--c-accent) 25%, transparent);
  animation-delay: 0s;
}
.bg-glow--2 {
  width: 380px; height: 380px; bottom: -80px; left: -60px;
  background: color-mix(in srgb, var(--c-accent) 12%, transparent);
  animation-delay: -5s;
}
@keyframes glowFloat {
  from { opacity:.5; transform: scale(1); }
  to   { opacity:.9; transform: scale(1.18); }
}

/* ── MAIN ───────────────────────────────────── */
.bg-main {
  position: relative; z-index: 1;
  width: 100%; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}

/* ── CARD BASE ──────────────────────────────── */
.bg-card {
  background: var(--c-card);
  border-radius: 18px;
  box-shadow: 0 0 0 1px var(--c-border),
              0 4px 6px -1px rgba(0,0,0,.06),
              0 20px 48px -8px rgba(0,0,0,.13);
  animation: cardIn .65s var(--ease) both;
  width: min(400px, 100%);
}
@keyframes cardIn {
  from { opacity:0; transform: translateY(22px) scale(.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ─── MINIMAL ────────────────────────────────── */
.bg-card--minimal {
  padding: 40px 36px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.bg-icon {
  width: 56px; height: 56px; color: var(--c-accent);
  margin-bottom: 18px;
  animation: fadeUp .5s var(--ease) .15s both;
}
.bg-icon svg { width: 100%; height: 100%; }

/* ─── STEPS ──────────────────────────────────── */
.bg-card--steps {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.bg-steps {
  display: flex; align-items: flex-start; justify-content: center;
  margin-bottom: 24px;
  animation: fadeUp .5s var(--ease) .1s both;
}
.bg-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.bg-step span {
  font-size: .68rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--c-sub);
}
.bg-step__bubble {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--c-step-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--c-sub);
}
.bg-step--done .bg-step__bubble,
.bg-step--active .bg-step__bubble { border-width: 2px; }
.bg-step__bubble--dim { opacity:.45; }
.bg-step__line {
  width: 44px; height: 2px; border-radius: 1px; margin-top: 14px;
  background: var(--c-step-dim);
}
.bg-step__line--dim { background: var(--c-step-dim); opacity:.5; }

/* ─── HUMANVERIFY ───────────────────────────── */
.bg-card--humanverify {
  display: flex; overflow: hidden; padding: 0;
}
.bg-hv-sidebar {
  width: 130px; flex-shrink: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 28px 16px;
  animation: fadeUp .5s var(--ease) .1s both;
}
.bg-hv-icon { width: 40px; height: 40px; color: #fff; }
.bg-hv-icon svg { width: 100%; height: 100%; }
.bg-hv-label {
  font-size: .62rem; font-weight: 800; letter-spacing: .12em;
  color: rgba(255,255,255,.9); text-align: center; line-height: 1.4;
}
.bg-hv-secure {
  font-size: .62rem; color: rgba(255,255,255,.55); letter-spacing: .06em;
}
.bg-hv-body {
  flex: 1; padding: 28px 24px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
}

/* ─── TERMINAL ──────────────────────────────── */
.bg-card--terminal {
  overflow: hidden; padding: 0;
}
.bg-terminal-bar {
  background: #f0f2f5; padding: 10px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.bg-terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.bg-terminal-title {
  flex: 1; text-align: center;
  font-size: .75rem; color: #a0a8b8; font-family: 'SF Mono', monospace;
}
.bg-terminal-body { padding: 22px 22px 24px; }
.bg-terminal-cmd {
  background: rgba(0,0,0,.04); border-radius: 6px;
  padding: 8px 12px; margin-bottom: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: .82rem;
  display: flex; gap: 8px;
}
.bg-terminal-prompt { color: #a0a8b8; }
.bg-terminal-text   { font-weight: 600; }

/* ─── OUTLINE ───────────────────────────────── */
.bg-card--outline {
  padding: 40px 36px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}

/* ── SHARED TEXT ────────────────────────────── */
.bg-headline {
  font-size: 1.45rem; font-weight: 700; line-height: 1.2;
  color: var(--c-text); margin-bottom: 8px;
  animation: fadeUp .5s var(--ease) .2s both;
}
.bg-sub {
  font-size: .88rem; color: var(--c-sub); line-height: 1.5;
  margin-bottom: 0;
  animation: fadeUp .5s var(--ease) .25s both;
}

/* ── CTA BUTTON ─────────────────────────────── */
.bg-btn {
  width: 100%; margin-top: 20px;
  padding: 14px 22px; border: none; border-radius: 11px;
  color: #fff; font-size: .95rem; font-weight: 700;
  letter-spacing: .03em; cursor: pointer;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: filter .15s, transform .15s var(--ease-spring), box-shadow .2s;
  animation: fadeUp .5s var(--ease) .3s both;
}
.bg-btn::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg,rgba(255,255,255,.18) 0%,transparent 55%);
  pointer-events:none;
}
.bg-btn:hover  { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.bg-btn:active { transform: translateY(0) scale(.98); box-shadow: none; filter: brightness(.96); }
.bg-btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

/* Outline variant */
.bg-btn--outline {
  background: transparent !important;
  border: 2px solid;
}
.bg-btn--outline .bg-btn__label { color: inherit; }

/* Spinner */
.bg-btn__spin {
  display: none; width: 17px; height: 17px; flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Ripple */
.bg-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.28); transform: scale(0);
  animation: ripple .55s linear; pointer-events: none;
}
@keyframes ripple { to { transform: scale(4.5); opacity: 0; } }

.bg-btn.is-loading .bg-btn__label { opacity:.5; }
.bg-btn.is-loading .bg-btn__spin  { display: block; }
.bg-btn.is-loading { pointer-events: none; }
.bg-btn.is-done { pointer-events: none; filter: brightness(.9); }
.bg-btn.is-done .bg-btn__spin { display: none; }
.bg-btn.is-done .bg-btn__label { opacity: 1; }

/* ── RAY ID ─────────────────────────────────── */
.bg-ray {
  font-size: .7rem; color: var(--c-ray);
  margin-top: 14px; letter-spacing: .03em;
  animation: fadeUp .5s var(--ease) .35s both;
  width: 100%; text-align: center;
}
.bg-card--terminal .bg-ray  { text-align: left; font-family: 'SF Mono', monospace; }
.bg-card--humanverify .bg-ray { text-align: left; }
.bg-ray code {
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: .7rem; color: var(--c-ray); font-weight: 600;
}

/* ── UTIL ───────────────────────────────────── */
.dim { opacity: .45; }
@keyframes fadeUp {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 440px) {
  .bg-card--minimal,
  .bg-card--steps,
  .bg-card--outline { padding: 32px 22px 26px; }
  .bg-hv-sidebar { width: 100px; }
  .bg-headline { font-size: 1.25rem; }
}

/* ── DARK MODE ──────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --c-page-bg: #0e1016;
    --c-card:    #181c26;
    --c-text:    #edf0f7;
    --c-sub:     #6b7280;
    --c-border:  rgba(255,255,255,.08);
    --c-ray:     #4b5563;
    --c-step-dim:#374151;
  }
  .bg-terminal-bar { background: #12161f; }
  .bg-terminal-cmd { background: rgba(255,255,255,.05); }
}

#wpadminbar { display:none !important; }
html { margin-top:0 !important; }
