/* ==========================================================================
   RISIQ EV Solutions — design tokens & base (bright theme)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color: clean white ground, amber "meter needle" accent, deep teal "measured data" accent */
  --ink:        #0b1524;
  --bg:         #f7f9fc;
  --bg-raised:  #eef3f9;
  --bg-card:    #ffffff;
  --line:       #dbe3ee;
  --line-soft:  #e7edf5;

  --text:       #0f1b2d;
  --text-muted: #46556b;
  --text-faint: #6b7a90;

  --amber:      #e8871e;
  --amber-hi:   #b45309;   /* text-safe amber on white */
  --amber-ink:  #241202;

  --teal:       #14b8a6;   /* graphics */
  --teal-hi:    #0f766e;   /* text-safe teal on white */

  --green:      #15803d;
  --red:        #dc2626;

  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --max: 1160px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 2px rgba(15,27,45,0.04), 0 10px 28px rgba(15,27,45,0.07);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

body::before {
  /* subtle instrumentation grid backdrop */
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(#e3eaf4 1px, transparent 1px),
    linear-gradient(90deg, #e3eaf4 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; color: var(--text-muted); }
.lede { font-size: 1.2rem; color: var(--text-muted); max-width: 46ch; }

.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--teal-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-hi);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(232,135,30,0.18);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 2px 8px rgba(232,135,30,0.35);
}
.btn-primary:hover { background: #f59b38; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(232,135,30,0.4); }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal-hi); color: var(--teal-hi); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; min-height: 38px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin: 0 14px;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(15,27,45,0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
}
.brand-mark {
  width: 48px; height: 48px;
  flex: none;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 4px;
  display: inline-block;
  align-self: flex-end;
  padding-bottom: 7px;
}
@media (max-width: 640px) {
  .brand { font-size: 1.35rem; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-tag { display: none; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 160ms;
  cursor: pointer;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--text);
  width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #ffffff; border: 1px solid var(--line); border-radius: 16px;
    padding: 10px; display: none; box-shadow: var(--shadow-card); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; cursor: pointer; }
  .nav-links a:hover { background: var(--bg-raised); }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
  margin-top: 120px;
  padding: 56px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a, .footer-col p { display: block; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; cursor: pointer; }
.footer-col a:hover { color: var(--teal-hi); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  font-size: 0.82rem; color: var(--text-faint); flex-wrap: wrap; gap: 10px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; z-index: 1; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 16px; font-size: 1.08rem; }
.section-tight { padding: 56px 0; }
.bg-raised { background: var(--bg-raised); }

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

/* ---------- grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(15,27,45,0.05), 0 20px 44px rgba(15,27,45,0.13);
  border-color: #a8d8d0;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(232,135,30,0.12);
  color: var(--amber-hi);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.stat {
  background: var(--bg-card);
  padding: 32px 26px;
  text-align: left;
}
.stat .num { font-family: var(--font-mono); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--amber-hi); display: block; }
.stat .lbl { font-size: 0.86rem; color: var(--text-muted); margin-top: 8px; display: block; }
@media (max-width: 900px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stat-band { grid-template-columns: 1fr; } }

/* ---------- hero: deep-ink band for contrast ---------- */
.hero {
  padding: 170px 0 76px;
  margin-top: -96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 80% -10%, rgba(232,135,30,0.14), transparent 60%),
    linear-gradient(175deg, #0c1626 0%, #10233c 62%, #14304f 100%);
  --ink: #ffffff;
  --text: #e8eef6;
  --text-muted: #b9c7d9;
  --text-faint: #8496ad;
  --amber-hi: #f5a949;
  --line: #27405e;
  --line-soft: #1d3350;
}
.hero .btn-ghost { color: #0f1b2d; }
.hero .btn-ghost:hover { color: var(--teal-hi); }
.hero .pill { background: rgba(255,255,255,0.08); color: #c9d6e6; border-color: #2c4666; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero .lede { margin-top: 22px; font-size: 1.15rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-faint); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* waveform / meter visual (pure CSS/SVG, no stock imagery) */
.meter-viz {
  aspect-ratio: 1/1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 30%, rgba(20,184,166,0.10), transparent 60%), var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.meter-viz svg { width: 82%; }
.meter-readout {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.meter-readout strong { color: var(--teal-hi); font-weight: 500; }

/* ---------- comparison (reading vs measuring) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); background: var(--bg-card); box-shadow: var(--shadow-card); }
.compare-card.bad { background: #fef4f2; border-color: #f5c6bc; }
.compare-card.good { background: #f0fbf9; border-color: #a7e3da; }
.compare-verdict { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-top: 20px; font-size: 0.95rem; }
.compare-verdict.bad-text { color: var(--red); }
.compare-verdict.good-text { color: var(--teal-hi); }
.compare-verdict svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-card); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
.step:hover { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(15,27,45,0.05), 0 20px 44px rgba(15,27,45,0.13); border-color: #a8d8d0; }
.step .step-num { font-family: var(--font-mono); color: var(--amber-hi); font-size: 0.85rem; }
.step h3 { margin-top: 14px; font-size: 1.1rem; }
.step p { margin-top: 8px; font-size: 0.9rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- certificate mockup ---------- */
.cert {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff, #f2f7fc);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.cert-top { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px dashed var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.cert-grade { font-family: var(--font-mono); font-size: 2.4rem; color: var(--teal-hi); border: 2px solid var(--teal); border-radius: 12px; padding: 4px 16px; }
.cert-rows { display: grid; gap: 12px; }
.cert-row { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.cert-row span:first-child { color: var(--text-faint); }
.cert-row span:last-child { font-family: var(--font-mono); color: var(--text); }
.cert-qr {
  width: 74px; height: 74px; border: 1px solid var(--line); border-radius: 8px;
  background: repeating-linear-gradient(45deg, #c6d2e2 0 4px, transparent 4px 8px);
  flex: none;
}
.cert-seal { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--green); margin-top: 18px; }
.cert-seal svg { width: 16px; height: 16px; }

/* ---------- role tabs (partners page) ---------- */
.role-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.role-tab {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms var(--ease);
}
.role-tab:hover { border-color: var(--teal-hi); color: var(--ink); }
.role-tab.active { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.role-panel { display: none; }
.role-panel.active { display: block; }

/* ---------- CTA band: Addis sunset ---------- */
.cta-band {
  border-radius: 24px;
  padding: 72px 48px;
  background:
    linear-gradient(120deg, rgba(9,17,28,0.93) 0%, rgba(13,26,43,0.82) 55%, rgba(30,28,20,0.55) 100%),
    url('../img/addis-sunset.jpg') center 62% / cover no-repeat;
  border: 1px solid #22384f;
  box-shadow: var(--shadow-card);
  text-align: center;
  --ink: #ffffff;
  --text-muted: #c3cfdd;
  --text-faint: #8ea0b5;
  --amber-hi: #f5a949;
}
.cta-band .btn-ghost { color: #0f1b2d; }
.cta-band .btn-ghost:hover { color: var(--teal-hi); }
.cta-band h2 { max-width: 620px; margin: 0 auto; }
.cta-band p { margin: 18px auto 0; }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; }
@media (max-width: 640px) { .cta-band { padding: 44px 24px; } }

/* ---------- quote ---------- */
.quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--amber);
  padding-left: 22px;
  max-width: 640px;
}
.quote cite { display: block; font-style: normal; font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-faint); margin-top: 14px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- simple table ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.data-table th { color: var(--text-faint); font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; }
.data-table tr:last-child td { border-bottom: none; }

/* competitive comparison table */
.landscape-table td:first-child { color: var(--text-faint); }
.landscape-table td.us { background: #f0fbf9; font-weight: 600; color: var(--teal-hi); }
.landscape-table th.us { color: var(--teal-hi); }
.landscape-table td, .landscape-table th { vertical-align: top; }

/* ---------- forms ---------- */
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 0.88rem; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  min-height: 44px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--teal-hi); outline-offset: 1px; border-color: var(--teal-hi); }

/* ---------- hero figure & certificate figure ---------- */
.hero-figure { margin-top: 52px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-card); }
.hero-figure img { width: 100%; display: block; }
.cert-figure { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); background: #fff; }
.cert-figure img { width: 100%; display: block; }

/* ---------- product cards ---------- */
.product-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-hi); background: #f0fbf9; border: 1px solid #a7e3da; padding: 4px 12px; border-radius: 999px; display: inline-block; margin-bottom: 16px; }
.product-tag.amber { color: var(--amber-hi); background: #fdf3e7; border-color: #f3d3ad; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 860px; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--amber-hi); font-size: 1.25rem; flex: none; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- misc ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line); font-size: 0.8rem; color: var(--text-muted); }
.divider { height: 1px; background: var(--line-soft); margin: 56px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
