/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:root {
  --bg: #000000;
  --bg-elevated: #0A0A0A;
  --bg-muted: #111111;
  --border: #1A1A1A;
  --border-glow: #333333;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --text-subtle: #71717A;
  --accent: #FFFFFF;
}

html { font-size: 16px; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.125rem; line-height: 1.35; }

a { color: inherit; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }

.btn-primary {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #E4E4E7;
  border-color: #E4E4E7;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-glow);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-subtle);
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-full { width: 100%; }

/* Cards */
.surface {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.surface:hover {
  border-color: var(--border-glow);
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: 1px solid var(--border-glow);
  background: var(--bg-muted);
  color: var(--text-muted);
}

/* Form inputs */
.input-field {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-field::placeholder {
  color: var(--text-subtle);
}
.input-field:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
  outline: none;
}

/* Section spacing */
.section-padding { padding: 5rem 0; }
.section-padding-lg { padding: 7.5rem 0; }

/* Container */
.container-narrow { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

/* Display font class */
.font-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.03em;
}

/* ── Hero Section ── */
.hero-globe {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

/* Gradient overlay — darkens right side for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── Earth GIF — left side, fused with galaxy background ── */
.earth-system {
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  z-index: 3;
  pointer-events: none;
}

.earth-gif {
  width: 100%;
  height: auto;
  display: block;
  mask-image: radial-gradient(ellipse 48% 48% at 50% 48%, black 65%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 48% 48% at 50% 48%, black 65%, transparent 100%);
}

/* Products mega-dropdown */
.products-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  max-width: calc(100vw - 2rem);
  background: #0A0A0A;
  border: 1px solid #1A1A1A;
  border-radius: 12px;
  padding: 1.5rem;
  display: none;
  z-index: 60;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.products-dropdown.open { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.products-dropdown-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717A;
  margin-bottom: 0.75rem;
}
.products-dropdown a {
  display: block;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.products-dropdown a:hover { background: rgba(255, 255, 255, 0.05); }
.products-dropdown .dd-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #FAFAFA;
}
.products-dropdown .dd-desc {
  display: block;
  font-size: 0.75rem;
  color: #71717A;
  margin-top: 0.125rem;
}

/* Social icons — right sidebar */
.hero-social {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 15;
}
.hero-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}
.hero-social a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.hero-social svg {
  width: 20px;
  height: 20px;
}

/* Carousel dots — bottom center */
.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 15;
}
.hero-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  transition: all 0.3s ease;
}
.hero-dots .dot.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .hero-social { display: none; }
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.8) 100%);
  }
  .earth-system {
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
  }
  .earth-gif { width: 320px; }
}

/* Horizontal scroll strip — hide scrollbar */
.product-strip {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-strip::-webkit-scrollbar { display: none; }

/* Ecosystem diagram node */
.eco-node {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.eco-node:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

/* ══════════════════════════════════════
   Navigation — Floating Pill Nav
   ══════════════════════════════════════ */
.pill-nav {
    position: fixed;
    top: 16px;
    left: 24px;
    right: 24px;
    z-index: 50;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0 12px;
    max-width: 1440px;
    margin: 0 auto;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pill-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.pill-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.pill-nav-logo {
    display: inline-flex;
    align-items: center;
    padding: 0 16px 0 14px;
    text-decoration: none;
    white-space: nowrap;
}
.pill-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #71717A;
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.pill-nav-link:hover {
    color: #FAFAFA;
    background: rgba(255, 255, 255, 0.06);
}
.pill-nav-link.active {
    color: #FAFAFA;
    background: rgba(255, 255, 255, 0.1);
}
.pill-nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 6px;
    flex-shrink: 0;
}
.pill-nav-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #A1A1AA;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    margin-left: 4px;
}
.pill-nav-mobile-btn:hover {
    color: #FAFAFA;
    background: rgba(255, 255, 255, 0.06);
}

/* ── Mobile Nav Overlay ── */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-overlay a {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #71717A;
    text-decoration: none;
    padding: 12px 32px;
    border-radius: 16px;
    transition: color 0.2s, background 0.2s;
}
.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active {
    color: #FAFAFA;
    background: rgba(255, 255, 255, 0.06);
}
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #A1A1AA;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.mobile-nav-close:hover {
    color: #FAFAFA;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Products Mega Dropdown ── */
.pill-dropdown {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    max-width: calc(100vw - 2rem);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    display: none;
    z-index: 51;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.pill-dropdown.open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pill-dropdown.services-dropdown {
    width: 320px;
}
.pill-dropdown.services-dropdown.open {
    display: block;
}
.pill-dropdown-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #52525B;
    margin-bottom: 10px;
}
.pill-dropdown a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.15s;
    text-decoration: none;
}
.pill-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
}
.pill-dropdown .dd-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #FAFAFA;
}
.pill-dropdown .dd-desc {
    display: block;
    font-size: 12px;
    color: #52525B;
    margin-top: 2px;
}

/* ── Nav Medium Screens ── */
@media (max-width: 1024px) {
    .pill-nav-link { padding: 8px 14px; font-size: 14px; }
}
/* ── Nav Mobile Responsive ── */
@media (max-width: 768px) {
    .pill-nav { padding: 0 6px; }
    .pill-nav-inner { height: 50px; }
    .pill-nav-logo { padding: 0 10px 0 8px; }
    .pill-nav-links { display: none !important; }
    .pill-nav-divider { display: none; }
    .pill-nav-mobile-btn { display: flex; }
    .pill-dropdown { display: none !important; }
}

/* ── Footer ── */
#coale-footer a:hover { color: #FAFAFA !important; }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}
