/* ==========================================================================
   AlcaneDev Refined Spacing & Badge Design System (v3.5.0)
   Balanced section padding, zero artificial margins, and generous badge padding.
   ========================================================================== */

/* Typography & Base */
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Balanced Section Padding (Zero extra margins, equal top & bottom padding)
   ========================================================================== */

main > section,
section {
  position: relative !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 4.5rem !important;    /* 72px top */
  padding-bottom: 4.5rem !important; /* 72px bottom */
}

@media (min-width: 768px) {
  main > section,
  section {
    padding-top: 5.5rem !important;    /* 88px top */
    padding-bottom: 5.5rem !important; /* 88px bottom */
  }
}

@media (min-width: 1024px) {
  main > section,
  section {
    padding-top: 6.5rem !important;    /* 104px top */
    padding-bottom: 6.5rem !important; /* 104px bottom */
  }
}

/* Hero Section (Clearance for top header + natural spacing before next section) */
main > section:first-of-type,
section:first-of-type {
  padding-top: 8rem !important;      /* 128px top */
  padding-bottom: 5rem !important;   /* 80px bottom */
}

@media (min-width: 768px) {
  main > section:first-of-type,
  section:first-of-type {
    padding-top: 10rem !important;     /* 160px top */
    padding-bottom: 6rem !important;   /* 96px bottom */
  }
}

/* Last Section (CTA before footer) */
main > section:last-of-type,
section:last-of-type {
  padding-top: 5rem !important;      /* 80px */
  padding-bottom: 6.5rem !important; /* 104px */
}

@media (min-width: 768px) {
  main > section:last-of-type,
  section:last-of-type {
    padding-top: 6rem !important;      /* 96px */
    padding-bottom: 8rem !important;   /* 128px */
  }
}

/* ==========================================================================
   Badge & Pill Components (Generous, balanced top/bottom & lateral padding)
   ========================================================================== */

/* Step Badge (Step 1, Step 2, etc.) */
.step-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.6rem 1.4rem !important; /* ~10px top/bottom, 22.4px left/right */
  border-radius: 9999px !important;
  background-color: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  font-size: 0.75rem !important; /* 12px */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #60a5fa !important;
  margin-bottom: 1.5rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Card Badge (Trade · Export · Market Entry, etc.) */
.card-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.65rem 1.5rem !important; /* ~10.5px top/bottom, 24px left/right */
  border-radius: 9999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 1.75rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.card-badge-blue {
  background-color: rgba(59, 130, 246, 0.12) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
}

.card-badge-cyan {
  background-color: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
  color: #22d3ee !important;
}

/* Hero Badge (Top capsule in hero sections) */
.hero-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.7rem 1.6rem !important; /* ~11px top/bottom, 25.6px left/right */
  border-radius: 9999px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #d1d5db !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  width: fit-content !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Glass Card Component */
.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none !important;
}

.bg-noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none !important;
}

#mobile-navigation {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ==========================================================================
   Utility Polyfills (Colors, Sizes, Radius)
   ========================================================================== */
.rounded-3xl { border-radius: 1.5rem !important; }
.text-cyan-400 { color: #22d3ee !important; }
.text-cyan-300 { color: #67e8f9 !important; }
.hover\:text-cyan-300:hover { color: #67e8f9 !important; }
.text-white\/10 { color: rgba(255, 255, 255, 0.1) !important; }

.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4) !important; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6) !important; }
.bg-\[\#080808\]\/98 { background-color: rgba(8, 8, 8, 0.98) !important; }
.bg-\[\#111111\]\/95 { background-color: rgba(17, 17, 17, 0.95) !important; }
.bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1) !important; }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2) !important; }
.bg-blue-600\/10 { background-color: rgba(37, 99, 235, 0.1) !important; }
.bg-blue-950\/10 { background-color: rgba(23, 37, 84, 0.1) !important; }
.bg-blue-950\/20 { background-color: rgba(23, 37, 84, 0.2) !important; }
.bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1) !important; }
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1) !important; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05) !important; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1) !important; }
.bg-white\/\[0\.01\] { background-color: rgba(255, 255, 255, 0.01) !important; }
.bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02) !important; }
.bg-white\/\[0\.025\] { background-color: rgba(255, 255, 255, 0.025) !important; }
.bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03) !important; }
.bg-white\/\[0\.04\] { background-color: rgba(255, 255, 255, 0.04) !important; }

.border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.2) !important; }
.border-blue-500\/25 { border-color: rgba(59, 130, 246, 0.25) !important; }
.border-blue-500\/40 { border-color: rgba(59, 130, 246, 0.4) !important; }
.border-cyan-500\/20 { border-color: rgba(6, 182, 212, 0.2) !important; }
.border-green-500\/20 { border-color: rgba(34, 197, 94, 0.2) !important; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05) !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2) !important; }

.w-14 { width: 3.5rem !important; }
.h-14 { height: 3.5rem !important; }
.w-32 { width: 8rem !important; }

/* Internal Heading & Element Margins */
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mb-14 { margin-bottom: 3.5rem !important; }
.mb-16 { margin-bottom: 4rem !important; }
.mb-20 { margin-bottom: 5rem !important; }

@media (min-width: 768px) {
  .md\:mb-14 { margin-bottom: 3.5rem !important; }
  .md\:mb-16 { margin-bottom: 4rem !important; }
  .md\:mb-20 { margin-bottom: 5rem !important; }
  .md\:p-14 { padding: 3.5rem !important; }
  .md\:p-12 { padding: 3rem !important; }
}


/* ==========================================================================
   Smooth Animations & Scroll Entrance System
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .reveal-on-scroll.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.8)); }
}

.animate-float {
  animation: floatSlow 5s ease-in-out infinite !important;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite !important;
}

canvas.hero-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

/* Simplified Chinese: CJK font fallbacks, no negative tracking, roomier line height */
html[lang^="zh"] body,
html[lang^="zh"] .font-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', sans-serif;
}
html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3 {
  letter-spacing: 0;
  line-height: 1.3;
  text-wrap: balance;
}
html[lang^="zh"] h1.leading-\[1\.05\] {
  font-size: clamp(1.875rem, 5vw, 4rem);
}
html[lang^="zh"] p,
html[lang^="zh"] li {
  line-height: 1.85;
}

/* Utilities missing from the precompiled Tailwind bundle */
.whitespace-nowrap { white-space: nowrap; }
.scroll-mt-32 { scroll-margin-top: 8rem; }

/* Header CTA only from 1280px; between 1024 and 1279px the nine nav links need the room */
@media (max-width: 1279px) { .nav-cta { display: none !important; } }
