/* ============================================
   BEYOND CARNOT — Quantum Energy Technologies
   Design System & Global Styles
   "Beyond Carnot. Beyond Classical."
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette — deep space + quantum energy */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --bg-card-hover: #1f2847;
  --bg-accent: rgba(56, 189, 248, 0.08);

  /* Quantum energy gradient */
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #0f1d3a 40%, #0a2540 70%, #0a0e1a 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  --gradient-btn: linear-gradient(135deg, #38bdf8, #6366f1);
  --gradient-btn-hover: linear-gradient(135deg, #7dd3fc, #818cf8);
  --gradient-carnot: linear-gradient(135deg, #f97316, #ef4444, #ec4899);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;
  --text-highlight: #c084fc;

  /* Accents */
  --accent-blue: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #a78bfa;
  --accent-pink: #ec4899;
  --accent-orange: #f97316;
  --accent-green: #34d399;
  --accent-cyan: #22d3ee;

  /* Borders */
  --border-subtle: rgba(148, 163, 184, 0.1);
  --border-card: rgba(56, 189, 248, 0.15);
  --border-glow: rgba(56, 189, 248, 0.3);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.15);
  --shadow-hover: 0 8px 40px rgba(56, 189, 248, 0.2);

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --container-max: 1200px;
  --container-wide: 1400px;

  /* Typography */
  --font-heading: 'Inter', 'SF Pro Display', -apple-system, sans-serif;
  --font-body: 'Inter', 'SF Pro Text', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Animation */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: color 0.3s var(--ease-smooth); }
a:hover { color: var(--accent-purple); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text-secondary); margin-bottom: 1rem; }

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carnot-text {
  background: var(--gradient-carnot);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono { font-family: var(--font-mono); font-size: 0.9em; }
.text-accent { color: var(--text-accent); }
.text-muted { color: var(--text-muted); }

/* --- Layout --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 2rem; }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-dark { background: var(--bg-secondary); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.7rem 0;
}

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
  display: block;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s var(--ease-smooth);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-btn);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s var(--ease-smooth);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.lang-btn:hover { border-color: var(--accent-blue); color: var(--text-primary); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s var(--ease-smooth);
  box-shadow: var(--shadow-card);
  z-index: 100;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.lang-option:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  animation: pulse-slow 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  animation: pulse-slow 10s ease-in-out infinite 2s;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .line-2 {
  display: block;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.hero-stat p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.3);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.05);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-blue);
  padding: 0.5rem 0;
}

.btn-ghost:hover {
  color: var(--accent-purple);
}

.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--bg-accent);
  border: 1px solid var(--border-card);
}

.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; }

/* Card color variants */
.card-blue .card-icon { background: rgba(56, 189, 248, 0.1); border-color: rgba(56, 189, 248, 0.2); }
.card-purple .card-icon { background: rgba(167, 139, 250, 0.1); border-color: rgba(167, 139, 250, 0.2); }
.card-pink .card-icon { background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.2); }
.card-green .card-icon { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.2); }
.card-orange .card-icon { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.2); }
.card-cyan .card-icon { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.2); }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --- Comparison / Carnot Section --- */
.carnot-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.carnot-side {
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
}

.carnot-classical {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.carnot-quantum {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: var(--shadow-glow);
}

.carnot-vs {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  padding: 1rem;
}

.efficiency-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  margin: 1.5rem 0;
  overflow: hidden;
  position: relative;
}

.efficiency-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s var(--ease-smooth);
}

.efficiency-classical .efficiency-fill {
  background: linear-gradient(90deg, #ef4444, #f97316);
  width: 62%;
}

.efficiency-quantum .efficiency-fill {
  background: var(--gradient-accent);
  width: 95%;
}

.efficiency-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.efficiency-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0 0.5rem;
}

.classical-value { color: #ef4444; }
.quantum-value { color: var(--accent-blue); }

/* --- Equation Display --- */
.equation-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
  font-family: var(--font-mono);
}

.equation {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.equation .highlight { color: var(--accent-blue); font-weight: 700; }
.equation .exceed { color: var(--accent-purple); font-weight: 700; }

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.55rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

/* --- Team --- */
.team-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--accent-blue);
}

.team-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* --- Papers / Research --- */
.paper-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-smooth);
}

.paper-card:hover {
  border-color: var(--border-card);
}

.paper-journal {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.paper-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.paper-authors {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Investor Section --- */
.invest-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.invest-highlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Blog / News --- */
.blog-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card);
  box-shadow: var(--shadow-hover);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
}

/* --- Animations --- */
.fade-in,
.fade-in-left,
.fade-in-right {
  opacity: 1;
  transform: none;
}

/* (Removed complex fade animations — replaced above) */

/* Stagger children */
.js-loaded .stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.js-loaded .stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.js-loaded .stagger-children .fade-in:nth-child(3) { transition-delay: 0.2s; }
.js-loaded .stagger-children .fade-in:nth-child(4) { transition-delay: 0.3s; }
.js-loaded .stagger-children .fade-in:nth-child(5) { transition-delay: 0.4s; }
.js-loaded .stagger-children .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* --- RTL Support --- */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .timeline { padding-left: 0; padding-right: 3rem; }
[dir="rtl"] .timeline::before { left: auto; right: 0; }
[dir="rtl"] .timeline-item { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .timeline-item::before { left: auto; right: -3.55rem; }
[dir="rtl"] .footer-grid { direction: rtl; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .carnot-comparison { grid-template-columns: 1fr; }
  .carnot-vs { padding: 0.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .section { padding: clamp(3rem, 6vw, 5rem) 0; }
  .container, .container-wide { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-row { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
