:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --primary: #0f4c81;
  --crimson: #b91c1c;
  --crimson-soft: #fef2f2;
  --emerald: #047857;
  --emerald-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #ffffff; }
.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}
.lang-btn.active {
  background: #ffffff;
  color: var(--navy);
}

/* Hero */
.hero {
  background: radial-gradient(circle at 85% 20%, rgba(185, 28, 28, 0.25), transparent 45%),
              linear-gradient(135deg, #0f172a 0%, #172554 55%, #1e293b 100%);
  color: #ffffff;
  padding: 64px 24px 56px;
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(252, 165, 165, 0.35);
  color: #fecaca;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.85rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero p {
  color: #cbd5e1;
  font-size: 1.02rem;
  margin-bottom: 24px;
  max-width: 600px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 12px;
}
.stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}
.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-gallery img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.hero-gallery img:first-child {
  grid-column: span 2;
  height: 185px;
}
.hero-gallery img:hover {
  transform: translateY(-2px);
  border-color: #fca5a5;
}

/* Container & Sections */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.section-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 6px;
}
.section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
}
.section-desc {
  color: var(--muted);
  max-width: 680px;
  font-size: 0.95rem;
}

/* Announcements Strip */
.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}
.notice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
}
.notice-card.urgent { border-left-color: var(--crimson); background: #fffafa; }
.notice-date {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Flagship Cards */
.flagship-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.flagship-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
}
.flagship-media {
  background: var(--surface-alt);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid var(--border);
}
.flagship-media img {
  width: 100%;
  max-height: 270px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--border);
}
.flagship-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.flagship-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.flagship-top h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  flex: 1;
}
.budget-pill {
  background: var(--navy);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.flagship-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.85rem;
}
.mini-panel h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crimson);
  margin-bottom: 6px;
}

/* Filter Bar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.pill-btn:hover { border-color: var(--primary); color: var(--primary); }
.pill-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.search-input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.88rem;
  min-width: 240px;
  outline: none;
}
.search-input:focus { border-color: var(--primary); }

/* Innovation Grid */
.innov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 22px;
}
.innov-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.innov-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.innov-thumb {
  height: 210px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.innov-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.innov-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #0f4c81);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
}
.trl-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.trl-9 { background: var(--emerald); }
.trl-8 { background: var(--primary); }
.trl-7 { background: var(--amber); }
.code-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}
.innov-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.innov-prio {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.innov-body h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.innov-summary {
  font-size: 0.86rem;
  color: #475569;
  flex: 1;
}
.innov-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.btn-detail {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-detail:hover { background: var(--primary); }

/* Licensing Carousel */
.licensing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.lic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
}
.lic-card:hover { transform: translateY(-2px); }
.lic-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.lic-cap {
  padding: 12px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
}

/* Profile Grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.profile-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}
.profile-card p, .profile-card li {
  font-size: 0.86rem;
  color: #475569;
}
.profile-card ul { padding-left: 18px; }
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-2);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  position: relative;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.modal-close {
  background: var(--surface-alt);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--navy);
}
.modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: var(--surface-alt);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.detail-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.detail-row h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 4px;
}
.detail-row p { font-size: 0.88rem; color: var(--text); }

/* Lightbox */
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* Footer */
footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 36px 24px;
  margin-top: 32px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .flagship-card { grid-template-columns: 1fr; }
  .flagship-media { border-right: none; border-bottom: 1px solid var(--border); }
  .flagship-cols { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
