/* ===============================================
   ELEVENWIRES — Premium Static v1
   HIGH BAR EXECUTION MODE (BUILD 44+)
   Institutional standard: Bloomberg / Palantir / McKinsey
   =============================================== */

:root {
  --graphite-950: #0a0a12;
  --graphite-900: #111118;
  --graphite-850: #181825;
  --graphite-800: #1a1a2e;
  --graphite-700: #2d2d44;
  --graphite-600: #3d3d5c;
  --graphite-500: #5a5a7a;
  --graphite-400: #7a7a9a;
  --graphite-300: #a0a0ba;
  --graphite-200: #c8c8da;
  --graphite-100: #e8e8f0;
  --white: #f8f9fa;
  --off-white: #f0f2f5;
  --off-white-soft: #f5f5f0;
  --light-panel: #f2f3ed;
  --light-panel-border: rgba(0,0,0,0.06);
  --petroleum-deep: #072a3e;
  --petroleum-dark: #0e3a55;
  --petroleum: #1a5276;
  --petroleum-mid: #1f6a96;
  --petroleum-light: #2980b9;
  --petroleum-lighter: #5dade2;
  --green-deep: #0f4d28;
  --green-dark: #1a6e34;
  --green: #27ae60;
  --green-mid: #2bbd68;
  --green-light: #2ecc71;
  --green-pale: #a3e4b0;
  --border-subtle: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-medium: rgba(255,255,255,0.12);
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --surface-active: rgba(255,255,255,0.09);
  --glow-petroleum: rgba(41,128,185,0.15);
  --glow-green: rgba(46,204,113,0.1);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1120px;
  --max-width-text: 720px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--graphite-950);
  color: var(--graphite-300);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

::selection {
  background: var(--petroleum);
  color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--petroleum-lighter);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--green-light);
}

.inline-link {
  color: var(--green-mid);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.inline-link::after {
  content: " →";
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.inline-link:hover {
  color: var(--green-light);
  border-bottom-color: rgba(46,204,113,0.3);
}

.inline-link:hover::after {
  opacity: 1;
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 10px 20px;
  z-index: 9999;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- NAVIGATION (Refined) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,18,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(10,10,18,0.96);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  height: 46px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.nav__logo-link {
  display: flex;
  align-items: flex-end;
}

.nav__logo-link:hover .nav__logo {
  opacity: 1;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: flex-end;
}

.nav__links a {
  color: var(--graphite-200);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav__links a:hover {
  color: var(--graphite-100);
  background: var(--surface-hover);
}

.nav__links a.active {
  color: var(--white);
  background: var(--surface-active);
  font-weight: 600;
}

.nav__cta {
  background: var(--petroleum) !important;
  color: var(--white) !important;
  padding: 8px 22px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.02em !important;
}

.nav__cta:hover {
  background: var(--petroleum-mid) !important;
  color: var(--white) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  transition: opacity var(--transition-fast);
}

.nav__toggle:hover {
  opacity: 0.7;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--graphite-300);
  border-radius: 1px;
  transition: var(--transition);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO (Refined) --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 100px 48px 60px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Image sits inside hero__bg, covered by the same overlay gradient */
.hero__bg img,
.hero__bg source {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 55% at 20% 45%, rgba(26,82,118,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 78% 30%, rgba(39,174,96,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(17,17,24,0.6) 0%, transparent 60%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(41,128,185,0.15), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 600px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(10,10,18,0.5) 0%, rgba(10,10,18,0.78) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 24px;
  margin-left: auto;
}

.hero__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-mid);
  margin-bottom: 24px;
  padding: 5px 14px;
  border: 1px solid rgba(46,204,113,0.15);
  border-radius: 20px;
  background: rgba(46,204,113,0.04);
}

.hero__title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--graphite-200);
  max-width: 520px;
  margin: 0 0 28px auto;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* --- GRADIENT LINE SEPARATOR --- */
.gradient-line {
  height: 1px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* --- PAGE HERO (Refined) --- */
.page-hero {
  position: relative;
  min-height: 38vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 110px 32px 50px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Image inside page-hero__bg */
.page-hero__bg img,
.page-hero__bg source {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.page-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 25% 40%, rgba(26,82,118,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 75% 50%, rgba(39,174,96,0.05) 0%, transparent 55%);
  pointer-events: none;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,18,0.35) 0%, transparent 40%, transparent 60%, rgba(10,10,18,0.35) 100%);
  pointer-events: none;
}

/* Top accent line — moved to a separate element if needed, kept for non-image case */
.hero__accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(41,128,185,0.12), transparent);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  text-align: right;
  max-width: 700px;
}

.page-hero__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green-mid);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid rgba(46,204,113,0.15);
  border-radius: 16px;
  background: rgba(46,204,113,0.04);
}

.page-hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-hero__sub {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--graphite-200);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- SECTIONS (Refined) --- */
.section {
  padding: 80px 32px;
}

.section--light {
  background: var(--graphite-850);
}

/* Subtle entrance animation for cards */
.card {
  animation: cardIn 0.4s ease both;
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section--dark {
  background: var(--graphite-900);
}

.section--charcoal {
  background: var(--graphite-800);
}

.section--border {
  border-top: 1px solid var(--border-subtle);
}

.section--cta {
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(26,82,118,0.1) 0%, transparent 60%),
    var(--graphite-950);
  text-align: right;
  border-top: 1px solid var(--border-subtle);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.section__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--petroleum-lighter);
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(93,173,226,0.12);
  border-radius: 14px;
  background: rgba(93,173,226,0.04);
}

.section__label--green {
  color: var(--green-mid);
  border-color: rgba(46,204,113,0.12);
  background: rgba(46,204,113,0.04);
}

.section__label--light {
  color: var(--graphite-300);
  border-color: var(--border);
}

.section__title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 650;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section__title--light {
  color: var(--white);
}

.section__text {
  font-size: 14.5px;
  color: var(--graphite-200);
  margin-bottom: 14px;
  max-width: var(--max-width-text);
  line-height: 1.8;
}

.section__text--light {
  color: var(--graphite-300);
}

.section__text--small {
  font-size: 13px;
}

/* --- CARDS (Refined — McKinsey/Palantir style) --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--petroleum), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-medium);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

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

.card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 13.5px;
  color: var(--graphite-200);
  line-height: 1.7;
}

.card__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green-mid);
  transition: color var(--transition-fast);
}

.card__link:hover {
  color: var(--green-light);
}

.card__link::after {
  content: " →";
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.card__link:hover::after {
  opacity: 1;
}

/* Pill tag inside cards */
.card__pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--petroleum-lighter);
  padding: 2px 8px;
  border: 1px solid rgba(93,173,226,0.12);
  border-radius: 10px;
  background: rgba(93,173,226,0.04);
  margin-bottom: 12px;
}

/* --- DISTINCTIONS (Refined) --- */
.distinctions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  max-width: var(--max-width-text);
}

.distinction {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.distinction:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.dot {
  min-width: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-mid);
  margin-top: 7px;
  flex-shrink: 0;
}

.distinction p {
  font-size: 13.5px;
  color: var(--graphite-200);
  line-height: 1.65;
}

.distinction p strong {
  color: var(--graphite-100);
  font-weight: 600;
}

/* --- STATS / NUMERIC DISPLAYS --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat-item {
  text-align: right;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.stat-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 10px;
  color: var(--graphite-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* --- BUTTONS (Refined — discreet but strong) --- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  text-align: right;
  line-height: 1.4;
}

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

.btn--primary:hover {
  background: var(--petroleum-mid);
  border-color: var(--petroleum-mid);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(41,128,185,0.2);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(41,128,185,0.15);
}

.btn--outline {
  background: transparent;
  color: var(--graphite-300);
  border-color: var(--graphite-600);
}

.btn--outline:hover {
  color: var(--white);
  border-color: var(--graphite-200);
  background: var(--surface-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--graphite-200);
  border-color: transparent;
  padding: 11px 18px;
}

.btn--ghost:hover {
  color: var(--white);
  background: var(--surface-hover);
}

.cta-note {
  font-size: 12px;
  color: var(--graphite-500);
  max-width: 480px;
  margin: 14px auto 0;
  line-height: 1.6;
}

/* --- METRICS STRIP */
.section--metrics {
  padding: 48px 32px;
  background: var(--graphite-900);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.metrics-grid {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.metric {
  text-align: center;
}

.metric__number {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.metric__label {
  display: block;
  font-size: 10px;
  color: var(--graphite-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

@media (max-width: 540px) {
  .metrics-grid {
    gap: 32px;
  }
  .metric__number {
    font-size: 24px;
  }
}

/* --- LIGHT PANEL — ruptura visual clara entre secciones oscuras */
.section--light-panel {
  background: var(--light-panel);
  border-top: 1px solid var(--light-panel-border);
  border-bottom: 1px solid var(--light-panel-border);
}

.section--light-panel .section__title {
  color: var(--graphite-900);
}

.section--light-panel .section__label {
  border-color: rgba(26,82,118,0.2);
  background: rgba(26,82,118,0.06);
  color: var(--petroleum);
}

.section--light-panel .section__text {
  color: var(--graphite-600);
}

.section--light-panel .inline-link {
  color: var(--petroleum);
}

.section--light-panel .inline-link:hover {
  color: var(--petroleum-deep);
}

.section--light-panel .btn--outline {
  border-color: var(--graphite-400);
  color: var(--graphite-700);
}

.section--light-panel .btn--outline:hover {
  background: var(--graphite-100);
  border-color: var(--graphite-500);
  color: var(--graphite-900);
}

.section--light-panel .card {
  background: var(--white);
  border-color: var(--light-panel-border);
}

.section--light-panel .card:hover {
  border-color: rgba(0,0,0,0.12);
  background: var(--off-white-soft);
}

.section--light-panel .card__title {
  color: var(--graphite-900);
}

.section--light-panel .card__text {
  color: var(--graphite-600);
}

.section--light-panel .card__link {
  color: var(--petroleum-mid);
}

.section--light-panel .card__pill {
  color: var(--petroleum-mid);
  border-color: rgba(26,82,118,0.15);
  background: rgba(26,82,118,0.06);
}

.section--light-panel .section__label--green {
  color: var(--green-dark);
  border-color: rgba(15,77,40,0.2);
  background: rgba(15,77,40,0.06);
}

.section--light-panel .distinction {
  background: var(--white);
  border-color: var(--light-panel-border);
}

.section--light-panel .distinction:hover {
  border-color: rgba(0,0,0,0.1);
  background: var(--off-white-soft);
}

.section--light-panel .distinction p {
  color: var(--graphite-600);
}

.section--light-panel .distinction p strong {
  color: var(--graphite-900);
}

.section--light-panel .dot {
  background: var(--petroleum-mid);
}

.section--light-panel .disclaimer-banner {
  background: rgba(26,82,118,0.04);
  border-color: rgba(26,82,118,0.08);
}

.section--light-panel .disclaimer-banner p {
  color: var(--graphite-500);
}

.section--light-panel .disclaimer-banner strong {
  color: var(--graphite-700);
}

/* --- METRIC CABINET (for FBCC module cards) --- */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--transition-fast);
}

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

.metric-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.metric-card__name {
  font-size: 12px;
  font-weight: 500;
  color: var(--graphite-200);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.metric-card__trend {
  font-size: 10px;
  font-weight: 500;
}

.metric-card__trend--up { color: var(--green-mid); }
.metric-card__trend--stable { color: var(--petroleum-lighter); }
.metric-card__trend--neutral { color: var(--graphite-400); }

.metric-card__bar {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 12px;
  overflow: hidden;
}

.metric-card__bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--petroleum), var(--petroleum-light));
  transition: width var(--transition-slow);
}

/* --- DIVIDER --- */
.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* --- IMAGE SYSTEM (RC1 ready — responsive, lazy, WebP/AVIF, loading priority) --- */

/* Hero background images — full-bleed, behind content */
.image-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--graphite-900);
}

.image-hero-bg img,
.image-hero-bg source {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Dark overlay gradient — ensures text legibility over any image */
.image-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,18,0.55) 0%, rgba(10,10,18,0.30) 40%, rgba(10,10,18,0.55) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10,10,18,0.15) 0%, rgba(10,10,18,0.60) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Legacy hero gradients — used as fallback when no image loaded */
.hero__bg,
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Content section images — within the reading flow */
.image-content {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--graphite-900);
  border: 1px solid var(--graphite-800);
  margin: 32px 0;
  position: relative;
  aspect-ratio: 16 / 9;
}

.image-content img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.image-content--loaded img {
  opacity: 1;
}

.image-content img:not([src]),
.image-content img[src=""] {
  opacity: 0;
}

/* Content image caption */
.image-caption {
  font-size: 12px;
  color: var(--graphite-500);
  margin-top: 8px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* Loading placeholder shimmer */
.image-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--graphite-900) 0%, var(--graphite-850) 50%, var(--graphite-900) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  z-index: 0;
}

.image-content img {
  position: relative;
  z-index: 1;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* No shimmer for loaded images */
.image-content--loaded::before {
  display: none;
}

/* Hero image — no shimmer, just overlay gradient */
.image-hero-bg::before {
  display: none;
}

/* --- DISCLAIMER BANNER --- */
.disclaimer-banner {
  padding: 12px 20px;
  background: rgba(39,174,96,0.04);
  border: 1px solid rgba(39,174,96,0.08);
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.disclaimer-banner p {
  font-size: 12px;
  color: var(--graphite-500);
  line-height: 1.6;
}

.disclaimer-banner strong {
  color: var(--graphite-300);
}

/* --- FOOTER (Refined) --- */
.footer {
  background: var(--graphite-900);
  padding: 56px 32px 36px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer__brand p {
  font-size: 12px;
  color: var(--graphite-500);
  margin-top: 10px;
  line-height: 1.6;
  max-width: 280px;
}

.footer__logo {
  height: 24px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.footer__logo:hover {
  opacity: 0.85;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer__links a {
  color: var(--graphite-500);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.footer__links a:hover {
  color: var(--white);
  background: var(--surface-hover);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 12px;
}

.footer__legal a {
  color: var(--graphite-500);
  font-size: 11.5px;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--graphite-300);
}

.footer__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 16px;
}

.footer__copy {
  font-size: 12px;
  color: var(--graphite-600);
  margin-bottom: 8px;
}

.footer__disclaimer {
  font-size: 10.5px;
  color: var(--graphite-600);
  max-width: 560px;
  line-height: 1.6;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--graphite-900);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner__text {
  font-size: 12px;
  color: var(--graphite-400);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 12px;
  text-align: center;
}

.cookie-banner button {
  display: block;
  margin: 0 auto;
}

/* --- RESPONSIVE (Refined) --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10,10,18,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 10px 14px;
    width: 100%;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    min-height: 75vh;
    padding: 80px 20px 40px;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero__content {
    text-align: left;
    padding: 24px 24px;
    margin-left: 0;
    max-width: 100%;
  }

  .hero__sub {
    margin: 0 0 28px 0;
  }

  .page-hero {
    min-height: 32vh;
    padding: 90px 20px 36px;
  }

  .section {
    padding: 56px 20px;
  }

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

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .section {
    padding: 64px 28px;
  }

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

@media (min-width: 1025px) {
  .section {
    padding: 88px 32px;
  }
}
