/* =========================================================
   Hive Developers — Design Tokens
   Palette: deep navy base, electric-blue / violet / cyan accents
   Type: Sora (display) + Inter (body) — distinct geometric/humanist pairing
   ========================================================= */

:root {
  --navy-950: #070a1c;
  --navy-900: #0c1130;
  --navy-800: #131a44;
  --blue-500: #4f6bff;
  --violet-500: #8b5cf6;
  --cyan-400: #29d6d6;
  --white: #ffffff;
  --grey-050: #f6f7fb;
  --grey-100: #eef0f8;
  --grey-300: #c6cbdd;
  --grey-600: #5b6178;
  --grey-800: #262b45;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-soft: 0 20px 45px -20px rgba(12, 17, 48, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(12, 17, 48, 0.18);

  --container-max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--navy-950);
  margin: 0;
}

p {
  line-height: 1.7;
  color: var(--grey-600);
}

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

.container-hd {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 6rem 0;
}

@media (max-width: 767px) {
  .section {
    padding: 3.5rem 0;
  }
}

.section-dark {
  background: var(--navy-950);
  color: var(--grey-300);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--grey-300);
}

.section-alt {
  background: var(--grey-050);
}

/* Buttons */
.btn-hd-primary,
.btn-hd-outline,
.btn-hd-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hd-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  color: var(--white);
}

.btn-hd-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(79, 107, 255, 0.55);
  color: var(--white);
}

.btn-hd-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  background: transparent;
}

.btn-hd-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-hd-light {
  background: var(--white);
  color: var(--navy-950);
}

.btn-hd-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  color: var(--navy-950);
}

/* Eyebrow / kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--blue-500);
  background: rgba(79, 107, 255, 0.1);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-dark .kicker {
  color: var(--cyan-400);
  background: rgba(41, 214, 214, 0.12);
}

/* Cards */
.hd-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-100);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hd-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
}

/* Icon badge */
.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(79, 107, 255, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--blue-500);
}

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

.float-anim {
  animation: floatY 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .float-anim { animation: none; }
  html { scroll-behavior: auto; }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Site-specific components (PHP/Bootstrap build)
   ========================================================= */

/* Navbar */
.hd-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hd-navbar.is-scrolled {
  background: rgba(7, 10, 28, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hd-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.hd-logo-badge.sm {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.hd-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.hd-nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.hd-nav-link:hover,
.hd-nav-link.active {
  color: var(--cyan-400);
}

.hd-mobile-panel {
  background: #0c1130;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.hd-mobile-panel.is-open {
  display: block;
}

.hd-mobile-panel a {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
}

/* Hero */
.hd-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #131a44, var(--navy-950) 60%);
  padding: 8.5rem 0 5.5rem;
}

.hd-hero-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hd-hero-mockup {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.hd-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.hd-floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
}

.hd-floating-card span {
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .hd-floating-card { display: none; }
}

/* Filter buttons */
.hd-filter-btn {
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--grey-100);
  background: transparent;
  color: var(--navy-950);
  transition: all 0.2s ease;
}

.hd-filter-btn.is-active {
  background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
  color: #fff;
  border-color: transparent;
}

.hd-filter-btn.on-dark {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Product showcase mockup */
.hd-browser-frame {
  border-radius: 12px;
  overflow: hidden;
  background: #0f1535;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hd-browser-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.6rem;
  background: #131a44;
}

.hd-browser-screen {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Social icons */
.hd-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hd-social-icon.on-light {
  border-color: var(--grey-100);
  color: var(--navy-950);
}

/* CTA band */
.hd-cta-band {
  border-radius: 28px;
  background: linear-gradient(135deg, #131a44, #0c1130);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 2rem;
}

.hd-cta-glow-1,
.hd-cta-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hd-cta-glow-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 107, 255, 0.35), transparent 70%);
  top: -140px;
  right: -80px;
}

.hd-cta-glow-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(41, 214, 214, 0.25), transparent 70%);
  bottom: -120px;
  left: -60px;
}

/* Stat counter */
.hd-stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--navy-950);
}

.section-dark .hd-stat-value {
  color: #fff;
}

/* Utility */
.text-grey-300 { color: var(--grey-300); }
.bg-navy { background: var(--navy-950); }
