/* ============================================================
   BorealisBI — Design System
   Light Corporate Theme (Dark Nav · White Body · Gold Accents)
   Inspired by CAT industrial design language
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Dark tones (nav, hero, footer) */
  --black:      #1b1b1b;
  --dark:       #252525;
  --dark-mid:   #2e2e2e;
  --dark-card:  #333333;

  /* Light tones (body, cards) */
  --white:      #ffffff;
  --off-white:  #f7f7f7;
  --light-gray: #eeeeee;

  /* Accent — Gold/Yellow */
  --accent:       #FFCA00;
  --accent-hover: #FFD633;
  --accent-dark:  #E6B800;

  /* Text */
  --text-dark:    #1a1a1a;
  --text-mid:     #555555;
  --text-light:   #888888;
  --text-on-dark: #ffffff;
  --text-on-accent: #1a1a1a;

  /* Borders */
  --border:       #e0e0e0;
  --border-dark:  #444444;

  /* Typography */
  --font-head:  'DM Sans', sans-serif;
  --font-body:  'Inter', sans-serif;

  /* Radii */
  --radius:     4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow:     0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.12);

  /* Motion */
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-mid); }

.text-accent { color: var(--accent); }
.text-dark   { color: var(--text-dark); }
.text-mid    { color: var(--text-mid); }
.text-light  { color: var(--text-light); }
.text-white  { color: var(--text-on-dark); }
.text-center { text-align: center; }

/* Accent underline bar (CAT-style) */
.accent-bar {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 12px;
}
.accent-bar-center {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-accent);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black);
  padding: 0 24px;
  border-bottom: 3px solid var(--accent);
}
.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
  font-weight: 800;
}
.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-on-dark); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 202, 0, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* Light variant for use on white backgrounds */
.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--text-dark);
  background: rgba(255, 202, 0, 0.06);
}
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

/* ── Grid utilities ──────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: var(--text-on-dark);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  max-width: 280px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-badge {
  background: rgba(255, 202, 0, 0.1);
  border: 1px solid rgba(255, 202, 0, 0.25);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── Stat box ────────────────────────────────────────────────── */
.stat-box {
  text-align: center;
  padding: 24px;
}
.stat-box .number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.stat-box .label {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
  padding: 120px 0 64px;
  text-align: center;
  background: var(--black);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.page-header h1 { margin-bottom: 16px; color: var(--text-on-dark); }
.page-header p { font-size: 1.1rem; max-width: 540px; margin: 0 auto; color: rgba(255, 255, 255, 0.65); }

/* ── Mobile nav ──────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--text-on-dark);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Alert banner ────────────────────────────────────────────── */
.top-banner {
  background: var(--accent);
  color: var(--text-on-accent);
  text-align: center;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.top-banner a { text-decoration: underline; color: var(--text-on-accent); }

/* ── Scroll fade-in animation ────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 56px 0; }
  h1 { font-size: 2rem; }
}
