/* ==========================================
   HFL Portal — styles.css
   ========================================== */

/* ---------- Imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0059b2;
  --primary-light: #1a7fe0;
  --primary-dark: #003d7a;
  --accent: #00c6ff;
  --bg-dark: #0a1628;
  --bg-card: #0f2040;
  --bg-card-hover: #132850;
  --surface: #162035;
  --border: rgba(0, 89, 178, 0.25);
  --border-hover: rgba(0, 198, 255, 0.5);
  --text-primary: #f0f6ff;
  --text-secondary: #8ca8cc;
  --text-muted: #4d6a8a;
  --glow: rgba(0, 198, 255, 0.15);
  --glow-strong: rgba(0, 89, 178, 0.4);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 89, 178, 0.35), 0 0 0 1px rgba(0, 198, 255, 0.2);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ==========================================
   BACKGROUND ANIMATED MESH
   ========================================== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-mesh::before,
.bg-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: meshFloat 18s ease-in-out infinite alternate;
}

.bg-mesh::before {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px;
  left: -150px;
}

.bg-mesh::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00c6ff 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  opacity: 0.2;
  animation-delay: -9s;
}

@keyframes meshFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 40px) scale(1.1); }
}

/* ==========================================
   GRID DOT OVERLAY
   ========================================== */
.grid-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(0, 89, 178, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ==========================================
   LAYOUT WRAPPER
   ========================================== */
.wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================
   HEADER / NAV
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 68px;
  background: rgba(10, 22, 40, 0.82);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  border-color: rgba(0, 89, 178, 0.4);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 16px rgba(0, 198, 255, 0.4);
}

.nav-logo svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.nav-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 1.1rem;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn-nav-cta:hover {
  box-shadow: 0 0 20px rgba(0, 89, 178, 0.6);
  opacity: 0.92;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  gap: 6px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  padding: 0 8px;
  transition: background var(--transition);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 22, 40, 0.99);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-110%);
  transition: transform var(--transition);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--text-primary); }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  filter: saturate(0.5);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.96) 0%,
    rgba(10, 22, 40, 0.82) 50%,
    rgba(10, 22, 40, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 89, 178, 0.2);
  border: 1px solid rgba(0, 198, 255, 0.3);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.badge-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
}

.badge-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
  animation: pulse 2s ease-in-out infinite;
}

.badge-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  z-index: 1;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Primary CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 1.75rem;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0, 89, 178, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 89, 178, 0.65);
}

/* Secondary CTA */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 1.75rem;
  height: 52px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ==========================================
   SECTION COMMONS
   ========================================== */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.18;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* ==========================================
   PILLARS SECTION
   ========================================== */
.pillars-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Pillars grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 1.25rem;
}

/* Pillar card / bubble */
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: left;
  color: inherit;
  font-family: inherit;
  will-change: transform;
}

/* Shiny top-left corner accent */
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top left, rgba(0, 198, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity var(--transition);
}

/* Pillar number label */
.pillar-card .pillar-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.pillar-card:hover::before {
  opacity: 2;
}

/* Icon bubble */
.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: rgba(0, 89, 178, 0.15);
  border: 1px solid rgba(0, 89, 178, 0.3);
  color: var(--accent);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card:hover .pillar-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 89, 178, 0.5);
  color: #fff;
}

.pillar-body { display: flex; flex-direction: column; gap: 0.5rem; }

.pillar-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* CTA arrow */
.pillar-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
  margin-top: auto;
}

.pillar-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card:hover .pillar-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Special "featured" cards - first and last in grid */
.pillar-card.featured {
  background: linear-gradient(145deg, rgba(0, 89, 178, 0.22) 0%, var(--bg-card) 60%);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 89, 178, 0.04) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.3), transparent 60%);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.about-img-wrap img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(0.3) brightness(0.85);
  transition: filter 0.5s ease;
  border-radius: var(--radius-lg);
}

.about-img-wrap:hover img { filter: grayscale(0) brightness(0.95); }

.about-text { display: flex; flex-direction: column; gap: 1.25rem; }

.about-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-kpis {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 0.5rem;
}

.kpi-item { display: flex; flex-direction: column; gap: 2px; }

.kpi-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--primary-light);
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}

.cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  box-shadow: 0 20px 80px rgba(0, 89, 178, 0.45);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  max-width: 600px;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  line-height: 1.7;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2rem;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 0.5rem;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.btn-cta svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: rgba(5, 12, 24, 0.98);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.footer-logo-icon svg { width: 18px; height: 18px; fill: white; }

.footer-wordmark {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.social-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ==========================================
   BUBBLE MODAL
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 89, 178, 0.5);
}

.modal-icon svg {
  width: 30px; height: 30px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-close {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0 1.5rem;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==========================================
   BOTTOM MOBILE NAV
   ========================================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 env(safe-area-inset-bottom);
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}

.bottom-nav-item.active { color: var(--accent); }

.bottom-nav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.45s; }
.animate-in-delay-5 { animation-delay: 0.6s; }

/* Intersection observer targets */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards in grid */
.pillar-card:nth-child(1)  { transition-delay: 0.05s; }
.pillar-card:nth-child(2)  { transition-delay: 0.10s; }
.pillar-card:nth-child(3)  { transition-delay: 0.15s; }
.pillar-card:nth-child(4)  { transition-delay: 0.20s; }
.pillar-card:nth-child(5)  { transition-delay: 0.25s; }
.pillar-card:nth-child(6)  { transition-delay: 0.30s; }
.pillar-card:nth-child(7)  { transition-delay: 0.35s; }
.pillar-card:nth-child(8)  { transition-delay: 0.40s; }
.pillar-card:nth-child(9)  { transition-delay: 0.45s; }

/* ==========================================
   ROADMAP SECTION
   ========================================== */
.roadmap-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.roadmap-track {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.horizon-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.horizon-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.horizon-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.horizon-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.horizon-badge.h1 { background: rgba(0, 198, 255, 0.15); color: var(--accent); border: 1px solid rgba(0, 198, 255, 0.3); }
.horizon-badge.h2 { background: rgba(0, 89, 178, 0.2); color: var(--primary-light); border: 1px solid rgba(0, 89, 178, 0.35); }
.horizon-badge.h3 { background: rgba(91, 33, 182, 0.2); color: #a78bfa; border: 1px solid rgba(91, 33, 182, 0.35); }

.horizon-timeline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.horizon-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.horizon-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.horizon-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.horizon-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.roadmap-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  margin-top: 5rem;
  color: var(--text-muted);
}

.roadmap-connector svg {
  width: 24px;
  height: 24px;
}

/* ==========================================
   COMPETITIVE POSITIONING
   ========================================== */
.competitive-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 89, 178, 0.04) 50%, transparent 100%);
}

.comp-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comp-table th,
.comp-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: rgba(0, 89, 178, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-secondary);
}

.comp-table tbody tr:last-child td { border-bottom: none; }

.comp-table tbody tr {
  transition: background var(--transition);
}

.comp-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.comp-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comp-table td:nth-child(2) {
  color: var(--text-muted);
}

.hfl-col {
  background: rgba(0, 89, 178, 0.07);
}

.comp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 198, 255, 0.1);
  border: 1px solid rgba(0, 198, 255, 0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* OEM strip */
.oem-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.oem-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.oem-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.oem-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.oem-tag:hover {
  background: rgba(0, 89, 178, 0.15);
  color: var(--accent);
  border-color: rgba(0, 198, 255, 0.3);
}

/* ==========================================
   GEOGRAPHIC HUBS
   ========================================== */
.geo-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.geo-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.geo-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.geo-card--featured {
  background: linear-gradient(145deg, rgba(0, 89, 178, 0.2) 0%, var(--bg-card) 60%);
  border-color: rgba(0, 89, 178, 0.35);
}

.geo-flag {
  font-size: 2.2rem;
  line-height: 1;
}

.geo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.geo-role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.geo-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.geo-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.geo-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.7;
}

.geo-metric {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 89, 178, 0.18);
  border: 1px solid rgba(0, 89, 178, 0.3);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================
   MODAL TAGS
   ========================================== */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.modal-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 89, 178, 0.15);
  border: 1px solid rgba(0, 198, 255, 0.25);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .roadmap-track { flex-direction: column; }
  .roadmap-connector { transform: rotate(90deg); margin: 0 auto; }
  .geo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav-cta { display: none; }
  .hamburger { display: flex; }
  .bottom-nav { display: block; }
  body { padding-bottom: 72px; }

  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .geo-grid { grid-template-columns: 1fr; }
  .comp-table { font-size: 0.82rem; }
  .comp-table th, .comp-table td { padding: 0.65rem 0.9rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
