:root {
  --bg: #070b1a;
  --card: #111932;
  --text: #e8edff;
  --muted: #b2bce0;
  --primary: #4f8cff;
  --accent: #65e2cf;
  --header-offset: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 10%, #172443 0%, var(--bg) 50%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 22px);
}

.container { width: min(1120px, 92%); margin: 0 auto; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(7, 11, 26, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.28s ease;
}

.site-header.scrolled { background: rgba(7, 11, 26, 0.9); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 25, 50, 0.8);
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
}

.lang-switch a.active {
  color: #fff;
  border-color: var(--primary);
  background: rgba(79, 140, 255, 0.25);
}

.hero,
.section { padding: 4.2rem 0; }

.hero {
  position: relative;
  isolation: isolate;
}

.hero-grid,
.split,
.page-hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.reverse { grid-template-columns: 1fr 1.2fr; }

.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.45;
  z-index: -1;
  animation: float 7s ease-in-out infinite;
}

.orb-one {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 30%, #89d9ff, #4f8cff);
  top: -40px;
  right: 10%;
}

.orb-two {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle at 30% 30%, #9ef2e3, #2da6a0);
  bottom: -30px;
  left: 8%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.ticker {
  border-block: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  color: var(--muted);
  font-weight: 600;
  animation: ticker 38s linear infinite;
}

.ticker-group {
  display: flex;
  gap: 2rem;
  padding: 0.65rem 2rem 0.65rem 0;
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 0; }

.lead { color: var(--muted); max-width: 62ch; }

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #79a8ff);
  color: #fff;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(79, 140, 255, 0); }
  50% { box-shadow: 0 0 24px rgba(79, 140, 255, 0.35); }
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.image-card,
.card,
.contact-list,
.metric-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.image-card {
  padding: 0.9rem;
  transform: translate3d(0, var(--parallax-offset, 0), 0) rotate(var(--tilt-rotate, 0deg));
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.image-card img { width: 100%; height: auto; display: block; border-radius: 10px; }

.cards,
.metrics {
  display: grid;
  gap: 1rem;
}

.cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { padding: 1.1rem; }
.card p,
.contact-list p,
.metric-card p { color: var(--muted); margin: 0.5rem 0; }

.metrics { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.metric-card {
  background: var(--card);
  padding: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.metric-card.is-active {
  border-color: rgba(101, 226, 207, 0.7);
  transform: translateY(-4px);
}

.metric-value { font-size: 2rem; font-weight: 800; color: var(--accent); }

.section-alt { background: rgba(255, 255, 255, 0.03); }

.contact-list {
  padding: 1rem;
  margin: 1rem 0 1.2rem;
}

.contact-list a { color: #9ab6ff; text-decoration: none; }
.top-gap { margin-top: 1rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  :root { --header-offset: 74px; }

  .site-header.menu-hidden {
    transform: translateY(-110%);
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  nav {
    grid-column: 1 / -1;
    order: 4;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(17, 25, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .site-header.menu-open nav {
    display: flex;
  }

  .hero-grid,
  .split,
  .page-hero,
  .reverse { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .image-card,
  .metric-card,
  .btn-primary,
  .floating-orb,
  .ticker-track,
  .site-header { transition: none; transform: none; opacity: 1; animation: none; }
}
