:root {
  /* Core palette */
  --bg-deep:       #f1f5f9; /* Slate 100 */
  --bg-panel:      #f8fafc; /* Slate 50 */
  --bg-card:       #ffffff;
  --bg-card-hover: #ffffff;
  --border:        #e2e8f0; /* Slate 200 */
  --border-bright: #cbd5e1; /* Slate 300 */

  /* Accent */
  --blue:          #0284c7; /* Sky 600 */
  --blue-bright:   #0ea5e9; /* Sky 500 */
  --cyan:          #0891b2; /* Cyan 600 */
  --cyan-dim:      rgba(8,145,178,0.08);
  --cyan-glow:     rgba(8,145,178,0.2);

  /* Text */
  --text-primary:  #0f172a; /* Slate 900 */
  --text-secondary:#475569; /* Slate 600 */
  --text-muted:    #94a3b8; /* Slate 400 */
  --text-label:    #0891b2; /* Cyan 600 */

  /* Status */
  --green:         #059669;
  --amber:         #d97706;
  --red:           #dc2626;

  /* Fonts */
  --font-display:  'Exo 2', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Spacing */
  --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(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1.05rem;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid noise texture overlay - softened for light theme */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(8,145,178,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,145,178,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text-primary); }

.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 5rem 0; position: relative; z-index: 1; }

/* ── Navigation ── */
nav.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
nav.main-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand .brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: -1px;
}
.nav-brand .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.nav-brand .brand-name span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-deep);
}
.nav-links .nav-cta a {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue-bright);
}
.nav-links .nav-cta a:hover {
  background: var(--blue-bright);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 4px 16px rgba(29,111,164,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(29,111,164,0.55); }

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

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-bright); }

/* ── Tags / Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-blue    { background: rgba(29,111,164,0.2);  color: var(--blue-bright); border: 1px solid rgba(29,111,164,0.4); }
.badge-cyan    { background: rgba(0,200,215,0.12);  color: var(--cyan);        border: 1px solid rgba(0,200,215,0.3); }
.badge-green   { background: rgba(0,214,143,0.12);  color: var(--green);       border: 1px solid rgba(0,214,143,0.3); }
.badge-amber   { background: rgba(245,158,11,0.12); color: var(--amber);       border: 1px solid rgba(245,158,11,0.3); }
.badge-red     { background: rgba(239,68,68,0.12);  color: var(--red);         border: 1px solid rgba(239,68,68,0.3); }
.badge-gray    { background: rgba(74,101,128,0.2);  color: var(--text-muted);  border: 1px solid rgba(74,101,128,0.3); }

/* ── Section headers ── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--cyan);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ── Footer ── */
footer.main-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.75rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
 
.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-logos img {
  height: 64px;
  width: auto;
  transition: all 0.3s ease;
}
.footer-logos img:hover {
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .footer-logos {
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .footer-logos img {
    height: 36px;
  }
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Dot pulse ── */
.dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,214,143,0.5);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(0,214,143,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(0,214,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,214,143,0); }
}

/* ── Fade-in on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Page offset ── */
.page-body { padding-top: var(--nav-h); }

/* ── Tabs ── */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:hover    { border-color: var(--border-bright); color: var(--text-primary); }
.tab-btn.active   { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links   { display: none; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section     { padding: 3rem 0; }
}
