:root {
  /* Dark Mode (Default) */
  --bg-0: #030712;
  --bg-1: #0b1120;
  --bg-2: #111827;
  --ink: #f9fafb;
  --muted: #94a3b8;
  --brand: #6366f1;
  --brand-2: #ec4899;
  --brand-3: #0ea5e9;
  --glass-bg: rgba(17, 24, 39, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-teal: #2dd4bf;
  --accent-orange: #fb923c;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(3, 7, 18, 0.8);
}

[data-theme="light"] {
  --bg-0: #f8fafc;
  --bg-1: #ffffff;
  --bg-2: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #3b82f6;
  --brand-2: #10b981;
  --brand-3: #0ea5e9;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --header-bg: rgba(255, 255, 255, 0.9);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg-0);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.4s ease;
}

h1, h2, h3 { font-family: "Outfit", sans-serif; color: var(--ink); font-weight: 700; line-height: 1.15; }

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 100;
}
[data-theme="light"] .noise-overlay { opacity: 0.02; }

.glow {
  position: fixed; width: 45vw; height: 45vw; border-radius: 50%; filter: blur(140px); pointer-events: none; z-index: -1; opacity: 0.4;
  animation: aurora-float 25s infinite alternate ease-in-out;
}
[data-theme="light"] .glow { opacity: 0.15; }
.glow-a { top: -10%; right: -5%; background: radial-gradient(circle, var(--brand), transparent 70%); }
.glow-b { bottom: -15%; left: -5%; background: radial-gradient(circle, var(--brand-3), transparent 70%); animation-delay: -7s; }

@keyframes aurora-float {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(2%, 5%) rotate(5deg) scale(1.05); }
  100% { transform: translate(-2%, -3%) rotate(-5deg) scale(0.95); }
}

/* Header Redesign */
.site-header {
  position: sticky; top: 12px; z-index: 1000;
  width: min(1200px, 96vw); margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 8px 10px 8px 24px;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem;
}
.brand-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.brand-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 10px var(--brand);
}

.main-nav {
  display: flex; gap: 4px;
}
.main-nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.85rem;
  padding: 8px 16px; border-radius: 100px; transition: all 0.3s ease;
}
.main-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.main-nav a.active { background: var(--brand); color: #fff; }

/* Header Actions Wrapper - The requested area */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px; /* Professional spacing */
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 100px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
}
[data-theme="light"] .lang-switch { background: rgba(0, 0, 0, 0.03); }

.lang-switch a {
  text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.7rem;
  padding: 6px 12px; border-radius: 100px; transition: all 0.2s ease;
}
.lang-switch a.active { background: var(--brand); color: #fff; }
[data-theme="light"] .lang-switch a.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.theme-toggle {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
  color: var(--ink); width: 36px; height: 38px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
[data-theme="light"] .theme-toggle { background: #fff; }

/* Responsive adjustments for header */
@media (max-width: 1100px) {
  .main-nav { display: none; } /* Hide center nav on medium screens to keep actions visible */
}

@media (max-width: 600px) {
  .header-inner { padding: 6px 6px 6px 16px; }
  .header-actions { gap: 6px; }
  .brand span:not(.brand-mark) { display: none; } /* Hide brand text on tiny screens */
  .btn-primary.header-btn { padding: 8px 14px; font-size: 0.75rem; }
  .lang-switch a { padding: 5px 8px; font-size: 0.65rem; }
}

/* Page Shell and Cards */
.page-shell { width: min(1160px, 94vw); margin: 60px auto 100px; display: grid; gap: 60px; }

.card-base, .hero, .page-hero, .route-card, .product-card, .pro-card, .hero-panel, .video-section, .contact-block {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  backdrop-filter: blur(20px); box-shadow: var(--card-shadow); padding: 40px;
  position: relative; overflow: hidden; transition: all 0.4s ease;
}

.hero::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); opacity: 0.5; }

.hero:hover, .route-card:hover, .product-card:hover, .pro-card:hover {
  transform: translateY(-6px); border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0 0 24px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin-bottom: 32px; }
.eyebrow { display: inline-block; padding: 6px 14px; background: rgba(99, 102, 241, 0.1); color: var(--brand); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; border-radius: 8px; margin-bottom: 24px; text-transform: uppercase; }

/* Buttons Global */
.btn { padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 1rem; transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: none; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #4f46e5); color: #fff; box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 25px -4px rgba(99, 102, 241, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--ink); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* KPI List */
.kpi-list { display: grid; gap: 16px; list-style: none; padding: 0; }
.kpi-list li { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--glass-border); padding: 20px; border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 4px; }
.kpi-list strong { font-size: 2.2rem; background: linear-gradient(135deg, var(--ink), var(--brand-3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: "Outfit", sans-serif; }

/* Grids */
.route-grid, .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.route-card, .product-card, .pro-card { display: flex; flex-direction: column; gap: 16px; }
.card-icon-wrap { width: 52px; height: 52px; border-radius: 12px; background: rgba(99, 102, 241, 0.1); display: flex; align-items: center; justify-content: center; color: var(--brand); border: 1px solid rgba(99, 102, 241, 0.2); }

.route-card a, .card-link { color: var(--brand); text-decoration: none; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; }

.product-card ul { list-style: none; padding: 0; margin: 16px 0; }
.product-card ul li { padding-left: 24px; position: relative; font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; opacity: 0.85; }
.product-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-2); font-weight: 900; }

.strip { padding: 32px 48px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent); border-left: 4px solid var(--brand); }

.contact-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.info-card { padding: 24px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md); display: flex; gap: 20px; align-items: center; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 18px; background: var(--bg-0); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--ink); font-family: inherit; font-size: 1rem; transition: all 0.25s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

.hero-video-player { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }

.reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }

.site-footer { width: min(1160px, 94vw); margin: 0 auto 40px; padding-top: 40px; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.footer-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.footer-inner a { color: var(--muted); text-decoration: none; font-size: 0.9rem; margin-left: 24px; }
.footer-inner a:hover { color: var(--ink); }
