/* ═══════════════════════════════════════════════════════
   global.css — Skyline Drone Solutions
   Shared styles across all pages
   ═══════════════════════════════════════════════════════ */

/* ───────── CSS CUSTOM PROPERTIES ───────── */
:root {
  --navy: #0B1F3A;
  --navy-dark: #070f1e;
  --navy-mid: #0B3C6F;
  --navy-light: #0E2A47;
  --navy-card: #0d1e35;
  --blue: #2F6BFF;
  --blue-light: #5585ff;
  --blue-dark: #1f54d4;
  --blue-glow: rgba(47,107,255,0.22);
  --white: #FFFFFF;
  --gray-100: #F5F7FA;
  --gray-200: #E3E7ED;
  --gray-400: #9ca3af;
  --gray-600: #6B7280;
  --text-dark: #1A1A1A;
  --max-w: 1260px;
}

/* ───────── RESET ───────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ───────── SKIP LINK ───────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--blue); color: #fff;
  padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; border-radius: 0 0 6px 6px;
  z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ───────── GRAIN OVERLAY ───────── */
.grain-overlay {
  position: fixed; inset: 0; z-index: 200;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.042;
}

/* ───────── BODY / TYPOGRAPHY ───────── */
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy-dark);
  color: var(--white);
  overflow-x: hidden;
}

h1, h2 { font-family: 'Outfit', sans-serif; letter-spacing: -0.03em; }
h3, h4 { font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }

/* ───────── CONTAINER ───────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }

/* ───────── NAV ───────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2.5rem; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s, box-shadow 0.4s;
  background: rgba(7,20,40,0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
}
/* Index page: transparent until scrolled */
nav.nav-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
nav.nav-scrolled {
  background: rgba(7,20,40,0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 8px 40px rgba(0,0,0,0.28);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo svg { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.nav-logo:hover svg { transform: rotate(-8deg) scale(1.08); }
.nav-logo-text { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.nav-logo-text .logo-name {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.1em; color: var(--white); text-transform: uppercase;
}
.nav-logo-text .logo-sub {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.58rem;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.45);
  text-transform: uppercase; margin-top: 2px;
}

.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none; position: relative;
}
.nav-indicator {
  position: absolute; bottom: -22px; left: 0; height: 2px;
  background: var(--blue); border-radius: 2px;
  transition: left 0.35s cubic-bezier(0.22,1,0.36,1), width 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.2s;
  opacity: 0; pointer-events: none;
}
.nav-links:hover .nav-indicator { opacity: 1; }
.nav-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.84rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.45rem 1rem; border-radius: 6px;
  display: block; position: relative; transition: color 0.25s;
}
.nav-links a.nav-active { color: #fff; font-weight: 600; background: rgba(47,107,255,0.1); }
.nav-links li:has(a.nav-active) { position: relative; }
.nav-links li:has(a.nav-active)::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: #2F6BFF; border-radius: 2px;
}
.nav-links a:hover { color: #fff; }
.nav-links a:active { transform: scale(0.96); }

/* Cart / Nav CTA button — position:relative so badge is not clipped */
.nav-cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8); border-radius: 8px;
  padding: 0.45rem 1rem; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none; position: relative;
}
.nav-cart-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }

/* Badge — sits outside the button flow because overflow is not hidden */
.btn-nav-cta {
  position: relative;
}

.cart-badge {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; background: var(--blue); border-radius: 50%;
  font-size: 0.65rem; font-weight: 700; display: flex;
  align-items: center; justify-content: center;
  border: 2px solid var(--navy-dark);
}

/* ── NAV CTA ripple (used on index) ── */
.btn-nav-cta::after {
  content: '';
  position: absolute; inset: 50% 50%;
  background: rgba(255,255,255,0.28); border-radius: 50%;
  transform: scale(0); opacity: 0; transition: none;
}
.btn-nav-cta.ripple::after {
  animation: nav-ripple 0.55s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes nav-ripple {
  0%   { inset: 40% 40%; transform: scale(0); opacity: 1; }
  100% { inset: -60% -60%; transform: scale(1); opacity: 0; }
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none; outline: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px; transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s, width 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.nav-mobile-drawer {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(7,20,40,0.98); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 2rem 2rem; flex-direction: column; gap: 0;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.3s; z-index: 99;
}
.nav-mobile-drawer.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile-drawer a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 1.05rem; font-weight: 500; padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.25s cubic-bezier(0.22,1,0.36,1);
}
.nav-mobile-drawer a:hover { color: #fff; padding-left: 0.5rem; }
.nav-mobile-drawer .btn-primary { margin-top: 1.25rem; text-align: center; justify-content: center; }

/* ───────── BUTTONS ───────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.02em; padding: 0.6rem 1.4rem; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 12px var(--blue-glow);
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(47,107,255,0.38); }
.btn-primary:active { transform: translateY(0); }
.btn-primary::after {
  content: ''; position: absolute; inset: 50% 50%;
  background: rgba(255,255,255,0.28); border-radius: 50%;
  transform: scale(0); opacity: 0; transition: none;
}
.btn-primary.ripple::after { animation: btn-ripple 0.55s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes btn-ripple {
  0%   { inset: 40% 40%; transform: scale(0); opacity: 1; }
  100% { inset: -60% -60%; transform: scale(1); opacity: 0; }
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.02em; padding: 0.58rem 1.4rem; border-radius: 8px;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,0.35); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); transform: translateY(-1px); }
.btn-outline:active { transform: translateY(0); }

/* ───────── PAGE HERO (shared across inner pages) ───────── */
.page-hero {
  background: var(--navy-dark); padding: 9rem 0 5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(47,107,255,0.14) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 80%);
  pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,0.35) 50%, transparent);
}
.page-hero-inner { position: relative; z-index: 1; }

.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
  margin-bottom: 2rem; list-style: none;
}
.breadcrumb a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb li:not(:first-child)::before { content: '/'; margin-right: 0.5rem; opacity: 0.4; }
.breadcrumb li:last-child { color: rgba(255,255,255,0.65); }

.page-hero-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue-light);
  display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem;
}
.page-hero-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--blue); }

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.0;
  letter-spacing: -0.04em; color: #fff; max-width: 900px; margin-bottom: 1.5rem;
}
.page-hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.35); }
.page-hero-sub {
  font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,0.55);
  max-width: 520px; margin-bottom: 2.5rem;
}
.page-hero-ctas { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-hero-meta {
  margin-top: 4rem; display: flex; align-items: center; gap: 2.5rem;
  padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.07);
}
.page-hero-meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.page-hero-meta-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; line-height: 1; color: #fff;
}
.page-hero-meta-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
}
.page-hero-meta-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* ───────── SECTION COMMONS ───────── */
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem;
}
.section-label-light { color: var(--blue-light); }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.15;
  color: var(--text-dark); max-width: 640px; margin-bottom: 1rem; letter-spacing: -0.03em;
}
.section-title-light { color: #fff; }
.section-sub {
  font-size: 1rem; line-height: 1.7; color: var(--gray-600);
  max-width: 540px; margin-bottom: 3rem;
}

/* ───────── GHOST STATS ───────── */
.stats-section { background: var(--navy-dark); padding: 0; overflow: hidden; }
.stats-section-inner { border-top: 1px solid rgba(255,255,255,0.07); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-col {
  padding: 4rem 3.5rem; border-right: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
}
.stat-col:last-child { border-right: none; }
.stat-ghost {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 11vw, 10rem); font-weight: 400; line-height: 0.85;
  color: rgba(47,107,255,0.07);
  -webkit-text-stroke: 2px rgba(47,107,255,0.38);
  letter-spacing: 0.02em; margin-bottom: 1.25rem; display: block;
}
.stat-label-big { font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.stat-label-sub { font-size: 0.8rem; color: rgba(255,255,255,0.38); line-height: 1.55; max-width: 240px; }

/* ───────── CTA SECTION ───────── */
.cta-section {
  position: relative; overflow: hidden; min-height: 520px;
  display: flex; align-items: stretch;
}
.cta-bg-img { position: absolute; inset: 0; z-index: 0; }
.cta-bg-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(11,31,58,0.97) 0%, rgba(11,31,58,0.88) 38%,
    rgba(11,31,58,0.52) 65%, rgba(11,31,58,0.18) 100%);
}
.cta-inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 5rem 2.5rem; display: flex; align-items: center; gap: 5rem;
}
.cta-content { flex: 1; }
.cta-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue-light);
  display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem;
}
.cta-eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--blue); }
.cta-headline {
  font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 900; line-height: 0.95;
  letter-spacing: -0.04em; color: #fff; margin: 1rem 0 1.5rem;
}
.cta-sub { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 420px; margin-bottom: 2.25rem; }
.cta-buttons { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cta-stat-column {
  display: flex; flex-direction: column; gap: 2rem;
  border-left: 1px solid rgba(255,255,255,0.1); padding-left: 4rem; flex-shrink: 0;
}
.cta-stat-item { display: flex; flex-direction: column; gap: 0.25rem; }
.cta-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; color: #fff; line-height: 0.9; }
.cta-stat-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.38);
}
.cta-stat-divider { width: 32px; height: 1px; background: rgba(255,255,255,0.15); }

/* ───────── FOOTER ───────── */
footer {
  background: #050f1e; padding: 5rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3.5rem;
}
.footer-brand p {
  font-size: 0.875rem; color: rgba(255,255,255,0.38);
  line-height: 1.7; margin: 1rem 0 1.5rem; max-width: 280px;
}
.footer-socials { display: flex; gap: 0.5rem; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.social-btn:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
.footer-col h3 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.25); }
.footer-bottom-links { list-style: none; display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ───────── BACK TO TOP BUTTON ───────── */
.btt-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(11,31,58,0.85); backdrop-filter: blur(12px);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px) scale(0.85);
  transition: opacity 0.35s cubic-bezier(0.22,1,0.36,1),
              transform 0.35s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none; padding: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}
.btt-btn.btt-visible {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.btt-btn:hover { transform: translateY(-2px) scale(1.05); }
.btt-btn:active { transform: scale(0.93); }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.btt-arrow { position: relative; color: rgba(255,255,255,0.85); flex-shrink: 0; }
.btt-progress { transition: stroke-dashoffset 0.1s linear; }

/* ───────── FADE-UP ANIMATION ───────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ───────── RESPONSIVE — shared breakpoints ───────── */
@media (max-width: 1024px) {
  #nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-drawer { display: flex; }
  .btn-nav-cta { display: none; }

  .stats-row { grid-template-columns: 1fr; }
  .stat-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 3rem 2rem; }
  .stat-col:last-child { border-bottom: none; }

  .cta-inner { flex-direction: column; gap: 2.5rem; }
  .cta-stat-column {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.1);
    padding-left: 0; padding-top: 2rem; flex-direction: row; gap: 2.5rem; width: 100%;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 7rem 0 3.5rem; }
  .page-hero-meta { flex-wrap: wrap; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-stat-column { flex-wrap: wrap; gap: 1.5rem; }
}
