/* ── Design Tokens — Indigo Palette ──────────────────────────────────────
   Used by: about.html  channels.html  features.html  industries.html  pricing.html
   Pages that use the teal palette (index, contact, 404) define their own
   :root overrides inside assets/css/pages/<page>.css
──────────────────────────────────────────────────────────────────────── */
:root {
  --navy:        #1A1F8F;
  --navy-dark:   #12166B;
  --navy-deeper: #050c1a;
  --navy-light:  #E8E9FB;
  --navy-mid:    #3D44C4;
  --accent:      #4B52D4;
  --white:       #ffffff;
  --off-white:   #F7F8FF;
  --text:        #0D0E2E;
  --muted:       #5A5F8A;
  --border:      rgba(0, 188, 212, 0.12);
  --gold:        #E8A020;
  --gold-light:  #FEF3DC;
  --green:       #1D9E75;
  --green-light: #E1F5EE;
  --coral:       #D85A30;
  --coral-light: #FAECE7;
}
/* ── Reset & Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; line-height: 1.12; }

/* ── Animations ───────────────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fu  { animation: fadeUp 0.5s ease both; }
.fu1 { animation-delay: 0.05s; }
.fu2 { animation-delay: 0.15s; }
.fu3 { animation-delay: 0.25s; }

/* contact.html uses a different animation class name */
.fade-up  { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
/* ── Navigation ───────────────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 36px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}

.nav-logo      { display: flex; align-items: center; text-decoration: none; }
.nav-logo-mark { height: 40px; width: auto; display: block; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover  { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 500; }

/* Groups the CTA button + burger so they stay together */
.nav-right { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  background: var(--navy); color: var(--white);
  border: none; padding: 10px 22px; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: var(--navy-dark); }

/* ── Hamburger button ─────────────────────────────────────────────────── */
.nav-burger {
  display: none; /* shown only on mobile */
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px; flex-shrink: 0;
  transition: background 0.15s;
}
.nav-burger:hover { background: rgba(0, 0, 0, 0.06); }

.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.2s ease;
}

/* Morph to × when open */
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ────────────────────────────────────────────────────── */
/*
 * The drawer is position:fixed so it always covers the viewport below the nav.
 * Mobile nav height = 12px padding-top + 40px logo + 12px padding-bottom + 1px border = 65px.
 * visibility:hidden keeps it accessible-hidden without display:none so CSS transitions work.
 */
.nav-drawer {
  position: fixed;
  top: 65px; left: 0; right: 0; bottom: 0;
  z-index: 99;
  visibility: hidden;
  pointer-events: none;
}
.nav-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

/* Darkened backdrop */
.nav-drawer-bg {
  position: absolute; inset: 0;
  background: rgba(5, 12, 26, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer.open .nav-drawer-bg { opacity: 1; }

/* Sliding panel */
.nav-drawer-panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(5, 12, 26, 0.15);
  padding: 12px 20px 24px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.nav-drawer.open .nav-drawer-panel {
  transform: translateY(0);
  opacity: 1;
}

/* Links inside drawer */
.nav-drawer-links {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.nav-drawer-links a {
  display: block;
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  color: var(--muted); text-decoration: none;
  padding: 11px 10px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-drawer-links a:hover  { color: var(--navy); background: var(--navy-light, #E8E9FB); }
.nav-drawer-links a.active { color: var(--navy); font-weight: 500; }

/* CTA button inside drawer */
.nav-drawer-cta {
  display: block; width: 100%; padding: 14px;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; text-align: center;
  transition: background 0.2s;
}
.nav-drawer-cta:hover { background: var(--navy-dark); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  nav         { padding: 12px 16px; }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-burger { display: flex; }
}
/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  background: var(--navy-deeper);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo    { height: 36px; width: auto; display: block; margin-bottom: 16px; }
.footer-tagline { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.45); max-width: 240px; margin: 0; }

.footer-col h4 {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3); margin: 0 0 16px;
}

.footer-col a,
.footer-col span {
  display: block; color: rgba(255,255,255,0.55); text-decoration: none;
  margin-bottom: 10px; font-size: 14px; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 64px; font-size: 13px; color: rgba(255,255,255,0.45);
}
.footer-bottom-left { display: flex; gap: 20px; align-items: center; }
.footer-bottom a       { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

.currency-selector-wrap {
  display: flex; align-items: center; gap: 10px;
}
.currency-selector {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: white; padding: 4px 8px; border-radius: 6px; font-size: 12px;
  font-family: inherit; cursor: pointer; transition: 0.2s;
}
.currency-selector:hover { border-color: rgba(255,255,255,0.3); }
.currency-selector option { background: #1a1f8f; color: white; }

@media (max-width: 860px) {
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; padding: 20px 24px; }
  .footer-bottom-left { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
/* ── Shared Components ────────────────────────────────────────────────── */

/* Section Label */
.section-label {
  display: inline-block;
  background: var(--navy-light); color: var(--navy);
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 100px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label.white { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.section-label.green { background: var(--green-light); color: var(--green); }
.section-label.gold  { background: var(--gold-light); color: #7D4A00; }
.section-label.coral { background: var(--coral-light); color: var(--coral); }

/* Breadcrumb */
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.5);
  margin-bottom: 28px; position: relative;
}
.breadcrumb a       { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb-sep     { color: rgba(255,255,255,0.25); }

/* Hero background grid + glow (shared pattern across page heroes) */
.ph-grid, .hero-grid, .hero-grid-bg, .hero-404-grid, .page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.ph-glow, .hero-404-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 420px;
  background: radial-gradient(ellipse, rgba(75,82,212,0.42) 0%, transparent 65%);
  pointer-events: none;
}

/* Floating channel icons (used in all page heroes) */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.floater {
  position: absolute; width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; opacity: 0.18;
  animation: float 6s ease-in-out infinite;
}
.floater:nth-child(1) { left: 6%;  top: 20%; animation-delay: 0s;   background: #25D366; }
.floater:nth-child(2) { left: 15%; top: 65%; animation-delay: 1.2s; background: #229ED9; }
.floater:nth-child(3) { left: 80%; top: 18%; animation-delay: 0.6s; background: #1877F2; }
.floater:nth-child(4) { left: 88%; top: 60%; animation-delay: 1.8s; background: #E8A020; }
.floater:nth-child(5) { left: 72%; top: 78%; animation-delay: 0.3s; background: #805AD5; }
.floater:nth-child(6) { left: 4%;  top: 78%; animation-delay: 2.4s; background: #D85A30; }

/* Buttons */
.btn-navy {
  background: var(--navy); color: var(--white);
  border: none; padding: 13px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy-dark); }

.btn-outline {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--navy); padding: 13px 24px;
  border-radius: 10px; font-size: 15px;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
}

.btn-white {
  background: white; color: var(--navy-deeper);
  border: none; padding: 16px 36px; border-radius: 10px;
  font-size: 16px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3); padding: 16px 28px;
  border-radius: 10px; font-size: 16px;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
}

/* SVG checkmark bullet (inline data-URI) */
.chk {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  background: var(--navy); margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5 11l4.5 4.5 7.5-8' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Final CTA section (shared across multiple pages) */
.final-cta { background: var(--navy); padding: 88px 36px; text-align: center; }
.final-cta h2,
.final-cta h3 {
  font-size: clamp(26px, 4.5vw, 48px); font-weight: 800; color: white;
  letter-spacing: -1.5px; max-width: 660px; margin: 0 auto 16px;
}
.final-cta p { font-size: 16px; color: rgba(255,255,255,0.65); max-width: 440px; margin: 0 auto 40px; }
.cta-row     { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
