/* HYDROTHERABOTS Stylesheet */
:root {
  --bg-darkest: #040811;
  --bg-dark: #081120;
  --bg-card: rgba(12, 24, 46, 0.75);
  --bg-card-hover: rgba(18, 35, 66, 0.88);
  --bg-card-border: rgba(0, 229, 255, 0.15);
  --bg-card-border-hover: rgba(0, 229, 255, 0.45);
  --accent-cyan: #00e5ff;
  --accent-blue: #0077b6;
  --accent-teal: #06d6a0;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient-cyan: linear-gradient(135deg, #00e5ff 0%, #0077b6 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 229, 255, 0.2) 0%, rgba(0, 119, 182, 0.05) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 30%, #00e5ff 100%);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 35px rgba(0, 229, 255, 0.22);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-main);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0c203d 0%, #050b14 60%, #02050a 100%);
  line-height: 1.6;
  position: relative;
}

.ambient-glow-1 {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
  z-index: 0;
}

.ambient-glow-2 {
  position: absolute;
  top: 35%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 119, 182, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
  background: rgba(5, 11, 20, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(4, 8, 17, 0.94);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  padding: 0 28px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-icon {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
  transition: var(--transition);
}

.brand-logo-text {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
  transition: var(--transition);
}

.brand-wrapper:hover .brand-logo-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-actions .btn {
  white-space: nowrap;
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 3px;
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #040811;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.brand-name span {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #040811;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 229, 255, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.18;
}

.hero-title .highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  overflow: hidden;
  transition: var(--transition);
}

.hero-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-4px);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.hero-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.floating-pill {
  position: absolute;
  padding: 8px 16px;
  background: rgba(10, 20, 40, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.pill-1 {
  top: -25px;
  right: -15px;
}

.pill-2 {
  bottom: -25px;
  left: -20px;
}

/* Stats */
.stats-ribbon {
  padding: 40px 0;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 229, 255, 0.15);
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Problem Section */
.problem-section {
  padding: 100px 0;
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-cyan);
  opacity: 0;
  transition: var(--transition);
}

.problem-card:hover {
  border-color: var(--bg-card-border-hover);
  transform: translateY(-6px);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.problem-card-title {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: #fff;
}

.problem-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Pillars */
.pillars-section {
  padding: 100px 0;
  position: relative;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pillar-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pillar-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 14px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.pillar-title {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: #fff;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.pillar-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Architecture */
.arch-section {
  padding: 100px 0;
  position: relative;
}

.arch-visual-box {
  background: #ffffff;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.15);
}

.arch-img-main {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  background: #ffffff;
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.arch-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.arch-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.arch-card-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 10px;
}

.arch-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Telemetry Bar */
.telemetry-bar {
  margin-top: 36px;
  background: rgba(6, 14, 28, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.telemetry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.telemetry-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.telemetry-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 12px var(--accent-teal);
  animation: pulseDot 1.5s infinite;
}

.telemetry-stats-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

.telemetry-stat {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.telemetry-stat strong {
  color: #fff;
  font-weight: 700;
}

/* Scenarios */
.scenarios-section {
  padding: 100px 0;
  position: relative;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(0, 229, 255, 0.4);
}

.filter-btn.active {
  background: var(--gradient-cyan);
  color: #040811;
  border-color: transparent;
  box-shadow: 0 3px 15px rgba(0, 229, 255, 0.35);
}

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.scenario-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.scenario-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 229, 255, 0.18);
}

.scenario-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060e1c;
}

.scenario-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scenario-card:hover .scenario-img {
  transform: scale(1.08);
}

.scenario-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(4, 8, 17, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  backdrop-filter: blur(10px);
}

.scenario-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.scenario-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.35;
}

.scenario-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.scenario-target-tag {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-cyan);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.scenario-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 12, 0.85);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: var(--bg-dark);
  border: 1px solid var(--bg-card-border-hover);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-cyan);
  color: #040811;
  transform: rotate(90deg);
}

.modal-media {
  position: relative;
  width: 100%;
  background: #02050a;
}

.modal-main-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.modal-thumbnails {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(6, 12, 22, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb-item {
  width: 70px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--accent-cyan);
  opacity: 1;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-content {
  padding: 32px;
}

.modal-badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

.meta-box-title {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.meta-box-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Comparison Table */
.comparison-section {
  padding: 100px 0;
  position: relative;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-card-border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th, .comp-table td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.comp-table th {
  background: rgba(8, 18, 36, 0.95);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.comp-table th.col-highlight,
.comp-table td.col-highlight {
  background: rgba(0, 229, 255, 0.07);
  border-left: 1px solid rgba(0, 229, 255, 0.25);
  border-right: 1px solid rgba(0, 229, 255, 0.25);
  color: #fff;
  font-weight: 600;
}

.comp-table th.col-highlight {
  color: var(--accent-cyan);
}

.comp-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.comp-table tr:hover td.col-highlight {
  background-color: rgba(0, 229, 255, 0.12);
}

/* Consortium Section */
.consortium-section {
  padding: 100px 0;
  position: relative;
}

.consortium-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.consortium-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.consortium-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.consortium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.partner-role-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}

.partner-flag {
  font-size: 1.25rem;
}

.partner-name {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 12px;
}

.partner-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.partner-lead {
  font-size: 0.82rem;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  font-weight: 600;
}

/* Funding Banner */
.funding-bar {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.funding-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.funding-logo-img {
  height: 48px;
  object-fit: contain;
  filter: brightness(1.1);
}

.funding-info {
  flex: 1;
}

.funding-title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.funding-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Impact */
.impact-section {
  padding: 100px 0;
  position: relative;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.impact-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  backdrop-filter: blur(16px);
  transition: var(--transition);
}

.impact-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.impact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.impact-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}

.impact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #02050b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 80px;
  padding-bottom: 36px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(0, 229, 255, 0.25));
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}

.footer-col-title {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.social-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.3);
}

.social-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.funding-foot-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 600px;
  text-align: right;
}

/* Toast */
.toast-box {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(10, 22, 44, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  backdrop-filter: blur(12px);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 24, 46, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-cyan);
  color: #040811;
  transform: translateY(-3px);
}

/* Responsive */

@media (max-width: 1280px) {
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.86rem;
  }
  .brand-logo-text {
    height: 28px;
  }
  .brand-logo-icon {
    height: 38px;
  }
  .nav-actions .btn {
    padding: 8px 16px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1100px) {
  .hero-title { font-size: 2.8rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: repeat(2, 1fr); }
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .consortium-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 10px; }
  .nav-link { font-size: 0.82rem; }
}

@media (max-width: 980px) {
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-toggle { display: block; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 2.4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-toggle { display: block; }
  
  .mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(6, 12, 22, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
  }
  
  .mobile-menu.open { display: flex; }
  .modal-meta-grid { grid-template-columns: 1fr; }
  .funding-foot-note { text-align: left; }
}

@media (max-width: 580px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr; }
  .consortium-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Mobile Navbar Fixes */
  .navbar {
    padding: 10px 0;
  }
  .nav-container {
    padding: 0 14px;
    gap: 8px;
  }
  .brand-wrapper {
    gap: 8px;
    max-width: calc(100% - 130px);
    overflow: hidden;
  }
  .brand-logo-icon {
    height: 30px;
    flex-shrink: 0;
  }
  .brand-logo-text {
    height: 20px;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 1;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .lang-switcher {
    padding: 2px;
  }
  .lang-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #fff;
    flex-shrink: 0;
  }
  .mobile-toggle svg {
    width: 20px;
    height: 20px;
  }
  .mobile-menu {
    top: 56px;
    padding: 20px 16px;
  }
}

