/* Landing Page Styles - TeCortex */
/* Modern, Professional, Dynamic Design */

/* ============================================
   Variables & Base
   ============================================ */
.landing-page {
  --landing-max-width: 1200px;
  --section-padding: 7rem 2rem;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* Light Mode Overrides */
[data-theme="light"] .landing-page {
  --glass-bg: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .landing-nav.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .landing-nav__mobile {
  border-bottom: 1px solid var(--border-color);
}

.landing-page.menu-open {
  overflow: hidden;
}

/* Text Gradient */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Animated Background
   ============================================ */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.landing-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
}

.landing-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: glowFloat 20s ease-in-out infinite;
}

.landing-bg__glow--1 {
  width: 600px;
  height: 600px;
  background: #00d4ff;
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.landing-bg__glow--2 {
  width: 500px;
  height: 500px;
  background: #7c3aed;
  top: 50%;
  right: -150px;
  animation-delay: -7s;
}

.landing-bg__glow--3 {
  width: 400px;
  height: 400px;
  background: #10b981;
  bottom: -100px;
  left: 30%;
  animation-delay: -14s;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ============================================
   Navigation
   ============================================ */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: transparent;
  transition: all 0.3s ease;
}

.landing-nav.is-scrolled {
  padding: 0.75rem 2rem;
  background: rgba(var(--bg-primary-rgb, 10, 10, 15), 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.landing-nav__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.landing-nav__logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-nav__logo svg {
  width: 100%;
  height: 100%;
}

.landing-nav__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.landing-nav__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.landing-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.landing-nav__link:hover {
  color: var(--text-primary);
}

.landing-nav__link:hover::after {
  width: 100%;
}

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.landing-nav__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.landing-nav__mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.landing-nav__mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.landing-nav__mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.landing-nav__mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.landing-nav__mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--bg-primary-rgb, 10, 10, 15), 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
}

.landing-nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
}

.landing-nav__mobile-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.landing-nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.landing-nav__mobile-actions .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .landing-nav__links,
  .landing-nav__actions {
    display: none;
  }

  .landing-nav__mobile-toggle {
    display: flex;
  }

  .landing-nav__mobile {
    display: flex;
  }
}

/* ============================================
   Buttons
   ============================================ */
.landing-page .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.landing-page .btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.landing-page .btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.landing-page .btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.landing-page .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.landing-page .btn--glow {
  position: relative;
}

.landing-page .btn--glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.3s;
}

.landing-page .btn--glow:hover::before {
  opacity: 0.7;
}

.landing-page .btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.landing-page .btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--glass-bg);
}

.landing-page .btn--glass {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.landing-page .btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Hero Section
   ============================================ */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.landing-hero__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.landing-hero__content {
  max-width: 560px;
}

.landing-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.landing-hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.landing-hero__title {
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.landing-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.landing-hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-hero__metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.landing-hero__metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.landing-hero__metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.landing-hero__metric-unit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.landing-hero__metric-label {
  width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.landing-hero__metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual - Dashboard Mockup */
.landing-hero__visual {
  position: relative;
}

.landing-hero__dashboard {
  position: relative;
  perspective: 1000px;
}

/* Floating Cards */
.landing-hero__float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
  animation: floatCard 6s ease-in-out infinite;
}

.landing-hero__float-card--oee {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.landing-hero__float-card--quality {
  top: 50%;
  right: -5%;
  animation-delay: -2s;
}

.landing-hero__float-card--alert {
  bottom: 15%;
  left: 5%;
  animation-delay: -4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card__icon--green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.float-card__icon--blue {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
}

.float-card__icon--amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.float-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.float-card__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.float-card__trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.float-card__trend--up {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

/* Main Screen Mockup */
.landing-hero__screen {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 100px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.landing-hero__screen:hover {
  transform: rotateY(0) rotateX(0);
}

.screen__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.screen__dots {
  display: flex;
  gap: 6px;
}

.screen__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
}

.screen__dots span:nth-child(1) { background: #ff5f57; }
.screen__dots span:nth-child(2) { background: #ffbd2e; }
.screen__dots span:nth-child(3) { background: #28c840; }

.screen__title {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.screen__content {
  display: flex;
  min-height: 280px;
}

.screen__sidebar {
  width: 60px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen__menu-item {
  height: 32px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  opacity: 0.5;
}

.screen__menu-item--active {
  opacity: 1;
  background: var(--primary-light);
}

.screen__main {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.screen__chart {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen__chart-svg {
  width: 100%;
  height: auto;
}

.screen__chart-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.screen__chart-limit {
  stroke: var(--zone-red);
  stroke-width: 1;
  stroke-dasharray: 4;
  opacity: 0.5;
}

.screen__chart-limit--ucl { opacity: 0.3; }
.screen__chart-limit--lcl { opacity: 0.3; }

.screen__cards {
  display: flex;
  gap: 0.75rem;
}

.screen__card {
  flex: 1;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

/* Hero Scroll Indicator */
.landing-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: fadeInUp 1s ease 1s backwards;
}

.landing-hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.landing-hero__scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 1000px) {
  .landing-hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-hero__content {
    max-width: 100%;
  }

  .landing-hero__cta {
    justify-content: center;
  }

  .landing-hero__metrics {
    justify-content: center;
  }

  .landing-hero__visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .landing-hero__float-card--oee {
    left: -5%;
    top: 5%;
  }

  .landing-hero__float-card--quality {
    right: -2%;
  }

  .landing-hero__float-card--alert {
    left: 10%;
  }

  .landing-hero__screen {
    transform: none;
  }
}

@media (max-width: 600px) {
  .landing-hero__float-card {
    display: none;
  }
}

/* ============================================
   Logos Section
   ============================================ */
.landing-logos {
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.landing-logos__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
}

.landing-logos__title {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.landing-logos__track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.landing-logos__slide {
  display: flex;
  gap: 4rem;
  animation: logoScroll 30s linear infinite;
  width: max-content;
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.landing-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0.6;
}

/* ============================================
   Section Headers
   ============================================ */
.landing-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.landing-section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
}

.landing-section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.landing-section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Problem Section
   ============================================ */
.landing-problem {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.landing-problem__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
}

.landing-problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.landing-problem__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.landing-problem__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zone-red), #ff6b6b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.landing-problem__card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-4px);
}

.landing-problem__card:hover::before {
  opacity: 1;
}

.landing-problem__number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--border-color);
  line-height: 1;
  opacity: 0.3;
}

.landing-problem__icon {
  width: 56px;
  height: 56px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--zone-red);
}

.landing-problem__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.landing-problem__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.landing-problem__stat {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.landing-problem__stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--zone-red);
  margin-bottom: 0.25rem;
}

.landing-problem__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .landing-problem__grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
}

/* ============================================
   Features Section
   ============================================ */
.landing-features {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.landing-features__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
}

/* Feature Tabs */
.landing-features__showcase {
  margin-bottom: 4rem;
}

.landing-features__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.landing-features__tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.landing-features__tab:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.landing-features__tab.is-active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.landing-features__tab svg {
  opacity: 0.7;
}

.landing-features__tab.is-active svg {
  opacity: 1;
}

/* Feature Panels */
.landing-features__content {
  position: relative;
}

.landing-features__panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.landing-features__panel.is-active {
  display: grid;
}

.landing-features__info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.landing-features__info p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.landing-features__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-features__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.landing-features__list svg {
  color: var(--zone-green);
  flex-shrink: 0;
}

/* Feature Visuals */
.landing-features__visual {
  display: flex;
  justify-content: center;
}

.feature-visual {
  width: 100%;
  max-width: 400px;
}

/* OEE Visual */
.feature-visual--oee {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.oee-gauge {
  position: relative;
  width: 150px;
  height: 150px;
}

.oee-gauge svg {
  width: 100%;
  height: 100%;
}

.oee-gauge circle:nth-child(2) {
  transform-origin: center;
  animation: gaugeGrow 1.5s ease forwards;
}

@keyframes gaugeGrow {
  from { stroke-dasharray: 0 340; }
  to { stroke-dasharray: 280 340; }
}

.oee-gauge__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oee-gauge__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.oee-gauge__percent {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.oee-gauge__label {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.oee-breakdown {
  width: 100%;
}

.oee-bar {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.oee-bar__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.oee-bar__track {
  height: 8px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}

.oee-bar__fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  animation: barGrow 1s ease forwards;
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.oee-bar__value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* SPC Visual */
.feature-visual--spc {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.spc-chart__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.spc-chart__header span:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.spc-chart__status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.spc-chart__status--ok {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.spc-chart__svg {
  width: 100%;
  height: auto;
}

/* Timeline Visual */
.feature-visual--timeline {
  width: 100%;
}

.timeline-bar {
  display: flex;
  height: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.timeline-bar__segment {
  transition: all 0.3s ease;
}

.timeline-bar__segment--running { background: var(--zone-green); }
.timeline-bar__segment--idle { background: var(--zone-yellow); }
.timeline-bar__segment--down { background: var(--zone-red); }

.timeline-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.timeline-legend__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timeline-legend__item i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Equipment Visual */
.feature-visual--equipment {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.equipment-tree__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.equipment-tree__item--site { padding-left: 1.5rem; }
.equipment-tree__item--area { padding-left: 2.5rem; }
.equipment-tree__item--line { padding-left: 3.5rem; }

.equipment-tree__item--active {
  background: var(--primary-light);
  color: var(--primary);
}

.equipment-tree__status {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .landing-features__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-features__list li {
    justify-content: center;
  }

  .oee-breakdown {
    max-width: 300px;
  }
}

/* Features Grid */
.landing-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.landing-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.landing-feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.landing-feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.landing-feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.landing-feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .landing-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .landing-features__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   How It Works Section
   ============================================ */
.landing-how {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.landing-how__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
}

.landing-how__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.landing-how__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
  position: relative;
}

.landing-how__step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.landing-how__step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.landing-how__step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.landing-how__step-icon {
  color: var(--primary);
  margin-top: 1rem;
  opacity: 0.5;
}

.landing-how__connector {
  width: 60px;
  height: 2px;
  background: var(--border-color);
  position: relative;
}

.landing-how__connector::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--border-color);
}

@media (max-width: 900px) {
  .landing-how__steps {
    flex-direction: column;
    gap: 2rem;
  }

  .landing-how__connector {
    width: 2px;
    height: 40px;
  }

  .landing-how__connector::before {
    right: auto;
    bottom: 0;
    top: auto;
    transform: translateX(-50%);
    left: 50%;
    border: 4px solid transparent;
    border-top-color: var(--border-color);
  }

  .landing-how__step {
    max-width: 300px;
  }
}

/* ============================================
   Benefits Section
   ============================================ */
.landing-benefits {
  padding: var(--section-padding);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.landing-benefits__container {
  max-width: 1000px;
  margin: 0 auto;
}

.landing-benefits__content {
  text-align: center;
}

.landing-benefits__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.landing-benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.landing-benefit-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.landing-benefit-card__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.landing-benefit-card__number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.landing-benefit-card__unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.landing-benefit-card__icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.landing-benefit-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.landing-benefit-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .landing-benefits__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .landing-benefits__cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Industries Section
   ============================================ */
.landing-industries {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.landing-industries__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
}

.landing-industries__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.landing-industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.landing-industry-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.landing-industry-card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.landing-industry-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.landing-industry-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .landing-industries__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .landing-industries__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   CTA Section
   ============================================ */
.landing-cta {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
}

.landing-cta__container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-cta__content {
  text-align: center;
}

.landing-cta__content h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.landing-cta__content > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.landing-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.landing-cta__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.landing-footer {
  padding: 4rem 2rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.landing-footer__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
}

.landing-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.landing-footer__brand {
  max-width: 300px;
}

.landing-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

.landing-footer__logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.landing-footer__brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.landing-footer__links {
  display: flex;
  gap: 4rem;
}

.landing-footer__column h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.landing-footer__column a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.landing-footer__column a:hover {
  color: var(--primary);
}

.landing-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-footer__bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.landing-footer__a11y {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

.landing-footer__a11y span {
  font-size: 1.1rem;
}

.landing-footer__social {
  display: flex;
  gap: 1rem;
}

.landing-footer__social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.landing-footer__social a:hover {
  color: var(--primary);
}

@media (max-width: 700px) {
  .landing-footer__main {
    flex-direction: column;
    text-align: center;
  }

  .landing-footer__brand {
    max-width: 100%;
  }

  .landing-footer__logo {
    justify-content: center;
  }

  .landing-footer__links {
    justify-content: center;
  }

  .landing-footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ============================================
   Animations
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Hero TPM Floating Card
   ============================================ */
.landing-hero__float-card--tpm {
  bottom: 5%;
  right: 5%;
  animation-delay: -5s;
}

.float-card__icon--purple {
  background: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
}

@media (max-width: 1000px) {
  .landing-hero__float-card--tpm {
    right: 0%;
    bottom: 3%;
  }
}

/* ============================================
   TPM 8 Pillars Section
   ============================================ */
.landing-tpm {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.landing-tpm__container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
}

.landing-tpm__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.landing-tpm__pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.landing-tpm__pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.landing-tpm__pillar:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.landing-tpm__pillar:hover::before {
  opacity: 1;
}

.landing-tpm__pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.landing-tpm__pillar h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.landing-tpm__pillar p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .landing-tpm__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .landing-tpm__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TPM Pillar Bar Chart Visual (Feature Tab)
   ============================================ */
.feature-visual--tpm-bars {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
}

.tpm-bars__header {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.tpm-bars__chart {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tpm-bars__row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 0.75rem;
}

.tpm-bars__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.tpm-bars__track {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.tpm-bars__fill {
  height: 100%;
  border-radius: 4px;
  animation: barGrow 1s ease forwards;
}

.tpm-bars__fill--1 { background: linear-gradient(90deg, #00d4ff, #10b981); }
.tpm-bars__fill--2 { background: linear-gradient(90deg, #10b981, #34d399); }
.tpm-bars__fill--3 { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.tpm-bars__fill--4 { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tpm-bars__fill--5 { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.tpm-bars__fill--6 { background: linear-gradient(90deg, #ef4444, #f87171); }
.tpm-bars__fill--7 { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.tpm-bars__fill--8 { background: linear-gradient(90deg, #8b5cf6, #c4b5fd); }

.tpm-bars__value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.tpm-bars__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tpm-bars__overall {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Quality Visual (Feature Tab)
   ============================================ */
.feature-visual--quality {
  width: 100%;
}

.quality-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quality-visual__card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.quality-visual__card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quality-visual__badge {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.quality-visual__badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.quality-visual__badge--green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.quality-visual__card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.quality-visual__card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quality-visual__metrics {
  display: flex;
  gap: 1rem;
}

.quality-visual__metric {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
}

.quality-visual__metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quality-visual__metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   Safety Visual (Feature Tab)
   ============================================ */
.feature-visual--safety {
  width: 100%;
}

.safety-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.safety-visual__row {
  display: flex;
  gap: 1rem;
}

.safety-visual__stat {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
}

.safety-visual__stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.safety-visual__stat--green .safety-visual__stat-value { color: #10b981; }
.safety-visual__stat--blue .safety-visual__stat-value { color: #3b82f6; }
.safety-visual__stat--purple .safety-visual__stat-value { color: #7c3aed; }
.safety-visual__stat--amber .safety-visual__stat-value { color: #f59e0b; }

.safety-visual__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
