/* =============================================
   INFOLIB — HOME PAGE STYLESHEET
   Engineered with ui-ux-pro-max & taste-skill
   ============================================= */

:root {
  --bg-deep:       #040714;
  --bg-surface:    #070d22;
  --bg-card:       rgba(8, 15, 36, 0.72);
  --accent-cyan:   #00f0ff;
  --accent-blue:   #3b82f6;
  --accent-teal:   #06b6d4;
  --text-primary:  #f8fafc;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;
  --border-glass:  rgba(255, 255, 255, 0.08);
  --border-cyan:   rgba(0, 240, 255, 0.32);
  --glow-cyan:     0 0 35px rgba(0, 240, 255, 0.25);
  --glow-blue:     0 0 35px rgba(59, 130, 246, 0.25);

  --font-display:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:     'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --radius-full:   9999px;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --nav-h: 72px;

  /* Fluid type scale */
  --text-xs:   clamp(0.70rem, 0.8vw, 0.78rem);
  --text-sm:   clamp(0.82rem, 1vw, 0.88rem);
  --text-base: clamp(0.95rem, 1.2vw, 1.05rem);
  --text-lg:   clamp(1.08rem, 1.6vw, 1.18rem);
  --text-xl:   clamp(1.22rem, 2vw, 1.35rem);
  --text-2xl:  clamp(1.45rem, 2.6vw, 1.75rem);
  --text-3xl:  clamp(1.85rem, 3.4vw, 2.35rem);
  --text-4xl:  clamp(2.35rem, 4.4vw, 3.15rem);
  --text-5xl:  clamp(2.95rem, 5.8vw, 4.25rem);
  --text-6xl:  clamp(3.60rem, 7.2vw, 5.25rem);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* =============================================
   PARTICLE CANVAS (FIXED BACKGROUND)
   ============================================= */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}
.section-pad { padding: var(--space-24) 0; }

/* =============================================
   GLASSMORPHISM
   ============================================= */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--space-8));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Atmospheric ambient backlight behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 95vw;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.15) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6) var(--space-6);
  position: relative;
  z-index: 2;
}

/* Animated Flowing Headline */
.hero-animated-title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  max-width: 1000px;
  margin: 0 auto var(--space-6);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.9));
  background: linear-gradient(270deg, #ffffff 0%, var(--accent-cyan) 40%, var(--accent-blue) 75%, #ffffff 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: flowGradient 8s ease infinite;
}

@keyframes flowGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto var(--space-10);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

/* Floating Tech Icons (Awwwards Orbit Physics) */
.float-icon {
  position: absolute;
  z-index: 1;
  animation: floatOrb 7s ease-in-out infinite;
  opacity: 0.65;
  filter: drop-shadow(0 10px 25px rgba(0, 240, 255, 0.25));
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.float-icon:hover {
  opacity: 0.95;
  transform: scale(1.08);
}

.float-icon:nth-child(2) { top: 18%; left: 6%;   animation-delay: 0s;   animation-duration: 8s; }
.float-icon:nth-child(3) { top: 22%; right: 7%;  animation-delay: 1.5s; animation-duration: 9s; }
.float-icon:nth-child(4) { bottom: 22%; left: 7%;  animation-delay: 3s;   animation-duration: 7.5s; }
.float-icon:nth-child(5) { bottom: 18%; right: 6%; animation-delay: 2.2s; animation-duration: 8.5s; }

@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-16px) rotate(2deg); }
  66%      { transform: translateY(-8px) rotate(-2deg); }
}

/* =============================================
   STATS BAR (DOUBLE-BEZEL ARCHITECTURE)
   ============================================= */
.stats-bar {
  width: 100%;
  margin-top: var(--space-10);
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-10);
  border-radius: var(--radius-xl);
  background: rgba(8, 14, 32, 0.76);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.12);
}

.stat-text .stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  color: #ffffff;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-text .stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* =============================================
   MISSION SECTION (DOUBLE-BEZEL FLOATING HERO)
   ============================================= */
.mission {
  padding: var(--space-20) 0;
  position: relative;
}

.mission-card {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-16);
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(8, 15, 36, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass-hi);
  box-shadow: 
    0 0 0 1px rgba(0, 240, 255, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    0 28px 70px -15px rgba(0, 0, 0, 0.8),
    0 0 45px rgba(0, 240, 255, 0.12);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-spring);
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 0 0 1px rgba(0, 240, 255, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 34px 80px -15px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(0, 240, 255, 0.2);
}

.mission-card p {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.45;
  color: #f8fafc;
  max-width: 820px;
  margin: 0 auto;
  letter-spacing: -0.015em;
}

.mission-card p .highlight-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  font-weight: 700;
}

/* =============================================
   PRODUCTS SECTION (DOUBLE-BEZEL BENTO CARDS)
   ============================================= */
.products {
  padding: var(--space-24) 0;
  position: relative;
}

.section-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* Double-Bezel Card Mastery */
.product-card {
  position: relative;
  background: rgba(7, 13, 32, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 20px 45px -10px rgba(0, 0, 0, 0.6);
  transition: all var(--duration-base) var(--ease-spring);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(0, 240, 255, 0.08) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-spring);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-cyan);
  box-shadow: 
    0 0 0 1px rgba(0, 240, 255, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.25),
    0 28px 65px -12px rgba(0, 0, 0, 0.8),
    0 0 35px rgba(0, 240, 255, 0.18);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  flex-shrink: 0;
  margin-bottom: var(--space-2);
}

.product-type {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-cyan);
  transition: gap var(--duration-fast) var(--ease-spring), color var(--duration-fast) var(--ease-spring);
  margin-top: var(--space-2);
  width: fit-content;
}

.product-link:hover {
  gap: var(--space-3);
  color: #ffffff;
}

/* =============================================
   RESPONSIVE OVERRIDES
   ============================================= */
@media (max-width: 960px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .float-icon {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-animated-title {
    font-size: var(--text-4xl);
  }
  .hero-subtitle {
    font-size: var(--text-base);
  }
  .stats-bar-inner {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  .mission-card {
    padding: var(--space-10) var(--space-6);
  }
  .mission-card p {
    font-size: var(--text-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animated-title, .float-icon, .status-dot {
    animation: none !important;
  }
  #particle-canvas {
    display: none;
  }
}