/* ============================================================
   Edge Verify — Design System
   Brand: Edge Verify · Founder: David Singh Rana
   Dark, premium, honest. Zero external chart libs.
   ============================================================ */

:root {
  /* Palette */
  --bg:        #09111f;
  --bg-2:      #0c1526;
  --panel:     #0f1a2e;
  --panel-2:   #13223b;
  --line:      #1e2d47;
  --line-soft: #172236;

  --text:      #f8fafc;
  --muted:     #94a3b8;
  --muted-2:   #64748b;

  --blue:      #3b82f6;
  --cyan:      #22d3ee;
  --green:     #10b981;
  --red:       #ef4444;
  --gold:      #e6b450;

  --grad:      linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.16), rgba(34,211,238,.10));

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Space & shape */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 20px 50px -20px rgba(0,0,0,.6);
  --shadow-glow: 0 0 0 1px rgba(59,130,246,.25), 0 20px 60px -25px rgba(34,211,238,.35);
  --maxw:      1160px;
  --ease:      cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {  /* ambient glow */
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(700px 400px at 80% -5%, rgba(59,130,246,.12), transparent 60%),
    radial-gradient(600px 400px at 10% 10%, rgba(34,211,238,.08), transparent 55%);
  pointer-events: none; z-index: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
::selection { background: rgba(59,130,246,.35); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
section { padding: 84px 0; position: relative; z-index: 1; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(9,17,31,.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #05101f; font-weight: 600; }
.nav-links a.btn-primary:hover { color: #05101f; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #05101f; box-shadow: 0 10px 30px -10px rgba(34,211,238,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34,211,238,.7); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; font-size: 1.18rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .85rem; color: var(--muted-2); }
.hero-note b { color: var(--green); }

/* Hero visual card */
.viz-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.viz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .82rem; color: var(--muted); }
.viz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); display: inline-block; margin-right: 6px; }
.viz-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.viz-stat { background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px; }
.viz-stat .k { font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.viz-stat .v { font-size: 1.25rem; font-weight: 800; margin-top: 3px; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.015); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.trust span { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust b { color: var(--text); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.5); box-shadow: var(--shadow-glow); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(59,130,246,.3); margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 14px; font-size: .96rem; }
.card .more { color: var(--cyan); font-weight: 600; font-size: .9rem; }
.card .more:hover { text-decoration: underline; }
.card .tag { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.tag-live { background: rgba(16,185,129,.14); color: var(--green); border: 1px solid rgba(16,185,129,.35); }
.tag-soon { background: rgba(230,180,80,.14); color: var(--gold); border: 1px solid rgba(230,180,80,.35); }

/* Pillar number */
.pillar-n { font-size: .8rem; font-weight: 800; color: var(--muted-2); letter-spacing: .1em; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 10px; line-height: 1;
}
.step-arrow { display: none; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 34px 0; }
.feature.rev .fx { order: 2; }
.feature ul { list-style: none; padding: 0; margin: 16px 0 0; }
.feature li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
.feature li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.feature li b { color: var(--text); }

/* ---------- Honesty charter ---------- */
.charter { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.charter-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px 30px; margin-top: 20px; }
.charter-item { display: flex; gap: 12px; }
.charter-item .c-ic { color: var(--cyan); font-weight: 800; flex-shrink: 0; }
.charter-item p { margin: 0; font-size: .95rem; }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 760px; margin: 0 auto; }
.quote blockquote { font-size: clamp(1.3rem,2.8vw,1.9rem); font-weight: 600; color: var(--text); line-height: 1.4; margin: 0 0 14px; letter-spacing: -.02em; }
.quote cite { color: var(--muted); font-style: normal; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font-size: 1.02rem; font-weight: 600;
  padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq-q .chev { transition: transform .25s var(--ease); color: var(--cyan); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { padding: 0 20px 18px; margin: 0; font-size: .96rem; }

/* ---------- Waitlist ---------- */
.cta-band { background: var(--grad-soft); border: 1px solid rgba(59,130,246,.3); border-radius: var(--radius); padding: 44px; text-align: center; }
.wait-form { display: flex; gap: 10px; max-width: 480px; margin: 22px auto 0; flex-wrap: wrap; justify-content: center; }
.wait-form input {
  flex: 1 1 240px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text); font-size: .95rem; font-family: inherit;
}
.wait-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
.wait-msg { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
.wait-msg.ok { color: var(--green); } .wait-msg.err { color: var(--red); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .82rem; color: var(--muted-2); padding-top: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 8px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 48px 0 30px; }
.page-hero h1 { max-width: 780px; }
.page-hero .lead { margin-top: 8px; }

/* ---------- Prose (blog / about) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 30px; color: var(--text); }
.prose p, .prose li { color: var(--muted); font-size: 1.04rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--blue); padding-left: 18px; margin: 24px 0; color: var(--text); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--panel); color: var(--text); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 54px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: 12px; }
.footer .desc { font-size: .9rem; color: var(--muted); max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted-2); }
.disclaimer { font-size: .8rem; color: var(--muted-2); margin-top: 14px; max-width: 720px; line-height: 1.6; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Badges / small ---------- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-2, .steps, .feature, .charter-list, .footer-grid { grid-template-columns: 1fr; }
  .feature.rev .fx { order: 0; }
  .footer-grid { gap: 26px; }
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(9,17,31,.98); border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-140%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 22px; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin: 12px 22px; justify-content: center; }
  .nav-toggle { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
