/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(248,250,252,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="dark"] .navbar.scrolled {
  background: rgba(7,13,24,0.9);
  box-shadow: 0 1px 0 var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-1);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.navbar-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* Logo images */
.navbar-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  content: url('../../assets/logo_wupo.png');
}
[data-theme="dark"] .navbar-logo-img {
  content: url('../../assets/wupo_logo_white.png');
}
.footer-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  content: url('../../assets/logo_wupo.png');
}
[data-theme="dark"] .footer-logo-img {
  content: url('../../assets/wupo_logo_white.png');
  filter: brightness(0.9);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.navbar-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.navbar-link:hover { color: var(--text-1); background: var(--surface-2); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: var(--transition);
  background: var(--surface);
}
.icon-btn:hover { color: var(--text-1); border-color: var(--text-3); }

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  transition: var(--transition);
}
.lang-btn.active {
  background: var(--surface);
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37,99,235,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(124,58,237,0.04) 0%, transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(37,99,235,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(124,58,237,0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title span { display: block; }

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

/* Hero app mockup */
.hero-visual {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.hero-app-wrap {
  animation: float-slow 7s ease-in-out infinite;
}

.hero-browser {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--glow);
  border: 1px solid var(--border);
}

.hero-app-body {
  display: flex;
  height: 380px;
  background: #f1f5f9;
}
[data-theme="dark"] .hero-app-body { background: #0b1525; }

.hero-app-sidebar {
  width: 110px;
  background: #1e3a5f;
  padding: 10px 0;
  flex-shrink: 0;
}
.hero-sidebar-logo {
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  padding: 0 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
}
.hero-sidebar-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  border-left: 2px solid transparent;
}
.hero-sidebar-item.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  border-left-color: #3b82f6;
  font-weight: 600;
}

.hero-app-content {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.hero-content-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
}
[data-theme="dark"] .hero-content-title { color: #f1f5f9; }

.hero-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.hero-kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 10px 8px;
  border-left: 3px solid;
}
.hero-kpi-blue   { border-left-color: #2563eb; }
.hero-kpi-green  { border-left-color: #16a34a; }
.hero-kpi-yellow { border-left-color: #d97706; }
.hero-kpi-red    { border-left-color: #dc2626; }
[data-theme="dark"] .hero-kpi { background: #111e35; border-color: #1a2d4a; }

.hero-kpi-val {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #0f172a;
  line-height: 1;
}
[data-theme="dark"] .hero-kpi-val { color: #f1f5f9; }
.hero-kpi-lbl {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-top: 3px;
}

.hero-alerts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-alert {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.65rem;
  color: #475569;
}
[data-theme="dark"] .hero-alert { background: #111e35; border-color: #1a2d4a; color: #94a3b8; }
.hero-alert-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-floating-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  z-index: 20;
}
.hero-floating-badge-1 {
  top: -28px;
  left: -24px;
  animation: float 4s ease-in-out infinite;
}
.hero-floating-badge-2 {
  bottom: 40px;
  right: -24px;
  animation: float 5s ease-in-out infinite 1s;
}
.hero-floating-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════
   STATS
══════════════════════════════════════════════ */

.stats-section {
  padding: 56px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-val {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════ */

.features-header {
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-light), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.feature-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════
   TRACEABILITY CHAIN SECTION
══════════════════════════════════════════════ */

.traza-section {
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
}
.traza-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.06), transparent 70%);
  pointer-events: none;
}

.traza-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.traza-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.traza-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}
.traza-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-border), transparent);
}

.traza-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: var(--transition-slow);
}
.traza-step.active .traza-step-icon {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 6px rgba(37,99,235,0.08);
}

.traza-step-body {
  padding: 8px 0 32px;
}
.traza-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.traza-step-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════ */

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
  pointer-events: none;
}

.cta-tag {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border-color: rgba(59,130,246,0.25);
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.btn-white:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-1);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  font-size: 0.825rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }

.footer-company {
  width: 100%;
  font-size: 0.75rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.footer-company-name {
  font-weight: 600;
  color: var(--text-2);
}
.footer-company-sep {
  opacity: 0.4;
}
.footer-company a {
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-company a:hover {
  color: var(--accent);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .traza-content { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2n) { border-right: none; }
  .navbar-links { display: none; }
}
