/* ═══════════════════════════════════════════════════════════════
   Imverra Design System — Shared Stylesheet
   All pages import this file. Page-specific styles live in a
   <style> block inside each HTML file.

   TO CHANGE THE BRAND NAME: search for "Imverra" across all
   HTML files. The brand colors live in --accent and --navy below.
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --accent:       #0EA5E9;
  --accent-dark:  #0284C7;
  --teal:         #0D9488;

  /* Surface */
  --navy:         #0B1D35;
  --navy-light:   #132744;
  --navy-mid:     #1C3A5C;
  --slate:        #2E5685;

  /* Text */
  --white:        #FFFFFF;
  --text:         #CBD5E1;
  --text-dim:     #7A9BBF;

  /* Borders / misc */
  --gray-100:     #E2EAF3;
  --gray-400:     #7A9BBF;
  --gray-600:     #4A6D8F;
  --border:       rgba(255, 255, 255, 0.08);
  --border-dim:   rgba(255, 255, 255, 0.05);

  /* Spacing */
  --radius:       8px;
  --radius-lg:    16px;

  /* Shadows */
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm:    0 2px 8px  rgba(0, 0, 0, 0.20);
  --glow-accent:  0 8px 24px rgba(14, 165, 233, 0.35);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

p {
  color: var(--text);
  line-height: 1.7;
}

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section-header p {
  font-size: 1.05rem;
  margin-top: 16px;
}

/* Two-column grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

/* ── UTILITIES ──────────────────────────────────────────────────── */

/* Dot-prefixed eyebrow badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.30);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
}

.badge::before {
  content: "●";
  font-size: 0.5rem;
}

/* Small category tags */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(14, 165, 233, 0.10);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-teal {
  background: rgba(13, 148, 136, 0.12);
  color: #2DD4BF;
}

.tag-green {
  background: rgba(34, 197, 94, 0.10);
  color: #4ADE80;
}

/* Status pills (inside tables / lists) */
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill-green  { background: rgba(74, 222, 128, 0.15); color: #4ADE80; }
.pill-yellow { background: rgba(251, 191, 36, 0.15);  color: #FBB024; }
.pill-blue   { background: rgba(14, 165, 233, 0.15);  color: var(--accent); }
.pill-red    { background: rgba(248, 113, 113, 0.15); color: #F87171; }

/* Animated live indicator */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse-dot 2s infinite;
  margin-right: 6px;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--glow-accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ── NAVIGATION ─────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 29, 53, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

/* Brand name — update this when company name changes */
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex: 1;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: all 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-sign-in {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.15s;
}

.nav-sign-in:hover { color: var(--white); }

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Mobile menu toggle — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-400);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ── HERO (shared base, pages override) ─────────────────────────── */
.hero {
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 70% 60% at 60% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(13, 148, 136, 0.08) 0%, transparent 60%),
    var(--navy);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-centered {
  text-align: center;
  padding: 120px 0 96px;
}

.hero-centered h1 { max-width: 800px; margin: 0 auto 24px; }
.hero-centered p  { max-width: 560px; margin: 0 auto 40px; font-size: 1.1rem; }

.hero-eyebrow { margin-bottom: 24px; }

/* ── METRIC CARDS ───────────────────────────────────────────────── */
.metric-card {
  background: var(--navy-light);
  padding: 40px 32px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.metric-card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.metric-card:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.metric-card:hover       { transform: translateY(-2px); }

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.metric-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-num span { color: var(--accent); }
.metric-label    { font-size: 0.9rem; color: var(--text-dim); font-weight: 500; }
.metric-sub      { font-size: 0.78rem; color: var(--gray-600); margin-top: 6px; }

/* ── CARDS (generic) ────────────────────────────────────────────── */
.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.25);
}

/* ── FEATURE ITEMS ──────────────────────────────────────────────── */
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(14, 165, 233, 0.10);
  border: 1px solid rgba(14, 165, 233, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
}

.feature-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── STEP CARDS (How It Works) ──────────────────────────────────── */
.step-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: transform 0.2s;
}

.step-card:hover { transform: translateY(-4px); }

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 28px;
  background: rgba(14, 165, 233, 0.08);
}

.step-card h3    { margin-bottom: 12px; }
.step-card p     { font-size: 0.9rem; color: var(--text-dim); }
.step-tags       { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }

/* ── CTA BAND ───────────────────────────────────────────────────── */
.cta-band {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(14, 165, 233, 0.10) 0%, transparent 70%),
    var(--navy);
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-band .inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.cta-band p       { font-size: 1.1rem; margin-bottom: 40px; }
.cta-actions      { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note         { margin-top: 20px; font-size: 0.82rem; color: var(--text-dim); }

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--navy-light);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.footer-logo span { color: var(--accent); }

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 260px;
}

.footer-certs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-cert {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy    { font-size: 0.8rem; color: var(--text-dim); }
.footer-tagline { font-size: 0.78rem; color: var(--gray-600); margin-top: 4px; }

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.footer-legal a:hover { color: var(--white); }

/* ── SURFACE VARIATIONS ─────────────────────────────────────────── */
.surface-mid   { background: var(--navy-light); }
.surface-dark  { background: var(--navy); }

.section-border-top    { border-top:    1px solid var(--border); }
.section-border-bottom { border-bottom: 1px solid var(--border); }

/* ── ANNOUNCEMENT BANNER ────────────────────────────────────────── */
.site-banner {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.15), rgba(13, 148, 136, 0.10));
  border-bottom: 1px solid rgba(14, 165, 233, 0.20);
  padding: 10px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.site-banner strong  { color: var(--white); }
.site-banner a       { color: var(--accent); text-decoration: underline; }

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-delay { animation: fadeUp 0.6s 0.15s ease both; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  .nav-links, .nav-actions .nav-sign-in { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .hero   { padding: 80px 0 60px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
