/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0D1B2A; color: #E8EEF4; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 27, 42, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46, 117, 182, 0.2); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; color: #fff; }
.logo span { color: #2E75B6; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.92rem; }
.nav-links a { color: #A0B4C8; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.btn-outline { border: 1px solid #2E75B6; color: #2E75B6 !important;
  padding: 6px 18px; border-radius: 6px; transition: all .2s !important; }
.btn-outline:hover { background: #2E75B6; color: #fff !important; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 60% 40%, rgba(46,117,182,0.12) 0%, transparent 60%),
              linear-gradient(180deg, #0D1B2A 0%, #101E30 100%);
  padding-top: 62px; }
.hero-inner { max-width: 780px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.badge-pill { display: inline-block; background: rgba(46,117,182,0.15);
  border: 1px solid rgba(46,117,182,0.4); color: #5DA8F0;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 24px; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -1.5px; color: #fff; margin-bottom: 20px; }
.accent { color: #2E75B6; }
.hero-sub { font-size: 1.08rem; color: #8AA4BC; max-width: 580px;
  margin: 0 auto 40px; line-height: 1.7; }

/* ── Upload Card ─────────────────────────────────────────────── */
.upload-card { background: rgba(255,255,255,0.03);
  border: 1px solid rgba(46,117,182,0.25); border-radius: 16px;
  padding: 8px; max-width: 600px; margin: 0 auto; }
.drop-zone { border: 2px dashed rgba(46,117,182,0.35); border-radius: 12px;
  padding: 44px 32px; cursor: pointer; transition: all .25s; }
.drop-zone:hover, .drop-zone.drag-over {
  border-color: #2E75B6; background: rgba(46,117,182,0.06); }
.drop-icon { font-size: 2.8rem; margin-bottom: 12px; }
.drop-title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.drop-sub { font-size: 0.85rem; color: #6B8BA4; margin-bottom: 20px; }
.btn-upload { background: #2E75B6; color: #fff; border: none;
  padding: 11px 28px; border-radius: 8px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-upload:hover { background: #2563A8; }

/* ── Progress ────────────────────────────────────────────────── */
.progress-wrap { padding: 28px 20px; text-align: left; }
.progress-label { font-size: 0.95rem; color: #8AA4BC; margin-bottom: 10px; font-weight: 500; }
.progress-bar-bg { background: rgba(255,255,255,0.07); border-radius: 8px;
  height: 8px; overflow: hidden; margin-bottom: 18px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #2E75B6, #5DA8F0);
  border-radius: 8px; width: 0%; transition: width .4s ease; }
.signal-status { font-size: 0.82rem; color: #5DA8F0; min-height: 22px; font-family: monospace; }

/* ── Results ─────────────────────────────────────────────────── */
#resultsSection { padding: 40px 24px 60px; }
.results-inner { max-width: 760px; margin: 0 auto; }

.verdict-banner { border-radius: 14px; padding: 32px 28px; text-align: center;
  margin-bottom: 28px; border: 1px solid; }
.verdict-banner.real { background: rgba(30,122,52,0.12); border-color: rgba(30,122,52,0.4); }
.verdict-banner.ai   { background: rgba(180,30,30,0.10); border-color: rgba(180,30,30,0.35); }
.verdict-banner.suspicious { background: rgba(180,140,0,0.10); border-color: rgba(180,140,0,0.35); }
.verdict-icon { font-size: 3rem; margin-bottom: 8px; }
.verdict-text { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.verdict-score { font-size: 1.05rem; color: #8AA4BC; margin-bottom: 10px; }
.cert-id { display: inline-block; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  padding: 4px 14px; font-size: 0.82rem; font-family: monospace;
  color: #A0B4C8; letter-spacing: 1px; }

/* ── Signal Grid ─────────────────────────────────────────────── */
.signals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
@media(max-width:560px){ .signals-grid { grid-template-columns: 1fr; } }
.signal-card { background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 14px 16px; }
.signal-name { font-size: 0.8rem; color: #6B8BA4; margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.signal-score { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.signal-bar-bg { background: rgba(255,255,255,0.07); border-radius: 4px; height: 5px; }
.signal-bar-fill { height: 100%; border-radius: 4px; transition: width .6s ease; }

/* ── Action Buttons ──────────────────────────────────────────── */
.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.btn-primary { background: #2E75B6; color: #fff; padding: 12px 22px;
  border-radius: 8px; font-weight: 600; font-size: 0.92rem; transition: background .2s;
  display: inline-flex; align-items: center; gap: 7px; }
.btn-primary:hover { background: #2563A8; }
.btn-success { background: #1E7A34; color: #fff; padding: 12px 22px;
  border-radius: 8px; font-weight: 600; font-size: 0.92rem; transition: background .2s;
  display: inline-flex; align-items: center; gap: 7px; }
.btn-success:hover { background: #186029; }
.btn-forensic { background: rgba(139,117,54,0.14); color: #C4A84F;
  border: 1.5px solid #C4A84F; padding: 12px 22px; border-radius: 8px;
  font-weight: 600; font-size: 0.92rem; transition: all .2s;
  display: inline-flex; align-items: center; gap: 7px; }
.btn-forensic:hover { background: rgba(196,168,79,0.22); border-color: #E0C060; color: #E0C060; }
.btn-outline { border: 1px solid rgba(46,117,182,0.5); color: #5DA8F0;
  padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 0.92rem;
  transition: all .2s; display: inline-flex; align-items: center; gap: 7px; }
.btn-outline:hover { background: rgba(46,117,182,0.12); }
.btn-ghost { background: transparent; color: #6B8BA4; border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px; border-radius: 8px; font-size: 0.88rem; cursor: pointer;
  transition: all .2s; }
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.new-analysis { text-align: center; }
.listen-info {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(46,117,182,0.08);
  border: 1px solid rgba(46,117,182,0.25);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 20px;
  font-size: 0.84rem; color: #A0B4C8; line-height: 1.6;
}
.listen-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.listen-text strong { color: #fff; display: block; margin-bottom: 3px; }
.listen-text a { color: #5DA8F0; }

/* ── How It Works ────────────────────────────────────────────── */
.how-section { background: #101E30; padding: 80px 24px; }
.section-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.section-sub { color: #6B8BA4; font-size: 1rem; margin-bottom: 44px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media(max-width:700px){ .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 28px 22px; text-align: left; }
.step-num { font-size: 2rem; font-weight: 800; color: rgba(46,117,182,0.4);
  margin-bottom: 10px; font-family: monospace; }
.step-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: #6B8BA4; line-height: 1.6; }

/* ── Signals Section ─────────────────────────────────────────── */
.signals-section { padding: 80px 24px; }
.sig-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
@media(max-width:700px){ .sig-list { grid-template-columns: 1fr; } }
.sig-item { display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 18px 16px; }
.sig-dot { width: 10px; height: 10px; background: #2E75B6; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px; }
.sig-item strong { color: #fff; display: block; margin-bottom: 4px; }
.sig-item p, .sig-item div { font-size: 0.85rem; color: #6B8BA4; line-height: 1.55; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { background: #080F18; padding: 40px 24px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-logo span { color: #2E75B6; }
.footer p { color: #4A6070; font-size: 0.85rem; margin-bottom: 4px; }
.footer-small { font-size: 0.78rem !important; color: #354A5A !important; }

/* ── Verify Page ─────────────────────────────────────────────── */
.verify-wrap { min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 80px 24px 40px; }
.verify-card { background: rgba(255,255,255,0.03);
  border: 1px solid rgba(46,117,182,0.25); border-radius: 18px;
  padding: 40px; max-width: 620px; width: 100%; }
.verify-header { text-align: center; margin-bottom: 32px; }
.verify-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.verify-cert-id { font-family: monospace; font-size: 1.1rem; color: #5DA8F0;
  background: rgba(46,117,182,0.1); padding: 8px 20px; border-radius: 6px;
  display: inline-block; margin-top: 8px; }
.verify-verdict { text-align: center; padding: 24px; border-radius: 12px;
  margin-bottom: 24px; border: 1px solid; }
.verify-row { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.verify-row:last-child { border-bottom: none; }
.verify-row .lbl { color: #6B8BA4; }
.verify-row .val { color: #fff; font-weight: 500; font-family: monospace; font-size: 0.82rem; }
.loading-msg { text-align: center; color: #6B8BA4; padding: 40px; }
.error-msg { text-align: center; color: #E05555; padding: 40px; }
