/* --- Design System & Variables --- */
:root {
  --primary: #0035AD;
  --primary-dark: #002a8a;
  --primary-light: #e6ebf7;
  --secondary: #1E293B;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --light: #f8fafc;
  --alt: #f1f5f9;
  --dark: #020617;
  --border: #e2e8f0;
  --font-sora: 'Sora', sans-serif;
  --font-inter: 'Inter', sans-serif;
  --container-max: 1280px;
  --section-py: 6rem;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-inter);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
/* --- Utility Classes --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.max-w-7xl { max-width: 1280px; }
.max-w-2xl { max-width: 672px; }
.section-padding { padding: var(--section-py) 0; }
.bg-white { background-color: var(--white); }
.bg-alt { background-color: var(--alt); }
.bg-primary-container { background-color: var(--primary); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.uppercase { text-transform: uppercase; }
.border { border: 1px solid var(--border); }
.inset-0 { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-10 { bottom: 2.5rem; }
.left-1/2 { left: 50%; }
.-translate-x-1/2 { transform: translateX(-50%); }
.object-cover { width: 100%; height: 100%; object-fit: cover; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
/* --- Components --- */
/* Navigation */
#main-nav.nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}
.nav-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sora);
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-icon.white {
  background: var(--white);
  color: var(--primary);
}
.logo-text {
  font-family: var(--font-sora);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--white);
}
.nav-scrolled .logo-text { color: var(--text-main); }
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.nav-scrolled .nav-links { color: var(--text-main); }
.nav-links a:hover { color: var(--white); }
.nav-scrolled .nav-links a:hover { color: var(--primary); }
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.875rem;
}
.nav-scrolled .lang-selector {
  color: var(--text-muted);
  border-color: var(--border);
}
/* Buttons */
.btn {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(0, 53, 173, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.2);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}
/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  opacity: 0.4;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.5) 50%, #0f172a 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
}
.hero-title {
  font-family: var(--font-sora);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.outline-text {
  -webkit-text-stroke: 1.5px white;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.scroll-indicator {
  position: absolute;
}
/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.badge {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.badge.centered {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-family: var(--font-sora);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.2;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.stat-value {
  font-family: var(--font-sora);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  color: var(--text-muted);
  font-weight: 500;
}
.link-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}
.link-arrow:hover {
  gap: 1rem;
}
.about-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stagger-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stagger-column.mt-large {
  margin-top: 2rem;
}
.img-card {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  aspect-ratio: 3/4;
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.text-banner {
  aspect-ratio: 3/4;
  border-radius: 1.25rem;
  background: var(--primary-light);
  border: 4px solid rgba(0, 53, 173, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.text-banner p {
  color: var(--text-light);
  font-family: var(--font-sora);
  font-weight: 700;
  font-style: italic;
}
/* Service Cards */
.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--alt);
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
  transform: translateY(-5px);
}
.icon-box {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: var(--font-sora);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
/* Labs Section */
.labs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}
.link-more {
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.link-more:hover {
  color: var(--primary);
}
.news-img {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-img img {
  transform: scale(1.1);
}
.news-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
}
.tag-blue { background: var(--primary); }
.tag-orange { background: #f97316; }
.tag-green { background: #22c55e; }
.news-date {
  font-size: 0.875rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.5rem;
}
.news-title {
  font-family: var(--font-sora);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover .news-title { color: var(--primary); }
.news-excerpt {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Newsletter */
.newsletter-box {
  background: rgba(255,255,255,0.1);
  border-radius: 3rem;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  color: var(--white);
}
@media (min-width: 1024px) {
  .newsletter-box { flex-direction: row; text-align: left; }
}
.newsletter-text h2 {
  font-family: var(--font-sora);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.newsletter-form {
  width: 100%;
}
.input-group {
  position: relative;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 9999px;
  display: flex;
}
.input-group input {
  flex: 1;
  border: none;
  background: none;
  padding: 0 1.5rem;
  outline: none;
  font-size: 1rem;
}
.msg-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  padding-left: 1rem;
}
/* Partners */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  opacity: 0.5;
  filter: grayscale(1);
  transition: var(--transition);
}
.partners-grid:hover {
  opacity: 1;
  filter: grayscale(0);
}
.partner-logo {
  font-family: var(--font-sora);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-light);
}
/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 6rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon:hover {
  background: var(--primary);
}
.footer h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 0.75rem;
}
.footer ul a {
  color: var(--text-light);
}
.footer ul a:hover {
  color: var(--white);
}
.contact-item {
  display: flex;
  gap: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
/* --- Mobile Nav --- */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: 0.4s ease;
  padding: 2rem;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-sidebar.active {
  right: 0;
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.sidebar-header .logo-text { color: var(--text-main); }
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-nav a {
  font-size: 1.25rem;
  font-weight: 600;
}
.close-btn {
  color: var(--text-main);
}
/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.animate-bounce {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}
/* --- Responsive Helpers --- */
@media (max-width: 1024px) {
  .desktop-only { display: none !important; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-title { font-size: 3.5rem; }
  .section-py { padding: 4rem 0; }
}
@media (min-width: 1025px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; }
  .stagger-column.mt-large { margin-top: 0; }
  .newsletter-box { padding: 2.5rem 1.5rem; border-radius: 2rem; }
}
