/* ════════════════════════════════════════════════════════
   PromptQuestAi — Main Stylesheet
   Design: Premium Dark SaaS
   ════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ───────────────────────────────────── */
:root {
  --bg:           #030B14;
  --bg-2:         #060F1C;
  --panel:        rgba(10, 18, 38, 0.78);
  --panel-solid:  #0A1222;
  --line:         rgba(148, 163, 184, 0.09);
  --line-hover:   rgba(167, 139, 250, 0.3);
  --text:         #F1F5F9;
  --muted:        #8B9CB6;
  --subtle:       #475569;
  --accent:       #7C3AED;
  --accent-2:     #0EA5E9;
  --accent-3:     #4F46E5;
  --success:      #10B981;
  --danger:       #EF4444;
  --warning:      #F59E0B;
  --r-sm:         8px;
  --r:            14px;
  --r-lg:         20px;
  --r-xl:         28px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t:            0.18s;
  --shadow:       0 8px 32px rgba(0, 0, 0, 0.5);
  --glow:         0 0 48px rgba(124, 58, 237, 0.22);
}

/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ─── ANIMATED BACKGROUND ──────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.bg-orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
  will-change: transform;
}
.bg-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.18), transparent 65%);
  top: -250px; left: -200px;
  animation: orbDrift 14s ease-in-out infinite;
}
.bg-orb-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(14,165,233,0.13), transparent 65%);
  bottom: -100px; right: -150px;
  animation: orbDrift 18s ease-in-out infinite reverse;
}

/* ─── KEYFRAMES ────────────────────────────────────────── */
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.04); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167,139,250,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(167,139,250,0); }
}
@keyframes borderPulse {
  0%, 100% { border-color: rgba(124,58,237,0.2); }
  50%       { border-color: rgba(14,165,233,0.35); }
}
@keyframes typing {
  from { width: 0; } to { width: 100%; }
}

.anim-1 { animation: fadeUp 0.55s var(--ease) both; }
.anim-2 { animation: fadeUp 0.55s 0.1s var(--ease) both; }
.anim-3 { animation: fadeUp 0.55s 0.2s var(--ease) both; }
.anim-4 { animation: fadeUp 0.55s 0.3s var(--ease) both; }

/* ─── LAYOUT ───────────────────────────────────────────── */
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── TOPBAR ───────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  background: rgba(3, 11, 20, 0.78);
  border-bottom: 1px solid var(--line);
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.topbar.scrolled {
  background: rgba(3, 11, 20, 0.95);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center;
  gap: 10px; font-weight: 800;
  font-size: 1.1rem; letter-spacing: -0.025em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #7C3AED, #0EA5E9);
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  padding: 7px 14px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 0.875rem; font-weight: 500;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--text); background: rgba(124,58,237,0.12); color: #C4B5FD; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; padding: 8px;
  border-radius: var(--r-sm); cursor: pointer;
  background: none; border: none;
  transition: background var(--t) var(--ease);
}
.hamburger:hover { background: rgba(255,255,255,0.06); }
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: all 0.25s var(--ease);
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--text); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--text); }

/* Mobile Drawer */
.mobile-drawer {
  display: none; position: fixed;
  top: 63px; left: 0; right: 0; z-index: 199;
  background: rgba(3,11,20,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  animation: fadeIn 0.15s var(--ease);
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer nav { display: grid; gap: 4px; }
.mobile-drawer nav a {
  display: block; padding: 12px 16px;
  border-radius: var(--r-sm); color: var(--muted);
  font-size: 0.925rem; font-weight: 500;
  transition: all var(--t) var(--ease);
}
.mobile-drawer nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mobile-drawer-actions {
  display: flex; gap: 8px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.mobile-drawer-actions .btn { flex: 1; justify-content: center; }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: 0.875rem; font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text); cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap; position: relative;
  overflow: hidden; letter-spacing: -0.01em;
}
.btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124,58,237,0.38);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  box-shadow: 0 8px 28px rgba(124,58,237,0.55);
  border-color: transparent;
}
.btn-lg { padding: 12px 22px; font-size: 0.95rem; border-radius: var(--r); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* ─── BADGES / CHIPS ───────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(167,139,250,0.22);
  background: rgba(124,58,237,0.09);
  color: #C4B5FD; padding: 5px 12px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}
.badge-dot::before {
  content: ''; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #A78BFA;
  animation: pulseDot 2s ease-in-out infinite;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(167,139,250,0.15);
  background: rgba(124,58,237,0.06);
  color: #DDD6FE; border-radius: 999px;
  padding: 5px 10px; font-size: 0.8rem;
}

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #C4B5FD; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.05; font-weight: 900;
  letter-spacing: -0.035em; margin-bottom: 20px;
}
.grad {
  background: linear-gradient(135deg, #C4B5FD 0%, #38BDF8 55%, #D8B4FE 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s ease infinite;
}
.hero-lead {
  color: var(--muted); font-size: 1.05rem; line-height: 1.72;
  max-width: 50ch; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note {
  margin-top: 18px; color: var(--subtle); font-size: 0.83rem;
  display: flex; align-items: center; gap: 8px;
}
.hero-note::before {
  content: '✓'; color: var(--success);
  font-weight: 800; font-size: 0.85rem;
}

/* Demo Card */
.demo-card {
  background: var(--panel);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: var(--r-xl); padding: 18px;
  display: grid; gap: 14px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: borderPulse 4s ease-in-out infinite;
}
.demo-topbar {
  display: flex; align-items: center; gap: 7px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #EF4444; }
.dot-y { background: #F59E0B; }
.dot-g { background: #22C55E; }
.demo-name { margin-left: 6px; color: var(--subtle); font-size: 0.82rem; font-weight: 500; }
.demo-pane {
  background: rgba(2, 8, 20, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
}
.demo-pane-label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--subtle);
  font-weight: 700; margin-bottom: 8px;
}
.demo-pane-body { color: #CBD5E1; font-size: 0.88rem; line-height: 1.65; }
.demo-pane.is-output {
  border-color: rgba(124,58,237,0.2);
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(14,165,233,0.04));
}
.demo-pane.is-output .demo-pane-label { color: #A78BFA; }
.demo-pane.is-output .demo-pane-body { color: var(--text); }
.demo-arrow {
  text-align: center; color: var(--subtle); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--accent);
}
.demo-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.demo-footer-info { font-size: 0.8rem; color: var(--muted); }

/* ─── STATS ROW ────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin: 16px 0 0;
}
.stat-item {
  background: var(--panel-solid);
  padding: 28px 24px; text-align: center;
}
.stat-num {
  font-size: 2.3rem; font-weight: 900;
  letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(135deg, #C4B5FD, #38BDF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 6px;
}
.stat-label { color: var(--muted); font-size: 0.85rem; font-weight: 500; }

/* ─── SECTION ──────────────────────────────────────────── */
:root { --section-gap: 56px; }
.section { padding: var(--section-gap) 0; }
.section-hd { text-align: center; margin-bottom: 40px; }
.section-hd .badge { margin-bottom: 14px; }
.section-hd h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px;
}
.section-hd p { color: var(--muted); font-size: 0.97rem; max-width: 50ch; margin: 0 auto; }

/* ─── HOW IT WORKS ─────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 27px;
  left: calc(16.67% + 12px); right: calc(16.67% + 12px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), transparent);
}
.step { text-align: center; padding: 28px 20px; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(10,18,38,0.9);
  border: 1px solid rgba(124,58,237,0.3);
  display: grid; place-items: center; margin: 0 auto 18px;
  font-size: 1.2rem; font-weight: 900;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(14,165,233,0.08));
  color: #C4B5FD; position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* ─── FEATURE GRID ─────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ─── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
  position: relative; overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 80% 20%, rgba(124,58,237,0.05), transparent 60%);
  opacity: 0; transition: opacity var(--t) var(--ease);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(167,139,250,0.22);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
}
.card:hover::after { opacity: 1; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.25rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(14,165,233,0.06));
  border: 1px solid rgba(167,139,250,0.18);
}
.card h3 {
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.015em; margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* ─── PRICING ──────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-badge { color: var(--subtle); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.plan h3 { font-size: 1.25rem; font-weight: 800; margin: 6px 0; }
.price {
  font-size: 3rem; font-weight: 900;
  letter-spacing: -0.05em; line-height: 1;
  display: flex; align-items: flex-start; gap: 2px;
}
.price-sym { font-size: 1.4rem; font-weight: 700; margin-top: 8px; }
.price-sub { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.plan-credits { color: var(--muted); font-size: 0.85rem; }
.plan-divider { height: 1px; background: var(--line); margin: 12px 0; }
.plan ul { list-style: none; display: grid; gap: 10px; }
.plan li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--muted); font-size: 0.875rem;
}
.plan li::before {
  content: '✓'; color: var(--success); font-weight: 800;
  font-size: 0.8rem; margin-top: 2px; flex-shrink: 0;
}
.plan.featured {
  border-color: rgba(167,139,250,0.28);
  background: linear-gradient(160deg, rgba(124,58,237,0.09), var(--panel));
  box-shadow: 0 0 0 1px rgba(167,139,250,0.12), 0 24px 64px rgba(124,58,237,0.2);
  position: relative;
}
.plan.featured .popular-tag {
  position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}
.plan.featured { padding-top: 36px; }

/* ─── CTA SECTION ──────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 60px 40px;
  background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(14,165,233,0.04));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  margin: 28px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15), transparent 65%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.035em; margin-bottom: 14px;
}
.cta-section p { color: var(--muted); font-size: 1rem; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6,15,28,0.6), var(--bg));
  padding: 48px 0 24px; margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.footer-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.65; max-width: 28ch; margin-bottom: 18px; }
.footer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text); margin-bottom: 16px;
}
.footer-col-sub {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--subtle); margin: 20px 0 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a {
  color: var(--muted); font-size: 0.875rem;
  transition: color var(--t) var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  color: var(--subtle); font-size: 0.82rem;
}
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal-links a { color: var(--subtle); font-size: 0.82rem; transition: color var(--t) var(--ease); }
.footer-legal-links a:hover { color: var(--muted); }

/* ─── UTILITY ──────────────────────────────────────────── */
.muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* ─── PAGE HEADERS ─────────────────────────────────────── */
.page-hero { padding: 72px 0 48px; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900; letter-spacing: -0.035em; margin-bottom: 14px;
}
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

/* ─── POLICY PAGES ─────────────────────────────────────── */
.policy-wrap { max-width: 760px; margin: 0 auto; padding: 0 0 80px; }
.policy-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 48px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.policy-body h2 { font-size: 1.1rem; font-weight: 700; margin: 36px 0 10px; color: var(--text); }
.policy-body h3 { font-size: 0.95rem; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.policy-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.75; margin-bottom: 14px; }
.policy-body ul { color: var(--muted); font-size: 0.9rem; line-height: 1.75; padding-left: 20px; margin-bottom: 14px; }
.policy-body ul li { margin-bottom: 6px; }
.policy-body a { color: var(--accent); text-decoration: underline; }
.policy-body strong { color: var(--text); font-weight: 600; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.policy-nav a { font-size: 0.82rem; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; transition: all var(--t) var(--ease); }
.policy-nav a:hover, .policy-nav a.active { color: var(--text); border-color: var(--accent); background: rgba(124,58,237,0.08); }

/* ─── CONTACT PAGE ─────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.contact-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.contact-info p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 8px; }
.contact-detail {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--r);
  background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.15);
  color: var(--muted); font-size: 0.875rem; margin-bottom: 10px;
}
.contact-detail-icon { font-size: 1.1rem; }

/* ─── FORM ELEMENTS ────────────────────────────────────── */
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.82rem; font-weight: 600;
  color: #C4B5FD; letter-spacing: 0.01em;
}
.field input, .field textarea, .field select {
  width: 100%; border-radius: var(--r); padding: 11px 14px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 38, 0.7);
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(124,58,237,0.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.field textarea { min-height: 130px; resize: vertical; }

/* ─── ALERTS ───────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-sm);
  font-size: 0.875rem; line-height: 1.5; font-weight: 500;
}
.alert-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.22); color: #FCA5A5; }
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.22); color: #6EE7B7; }

/* ─── PRICING TOGGLE (shared: home + pricing page) ────── */
.billing-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 28px 0 44px; flex-wrap: wrap;
}
.billing-label {
  font-size: 0.95rem; font-weight: 600;
  color: var(--muted); transition: color .2s; cursor: pointer;
}
.billing-label.is-active { color: var(--text); }
.toggle-track {
  position: relative; width: 52px; height: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: background .25s, border-color .25s;
  flex-shrink: 0;
}
.toggle-track.is-yearly { background: linear-gradient(135deg,#7C3AED,#4F46E5); border-color: transparent; }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.toggle-track.is-yearly .toggle-thumb { transform: translateX(24px); }
.billing-chk { display: none; }
.save-pill {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg,#10B981,#059669);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px;
  transition: opacity .2s, transform .2s;
}
.save-pill.is-hidden { opacity: 0; transform: scale(.85); pointer-events: none; }

/* Pricing cards (px-*) */
.px-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; align-items: stretch;
}
.px-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px 24px 24px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.px-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.px-card.has-bar { padding-top: 0; }
/* Generic tier bar — background color set per-card via inline style */
.px-tier-bar {
  text-align: center; padding: 11px; border-radius: 20px 20px 0 0;
  font-size: 0.82rem; font-weight: 700; letter-spacing: .06em; color: #fff;
  margin: -1px -1px 28px -1px;
}
/* Legacy alias kept for compatibility */
.px-popular-bar { text-align: center; padding: 11px; border-radius: 20px 20px 0 0; font-size: 0.82rem; font-weight: 700; letter-spacing: .06em; color: #fff; margin: -1px -1px 28px -1px; }
.px-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.px-price-row { display: flex; align-items: flex-start; gap: 2px; line-height: 1; }
.px-sym { font-size: 1.4rem; font-weight: 700; margin-top: 8px; }
.px-amount { font-size: 3.2rem; font-weight: 900; letter-spacing: -.05em; transition: all .22s; }
.px-per { font-size: .88rem; font-weight: 500; color: var(--muted); align-self: flex-end; margin-bottom: 6px; margin-left: 3px; }
.px-save { font-size: .82rem; font-weight: 700; color: #10B981; height: 20px; margin-top: 4px; transition: opacity .2s; }
.px-save.is-hidden { opacity: 0; }
.px-desc { color: var(--muted); font-size: .875rem; margin: 12px 0 18px; line-height: 1.55; }
.px-divider { height: 1px; background: var(--line); margin: 18px 0; }
.px-features { list-style: none; display: grid; gap: 11px; margin-bottom: 22px; flex: 1; align-content: start; }
.px-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--muted); }
.px-features li::before { content: '✓'; color: #10B981; font-weight: 800; font-size: .8rem; margin-top: 1px; flex-shrink: 0; }
.px-btn {
  display: block; width: 100%; text-align: center; padding: 13px; border-radius: 13px;
  font-size: .925rem; font-weight: 700; cursor: pointer; transition: all .2s;
  border: none; font-family: inherit; text-decoration: none;
}
.px-btn-ghost { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text); }
.px-btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-1px); }
/* Tier-coloured buttons */
.px-btn-green  { background: linear-gradient(135deg,#10B981,#059669); color: #fff; box-shadow: 0 4px 20px rgba(16,185,129,.4); }
.px-btn-green:hover  { box-shadow: 0 8px 28px rgba(16,185,129,.55); transform: translateY(-1px); }
.px-btn-blue   { background: linear-gradient(135deg,#0EA5E9,#2563EB); color: #fff; box-shadow: 0 4px 20px rgba(14,165,233,.4); }
.px-btn-blue:hover   { box-shadow: 0 8px 28px rgba(14,165,233,.55); transform: translateY(-1px); }
.px-btn-purple { background: linear-gradient(135deg,#7C3AED,#9333EA); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,.4); }
.px-btn-purple:hover { box-shadow: 0 8px 28px rgba(124,58,237,.55); transform: translateY(-1px); }
/* Legacy */
.px-btn-popular { background: linear-gradient(135deg,#7C3AED,#4F46E5); color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,.4); }
.px-btn-popular:hover { box-shadow: 0 8px 28px rgba(124,58,237,.55); transform: translateY(-1px); }
.px-btn-outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.px-btn-outline:hover { border-color: rgba(167,139,250,.3); color: var(--text); transform: translateY(-1px); }
.free-note {
  display: flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,.07); border: 1px solid rgba(16,185,129,.18);
  border-radius: 8px; padding: 8px 12px;
  font-size: .78rem; font-weight: 600; color: #6EE7B7; margin-bottom: 14px;
}
.trial-banner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
  background: linear-gradient(135deg,rgba(16,185,129,0.1),rgba(14,165,233,0.07));
  border: 1px solid rgba(16,185,129,0.22); border-radius: 14px;
  padding: 13px 20px; margin: 20px auto 0; max-width: 640px; font-size: .875rem;
}
.trial-banner strong { color: #6EE7B7; }
.trial-banner span { color: var(--muted); }
.trial-banner a { color: #38BDF8; font-weight: 600; }

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { gap: 36px; padding: 64px 0 52px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .px-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-gap: 40px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 40px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .stats-row { grid-template-columns: 1fr; background: none; border: none; gap: 0; }
  .stat-item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
  .cta-section { padding: 40px 24px; }
}
@media (max-width: 640px) {
  :root { --section-gap: 28px; }
  .container { width: calc(100% - 24px); }
  .feature-grid, .pricing-grid, .px-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .hero h1 { font-size: 2rem; }
}
