/* ==========================================================
   KweryAI marketing site — shared styles
   Dark theme inspired by Concept A. KweryAI brand neon green.
   ========================================================== */

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

:root {
  /* New dark palette */
  --bg-primary: #050505;
  --bg-surface: #0d0d0d;
  --bg-card:    #111111;
  --bg-subtle:  #0a0a0a;

  --neon:       #00FF99;
  --neon-dim:   rgba(0, 255, 153, 0.10);
  --neon-glow:  rgba(0, 255, 153, 0.15);
  --neon-line:  rgba(0, 255, 153, 0.30);

  --text:       #ffffff;
  --text-2:     rgba(255, 255, 255, 0.70);
  --muted:      rgba(255, 255, 255, 0.40);
  --border:     rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow:     0 20px 50px -10px rgba(0, 0, 0, 0.55);

  /* Backwards-compatible aliases used by per-page styles */
  --bg:         var(--bg-primary);
  --bg-soft:    var(--bg-surface);
  --dark:       var(--bg-subtle);
  --dark-2:     var(--bg-primary);
}

html, body {
  background: var(--bg-primary);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  scroll-behavior: smooth;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- NAV ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand {
  font-weight: 800; font-size: 22px; color: var(--neon); letter-spacing: -0.03em;
}
.brand .dot { color: var(--text); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 14px; color: var(--text-2); font-weight: 500; transition: color .15s;
  padding: 6px 0; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--neon); border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-glow);
}
.nav-right { display: flex; gap: 10px; align-items: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  border: 2px solid transparent; border-radius: 8px;
  padding: 10px 22px; cursor: pointer; transition: all .15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--neon); color: #000;
}
.btn-primary:hover {
  background: #00e688; transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 14px rgba(0, 255, 153, 0.18);
}
.btn-ghost-light {
  background: transparent; color: white; border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.06); border-color: white;
  box-shadow: 0 0 14px rgba(0, 255, 153, 0.2);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- HERO (shared dot-grid + glow chrome) ---------- */
.hero-dark, .hero-light {
  background: var(--bg-primary);
  color: var(--text);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-dark::before, .hero-light::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0, 255, 153, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  opacity: 0.55;
}
.hero-dark::after, .hero-light::after {
  content: ""; position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 153, 0.18), transparent 60%);
  filter: blur(20px); pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1280px; margin: 0 auto; padding: 100px 32px 90px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center;
}
.hero-inner-centered {
  position: relative;
  max-width: 900px; margin: 0 auto; padding: 90px 32px 70px;
  text-align: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--neon-dim); color: var(--neon);
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid var(--neon-line);
}
h1.hero-title {
  font-size: 78px; font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  margin-bottom: 28px; color: var(--text);
}
h1.hero-title .accent { color: var(--neon); }
p.hero-sub {
  font-size: 20px; color: var(--text-2); max-width: 560px; margin-bottom: 40px; line-height: 1.5;
}
.hero-inner-centered p.hero-sub { margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner-centered .hero-ctas { justify-content: center; }

/* Visual stack used on home */
.visual-stack { position: relative; height: 460px; }
.v-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text);
}

/* ---------- STATS STRIP ---------- */
.stats {
  background: var(--bg-subtle);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1280px; margin: 0 auto; padding: 36px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stats-inner > div { text-align: center; padding: 12px 0; }
.stats-inner > div + div { border-left: 1px solid var(--border); }
.stats-inner .v {
  font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--neon);
  margin-bottom: 4px; text-shadow: 0 0 18px var(--neon-glow);
}
.stats-inner .l { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ---------- TRUSTED BY ---------- */
.trusted {
  background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.trusted-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.trusted-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.trusted-logos { display: flex; gap: 48px; flex-wrap: wrap; }
.trusted-logos span {
  font-weight: 800; font-size: 18px; color: rgba(255, 255, 255, 0.25); letter-spacing: -0.01em;
}

/* ---------- SECTION SHELLS ---------- */
section.section {
  max-width: 1280px; margin: 0 auto; padding: 100px 32px;
}
.section-eyebrow {
  font-size: 13px; color: var(--neon); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; margin-bottom: 20px;
}
.section-title {
  font-size: 52px; font-weight: 800; letter-spacing: -0.03em; max-width: 720px; margin-bottom: 24px; line-height: 1.05; color: var(--text);
}
.section-title .accent { color: var(--neon); }
.section-sub { font-size: 18px; color: var(--text-2); max-width: 640px; margin-bottom: 56px; }

.section-soft { background: var(--bg-surface); }
.section-dark { background: var(--bg-subtle); color: var(--text); }
.section-dark .section-title { color: var(--text); }
.section-dark .section-sub { color: var(--text-2); }

/* ---------- FEATURE CARDS ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; transition: all .2s;
}
.feature-card:hover {
  border-color: var(--neon-line); transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.08);
}
.feature-icon {
  font-size: 32px; margin-bottom: 16px; line-height: 1;
}
.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; color: var(--text); }
.feature-card p { color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* ---------- HOW IT WORKS / STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  transition: all .2s;
}
.step:hover {
  border-color: var(--neon-line);
  box-shadow: 0 0 20px rgba(0, 255, 153, 0.08);
}
.step-num {
  font-size: 56px; font-weight: 800; color: var(--neon); letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px;
  text-shadow: 0 0 24px var(--neon-glow);
}
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step p { color: var(--text-2); }

/* ---------- TESTIMONIALS ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column;
}
.test .stars { color: var(--neon); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.test blockquote { font-size: 16px; color: var(--text); line-height: 1.6; margin-bottom: 24px; flex: 1; }
.test cite { font-style: normal; font-size: 14px; color: var(--text-2); }
.test cite strong { color: var(--text); display: block; font-weight: 700; }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--bg-subtle); color: var(--text); position: relative; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-banner::after {
  content: ""; position: absolute; bottom: -180px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 153, 0.20), transparent 60%);
  pointer-events: none;
}
.cta-banner-inner {
  position: relative; max-width: 1280px; margin: 0 auto; padding: 100px 32px; text-align: center;
}
.cta-banner h2 {
  font-size: 56px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; line-height: 1.05;
}
.cta-banner h2 .accent { color: var(--neon); }
.cta-banner p { color: var(--text-2); font-size: 18px; margin-bottom: 36px; }

/* ---------- FOOTER ---------- */
footer.site {
  background: var(--bg-primary); color: var(--text); padding: 64px 32px 28px;
  border-top: 1px solid var(--border);
}
.foot-inner { max-width: 1280px; margin: 0 auto; }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border);
}
.foot-brand .brand { font-size: 24px; }
.foot-brand p {
  margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 280px;
}
.foot-col h4 {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.12em; font-weight: 700; margin-bottom: 14px;
}
.foot-col a {
  display: block; padding: 6px 0; font-size: 14px; color: var(--text-2);
  transition: color .15s;
}
.foot-col a:hover { color: var(--neon); }
.foot-bottom {
  padding-top: 28px; text-align: center; font-size: 13px; color: var(--muted);
}

/* ---------- INPUTS ---------- */
input, select, textarea {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 8px; padding: 12px 14px; width: 100%;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.30); }
input:focus, select:focus, textarea:focus {
  border-color: var(--neon-line); box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.15);
}
select option { background: var(--bg-surface); color: var(--text); }
label { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 6px; display: block; }
.field { margin-bottom: 16px; }
.required { color: var(--neon); }

/* ---------- PASSWORD GATE ---------- */
#preview-gate {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#preview-gate::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 153, 0.20), transparent 65%);
  pointer-events: none;
}
.gate-card {
  position: relative; max-width: 380px; width: 100%;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 32px; text-align: center;
  backdrop-filter: blur(12px);
}
.gate-card .brand-mark {
  font-size: 28px; font-weight: 800; color: var(--neon); letter-spacing: -0.03em; margin-bottom: 8px;
}
.gate-card .gate-label {
  font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; margin-bottom: 28px;
}
.gate-card input {
  background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--border-strong);
  text-align: center; font-size: 16px;
}
.gate-card input::placeholder { color: rgba(255, 255, 255, 0.35); }
.gate-card input:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.20); }
.gate-card button {
  margin-top: 14px; width: 100%;
  background: var(--neon); color: #000; border: none;
  border-radius: 8px; padding: 14px; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .15s, box-shadow .15s;
  font-family: inherit;
}
.gate-card button:hover { background: #00e688; box-shadow: 0 0 18px rgba(0, 255, 153, 0.4); }
.gate-card .gate-error {
  margin-top: 14px; color: #ff6b6b; font-size: 13px; min-height: 18px;
}
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.shake { animation: shake .4s ease-in-out; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 24px; gap: 60px; }
  h1.hero-title { font-size: 48px; }
  .visual-stack { height: 460px; max-width: 380px; margin: 0 auto; }
  .feature-grid, .steps, .test-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner > div + div { border-left: none; }
  .cta-banner-inner { padding: 60px 24px; }
  .cta-banner h2 { font-size: 36px; }
  .section-title { font-size: 36px; }
  section.section { padding: 60px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-right .btn-ghost { display: none; }
}
