/* Hope — shared design system. One file, no build step, no framework. */

:root {
  --bg: #07070b;
  --bg-soft: #0e0e16;
  --panel: #13131d;
  --panel-border: #22222f;
  --text: #f1f1f6;
  --text-dim: #9b9ba8;
  --text-faint: #6c6c7a;
  --accent: #7c5cff;
  --accent-2: #38e1c6;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --danger: #ff5c7a;
  --ok: #38e1c6;
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1160px;
  --font: -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 48px 0; }

/* Ambient glow background, pure CSS, no JS/images */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 0%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(500px circle at 90% 20%, rgba(56, 225, 198, 0.10), transparent 60%),
    var(--bg);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 11, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

@media (max-width: 820px) {
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-soft);
    border-bottom: 1px solid var(--panel-border); flex-direction: column; align-items: flex-start;
    padding: 16px 24px; gap: 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, opacity .15s, background .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6a3dff); color: white; box-shadow: 0 8px 24px -8px rgba(124,92,255,0.6); }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--panel-border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: #bdaaff; font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5.5vw, 58px); max-width: 820px; margin: 0 auto 18px; }
.hero .lead { font-size: 18px; max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-faint); }

.hero-shot {
  margin: 56px auto 0; max-width: 920px; border-radius: 18px; border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft)); padding: 4px; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.hero-shot-inner { border-radius: 14px; background: var(--bg-soft); padding: 28px; }
.fake-overlay { border: 1px solid var(--panel-border); border-radius: 12px; overflow: hidden; }
.fake-overlay-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0c0c13; border-bottom: 1px solid var(--panel-border); }
.fake-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .5; }
.fake-overlay-body { padding: 18px; font-size: 14px; color: var(--text-dim); text-align: left; }
.fake-overlay-body .me { color: var(--text); margin-bottom: 10px; }
.fake-overlay-body .ai { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; color: var(--text); display: inline-block; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 26px;
}
.feature-card .icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px;
}
.feature-card h3 { font-size: 17px; }
.feature-card p { margin: 0; font-size: 14.5px; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
}
.pricing-card.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -24px rgba(124,92,255,0.5); }
.pricing-badge {
  position: absolute; top: -12px; right: 24px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07070b; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.pricing-name { font-size: 15px; color: var(--text-dim); font-weight: 600; margin-bottom: 6px; }
.pricing-price { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.pricing-price span { font-size: 15px; color: var(--text-dim); font-weight: 500; }
.pricing-desc { font-size: 13.5px; color: var(--text-faint); margin-bottom: 22px; }
.pricing-feats { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-dim); flex: 1; }
.pricing-feats li { display: flex; gap: 8px; align-items: flex-start; }
.pricing-feats li::before { content: "✓"; color: var(--accent-2); font-weight: 700; }

/* ---------- Forms ---------- */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 64px 24px 80px; }
.auth-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 34px; }
.auth-card h1 { font-size: 24px; text-align: center; }
.auth-card .sub { text-align: center; font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--panel-border);
  background: #0c0c13; color: var(--text); font-size: 14.5px; font-family: var(--font);
}
.field input:focus { outline: none; border-color: var(--accent); }
.field-hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.form-msg { font-size: 13.5px; padding: 10px 12px; border-radius: 9px; margin-bottom: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(255, 92, 122, 0.12); color: #ff9fb0; }
.form-msg.ok { background: rgba(56, 225, 198, 0.12); color: #7ff0dd; }
.auth-switch { text-align: center; font-size: 14px; margin-top: 18px; color: var(--text-dim); }
.auth-switch a { color: var(--accent); font-weight: 600; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.otp-row .btn { flex-shrink: 0; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.plan-badge {
  display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--accent-soft); color: #bdaaff; margin-bottom: 10px;
}
.plan-badge.free { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--panel-border); font-size: 14.5px; }
.stat-row:last-child { border-bottom: none; }
.stat-row span:first-child { color: var(--text-faint); }

/* ---------- Table (admin) ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--panel-border); }
th { color: var(--text-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.table-wrap { overflow-x: auto; }
.tag { padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.tag.paid, .tag.active { background: rgba(56,225,198,0.14); color: #7ff0dd; }
.tag.created, .tag.free { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.tag.failed, .tag.cancelled { background: rgba(255,92,122,0.14); color: #ff9fb0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--panel-border); padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-col h4 { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; font-size: 13px; color: var(--text-faint); text-align: center; }

/* ---------- Misc ---------- */
.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.legal h2 { margin-top: 40px; font-size: 20px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25);
  border-top-color: white; animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 16px; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft);
  color: #bdaaff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.step h4 { margin: 0 0 4px; font-size: 15.5px; }
.step p { margin: 0; font-size: 14px; }
