@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --navy: #0a1628;
  --navy-light: #0d2847;
  --teal: #00c8d7;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-600: #666;
  --gray-900: #1a1a1a;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
}

body[data-theme="dark"] .site-header:not(.scrolled) {
  background: transparent;
}

body[data-theme="light"] .site-header:not(.scrolled) {
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
  margin-right: auto;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.site-header--light .logo-name,
.site-header--light .main-nav a,
.site-header--light .lang-switch,
body[data-theme="light"] .site-header .logo-name,
body[data-theme="light"] .site-header .main-nav a,
body[data-theme="light"] .site-header .lang-switch {
  color: var(--gray-900);
}

.site-header--light .header-social a,
body[data-theme="light"] .site-header .header-social a {
  color: var(--gray-900);
}

.site-header--dark .logo-name,
.site-header--dark .main-nav a,
.site-header--dark .lang-switch {
  color: var(--white);
}

.site-header--light .logo-name,
.site-header--light .main-nav a,
.site-header--light .lang-switch,
.site-header.scrolled .logo-name,
.site-header.scrolled .main-nav a,
.site-header.scrolled .lang-switch {
  color: var(--gray-900);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.main-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--teal);
}

.header-extras {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
}

.header-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-social .icon,
.footer-social .icon,
.contact-social-link .icon {
  display: inline-flex;
  align-items: center;
}

.social-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.contact-social-link .social-icon-img {
  width: 24px;
  height: 24px;
}

.site-header--dark .header-social a {
  color: var(--white);
}

.site-header--light .header-social a,
.site-header.scrolled .header-social a {
  color: var(--gray-900);
}

.site-header.scrolled .nav-toggle {
  color: var(--gray-900);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-body {
  color: var(--white);
  font-size: 1rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero--card {
  min-height: 420px;
  align-items: flex-end;
  padding-bottom: 0;
}

.hero--card .hero-content {
  width: 100%;
  text-align: left;
}

.hero-card {
  background: var(--white);
  padding: 48px;
  margin-top: 120px;
  margin-bottom: -80px;
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-card .hero-title {
  color: var(--gray-900);
  font-size: 2.5rem;
}

.hero-subtitle--dark {
  color: var(--gray-900) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
}

.hero-body--dark {
  color: var(--gray-600);
}

/* Page title section */
.page-title-section {
  padding: calc(var(--header-height) + 48px) 24px 48px;
  text-align: center;
  background: var(--white);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* Section headings */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  color: var(--white);
}

.section-heading--dark {
  color: var(--gray-900);
}

.section-heading--center {
  text-align: center;
}

/* Feature blocks (homepage dark sections) */
.feature-block {
  background: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(0, 100, 180, 0.3) 0%, transparent 50%),
    linear-gradient(225deg, rgba(0, 50, 120, 0.4) 0%, transparent 50%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.feature-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-block-image {
  display: flex;
  justify-content: center;
}

.circle-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.feature-block-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--white);
  color: var(--gray-900);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-read-more {
  display: inline-block;
  padding: 10px 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 16px;
  transition: background 0.2s;
}

.btn-read-more:hover {
  background: var(--navy-light);
}

/* Two column sections */
.two-column-section {
  padding: 80px 0;
  background: var(--white);
}

.two-column-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-column-inner--reverse {
  direction: rtl;
}

.two-column-inner--reverse > * {
  direction: ltr;
}

.two-column-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.two-column-image img {
  border-radius: 4px;
  width: 100%;
}

.video-thumb-link {
  position: relative;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Icon grid */
.icon-grid-section {
  padding: 80px 0;
  background: var(--white);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}

.icon-grid-item {
  text-align: center;
}

.icon-grid-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
}

.icon-grid-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.icon-grid-item p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Team */
.team-section {
  padding: 80px 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.team-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.team-name {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.team-title {
  text-align: center;
  color: var(--gray-600);
}

/* Partnerships */
.partnerships-section {
  padding: 60px 0 80px;
  background: var(--white);
}

.partners-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.partner-item img {
  max-height: 60px;
  width: auto;
}

/* Product links */
.product-links-section {
  padding: 80px 0;
}

.product-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-link-card {
  display: block;
  padding: 24px;
  background: var(--gray-100);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-link-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.product-link-card h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.product-link-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Spotlight */
.spotlight-section {
  padding: 80px 0 40px;
}

.spotlight-subheading {
  font-family: var(--font-display);
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--gray-900);
}

.spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.spotlight-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.spotlight-text p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* News grid */
.news-grid-section {
  padding: 40px 0 80px;
  background: var(--gray-100);
}

.news-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.news-filter-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: background 0.2s;
}

.news-filter-btn.active {
  background: var(--gray-200);
  color: var(--gray-900);
  font-weight: 600;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--gray-200);
  padding: 0 0 24px;
  border-radius: 4px;
  overflow: hidden;
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-date {
  display: block;
  padding: 16px 20px 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.news-card-title {
  padding: 8px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-card-excerpt {
  padding: 0 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.news-card .btn-read-more {
  margin-left: 20px;
}

/* Contact */
.contact-details-section {
  padding: 120px 0 80px;
  background: var(--white);
}

.contact-details-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item .icon {
  color: var(--navy-light);
  flex-shrink: 0;
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-item a {
  color: var(--navy-light);
  font-weight: 500;
}

.contact-item p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-top: 4px;
}

.contact-social-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-900);
  font-weight: 500;
}

.contact-social-link:hover {
  color: var(--teal);
}

/* Article page */
.article-page {
  padding: calc(var(--header-height) + 48px) 0 80px;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-style: italic;
  margin-bottom: 8px;
}

.article-date {
  display: block;
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.breadcrumbs {
  font-size: 0.75rem;
  margin-bottom: 24px;
  color: var(--gray-600);
}

.breadcrumbs a {
  color: #0066cc;
}

.article-body {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--gray-900);
}

.article-featured-image {
  width: 100%;
  margin-top: 32px;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background: var(--gray-100);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social a {
  color: var(--gray-900);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.copyright {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.error-message {
  padding: 48px;
  text-align: center;
  color: #c00;
}

/* Responsive */
@media (max-width: 968px) {
  .header-right {
    gap: 12px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav.open a {
    color: var(--gray-900);
  }

  .nav-toggle {
    display: block;
  }

  .header-extras .header-social {
    display: none;
  }

  .feature-block-inner,
  .two-column-inner,
  .two-column-inner--reverse,
  .spotlight-row,
  .contact-details-inner,
  .icon-grid,
  .product-links-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .two-column-inner--reverse {
    direction: ltr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .circle-image {
    width: 240px;
    height: 240px;
  }

  .hero-card {
    padding: 32px 24px;
    margin-top: 80px;
  }
}

@media (max-width: 600px) {
  .header-extras .lang-switch {
    display: none;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
