/* IoTFIY Premium Brand Overrides */
:root {
  --brand-navy: #0f172a;
  --brand-slate: #1e293b;
  --brand-indigo: #4f46e5;
  --brand-violet: #7c3aed;
  --brand-accent: #6366f1;
  --premium-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
  --premium-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --premium-gold: #c9a227;
  --surface-elevated: rgba(255, 255, 255, 0.98);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-subtle: rgba(99, 102, 241, 0.12);
  --shadow-premium: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 20px 40px -12px rgba(79, 70, 229, 0.15);
  --shadow-premium-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
}

body.index-page {
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.index-page.cursor-ready {
  cursor: none;
}

body.index-page .main,
body.index-page .header,
body.index-page .mobile-navbar {
  position: relative;
  z-index: 2;
}

/* Refined header */
.index-page .header {
  background: var(--surface-elevated);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.index-page .header.scrolled {
  box-shadow: var(--shadow-premium);
}

.index-page .btn-getstarted {
  background: var(--premium-accent);
  border-radius: 12px;
  padding: 8px 20px;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
}

.index-page .navmenu ul li a::after {
  background: var(--premium-accent);
  height: 2px;
  border-radius: 1px;
}

/* Premium hero */
.index-page .hero {
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 45%, #f5f3ff 100%);
  padding: 170px 0 110px;
}

.index-page .hero-badge {
  background: rgba(99, 102, 241, 0.08);
  color: var(--brand-indigo);
  border: 1px solid rgba(99, 102, 241, 0.2);
  animation: none;
  box-shadow: none;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  padding: 10px 20px;
}

.index-page .hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-navy) 0%, #3730a3 50%, var(--brand-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.index-page .hero-title::after {
  background: var(--premium-accent);
  width: 80px;
  height: 3px;
  border-radius: 3px;
}

.index-page .hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 540px;
  line-height: 1.7;
}

.index-page .btn-primary-custom {
  background: var(--premium-accent);
  border-radius: 12px;
  padding: 15px 32px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.index-page .btn-secondary-custom {
  border-radius: 12px;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  color: var(--brand-indigo);
  font-weight: 600;
  padding: 14px 32px;
}

.index-page .btn-secondary-custom:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--brand-indigo);
  color: var(--brand-indigo);
}

.index-page .hero-stats {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  margin-top: 0.5rem;
}

.index-page .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
}

.index-page .stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Trust strip below hero */
.trust-strip {
  background: var(--brand-navy);
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-strip-item i {
  color: var(--premium-gold);
  font-size: 1.1rem;
}

/* Section badges - unified premium look */
.index-page .section-badge {
  background: rgba(99, 102, 241, 0.08) !important;
  color: var(--brand-indigo) !important;
  border: 1px solid rgba(99, 102, 241, 0.15);
  animation: none !important;
  letter-spacing: 0.1em;
  font-size: 0.75rem !important;
}

/* Cards - subtle elevation */
.index-page .service-card,
.index-page .product-card,
.index-page .feature-card,
.index-page .tech-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease !important;
}

.index-page .service-card:hover,
.index-page .product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-premium-lg) !important;
}

/* Reduce motion for performance & accessibility */
@media (prefers-reduced-motion: reduce) {
  .index-page *,
  .index-page *::before,
  .index-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero .floating-element,
  .hero::after {
    animation: none !important;
  }
}

/* Button ripple effect */
.btn-primary-custom,
.btn-secondary-custom {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Mobile nav premium */
.index-page .mobile-navbar {
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.index-page .mobile-navbar .mobile-menu-toggle {
  background: var(--premium-accent);
  border-radius: 12px;
}

/* Performance: contain paint for heavy sections */
.index-page .hero,
.index-page .ai-controller-section {
  contain: layout style;
}
