/* ============================================================
   EEP Marketing — Shared light-theme design system
   Extracted from index.html (landing page) so every public-facing
   page (case-studies, pricing, tool detail, SLD gallery, etc.)
   carries the same brand language.
   Use this on ALL marketing/public pages. App pages use app.css.
   ============================================================ */

:root {
  --font-ui: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;

  --page-bg:   #f7f9fc;
  --white:     #ffffff;

  --navy-950:  #061836;
  --navy-900:  #0c1d35;

  --blue-700:  #0b5ed7;
  --blue-650:  #1268e8;
  --blue-600:  #176ff2;
  --blue-500:  #2d86ff;
  --blue-75:   #f2f7ff;

  --text-950:  #0c1f3f;
  --text-850:  #162b52;
  --text-700:  #3d4c66;
  --text-600:  #526176;
  --text-500:  #718097;

  --line:      #dfe7f2;
  --line-soft: #edf2f8;

  --green:     #17a56b;
  --orange:    #b45309;
  --red:       #c0392b;

  --shadow-soft: 0 10px 28px rgba(15, 38, 77, 0.07);
  --shadow-blue: 0 14px 28px rgba(18, 104, 232, 0.22);

  --container: 1320px;
  --radius:    8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  background: var(--page-bg);
  color: var(--text-950);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 17% 18%, rgba(45,134,255,.105), transparent 27%),
    radial-gradient(circle at 79% 5%,  rgba(11,94,215,.045),  transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fc 39%, #ffffff 100%);
}
.container { width: min(100% - 48px, var(--container)); margin: 0 auto; }

/* ─── HEADER + NAV ─── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: 66px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}
.nav {
  height: 100%;
  display: grid; grid-template-columns: 240px 1fr 240px;
  align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
}
.brand-logo {
  color: var(--blue-700);
  font-size: 31px; line-height: 1; font-weight: 900;
  letter-spacing: -0.09em;
}
.brand-divider { width: 1px; height: 28px; background: #b8c9e5; }
.brand-subtitle {
  color: var(--blue-700); font-size: 10px; line-height: 1.15; font-weight: 700;
}

.nav-links {
  display: flex; justify-content: center; align-items: stretch;
  gap: 34px; height: 100%;
}
.nav-item {
  position: relative; display: inline-flex; align-items: center; height: 100%;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-700);
  font-size: 13px; font-weight: 600; line-height: 1;
  transition: color 160ms ease; cursor: pointer; height: 100%;
}
.nav-link:hover, .nav-link.active { color: var(--blue-700); }

.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.login-link { color: var(--text-700); font-size: 13px; font-weight: 600; line-height: 1; }
.login-link:hover { color: var(--blue-700); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 17px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { color: white; }
.btn-secondary {
  color: var(--blue-700);
  background: white;
  border-color: #bcd2f3;
  box-shadow: 0 8px 20px rgba(15,38,77,.05);
}
.btn-ghost {
  color: var(--text-700);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { color: var(--blue-700); border-color: #bcd2f3; }

/* ─── PAGE HERO (sub-pages, not landing) ─── */
.page-hero {
  position: relative;
  background: radial-gradient(circle at 18% 40%, rgba(37,99,235,.06), transparent 30%),
              linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.page-hero h1 {
  margin: 0 0 12px;
  color: var(--text-950);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1; letter-spacing: -0.04em;
  font-weight: 800;
}
.page-hero p {
  margin: 0; color: var(--text-600);
  font-size: 14.5px; line-height: 1.62;
  max-width: 740px;
}
.page-hero .pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 13px; margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid #cde0ff;
  background: rgba(239,246,255,.96);
  color: var(--blue-700);
  font-size: 11px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(18,104,232,.07);
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #d4e3f7;
  box-shadow: 0 18px 30px rgba(15,38,77,.08);
}
.card h2, .card h3 {
  margin: 0 0 6px;
  color: var(--text-850);
  font-weight: 700; line-height: 1.2;
}
.card h2 { font-size: 17px; }
.card h3 { font-size: 14px; color: var(--blue-700); }
.card p { margin: 0; color: var(--text-600); font-size: 13px; line-height: 1.6; }

/* ─── TAGS / PILLS ─── */
.tag {
  display: inline-flex; align-items: center; height: 22px;
  padding: 0 8px; border-radius: 999px;
  background: var(--blue-75);
  border: 1px solid #d8e6fb;
  color: var(--blue-700);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.02em;
}
.tag-mono { font-family: var(--font-mono); }
.tag-soft {
  background: #f4f7fb;
  border-color: var(--line-soft);
  color: var(--text-600);
}
.tag-warn {
  background: #fff3e0;
  border-color: #ffd9a8;
  color: #b45309;
}

/* ─── TABLES (engineering trace) ─── */
.eep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.eep-table th {
  background: #f6f9fd;
  color: var(--text-700);
  padding: 9px 12px;
  text-align: left;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.eep-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-700);
  vertical-align: top;
}
.eep-table tbody tr:last-child td { border-bottom: 0; }
.eep-table tbody tr:nth-child(even) td { background: #fafbfd; }
.eep-table code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--blue-75);
  color: var(--blue-700);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ─── ALERTS ─── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 12px 0;
}
.alert-info { background: var(--blue-75); border: 1px solid #d8e6fb; color: var(--blue-700); }
.alert-warn { background: #fff3e0; border: 1px solid #ffd9a8; color: #b45309; }
.alert-error { background: #fdf0ef; border: 1px solid #f5c2bd; color: #c0392b; }

/* ─── FOOTER (matches index.html) ─── */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #062a63 0%, #041c46 100%);
  color: #c8d8f3;
  padding: 40px 0 24px;
  overflow: hidden;
  margin-top: 48px;
}
.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.site-footer .brand-logo { color: white; }
.site-footer .brand-divider { background: rgba(255,255,255,.28); }
.site-footer .brand-subtitle { color: white; }
.footer-col h4 {
  margin: 0 0 13px; color: white;
  font-size: 12px; font-weight: 700;
}
.footer-col a {
  display: block; margin-bottom: 8px;
  color: #c8d8f3; font-size: 11px; font-weight: 400;
  transition: color 160ms ease, transform 160ms ease;
}
.footer-col a:hover { color: white; transform: translateX(2px); }
.footer-bottom {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 19px;
  color: #9fb3d6; font-size: 11px;
}
.footer-bottom a:hover { color: white; }

/* ─── MARKETING-CONTENT HELPERS (shared across feature/about/docs/etc) ─── */

.section-block { padding: 36px 0; }
.section-block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.section-head h2 { font-size: clamp(22px, 2.2vw, 30px); color: var(--text-950); font-weight: 800; letter-spacing: -0.035em; margin: 0 0 10px; }
.section-head p { color: var(--text-600); font-size: 14px; line-height: 1.6; margin: 0; }
.section-eyebrow { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; background: var(--blue-75); color: var(--blue-700); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid #d8e6fb; margin-bottom: 12px; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feat-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-soft); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px rgba(15, 38, 77, 0.10); border-color: #d4e3f7; }
.feat-card .icn { width: 38px; height: 38px; border-radius: 999px; background: radial-gradient(circle at 30% 25%, #ffffff 0%, #edf5ff 44%, #dceafe 100%); border: 1px solid #cfe0f8; color: var(--blue-700); display: grid; place-items: center; font-size: 18px; margin-bottom: 12px; }
.feat-card h3 { color: var(--blue-700); font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.feat-card p { color: var(--text-600); font-size: 12.5px; line-height: 1.55; margin: 0; }
.feat-card ul { color: var(--text-600); font-size: 12.5px; line-height: 1.6; margin: 6px 0 0 18px; padding: 0; }
.feat-card code { font-family: var(--font-mono); font-size: 11.5px; background: var(--blue-75); color: var(--blue-700); padding: 1px 6px; border-radius: 4px; }

.tk-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.tk-row:last-child { border-bottom: none; }
.tk-row h4 { color: var(--text-850); font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.tk-row p { color: var(--text-600); font-size: 13px; line-height: 1.6; margin: 0; }
.tk-row .label { color: var(--blue-700); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
@media (max-width: 720px) { .tk-row { grid-template-columns: 1fr; gap: 4px; } }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 8px 0 14px; }
.timeline-item::before { content: ""; position: absolute; left: -25px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue-700); }
.timeline-item.done::before { background: var(--green); border-color: var(--green); }
.timeline-item.now::before  { background: var(--blue-500); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(45, 134, 255, 0.20); }
.timeline-item h4 { color: var(--text-850); font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.timeline-item .date { color: var(--text-500); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; display: block; }
.timeline-item p { color: var(--text-600); font-size: 13px; line-height: 1.55; margin: 0; }
.timeline-item ul { color: var(--text-600); font-size: 12.5px; line-height: 1.55; margin: 4px 0 0 18px; }

.legal-prose { max-width: 820px; margin: 0 auto; padding: 24px 0 40px; }
.legal-prose h2 { color: var(--text-850); font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.legal-prose h3 { color: var(--text-850); font-size: 14px; font-weight: 700; margin: 18px 0 6px; }
.legal-prose p, .legal-prose li { color: var(--text-700); font-size: 13.5px; line-height: 1.75; }
.legal-prose ul { padding-left: 22px; margin: 8px 0 12px; }
.legal-prose .last-updated { color: var(--text-500); font-size: 12px; padding: 12px 14px; background: var(--blue-75); border: 1px solid #d8e6fb; border-radius: var(--radius); margin-bottom: 24px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1180px) {
  .nav { grid-template-columns: 200px 1fr 190px; }
  .nav-links { gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container { width: min(100% - 32px, var(--container)); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .brand-subtitle, .brand-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-header { height: 62px; }
  .nav { height: 62px; }
  .login-link { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
