/* ==========================================================================
   HoverForge Application Styles
   Professional drone/UAV content site with industrial design aesthetic
   ========================================================================== */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--hf-font-body);
  font-size: var(--hf-text-base);
  line-height: var(--hf-leading-relaxed);
  color: var(--hf-color-text);
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2332 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Skip link for accessibility */
.hf-skip-link {
  position: absolute;
  top: -100vh;
  left: var(--hf-space-4);
  z-index: var(--hf-z-modal);
  padding: var(--hf-space-3) var(--hf-space-4);
  background-color: var(--hf-color-accent);
  color: var(--hf-color-dark);
  text-decoration: none;
  border-radius: var(--hf-radius);
  font-weight: var(--hf-font-semibold);
  transition: top var(--hf-duration-normal) var(--hf-ease-out);
}

.hf-skip-link:focus {
  top: var(--hf-space-4);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.hf-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--hf-space-6);
}

@media (max-width: 768px) {
  .hf-container {
    padding: 0 var(--hf-space-4);
  }
}

.hf-main-content {
  flex: 1;
  background: var(--hf-color-white);
  margin-top: 0;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.hf-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  position: sticky;
  top: 0;
  z-index: var(--hf-z-header);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hf-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--hf-space-4) 0;
  min-height: 72px;
}

/* Brand/Logo Styling */
.hf-brand {
  display: flex;
  align-items: center;
  gap: var(--hf-space-3);
}

.hf-site-title a {
  display: flex;
  align-items: center;
  gap: var(--hf-space-2);
  text-decoration: none;
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-xl);
  font-weight: var(--hf-font-bold);
  color: var(--hf-color-white);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-site-title a:hover {
  color: var(--hf-color-accent);
  transform: translateY(-1px);
}

.hf-logo-icon {
  width: 28px;
  height: 28px;
  color: #3b82f6;
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-site-title a:hover .hf-logo-icon {
  color: #06b6d4;
  transform: scale(1.05);
}

.hf-site-description {
  color: var(--hf-color-muted);
  font-size: var(--hf-text-sm);
  margin: 0;
  margin-left: 34px;
}

/* Primary Navigation */
.hf-nav-primary {
  display: flex;
  align-items: center;
}

.hf-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--hf-space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-nav-menu a {
  color: var(--hf-color-white);
  text-decoration: none;
  font-weight: var(--hf-font-medium);
  padding: var(--hf-space-2) var(--hf-space-3);
  border-radius: var(--hf-radius);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
  position: relative;
}

.hf-nav-menu a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
  transform: translateX(-50%);
}

.hf-nav-menu a:hover {
  color: var(--hf-color-accent);
  background: rgba(59, 130, 246, 0.1);
}

.hf-nav-menu a:hover::before {
  width: 80%;
}

/* Header Actions */
.hf-header-actions {
  display: flex;
  align-items: center;
  gap: var(--hf-space-3);
}

.hf-search-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--hf-color-white);
  padding: var(--hf-space-2);
  border-radius: var(--hf-radius);
  cursor: pointer;
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-search-toggle:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--hf-color-accent);
}

.hf-icon-search {
  width: 18px;
  height: 18px;
}

/* Mobile menu toggle */
.hf-mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--hf-color-white);
  padding: var(--hf-space-2);
  cursor: pointer;
}

.hf-hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hf-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--hf-color-white);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

@media (max-width: 768px) {
  .hf-nav-primary {
    display: none;
  }

  .hf-mobile-menu-toggle {
    display: block;
  }
}

/* Trust Bar */
.hf-trust-bar {
  background: linear-gradient(90deg, #1e293b 0%, #334155 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: var(--hf-space-3) 0;
}

.hf-trust-items {
  display: flex;
  justify-content: center;
  gap: var(--hf-space-8);
  flex-wrap: wrap;
}

.hf-trust-item {
  display: flex;
  align-items: center;
  gap: var(--hf-space-2);
  color: var(--hf-color-white);
  font-size: var(--hf-text-sm);
  font-weight: var(--hf-font-medium);
}

.hf-trust-icon {
  width: 16px;
  height: 16px;
  color: var(--hf-color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hf-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: var(--hf-color-white);
  padding: var(--hf-space-20) 0 var(--hf-space-16);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Hero Video Carousel */
.hf-hero-video-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hf-video-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hf-video-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hf-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
  z-index: 2;
}

/* Video fallback displays gradient when video files are not available */

@keyframes heroGlow {
  0% {
    background:
      radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
      linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  }
  100% {
    background:
      radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
      linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  }
}

.hf-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hf-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hf-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(51, 65, 85, 0.8) 100%);
  z-index: 2;
}

.hf-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(59,130,246,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  pointer-events: none;
  z-index: 3;
}

.hf-hero::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 10%;
  width: 60px;
  height: 60px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><g stroke="rgba(59,130,246,0.4)" stroke-width="1.5" fill="none"><rect x="9" y="9" width="6" height="6" rx="1" fill="rgba(59,130,246,0.2)" stroke="rgba(59,130,246,0.4)"/><circle cx="5" cy="5" r="2.5" fill="rgba(59,130,246,0.3)"/><circle cx="19" cy="5" r="2.5" fill="rgba(59,130,246,0.3)"/><circle cx="5" cy="19" r="2.5" fill="rgba(59,130,246,0.3)"/><circle cx="19" cy="19" r="2.5" fill="rgba(59,130,246,0.3)"/><line x1="7.5" y1="7.5" x2="9.5" y2="9.5" stroke="rgba(59,130,246,0.5)" stroke-width="2"/><line x1="16.5" y1="7.5" x2="14.5" y2="9.5" stroke="rgba(59,130,246,0.5)" stroke-width="2"/><line x1="7.5" y1="16.5" x2="9.5" y2="14.5" stroke="rgba(59,130,246,0.5)" stroke-width="2"/><line x1="16.5" y1="16.5" x2="14.5" y2="14.5" stroke="rgba(59,130,246,0.5)" stroke-width="2"/><circle cx="12" cy="12" r="1.5" fill="rgba(59,130,246,0.6)"/></g></svg>') no-repeat center;
  background-size: contain;
  opacity: 0.6;
  animation: droneFloat 8s ease-in-out infinite;
  z-index: 3;
}

@keyframes droneFloat {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) translateX(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-25px) translateX(15px) rotate(3deg);
  }
}

.hf-hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hf-hero-title {
  font-family: var(--hf-font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--hf-font-black);
  line-height: 1.1;
  margin-bottom: var(--hf-space-6);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hf-text-accent {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hf-hero-description {
  font-size: var(--hf-text-xl);
  color: var(--hf-color-slate-300);
  margin-bottom: var(--hf-space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hf-hero-actions {
  display: flex;
  gap: var(--hf-space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--hf-space-12);
}

.hf-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--hf-space-12);
  margin-top: var(--hf-space-12);
  flex-wrap: wrap;
}

.hf-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hf-space-2);
}

.hf-stat-icon {
  width: 32px;
  height: 32px;
  color: var(--hf-color-accent);
  margin-bottom: var(--hf-space-2);
}

.hf-stat strong {
  display: block;
  font-size: var(--hf-text-2xl);
  font-weight: var(--hf-font-bold);
  color: var(--hf-color-white);
  margin-bottom: var(--hf-space-1);
}

.hf-stat span {
  font-size: var(--hf-text-sm);
  color: var(--hf-color-slate-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.hf-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--hf-space-2);
  padding: var(--hf-space-3) var(--hf-space-6);
  font-weight: var(--hf-font-semibold);
  text-decoration: none;
  border-radius: var(--hf-radius-lg);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  font-size: var(--hf-text-base);
}

.hf-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--hf-duration-normal) var(--hf-ease-out);
}

.hf-btn--large {
  padding: var(--hf-space-4) var(--hf-space-8);
  font-size: var(--hf-text-lg);
}

.hf-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hf-btn:hover::before {
  left: 100%;
}

.hf-btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: var(--hf-color-white);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.hf-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.hf-btn--outline {
  background: transparent;
  color: var(--hf-color-white);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hf-btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hf-color-accent);
  color: var(--hf-color-accent);
  transform: translateY(-2px);
}

.hf-btn--small {
  padding: var(--hf-space-2) var(--hf-space-4);
  font-size: var(--hf-text-sm);
}

.hf-btn--large {
  padding: var(--hf-space-4) var(--hf-space-8);
  font-size: var(--hf-text-lg);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.hf-latest-articles,
.hf-featured-content,
.hf-categories,
.hf-trust-section {
  padding: var(--hf-space-16) 0;
}

.hf-section-header {
  text-align: center;
  margin-bottom: var(--hf-space-12);
}

.hf-section-subtitle {
  font-size: var(--hf-text-lg);
  color: var(--hf-color-text-muted);
  margin-top: var(--hf-space-4);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   LATEST ARTICLES SECTION
   ========================================================================== */

.hf-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--hf-space-8);
  margin-bottom: var(--hf-space-12);
}

.hf-article-card {
  background: var(--hf-color-white);
  border-radius: var(--hf-radius-xl);
  overflow: hidden;
  box-shadow: var(--hf-shadow);
  transition: all var(--hf-duration-normal) var(--hf-ease-out);
  border: 1px solid var(--hf-color-border);
}

.hf-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hf-shadow-xl);
}

.hf-article-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hf-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--hf-duration-normal) var(--hf-ease-out);
}

.hf-article-card:hover .hf-article-image img {
  transform: scale(1.05);
}

.hf-placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hf-color-slate-400);
}

.hf-placeholder-image svg {
  width: 48px;
  height: 48px;
}

.hf-article-category {
  position: absolute;
  top: var(--hf-space-4);
  left: var(--hf-space-4);
  background: var(--hf-color-primary);
  color: var(--hf-color-white);
  padding: var(--hf-space-1) var(--hf-space-3);
  border-radius: var(--hf-radius-full);
  font-size: var(--hf-text-xs);
  font-weight: var(--hf-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hf-article-content {
  padding: var(--hf-space-6);
}

.hf-article-title {
  margin-bottom: var(--hf-space-3);
}

.hf-article-title a {
  color: var(--hf-color-dark);
  text-decoration: none;
  font-family: var(--hf-font-heading);
  font-weight: var(--hf-font-semibold);
  font-size: var(--hf-text-lg);
  line-height: 1.4;
  transition: color var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-article-title a:hover {
  color: var(--hf-color-primary);
}

.hf-article-meta {
  display: flex;
  gap: var(--hf-space-3);
  margin-bottom: var(--hf-space-4);
  font-size: var(--hf-text-sm);
  color: var(--hf-color-text-muted);
}

.hf-article-excerpt {
  color: var(--hf-color-text-light);
  line-height: 1.6;
  margin-bottom: var(--hf-space-4);
}

.hf-article-link {
  color: var(--hf-color-primary);
  text-decoration: none;
  font-weight: var(--hf-font-semibold);
  font-size: var(--hf-text-sm);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-article-link:hover {
  color: var(--hf-color-accent);
  transform: translateX(4px);
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */

.hf-trust-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hf-trust-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hf-space-16);
  align-items: center;
}

.hf-trust-text h2 {
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-3xl);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-6);
  color: var(--hf-color-dark);
}

.hf-trust-text p {
  font-size: var(--hf-text-lg);
  color: var(--hf-color-text-light);
  margin-bottom: var(--hf-space-8);
  line-height: 1.6;
}

.hf-trust-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--hf-space-6);
  margin-bottom: var(--hf-space-8);
}

.hf-trust-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--hf-space-4);
}

.hf-trust-highlight svg {
  width: 24px;
  height: 24px;
  color: var(--hf-color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.hf-trust-highlight div strong {
  display: block;
  color: var(--hf-color-dark);
  font-weight: var(--hf-font-semibold);
  margin-bottom: var(--hf-space-1);
}

.hf-trust-highlight div span {
  color: var(--hf-color-text-muted);
  font-size: var(--hf-text-sm);
}

.hf-trust-actions {
  display: flex;
  gap: var(--hf-space-4);
  flex-wrap: wrap;
}

.hf-trust-visual {
  background: var(--hf-color-white);
  border-radius: var(--hf-radius-xl);
  padding: var(--hf-space-8);
  box-shadow: var(--hf-shadow-lg);
}

.hf-testing-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--hf-space-6);
}

.hf-showcase-item {
  display: flex;
  align-items: center;
  gap: var(--hf-space-4);
}

.hf-showcase-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hf-showcase-icon svg {
  width: 24px;
  height: 24px;
  color: var(--hf-color-primary);
}

.hf-showcase-item div strong {
  display: block;
  color: var(--hf-color-dark);
  font-weight: var(--hf-font-semibold);
  margin-bottom: var(--hf-space-1);
}

.hf-showcase-item div span {
  color: var(--hf-color-text-muted);
  font-size: var(--hf-text-sm);
}

.hf-section-title {
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-3xl);
  font-weight: var(--hf-font-bold);
  text-align: center;
  margin-bottom: var(--hf-space-12);
  color: var(--hf-color-dark);
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */

.hf-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--hf-space-8);
  margin-bottom: var(--hf-space-12);
}

.hf-category-card {
  background: var(--hf-color-white);
  border-radius: var(--hf-radius-xl);
  padding: var(--hf-space-8);
  text-align: center;
  transition: all var(--hf-duration-normal) var(--hf-ease-out);
  border: 1px solid var(--hf-color-border);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.hf-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transform: scaleX(0);
  transition: transform var(--hf-duration-normal) var(--hf-ease-out);
}

.hf-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.hf-category-card:hover::before {
  transform: scaleX(1);
}

.hf-category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--hf-space-4);
  transition: all var(--hf-duration-normal) var(--hf-ease-out);
  color: var(--hf-color-slate-600);
}

.hf-category-icon svg {
  width: 32px;
  height: 32px;
}

.hf-category-card:hover .hf-category-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  transform: scale(1.1);
  color: var(--hf-color-white);
}

.hf-category-title {
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-xl);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-2);
  color: var(--hf-color-dark);
}

.hf-category-description {
  color: var(--hf-color-muted);
  margin-bottom: var(--hf-space-6);
  line-height: 1.6;
}

.hf-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--hf-space-2);
  color: var(--hf-color-primary);
  text-decoration: none;
  font-weight: var(--hf-font-semibold);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-category-link:hover {
  color: var(--hf-color-accent);
  transform: translateX(4px);
}

/* ==========================================================================
   TRUST SECTION ENHANCEMENTS
   ========================================================================== */

.hf-trust-section {
  position: relative;
  padding: var(--hf-space-16) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.hf-trust-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hf-trust-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--hf-space-8);
  margin-bottom: var(--hf-space-12);
}

.hf-trust-highlight {
  background: var(--hf-color-white);
  border-radius: var(--hf-radius-xl);
  padding: var(--hf-space-8);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  gap: var(--hf-space-4);
  position: relative;
  overflow: hidden;
  transition: all var(--hf-duration-normal) var(--hf-ease-out);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hf-trust-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.hf-trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.hf-trust-icon svg {
  width: 28px;
  height: 28px;
  z-index: 2;
  position: relative;
}

.hf-trust-content {
  flex: 1;
  position: relative;
}

.hf-trust-content strong {
  display: block;
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-lg);
  font-weight: var(--hf-font-bold);
  color: var(--hf-color-dark);
  margin-bottom: var(--hf-space-2);
}

.hf-trust-content span {
  color: var(--hf-color-muted);
  line-height: 1.6;
  font-size: var(--hf-text-base);
}

.hf-trust-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.5;
}

.hf-visual-element {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */

.hf-newsletter {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--hf-color-white);
  padding: var(--hf-space-16) 0;
  text-align: center;
}

.hf-newsletter-content h2 {
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-3xl);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-4);
  color: var(--hf-color-white);
}

.hf-newsletter-content p {
  font-size: var(--hf-text-lg);
  color: var(--hf-color-slate-300);
  margin-bottom: var(--hf-space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hf-newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.hf-form-inline {
  display: flex;
  gap: var(--hf-space-3);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--hf-space-4);
}

.hf-input {
  flex: 1;
  min-width: 250px;
  padding: var(--hf-space-3) var(--hf-space-4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--hf-radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: var(--hf-color-white);
  backdrop-filter: blur(10px);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-input::placeholder {
  color: var(--hf-color-slate-400);
}

.hf-input:focus {
  outline: none;
  border-color: var(--hf-color-accent);
  background: rgba(255, 255, 255, 0.2);
}

.hf-newsletter-benefits {
  color: var(--hf-color-slate-400);
  font-size: var(--hf-text-sm);
  margin: 0;
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */

.hf-social-links {
  display: flex;
  gap: var(--hf-space-4);
  margin-top: var(--hf-space-4);
}

.hf-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--hf-color-slate-400);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-social-links a:hover {
  background: var(--hf-color-accent);
  color: var(--hf-color-white);
  transform: translateY(-2px);
}

.hf-social-links svg {
  width: 20px;
  height: 20px;
}

.hf-trust-badges {
  display: flex;
  flex-direction: column;
  gap: var(--hf-space-4);
}

.hf-trust-badge {
  display: flex;
  align-items: center;
  gap: var(--hf-space-3);
}

.hf-badge-icon {
  width: 24px;
  height: 24px;
  color: var(--hf-color-accent);
  flex-shrink: 0;
}

.hf-badge-text strong {
  display: block;
  color: var(--hf-color-white);
  font-size: var(--hf-text-sm);
  font-weight: var(--hf-font-semibold);
}

.hf-badge-text span {
  color: var(--hf-color-slate-400);
  font-size: var(--hf-text-xs);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.hf-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--hf-color-white);
  padding: var(--hf-space-16) 0 var(--hf-space-8);
}

.hf-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--hf-space-12);
  margin-bottom: var(--hf-space-12);
}

.hf-footer-brand {
  margin-bottom: var(--hf-space-6);
}

.hf-footer-logo {
  display: flex;
  align-items: center;
  gap: var(--hf-space-2);
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-xl);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-4);
}

.hf-footer-description {
  color: var(--hf-color-slate-300);
  line-height: 1.6;
}

.hf-footer h4 {
  font-family: var(--hf-font-heading);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-4);
  color: var(--hf-color-white);
}

.hf-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hf-footer-menu li {
  margin-bottom: var(--hf-space-2);
}

.hf-footer-menu a {
  color: var(--hf-color-slate-300);
  text-decoration: none;
  transition: color var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-footer-menu a:hover {
  color: var(--hf-color-accent);
}

.hf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--hf-space-8);
  text-align: center;
  color: var(--hf-color-slate-400);
}

.hf-legal-links {
  margin-top: var(--hf-space-4);
  display: flex;
  justify-content: center;
  gap: var(--hf-space-6);
  flex-wrap: wrap;
}

.hf-legal-links a {
  color: var(--hf-color-slate-400);
  text-decoration: none;
  font-size: var(--hf-text-sm);
  transition: color var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-legal-links a:hover {
  color: var(--hf-color-accent);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .hf-hero {
    padding: var(--hf-space-12) 0 var(--hf-space-8);
    min-height: 60vh;
  }

  .hf-hero-video {
    display: none; /* Hide video on mobile for performance */
  }

  .hf-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hf-hero-stats {
    gap: var(--hf-space-6);
  }

  .hf-hero::after {
    display: none; /* Hide floating drone on mobile */
  }

  .hf-articles-grid,
  .hf-categories-grid {
    grid-template-columns: 1fr;
    gap: var(--hf-space-6);
  }

  .hf-trust-content {
    grid-template-columns: 1fr;
    gap: var(--hf-space-8);
  }
}

/* Enhanced Category Cards */
.hf-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--hf-space-4);
}

.hf-category-badge {
  padding: var(--hf-space-1) var(--hf-space-2);
  border-radius: var(--hf-radius);
  font-size: var(--hf-text-xs);
  font-weight: var(--hf-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

  .hf-trust-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hf-form-inline {
    flex-direction: column;
  }

  .hf-input {
    min-width: auto;
  }

  .hf-trust-items {
    gap: var(--hf-space-4);
  }

  .hf-trust-item {
    font-size: var(--hf-text-xs);
  }
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */

.hf-page-header {
  text-align: center;
  margin-bottom: var(--hf-space-16);
  padding: var(--hf-space-12) 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--hf-radius-xl);
}

.hf-page-header h1 {
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-4xl);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-4);
  color: var(--hf-color-dark);
}

.hf-page-subtitle {
  font-size: var(--hf-text-xl);
  color: var(--hf-color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--hf-space-4);
}

/* Contact Page */
.hf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hf-space-16);
  margin-bottom: var(--hf-space-16);
}

.hf-contact-card {
  background: var(--hf-color-white);
  padding: var(--hf-space-6);
  border-radius: var(--hf-radius-lg);
  border: 1px solid var(--hf-color-border);
  margin-bottom: var(--hf-space-6);
  transition: all var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-contact-card:hover {
  border-color: var(--hf-color-primary);
  box-shadow: var(--hf-shadow-lg);
}

.hf-contact-card h3 {
  color: var(--hf-color-dark);
  margin-bottom: var(--hf-space-2);
  font-weight: var(--hf-font-semibold);
}

.hf-contact-link {
  color: var(--hf-color-primary);
  text-decoration: none;
  font-weight: var(--hf-font-medium);
}

.hf-contact-link:hover {
  color: var(--hf-color-accent);
}

.hf-contact-form {
  background: var(--hf-color-white);
  padding: var(--hf-space-8);
  border-radius: var(--hf-radius-xl);
  border: 1px solid var(--hf-color-border);
}

.hf-form-group {
  margin-bottom: var(--hf-space-6);
}

.hf-form-group label {
  display: block;
  margin-bottom: var(--hf-space-2);
  font-weight: var(--hf-font-medium);
  color: var(--hf-color-dark);
}

.hf-input, .hf-input select, .hf-input textarea {
  width: 100%;
  padding: var(--hf-space-3);
  border: 1px solid var(--hf-color-border);
  border-radius: var(--hf-radius);
  font-family: inherit;
  font-size: var(--hf-text-base);
  transition: border-color var(--hf-duration-fast) var(--hf-ease-out);
}

.hf-input:focus {
  outline: none;
  border-color: var(--hf-color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.hf-response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--hf-space-6);
  margin-top: var(--hf-space-8);
}

.hf-response-card {
  text-align: center;
  padding: var(--hf-space-6);
  background: var(--hf-color-slate-50);
  border-radius: var(--hf-radius-lg);
}

.hf-response-card h4 {
  color: var(--hf-color-dark);
  margin-bottom: var(--hf-space-2);
  font-weight: var(--hf-font-semibold);
}

/* About Page */
.hf-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--hf-space-6);
  margin: var(--hf-space-8) 0;
}

.hf-stat-card {
  text-align: center;
  padding: var(--hf-space-6);
  background: var(--hf-color-white);
  border-radius: var(--hf-radius-lg);
  border: 1px solid var(--hf-color-border);
  box-shadow: var(--hf-shadow);
}

.hf-stat-card strong {
  display: block;
  font-size: var(--hf-text-2xl);
  font-weight: var(--hf-font-bold);
  color: var(--hf-color-primary);
  margin-bottom: var(--hf-space-2);
}

.hf-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--hf-space-8);
  margin: var(--hf-space-8) 0;
}

.hf-team-member {
  background: var(--hf-color-white);
  padding: var(--hf-space-8);
  border-radius: var(--hf-radius-xl);
  border: 1px solid var(--hf-color-border);
  box-shadow: var(--hf-shadow);
}

.hf-team-member h3 {
  color: var(--hf-color-dark);
  margin-bottom: var(--hf-space-2);
  font-weight: var(--hf-font-bold);
}

.hf-team-role {
  color: var(--hf-color-primary);
  font-weight: var(--hf-font-semibold);
  margin-bottom: var(--hf-space-4);
}

.hf-team-certs {
  margin-top: var(--hf-space-4);
  display: flex;
  gap: var(--hf-space-2);
  flex-wrap: wrap;
}

.hf-cert {
  background: var(--hf-color-accent);
  color: var(--hf-color-white);
  padding: var(--hf-space-1) var(--hf-space-3);
  border-radius: var(--hf-radius-full);
  font-size: var(--hf-text-xs);
  font-weight: var(--hf-font-medium);
}

.hf-methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--hf-space-6);
  margin: var(--hf-space-8) 0;
}

.hf-method-card {
  background: var(--hf-color-slate-50);
  padding: var(--hf-space-6);
  border-radius: var(--hf-radius-lg);
  border-left: 4px solid var(--hf-color-primary);
}

.hf-method-card h4 {
  color: var(--hf-color-dark);
  margin-bottom: var(--hf-space-3);
  font-weight: var(--hf-font-semibold);
}

.hf-standards-list {
  display: grid;
  gap: var(--hf-space-6);
  margin: var(--hf-space-8) 0;
}

.hf-standard-item {
  padding: var(--hf-space-6);
  background: var(--hf-color-white);
  border-radius: var(--hf-radius-lg);
  border: 1px solid var(--hf-color-border);
}

.hf-standard-item h4 {
  color: var(--hf-color-primary);
  margin-bottom: var(--hf-space-3);
  font-weight: var(--hf-font-semibold);
}

.hf-contact-cta {
  text-align: center;
  padding: var(--hf-space-12);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--hf-radius-xl);
  margin: var(--hf-space-16) 0;
}

.hf-cta-actions {
  margin-top: var(--hf-space-6);
  display: flex;
  gap: var(--hf-space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Legal Content */
.hf-legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.hf-legal-content section {
  margin-bottom: var(--hf-space-12);
  padding-bottom: var(--hf-space-8);
  border-bottom: 1px solid var(--hf-color-border);
}

.hf-legal-content section:last-child {
  border-bottom: none;
}

.hf-legal-content h2 {
  color: var(--hf-color-dark);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-6);
  border-left: 4px solid var(--hf-color-primary);
  padding-left: var(--hf-space-4);
}

.hf-legal-content h3 {
  color: var(--hf-color-dark);
  font-weight: var(--hf-font-semibold);
  margin: var(--hf-space-6) 0 var(--hf-space-4);
}

.hf-legal-content ul {
  margin: var(--hf-space-4) 0;
  padding-left: var(--hf-space-6);
}

.hf-legal-content li {
  margin-bottom: var(--hf-space-2);
  line-height: 1.6;
}

/* Archive Pages */
.hf-archive-header {
  text-align: center;
  margin-bottom: var(--hf-space-12);
  padding: var(--hf-space-8) 0;
}

.hf-archive-title {
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-3xl);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-4);
  color: var(--hf-color-dark);
}

.hf-archive-description {
  font-size: var(--hf-text-lg);
  color: var(--hf-color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.hf-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--hf-space-8);
  margin-bottom: var(--hf-space-12);
}

.hf-no-posts {
  text-align: center;
  padding: var(--hf-space-16);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--hf-radius-xl);
}

.hf-no-posts h2 {
  font-family: var(--hf-font-heading);
  font-size: var(--hf-text-2xl);
  font-weight: var(--hf-font-bold);
  margin-bottom: var(--hf-space-4);
  color: var(--hf-color-dark);
}

.hf-no-posts p {
  font-size: var(--hf-text-lg);
  color: var(--hf-color-text-muted);
  margin-bottom: var(--hf-space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
  .hf-contact-grid {
    grid-template-columns: 1fr;
    gap: var(--hf-space-8);
  }

  .hf-stats-grid,
  .hf-team-grid,
  .hf-methodology-grid,
  .hf-posts-grid {
    grid-template-columns: 1fr;
  }

  .hf-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.hf-text-balance {
  text-wrap: balance;
}

.hf-measure {
  max-width: 65ch;
}

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