/* ============================================================
   Blue Sky Phones — Global Styles
   Brand palette:
   --bsp-900 #00172B  (deepest navy)
   --bsp-800 #012038  (navy)
   --bsp-accent #00A0E3 (bright blue)
   --bsp-light  #ABE0F9 (light sky blue)
   ============================================================ */

:root {
  --bsp-900: #00172B;
  --bsp-800: #012038;
  --bsp-accent: #00A0E3;
  --bsp-light: #ABE0F9;
  --bsp-glow: rgba(0, 160, 227, 0.45);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background-color: var(--bsp-900);
  color: #e9f4fb;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: "Sora", "Inter", sans-serif;
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bsp-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--bsp-accent), #0166a0);
  border-radius: 999px;
}
::selection { background: var(--bsp-accent); color: #00172B; }

/* ---------- Aurora / mesh background ---------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
}
.aurora::before {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, var(--bsp-accent), transparent 70%);
  top: -10%; left: -10%;
  animation: floatA 18s ease-in-out infinite;
}
.aurora::after {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, #2e7dd1, transparent 70%);
  bottom: -15%; right: -10%;
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.15); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-6vw, -8vh) scale(1.2); }
}

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(120deg, #ffffff 0%, var(--bsp-light) 45%, var(--bsp-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Glass cards ---------- */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(171, 224, 249, 0.12);
}
.glass-nav {
  background: rgba(0, 23, 43, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(171, 224, 249, 0.10);
}

/* ---------- Glow border on hover ---------- */
.glow-card {
  position: relative;
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease, border-color .45s ease;
}
.glow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 160, 227, 0.55);
  box-shadow: 0 18px 50px -18px var(--bsp-glow);
}

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  background: linear-gradient(120deg, var(--bsp-accent), #0277bd);
  color: #001321;
  font-weight: 600;
  box-shadow: 0 10px 30px -10px var(--bsp-glow);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 40px -12px var(--bsp-glow);
}
.btn-ghost {
  border: 1px solid rgba(171, 224, 249, 0.35);
  color: #e9f4fb;
  transition: all .3s ease;
}
.btn-ghost:hover {
  background: rgba(171, 224, 249, 0.10);
  border-color: var(--bsp-light);
  transform: translateY(-2px);
}

/* ---------- Brand / platform logo tiles ---------- */
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(171, 224, 249, 0.10);
  transition: all .4s cubic-bezier(.16,1,.3,1);
}
.logo-tile img {
  max-height: 42px;
  width: auto;
  opacity: 0.8;
  filter: drop-shadow(0 0 0 transparent);
  transition: opacity .4s ease, transform .4s ease, filter .4s ease;
}
.logo-tile:hover {
  background: rgba(0, 160, 227, 0.10);
  border-color: rgba(0, 160, 227, 0.45);
  transform: translateY(-5px);
}
.logo-tile:hover img {
  opacity: 1;
  transform: scale(1.06);
  filter: drop-shadow(0 6px 14px var(--bsp-glow));
}

/* ---------- Infinite marquee ---------- */
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee img {
  height: 34px;
  margin: 0 2.75rem;
  opacity: 0.7;
  transition: opacity .3s ease;
}
.marquee img:hover { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-mask {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

/* ---------- Floating animation for hero logo ---------- */
.float-slow { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.glow-ring {
  filter: drop-shadow(0 0 40px rgba(0, 160, 227, 0.55));
}

/* ---------- Grid pattern overlay ---------- */
.grid-overlay {
  background-image:
    linear-gradient(rgba(171,224,249,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(171,224,249,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Section heading kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bsp-accent);
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--bsp-accent);
  display: inline-block;
}

/* ---------- Animated count underline link ---------- */
.nav-link {
  position: relative;
  transition: color .3s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--bsp-accent);
  transition: width .3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--bsp-light); }

/* ---------- Stat number ---------- */
.stat-num {
  font-family: "Sora", sans-serif;
  background: linear-gradient(120deg, #fff, var(--bsp-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
