/* ==========================================================================
   COLABRO - MAIN STYLESHEET (Scaler.com Inspired Architecture)
   ========================================================================== */

/* --- Modern CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--neutral-800);
  background-color: var(--neutral-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --- Container & Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container-wide {
  max-width: var(--container-wide);
}

.section-padding {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section-padding-sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--neutral-900);
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #0055FF 0%, #00D2FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #F59E0B 0%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 85, 255, 0.08);
  border: 1px solid rgba(0, 85, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.eyebrow-badge.dark {
  background: rgba(0, 85, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

/* --- Buttons (Scaler-style Pill & Rounded CTAs) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 85, 255, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(0, 85, 255, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--neutral-900);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--neutral-800);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.btn-pos-special {
  background: linear-gradient(135deg, #0055FF 0%, #00C49F 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 196, 159, 0.3);
}

.btn-pos-special:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ==========================================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #030B1C 0%, #0c1c44 50%, #030B1C 100%);
  border-bottom: 1px solid rgba(0, 85, 255, 0.2);
  color: #ffffff;
  font-size: 0.8125rem;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 60;
}

.announcement-content {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.announcement-badge {
  background: linear-gradient(90deg, #FF6B00 0%, #F59E0B 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.announcement-link {
  color: var(--accent-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2. MAIN HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--neutral-200);
  height: var(--header-height);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-wrap: nowrap;
}

/* Brand Logo (Scaler style bold typography with tech slash) */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-slash {
  color: var(--primary);
  font-weight: 900;
  display: inline-block;
  transform: skewX(-12deg);
}

.brand-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  display: inline-block;
  margin-left: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--neutral-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-badge {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.nav-badge.hot {
  background: #FFF1F2;
  color: #E11D48;
  border-color: rgba(225, 29, 72, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--neutral-800);
}

/* ==========================================================================
   3. STICKY SUBNAVIGATION BAR (Scaler Signature)
   ========================================================================== */
.subnav-wrapper {
  position: sticky;
  top: var(--header-height);
  z-index: 45;
  background-color: #ffffff;
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal);
}

.subnav-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0;
}

.subnav-list::-webkit-scrollbar {
  display: none;
}

.subnav-item a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-600);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.subnav-item a:hover {
  color: var(--primary);
  background-color: var(--neutral-100);
}

.subnav-item.active a {
  color: var(--primary);
  background-color: var(--primary-light);
  font-weight: 700;
}

.subnav-item a.pos-pill {
  color: #0d9488;
  background-color: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.subnav-item.active a.pos-pill {
  color: #ffffff;
  background-color: #0d9488;
}

/* ==========================================================================
   4. HERO SECTION (High-Tech Scaler Dark Motif)
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--dark-bg);
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(0, 85, 255, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 15% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 40%);
  color: var(--dark-text-primary);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.1875rem);
  color: var(--dark-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-2xl);
}

.hero-subtitle strong {
  color: #ffffff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  border-top: 1px solid var(--dark-border);
  padding-top: var(--space-xl);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--dark-text-muted);
}

/* Scaler Hero Visual Card with Mobile App & Thermal Demo */
.hero-visual-card {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 31, 69, 0.8) 0%, rgba(10, 22, 51, 0.95) 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--primary), transparent);
}

.hero-badge-float {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-md);
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-visual-card:hover .hero-img-wrap img {
  transform: scale(1.02);
}

.hero-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.meta-box-title {
  font-size: 0.75rem;
  color: var(--dark-text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.meta-box-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #ffffff;
}

/* ==========================================================================
   5. LOGO TICKER / MARQUEE (Scaler Client & Tech stack)
   ========================================================================== */
.marquee-section {
  background-color: #020714;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-section::before {
  left: 0;
  background: linear-gradient(to right, #020714, transparent);
}

.marquee-section::after {
  right: 0;
  background: linear-gradient(to left, #020714, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
}

.marquee-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.marquee-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4f46e5;
  flex-shrink: 0;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   6. METRIC STATS BANNER
   ========================================================================== */
.stats-banner {
  background-color: var(--neutral-50);
  border-bottom: 1px solid var(--neutral-200);
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat-card {
  padding: var(--space-md);
  border-right: 1px solid var(--neutral-200);
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 0.8125rem;
  color: var(--neutral-500);
}

/* ==========================================================================
   14. FOOTER (Scaler Comprehensive Footer)
   ========================================================================== */
.main-footer {
  background-color: var(--dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--dark-text-secondary);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-2xl);
  font-size: 0.875rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  color: var(--dark-text-muted);
  line-height: 1.6;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--primary);
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: var(--dark-text-secondary);
}

.footer-nav-list a:hover {
  color: #ffffff;
}

.footer-badge-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--dark-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-links a:hover {
  color: #ffffff;
}
