@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --accent:       #F5B800;
  --accent-dim:   #F5B80033;
  --accent-mid:   #F5B80066;
  --accent-soft:  #fffbeb;
  --accent-dark:  #8B6500;
  --green:        #059669;
  --green-light:  #ecfdf5;
  --green-border: #a7f3d0;
  --rose:         #be123c;
  --rose-light:   #fff1f2;
  --rose-border:  #fecdd3;
  --dark-bg:      #0f1117;
  --neutral-900:  #171717;
  --neutral-800:  #262626;
  --neutral-700:  #404040;
  --neutral-600:  #525252;
  --neutral-500:  #737373;
  --neutral-400:  #a3a3a3;
  --neutral-300:  #d4d4d4;
  --neutral-200:  #e5e5e5;
  --neutral-100:  #f5f5f5;
  --neutral-50:   #fafafa;
}

/* ── Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  color: var(--neutral-900);
  background: #fff;
  margin: 0;
}

.font-display { font-family: 'Geist', system-ui, sans-serif; letter-spacing: -0.02em; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

/* ── Grid background ───────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ── Accent underline ──────────────────────────────────────────── */
.accent-underline {
  background-image: linear-gradient(transparent 65%, var(--accent-mid) 65%, var(--accent-mid) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease-out forwards; }

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ── Layout ────────────────────────────────────────────────────── */
.ev-section { border-bottom: 1px solid var(--neutral-200); }
.ev-container { max-width: 1152px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .ev-container { padding: 0 2rem; } }
.ev-container-md { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
.section-py    { padding-top: 6rem; padding-bottom: 6rem; }

/* ── Navbar ────────────────────────────────────────────────────── */
.ev-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229,229,229,0.6);
  height: 64px;
}
.ev-logo-mark {
  width: 28px; height: 28px;
  background: var(--neutral-900);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0;
}
.ev-logo-mark .at { color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; }
.ev-logo-dot {
  position: absolute; top: -2px; right: -2px;
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}
.ev-nav-brand { text-decoration: none; color: var(--neutral-900); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; }
.ev-nav-brand:hover { color: var(--neutral-900); }
.ev-nav-link { font-size: 0.875rem; color: var(--neutral-600); text-decoration: none; transition: color 0.15s; }
.ev-nav-link:hover { color: var(--neutral-900); }
.ev-nav-link.active { color: var(--neutral-900); font-weight: 500; }
.btn-start-free {
  background: var(--neutral-900); color: #fff !important;
  font-size: 0.875rem; padding: 0.45rem 1rem; border-radius: 6px;
  text-decoration: none; transition: background 0.15s;
}
.btn-start-free:hover { background: var(--neutral-700); }

/* ── Hero ──────────────────────────────────────────────────────── */
.ev-hero { background: #fff; color: var(--neutral-900); position: relative; overflow: hidden; border-bottom: 1px solid var(--neutral-200); }
.ev-hero::before { content: ''; position: absolute; inset-x: 0; top: 0; height: 1px; background: linear-gradient(to right, transparent, var(--neutral-300), transparent); }
.ev-hero .grid-bg { position: absolute; inset: 0; opacity: 0.6; pointer-events: none; }
.ev-hero-scan {
  position: absolute; bottom: 0; left: 0; width: 100%; height: auto;
  pointer-events: none; z-index: 0; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
  opacity: 0.75;
}
.ev-hero-inner { position: relative; padding: 5rem 0 6rem; }
.ev-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 99px;
  background: var(--neutral-100); border: 1px solid var(--neutral-200);
  font-size: 0.75rem; color: var(--neutral-700); margin-bottom: 2rem;
}
.ev-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 600;
  line-height: 1.03; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: var(--neutral-900);
}
.ev-hero .lead { font-size: 1.1rem; color: var(--neutral-600); line-height: 1.65; max-width: 520px; margin-bottom: 2.25rem; }
.ev-hero-trust { font-size: 0.75rem; color: var(--neutral-500); display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.ev-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.btn-outline-light-ev {
  background: transparent; color: var(--neutral-700) !important;
  border: 1px solid var(--neutral-300); font-size: 0.875rem;
  padding: 0.6rem 1.25rem; border-radius: 6px; text-decoration: none; transition: border-color 0.15s, color 0.15s;
}
.btn-outline-light-ev:hover { border-color: var(--neutral-900); color: var(--neutral-900) !important; }
.btn-white {
  background: #fff; color: var(--neutral-900) !important;
  border: none; font-size: 0.875rem;
  padding: 0.6rem 1.25rem; border-radius: 6px; text-decoration: none; transition: background 0.15s;
}
.btn-white:hover { background: var(--neutral-200); color: var(--neutral-900) !important; }

/* ── Inline checker ────────────────────────────────────────────── */
.ev-checker { background: #fff; border-radius: 12px; border: 1px solid var(--neutral-200); box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; color: var(--neutral-900); }
.ev-checker-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--neutral-100); }
.ev-checker-body { padding: 1.25rem; }
.ev-checker input[type="email"] {
  flex: 1; padding: 0.6rem 0.85rem;
  border: 1px solid var(--neutral-300); border-radius: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s; min-width: 0;
}
.ev-checker input[type="email"]:focus { border-color: var(--neutral-900); box-shadow: 0 0 0 2px rgba(23,23,23,0.1); }
.btn-verify {
  padding: 0.6rem 1rem; background: var(--neutral-900); color: #fff;
  border: none; border-radius: 6px; font-size: 0.875rem; cursor: pointer; transition: background 0.15s; white-space: nowrap;
}
.btn-verify:hover { background: var(--neutral-700); }
.btn-verify:disabled { opacity: 0.4; cursor: not-allowed; }
.result-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; border: 1px solid transparent; }
.result-valid   { background: var(--green-light); color: #065f46; border-color: var(--green-border); }
.result-risky   { background: #fffbeb; color: var(--accent-dark); border-color: #fde68a; }
.result-invalid { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.ev-flag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-flag { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: var(--neutral-50); border: 1px solid var(--neutral-100); border-radius: 6px; font-size: 0.8rem; }
.ev-flag .flag-val { font-family: 'JetBrains Mono', monospace; }
.flag-true       { color: var(--neutral-900); }
.flag-danger-true{ color: #be123c; }
.flag-false      { color: var(--neutral-400); }
.json-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-500); border: none; background: none; padding: 0; width: 100%; transition: color 0.15s; }
.json-toggle:hover { color: var(--neutral-900); }
.ev-checker pre { background: var(--neutral-50); border: 1px solid var(--neutral-200); border-radius: 6px; padding: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; line-height: 1.6; overflow-x: auto; margin: 0.5rem 0 0; }

/* ── Section headings ──────────────────────────────────────────── */
.section-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--neutral-500); }
.section-h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: 0.75rem; margin-bottom: 0; }
.dark-section .section-tag { color: var(--accent); }
.dark-section .section-h2  { color: #fff; }

/* ── How it works ──────────────────────────────────────────────── */
.ev-steps { border: 1px solid var(--neutral-200); border-radius: 8px; overflow: hidden; display: flex; }
.ev-step { flex: 1; background: #fff; padding: 2rem; transition: background 0.15s; }
.ev-step:hover { background: var(--neutral-50); }
.ev-step + .ev-step { border-left: 1px solid var(--neutral-200); }
.ev-step-num { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; margin-bottom: 1.5rem; color: var(--neutral-400); }
.ev-step-num.accent { color: var(--accent-dark); }
.ev-step h3 { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.ev-step p  { font-size: 0.875rem; color: var(--neutral-600); line-height: 1.65; margin: 0; }

/* ── Feature cards ─────────────────────────────────────────────── */
.ev-feature-card { padding: 1.5rem; background: #fff; border: 1px solid var(--neutral-200); border-radius: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.ev-feature-card:hover { border-color: var(--neutral-300); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ev-feature-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--neutral-900); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.ev-feature-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.75; }
.ev-feature-card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.ev-feature-card p  { font-size: 0.875rem; color: var(--neutral-600); line-height: 1.6; margin: 0; }

/* ── Use case cards ────────────────────────────────────────────── */
.ev-use-card { padding: 1.75rem; border: 1px solid var(--neutral-200); border-radius: 8px; transition: border-color 0.15s; }
.ev-use-card:hover { border-color: var(--neutral-900); }
.ev-use-card h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.ev-use-card p  { font-size: 0.875rem; color: var(--neutral-600); line-height: 1.65; margin-bottom: 1.5rem; }
.ev-use-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--neutral-500); }
.ev-use-card:hover .ev-use-tag { color: var(--neutral-900); }

/* ── API First (dark) ──────────────────────────────────────────── */
.dark-section { background: var(--neutral-900); color: #fff; }
.dark-section p.text-muted { color: rgba(255,255,255,0.45) !important; }
.dark-section h4 { color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.ev-code-panel { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.ev-code-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.ev-code-panel-header .panel-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); }
.ev-code-panel-header .latency { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; }
.ev-code-panel pre { margin: 0; padding: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; line-height: 1.65; color: rgba(255,255,255,0.85); overflow-x: auto; }
.btn-copy-code { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.4); font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; display: flex; align-items: center; gap: 4px; transition: color 0.15s; padding: 0; }
.btn-copy-code:hover { color: #fff; }

/* ── Pricing card ──────────────────────────────────────────────── */
.ev-pricing-card { border: 2px solid var(--neutral-900); border-radius: 8px; padding: 2rem; position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #fffbeb 100%); }
.ev-pricing-card .glow { position: absolute; top: 0; right: 0; width: 200px; height: 200px; background: #F5B80033; border-radius: 50%; filter: blur(48px); transform: translate(40%, -40%); pointer-events: none; }
.ev-open-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 0.75rem; }
.ev-open-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }

/* ── Security badges ───────────────────────────────────────────── */
.ev-sec-badge { display: flex; align-items: center; gap: 12px; padding: 0.7rem 1rem; background: #fff; border: 1px solid var(--neutral-200); border-radius: 6px; font-size: 0.875rem; }
.ev-sec-icon { width: 24px; height: 24px; background: var(--green-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-sec-icon svg { width: 14px; height: 14px; stroke: var(--green); fill: none; stroke-width: 2; }

/* ── Pricing table ─────────────────────────────────────────────── */
.ev-ptable { border: 1px solid var(--neutral-200); border-radius: 8px; overflow: hidden; }
.ev-ptable-header { display: grid; grid-template-columns: 5fr 3fr 3fr 1fr; padding: 0.6rem 1.5rem; background: var(--neutral-50); border-bottom: 1px solid var(--neutral-200); }
.ev-ptable-header span { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--neutral-500); }
.ev-ptable-row { display: grid; grid-template-columns: 5fr 3fr 3fr 1fr; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--neutral-100); transition: background 0.1s; position: relative; }
.ev-ptable-row:last-child { border-bottom: none; }
.ev-ptable-row:hover { background: var(--neutral-50); }
.ev-ptable-row.popular { background: #fffcf0; }
.ev-ptable-row.popular::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.ev-ptable-row .credits { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.75rem; }
.ev-ptable-row .price   { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.ev-ptable-row .per     { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--neutral-500); }
.ev-ptable-row .buy-btn { text-align: right; font-size: 0.875rem; color: var(--neutral-600); cursor: pointer; background: none; border: none; padding: 0; transition: color 0.15s; }
.ev-ptable-row .buy-btn:hover { color: var(--neutral-900); }
.popular-badge { display: inline-block; background: var(--accent); color: #1a1a1a; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 4px; }

/* ── Included items ────────────────────────────────────────────── */
.ev-included { display: flex; align-items: center; gap: 12px; padding: 0.7rem 1rem; background: #fff; border: 1px solid var(--neutral-200); border-radius: 6px; font-size: 0.875rem; }
.ev-included-icon { width: 20px; height: 20px; background: #fffbeb; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-included-icon svg { width: 12px; height: 12px; stroke: var(--accent-dark); fill: none; stroke-width: 2.5; }

/* ── FAQ ───────────────────────────────────────────────────────── */
.ev-faq .accordion-button { font-family: 'Geist', system-ui, sans-serif; font-size: 1.05rem; font-weight: 500; color: var(--neutral-900); background: #fff; letter-spacing: -0.01em; }
.ev-faq .accordion-button:not(.collapsed) { color: var(--neutral-900); background: #fff; box-shadow: none; }
.ev-faq .accordion-button:focus { box-shadow: none; }
.ev-faq .accordion-body { font-size: 0.875rem; color: var(--neutral-600); line-height: 1.7; padding-right: 3rem; }
.ev-faq .accordion-item { border-left: none; border-right: none; border-radius: 0 !important; }
.ev-faq .accordion-item:first-child { border-top: none; }

/* ── Status badge (footer) ─────────────────────────────────────── */
.ev-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--green-light); border: 1px solid var(--green-border); border-radius: 99px; font-size: 0.75rem; font-weight: 500; color: #047857; text-decoration: none; }
.ev-status-badge:hover { border-color: #6ee7b7; }
.status-dot-wrap { position: relative; display: flex; width: 8px; height: 8px; }
.status-dot-ping { position: absolute; inset: 0; background: var(--green); border-radius: 50%; opacity: 0.6; animation: ping 1.4s cubic-bezier(0,0,0.2,1) infinite; }
.status-dot-solid { position: relative; width: 8px; height: 8px; background: var(--green); border-radius: 50%; }

/* ── Footer ────────────────────────────────────────────────────── */
.ev-footer { padding: 4rem 0 2rem; }
.ev-footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--neutral-500); margin-bottom: 1rem; }
.ev-footer ul { list-style: none; padding: 0; margin: 0; }
.ev-footer li { margin-bottom: 0.5rem; }
.ev-footer a  { font-size: 0.875rem; color: var(--neutral-700); text-decoration: none; transition: color 0.15s; }
.ev-footer a:hover { color: var(--neutral-900); }
.ev-footer-bottom { border-top: 1px solid var(--neutral-200); padding-top: 2rem; margin-top: 3rem; }
.ev-footer-bottom p { font-size: 0.75rem; color: var(--neutral-500); margin: 0; }
.ev-social-icon { color: var(--neutral-500); transition: color 0.15s; }
.ev-social-icon:hover { color: var(--neutral-900); }

/* ── Register page ─────────────────────────────────────────────── */
.ev-register-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; background: var(--neutral-50); }
.ev-register-card { background: #fff; border: 1px solid var(--neutral-200); border-radius: 12px; padding: 2.5rem 3rem; max-width: 520px; width: 100%; }
.ev-register-card h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.ev-register-card .sub { font-size: 0.95rem; color: var(--neutral-600); margin-bottom: 2rem; }
.ev-form-group { margin-bottom: 1.25rem; }
.ev-form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.ev-form-group input { width: 100%; padding: 0.6rem 0.85rem; border: 1px solid var(--neutral-300); border-radius: 6px; font-family: 'Geist', system-ui, sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.ev-form-group input:focus { border-color: var(--neutral-900); box-shadow: 0 0 0 2px rgba(23,23,23,0.08); }
.btn-submit { width: 100%; padding: 0.7rem; background: var(--neutral-900); color: #fff; border: none; border-radius: 6px; font-family: 'Geist', system-ui, sans-serif; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: background 0.15s; margin-top: 0.5rem; }
.btn-submit:hover { background: var(--neutral-700); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ev-form-msg { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.875rem; display: none; }
.ev-form-msg.success { background: var(--green-light); color: #065f46; border: 1px solid var(--green-border); display: block; }
.ev-form-msg.error   { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; display: block; }
.ev-closed-msg { display: none; font-size: 0.85rem; color: var(--accent-dark); background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 0.6rem 0.85rem; margin-bottom: 1.5rem; }

/* ── Social auth buttons ───────────────────────────────────────── */
.ev-social-auth { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.6rem 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; text-decoration: none; border: 1px solid var(--neutral-300); background: #fff; color: var(--neutral-900); transition: background 0.15s, border-color 0.15s; }
.btn-social:hover { background: var(--neutral-50); border-color: var(--neutral-400); color: var(--neutral-900); }
.ev-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--neutral-400); font-size: 0.8rem; }
.ev-divider::before, .ev-divider::after { content: ''; flex: 1; border-top: 1px solid var(--neutral-200); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ev-steps { flex-direction: column; }
  .ev-step + .ev-step { border-left: none; border-top: 1px solid var(--neutral-200); }
  .ev-ptable-row { grid-template-columns: 1fr 1fr; }
  .ev-ptable-row .per, .ev-ptable-row .buy-btn { display: none; }
  .ev-ptable-header { display: none; }
  .ev-register-card { padding: 1.75rem 1.5rem; }
}
