@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --bg:        #111214;
  --surface:   #1a1c1f;
  --surface2:  #22252a;
  --border:    #2a2d33;
  --green:     #2ecc71;
  --green-dim: #1a7a42;
  --yellow:    #f1c40f;
  --yellow-dim:#7a6008;
  --text:      #e8eaed;
  --muted:     #7a8190;
  --mono:      'Space Mono', monospace;
  --sans:      'DM Sans', sans-serif;
  --radius:    6px;
  --radius-lg: 12px;
  --nav-h:     64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--yellow); }

img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(17,18,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
}
.logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  font-family: var(--mono);
  font-size: .78rem !important;
  font-weight: 700 !important;
  color: var(--green) !important;
  border: 1px solid var(--green);
  padding: .4rem .9rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--green); color: var(--bg) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 3rem);
}

section { padding: 5rem 0; }

/* ── HERO ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,204,113,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,204,113,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(46,204,113,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green);
}

h1 {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
h1 em { font-style: normal; color: var(--green); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 0 0 rgba(46,204,113,0);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(46,204,113,.3); color: var(--bg); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }

.btn-yellow {
  background: var(--yellow);
  color: #111;
}
.btn-yellow:hover { box-shadow: 0 8px 32px rgba(241,196,15,.3); color: #111; }

/* ── STAT BAR ── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0;
}
.stats-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  display: block;
}
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── SECTION HEADS ── */
.section-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 48px;
  height: 1px;
  background: var(--green);
}

h2 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
h2 em { font-style: normal; color: var(--green); }

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── PRODUCT CARDS ── */
.products { background: var(--surface); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .2s;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent, var(--green));
  transform: scaleX(0);
  transition: transform .3s;
}
.product-card:hover { border-color: var(--accent, var(--green)); transform: translateY(-4px); }
.product-card:hover::before { transform: scaleX(1); }

.product-card.featured {
  border-color: var(--green);
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .product-card.featured { grid-column: span 1; }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(46,204,113,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}
.card-yellow .card-icon { background: rgba(241,196,15,.12); --accent: var(--yellow); }
.card-blue .card-icon { background: rgba(52,152,219,.12); --accent: #3498db; }

.card-tag {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(46,204,113,.1);
  padding: .25rem .6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: .75rem;
}
.card-yellow .card-tag { color: var(--yellow); background: rgba(241,196,15,.1); }
.card-blue .card-tag { color: #3498db; background: rgba(52,152,219,.1); }

h3 {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: .75rem;
}

.card-text {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.5rem;
}
.card-features li {
  font-size: .83rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.card-features li::before {
  content: '→';
  color: var(--green);
  flex-shrink: 0;
  font-family: var(--mono);
}
.card-yellow .card-features li::before { color: var(--yellow); }
.card-blue .card-features li::before { color: #3498db; }

.card-link {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--green);
  transition: gap .2s;
}
.card-link:hover { gap: .7rem; }
.card-yellow .card-link { color: var(--yellow); }
.card-blue .card-link { color: #3498db; }

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
}

.step-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h4 {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

.step p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CERT DEMO ── */
.cert-visual {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  max-width: 480px;
  position: relative;
}
.cert-visual .cert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cert-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.cert-id { font-size: .65rem; color: var(--green); }

.cert-field { margin-bottom: .65rem; }
.cert-field .label { color: var(--green); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.cert-field .value { color: var(--text); margin-top: .15rem; }

.cert-qr {
  width: 64px;
  height: 64px;
  background: var(--text);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 3px;
  padding: 6px;
  margin-top: 1.5rem;
}
.cert-qr span {
  display: block;
  background: var(--bg);
  border-radius: 1px;
}

/* ── VERIFY SECTION ── */
.verify-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 600px;
}

.input-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.text-input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.text-input:focus { border-color: var(--green); }
.text-input::placeholder { color: var(--muted); }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .2s;
}
.feature:hover { border-color: rgba(46,204,113,.4); }

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.feature h4 {
  font-family: var(--mono);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.feature p {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── API BLOCK ── */
.api-block {
  background: #0d0f11;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  font-family: var(--mono);
  font-size: .78rem;
  overflow-x: auto;
  line-height: 1.7;
}
.api-block .method { color: var(--yellow); }
.api-block .path { color: var(--text); }
.api-block .key { color: #56b6c2; }
.api-block .val { color: #98c379; }
.api-block .comment { color: var(--muted); }
.api-block .status-valid { color: var(--green); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* ── ABOUT ── */
.mission-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.mission-point {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.mission-point h4 {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .6rem;
}

.mission-point p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── LEGAL PAGES ── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: .5rem;
}

.legal-content .updated {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  color: var(--text);
}

.legal-content p, .legal-content li {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: .75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content ul li { list-style: none; position: relative; }
.legal-content ul li::before { content: '—'; position: absolute; left: -1.25rem; color: var(--green); }

.legal-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.8;
}
.legal-block strong { color: var(--text); }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo { font-size: 1rem; display: block; margin-bottom: .75rem; }
.footer-brand p { font-size: .82rem; color: var(--muted); line-height: 1.65; }

.footer-col h5 {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .85rem; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-legal a {
  font-size: .75rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--text); }

/* ── INLINE BADGE ── */
.badge {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .55rem;
  border-radius: 4px;
  background: rgba(46,204,113,.12);
  color: var(--green);
  border: 1px solid rgba(46,204,113,.25);
}
.badge-yellow { background: rgba(241,196,15,.1); color: var(--yellow); border-color: rgba(241,196,15,.25); }

/* ── SERVICES PAGE ── */
.services-hero { padding: 5rem 0 3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  nav .nav-links { display: none; }
  nav .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-card.featured { grid-column: span 1; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 120px;
  height: 2px;
  background: var(--green);
}

/* ── RESPONSIVE 2-COL GRIDS ── */
@media (max-width: 768px) {
  section > .container > div[style*="grid-template-columns: 1fr 1fr"],
  section > .container > div[style*="grid-template-columns: 1.5fr"],
  .page-hero + section .container > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Inline style grids that use 1fr 1fr */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
