/* =============================================
   EB-CHAIN — COMPLETE DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@300;400;500;700;800;900&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --gold-primary: #FFD700;
  --gold-deep: #E6B800;
  --gold-dark: #B8860B;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --gold-border: rgba(255, 215, 0, 0.18);
  --bg-base: #050505;
  --bg-surface: #0A0A0A;
  --bg-card: rgba(20, 20, 20, 0.4);
  --text-primary: #FFFFFF;
  --text-muted: #A0A0A0;
  --text-dim: #666666;
  --section-divider: rgba(255, 255, 255, 0.05);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background: radial-gradient(circle at top center, #111111 0%, var(--bg-base) 100%) no-repeat fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.gold {
  color: var(--gold-primary);
}

.gold-gradient {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.massive-text {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 900;
}

.hero-title-hollow {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.8);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 8px 18px;
  border-radius: 40px;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 12px rgba(255, 215, 0, 0.05), 0 0 12px rgba(255, 215, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

section+section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.15) 30%, rgba(255, 215, 0, 0.3) 50%, rgba(255, 215, 0, 0.15) 70%, transparent 100%);
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-gold-heavy {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #D4AF37 100%);
  color: #000;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.35), 0 0 60px rgba(255, 215, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: none;
}

.btn-gold-heavy:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 215, 0, 0.25), 0 0 120px rgba(255, 215, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.1);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), 0 0 40px rgba(255, 215, 0, 0.08), inset 0 0 20px rgba(255, 215, 0, 0.03);
}

/* ---- GLASS CARD ---- */
.glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 215, 0, 0.25);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px 0 rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.06),
    0 0 80px rgba(255, 215, 0, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 0 30px rgba(255, 215, 0, 0.04);
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.logo-text-lg {
  font-size: 1.8rem;
}

.logo-accent {
  color: var(--gold-primary);
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.8rem;
}

/* ============================================
   FLOATING LANGUAGE SWITCHER
   ============================================ */
.floating-lang {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  font-family: var(--font-display);
}

.floating-lang-btn {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--gold-primary);
  padding: 8px 14px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.1);
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-display);
}

.floating-lang-btn .flag-icon {
  width: 18px;
  height: 13px;
  min-width: 18px;
  min-height: 13px;
  margin-right: 3px;
}

.lang-sep {
  opacity: 0.5;
  margin: 0 2px;
}

/* Flag icons using CSS background images (more reliable) */
.flag-icon {
  display: inline-block;
  width: 20px;
  height: 15px;
  min-width: 20px;
  min-height: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.flag-icon.flag-gb {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0 L60 30 M60 0 L0 30' stroke='white' stroke-width='6'/%3E%3Cpath d='M0 0 L60 30 M60 0 L0 30' stroke='%23C8102E' stroke-width='4'/%3E%3Crect x='0' y='12' width='60' height='6' fill='white'/%3E%3Crect x='0' y='12' width='60' height='4' fill='%23C8102E'/%3E%3Crect x='25' y='0' width='10' height='30' fill='white'/%3E%3Crect x='25' y='0' width='10' height='30' fill='%23C8102E'/%3E%3C/svg%3E");
  background-color: #012169;
}

.flag-icon.flag-fr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='20' height='40' fill='%2300295C'/%3E%3Crect x='20' width='20' height='40' fill='white'/%3E%3Crect x='40' width='20' height='40' fill='%23ED2939'/%3E%3C/svg%3E");
  background-color: #00295C;
}

.floating-lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.15), inset 0 0 15px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.6);
}

.floating-lang-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.floating-lang.open .floating-lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.floating-lang-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-lang-menu a .flag-icon {
  width: 20px;
  height: 15px;
  flex-shrink: 0;
}

.floating-lang-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.floating-lang-menu a.active {
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.05);
}

@media (max-width: 768px) {
  .floating-lang {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .floating-lang-btn {
    padding: 6px 12px;
    height: 34px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .floating-lang-btn .flag-icon {
    width: 16px;
    height: 12px;
    min-width: 16px;
    min-height: 12px;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO (TIER 1 ASYMMETRIC)
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  margin-bottom: 2rem;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  animation: fadeDown 0.8s ease forwards;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  animation: pulse 2s infinite;
}

.hero-title {
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.25s ease both;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 3rem;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.35s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  animation: fadeUp 0.8s 0.55s ease both;
}

.hero-orb {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseOrb 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes pulseOrb {
  0% {
    transform: scale(0.8) translate(-10px, 10px);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.1) translate(10px, -10px);
    opacity: 1;
  }
}

.hero-glass-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(5, 5, 5, 0.8) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 40px rgba(255, 215, 0, 0.05);
  width: 100%;
  max-width: 380px;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-glass-card:hover {
  transform: rotateY(0) rotateX(0);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 40px rgba(255, 215, 0, 0.06);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-row:last-child {
  border-bottom: none;
}

.status-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.status-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: #FFF;
  font-weight: 500;
}

.status-val.green {
  color: #4ADE80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}



/* ============================================
   COMPARISON MATRIX
   ============================================ */
.matrix-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow-x: auto;
  backdrop-filter: blur(16px);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.4) transparent;
}

/* Right edge fade to indicate scrollable content */
.matrix-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(to left, var(--bg-card) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.matrix-wrapper.scrollable::after {
  opacity: 1;
}

/* Custom scrollbar for webkit browsers */
.matrix-wrapper::-webkit-scrollbar {
  height: 6px;
}

.matrix-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.matrix-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.5);
  border-radius: 3px;
}

.matrix-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.7);
}

.comparison-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

/* ============================================
   LIVE DATA MARQUEE
   ============================================ */
.data-ticker-wrap {
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.data-ticker {
  display: flex;
  white-space: nowrap;
}

.ticker-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: scrollTicker 30s linear infinite;
}

.ticker-content span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticker-content .sep {
  color: rgba(255, 255, 255, 0.15);
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  animation: bounce 2s infinite;
  z-index: 2;
}

.scroll-hint span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-hint svg {
  color: var(--gold-primary);
}

/* ============================================
   METRICS
   ============================================ */
#metrics {
  background: var(--bg-surface);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.metric-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.metric-num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--gold-primary);
  display: block;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.metric-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ============================================
   FEATURES
   ============================================ */
#features .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
}

/* ============================================
   ASYMMETRIC FEATURES
   ============================ */
#features {
  padding-top: 8rem;
}

.asymmetric-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.asymmetric-row>div {
  min-width: 0;
}

.asymmetric-row.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.asym-text h2 {
  margin-bottom: 1.5rem;
}

.asym-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.technical-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.technical-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.technical-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-primary);
}

.technical-list li strong {
  color: var(--text-primary);
}

/* TERMINAL BLOCK */
.terminal-block {
  background: #000;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 215, 0, 0.1);
  overflow: hidden;
  width: 100%;
}

.term-header {
  background: #111;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-header .dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.term-header .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.6;
}

.term-header .dots i:nth-child(1) {
  background: #FF5F57;
}

.term-header .dots i:nth-child(2) {
  background: #FEBC2E;
}

.term-header .dots i:nth-child(3) {
  background: #28C840;
}

.term-header span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #666;
}

.term-body {
  padding: 24px;
  overflow-x: auto;
}

.term-body pre {
  margin: 0;
}

.term-body code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: #CCC;
}

.term-body .keyword {
  color: #C678DD;
}

.term-body .string {
  color: #98C379;
}

.term-body .function {
  color: #61AFEF;
}

.term-body .method {
  color: #E5C07B;
}

.term-body .comment {
  color: #5C6370;
  font-style: italic;
}

.term-body .console {
  color: #E06C75;
}

/* ARCHITECTURE TABLE INSIDE FEATURE */
.table-card {
  padding: 0.5rem;
}

.arch-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.arch-table th {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-matrix th {
  padding: 24px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #FFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  vertical-align: top;
  white-space: nowrap;
}

.comparison-matrix th.highlight {
  color: #000;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #D4AF37 100%);
  border-bottom: 1px solid var(--gold-primary);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.comparison-matrix td {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.95rem;
  vertical-align: top;
  line-height: 1.5;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.comparison-matrix td.highlight {
  background: rgba(255, 215, 0, 0.04);
  color: #FFF;
  border-right: 1px solid rgba(255, 215, 0, 0.1);
  border-left: 1px solid rgba(255, 215, 0, 0.1);
}

.comparison-matrix tr:last-child td.highlight {
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.comparison-matrix tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-matrix tbody tr:hover td.highlight {
  background: rgba(255, 215, 0, 0.06);
  box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.03);
}

/* Mobile scroll hint */
.matrix-scroll-hint {
  display: none;
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  opacity: 0.7;
  animation: pulseHint 2s infinite;
}

.matrix-scroll-hint::before {
  content: '← Swipe →';
  display: inline-block;
  margin-right: 8px;
}

@keyframes pulseHint {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.9;
  }
}

.arch-table td {
  padding: 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.arch-table tr:last-child td {
  border-bottom: none;
}

.arch-table td strong {
  color: #FFF;
  font-weight: 500;
}



/* ============================================
   ECOSYSTEM & LIVE FEED
   ============================================ */
#ecosystem {
  background: #000;
  position: relative;
}

.eco-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.live-feed-panel {
  padding: 0;
  height: 480px;
  display: flex;
  flex-direction: column;
}

.feed-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px #4ADE80;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.feed-window {
  padding: 24px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  mask-image: linear-gradient(to bottom, transparent, black 20%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%);
}

.tx-row {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tx-time {
  color: var(--text-dim);
}

.tx-hash {
  color: #61AFEF;
}

.tx-action {
  color: #E5C07B;
}

.tx-gas {
  color: #98C379;
}

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

.eco-card {
  padding: 2.5rem;
}

.eco-top {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.eco-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eco-card h3 {
  font-size: 1.4rem;
  color: #FFF;
}

.eco-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.code-inline {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #CCC;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.code-inline:hover {
  border-color: rgba(255, 215, 0, 0.4);
  color: var(--gold-primary);
}

.copy-icon {
  opacity: 0.5;
}

/* ============================================
   USE CASES (TABS)
   ============================================ */
#usecases .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tab-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 40px;
  border: 1px solid var(--gold-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.tab-btn:hover {
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold-primary);
  border-color: rgba(255, 215, 0, 0.35);
}

.tab-btn.active {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-primary);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.tab-text .tag {
  margin-bottom: 1rem;
}

.tab-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.tab-text p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.tab-features {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tab-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tab-features li::before {
  content: '◆';
  color: var(--gold-primary);
  font-size: 0.5rem;
  flex-shrink: 0;
}

.tab-visual {
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-visual .visual-icon {
  font-size: 5rem;
  opacity: 0.15;
}

.tab-visual .visual-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
}

/* ============================================
   ROADMAP (TIER 1 ASYMMETRIC)
   ============================================ */
.tier-1-roadmap {
  position: relative;
  padding: 8rem 0;
  background: #000;
}

.staggered-timeline {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  position: relative;
  margin-top: 4rem;
}

.staggered-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 215, 0, 0.3) 20%, rgba(255, 215, 0, 0.3) 80%, transparent);
  transform: translateX(-50%);
}

.timeline-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.timeline-block.right-align {
  direction: rtl;
}

.timeline-block.right-align>* {
  direction: ltr;
  /* Reset text direction inside */
}

.huge-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 15vw, 16rem);
  font-weight: 900;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.05);
  text-align: right;
  letter-spacing: -0.05em;
  position: relative;
}

.timeline-block.right-align .huge-number {
  text-align: left;
}

.huge-number.hollow {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
}

.done-block .huge-number {
  color: rgba(255, 215, 0, 0.08);
}

.timeline-card {
  padding: 3rem;
  position: relative;
}

.phase-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.status-pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.1em;
}

.status-pill.green {
  background: rgba(74, 222, 128, 0.1);
  color: #4ADE80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-pill.pulse {
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.3);
  animation: pillPulse 2s infinite;
}

.status-pill.hollow {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pillPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.phase-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFF;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ============================================
   DEVELOPER / NETWORK CONFIG
   ============================================ */
#developer .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.dev-grid>div {
  min-width: 0;
}

.config-block {
  background: #0A0A0A;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 215, 0, 0.04);
  border-bottom: 1px solid var(--gold-border);
}

.config-header span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.config-dots {
  display: flex;
  gap: 6px;
}

.config-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.config-dots i:nth-child(1) {
  background: #FF5F57;
}

.config-dots i:nth-child(2) {
  background: #FEBC2E;
}

.config-dots i:nth-child(3) {
  background: #28C840;
}

.config-body {
  padding: 1.5rem;
  overflow-x: auto;
}

.config-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.05);
}

.config-row:last-child {
  border-bottom: none;
}

.config-key {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.config-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold-primary);
  word-break: break-all;
}

.dev-text h2 {
  margin-bottom: 1rem;
}

.dev-text p {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.85;
}

.metamask-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #D4AF37 100%);
  border: none;
  border-radius: 40px;
  color: #000;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  width: fit-content;
  margin-bottom: 1.5rem;
}

.metamask-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(255, 215, 0, 0.55), 0 0 90px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.1);
}

.metamask-btn img {
  width: 24px;
}

.dev-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: #080808;
  border-top: 1px solid var(--gold-border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo img {
  height: 36px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 260px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--gold-primary);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.07);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
}

.chain-id-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.1em;
}

/* ============================================
   SECTION HEADER (SHARED)
   ============================================ */
.section-header {
  margin-bottom: 3rem;
}

.section-header-center {
  text-align: center;
}

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

.section-header p {
  font-size: 1rem;
  max-width: 560px;
}

.section-header-center p {
  margin: 0 auto;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(255, 215, 0, 0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Reveal on scroll — cinematic easing */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-drawer.open {
  display: flex;
}

/* Hide hamburger when drawer is open */
body.drawer-open #navbar .hamburger {
  display: none !important;
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-drawer a:hover {
  color: var(--gold-primary);
}

.nav-drawer-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.nav-drawer-close:hover {
  color: var(--gold-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-ctas {
    justify-content: center;
  }

  .massive-text {
    font-size: 5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .asymmetric-row,
  .asymmetric-row.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .eco-wrapper {
    grid-template-columns: 1fr;
  }

  .staggered-timeline::before {
    left: 0;
  }

  .timeline-block,
  .timeline-block.right-align {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    direction: ltr;
  }

  .huge-number {
    text-align: left;
    font-size: 8rem;
    line-height: 1;
    margin-bottom: -1rem;
  }

  .timeline-card {
    padding: 2.5rem;
    margin-left: 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .dev-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .matrix-scroll-hint {
    display: block;
  }

  .matrix-wrapper {
    margin-bottom: 0.5rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hide hamburger when drawer is open - handled by body.drawer-open */

  .hero-title {
    font-size: 3.5rem;
    line-height: 1;
  }

  .hero-stats {
    flex-direction: column;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--gold-border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .staggered-timeline {
    gap: 4rem;
  }

  .huge-number {
    font-size: 6rem;
  }

  .timeline-card {
    margin-left: 1rem;
    padding: 2rem;
  }

  .phase-title {
    font-size: 2rem;
  }

  .tab-content.active {
    grid-template-columns: 1fr;
  }

  .tab-visual {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  section {
    padding: 4rem 0;
  }

  .massive-text {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
    word-break: break-word;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    padding: 4px 12px;
    white-space: normal;
  }

  .huge-number {
    font-size: 4.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .timeline-card {
    margin-left: 0;
  }

  .staggered-timeline::before {
    display: none;
  }

  .tab-nav {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .tab-btn {
    font-size: 0.78rem;
    padding: 10px 16px;
    min-height: 40px;
  }

  .config-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.5rem 0;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .data-ticker {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   Fr-Mode (French Language Specific Layout Fixes)
   ========================================================================== */
html[lang="fr"] .nav-links {
  gap: 1.2rem;
}

html[lang="fr"] .nav-links a {
  font-size: 0.70rem;
  letter-spacing: 0.08em;
}

/* Base size for standard desktops - reduce overall hero sizing */
html[lang="fr"] .hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

/* Keep INSTITUTIONNELLE on single line */
html[lang="fr"] .hero-title-hollow {
  font-size: clamp(2rem, 5.5vw, 5rem);
  white-space: nowrap;
}

/* Reduce massive-text size for French */
html[lang="fr"] .massive-text {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

/* Reduce h2 size for French (section headers) */
html[lang="fr"] h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

/* Reduce h3 size for French */
html[lang="fr"] h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

/* French-specific adjustments for specific h2/h3 selectors */
html[lang="fr"] .section-header h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
}

/* Asymmetric features - word break prevention + font size */
html[lang="fr"] .asym-text h2 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  word-break: keep-all;
  hyphens: none;
}

html[lang="fr"] .tab-text h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

html[lang="fr"] .eco-card h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

/* Comparison Matrix French Fixes */
html[lang="fr"] .matrix-wrapper {
  overflow-x: auto;
  padding-bottom: 1rem;
}

html[lang="fr"] .comparison-matrix th,
html[lang="fr"] .comparison-matrix td {
  padding: 1.2rem;
  font-size: 0.85rem;
}

/* Mobile responsive shrinking for that specific word */
@media (max-width: 768px) {
  html[lang="fr"] .hero-title {
    font-size: 2.8rem;
  }

  html[lang="fr"] .hero-title-hollow {
    font-size: 2rem;
  }

  html[lang="fr"] .massive-text {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  html[lang="fr"] .hero-title {
    font-size: 2.2rem;
  }

  html[lang="fr"] .hero-title-hollow {
    font-size: 1.6rem;
  }

  html[lang="fr"] .massive-text {
    font-size: 3rem;
  }
}