/* ═══════════════════════════════════════════════
   JOULE LABS — Global Design System v09
   Dark Site. Zero Touch. Invisible by Design.
   ═══════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap");

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

:root {
  /* ── Fonts ── */
  --font-display: "Syne", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Surfaces ── */
  --bg-base: #0B1220;
  --bg-card: #0F1B2D;
  --bg-card-hover: #13243A;
  --bg-elevated: #0D1728;

  --bg-accent-dim: rgba(37, 99, 235, 0.10);
  --bg-accent-glow: rgba(37, 99, 235, 0.05);

  /* ── Borders ── */
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(37, 99, 235, 0.28);

  /* ── Text ── */
  --text-primary: #F5F7FF;
  --text-secondary: #D6DEEE;
  --text-muted: #9AA7BF;
  --text-accent: #2563EB;

  /* ── Accent ── */
  --accent: #2563EB;
  --accent-bright: #3B82F6;
  --accent-dim: rgba(37, 99, 235, 0.14);
  --accent-hover: #1D4ED8;

  /* ── Radius ── */
  --radius: 16px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* ── Type Scale ── */
  --step--1: clamp(12.5px, 0.25vw + 12px, 13.5px);
  --step-0:  clamp(15.5px, 0.30vw + 15px, 17px);
  --step-1:  clamp(17px, 0.45vw + 16px, 19px);
  --step-2:  clamp(20px, 0.85vw + 18px, 24px);
  --step-3:  clamp(26px, 1.45vw + 22px, 34px);
  --step-4:  clamp(34px, 2.25vw + 28px, 46px);
  --step-5:  clamp(42px, 3.10vw + 30px, 60px);

  --measure-body: 72ch;
  --measure-lead: 66ch;
}

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

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.70;
  overflow-x: hidden;
}

::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--text-primary);
}

/* ═══════════════ NAVIGATION ═══════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(11, 13, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--accent);
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: rgba(13, 23, 40, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 200;
}

/* Bridge gap so mouse can travel from trigger to menu */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: flex; }

.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary) !important;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s !important;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-accent-dim);
  color: var(--text-primary) !important;
}

.nav-dropdown-menu a::after { display: none !important; }

.nav-cta {
  font-weight: 500 !important;
  color: #fff !important;
  background: var(--accent);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: opacity 0.3s ease;
}

.nav-cta:hover { opacity: 0.88; }
.nav-cta.active::after { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 99;
  background: rgba(11, 13, 17, 0.97);
  backdrop-filter: blur(32px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow-y: auto;
  padding: 40px 24px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--text-primary); }

.mobile-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ═══════════════ LAYOUT ═══════════════ */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 112px 0;
  position: relative;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ═══════════════ BREADCRUMBS ═══════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--text-secondary); }

.breadcrumb-sep { opacity: 0.3; }
.breadcrumb-current { color: var(--text-secondary); }

/* ═══════════════ TYPOGRAPHY ═══════════════ */
h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h3 {
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

.body-lg {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

p, li { color: var(--text-secondary); }

.wrap p, .wrap li { max-width: var(--measure-body); }

a { color: var(--accent); }
a:hover { color: var(--accent-bright); }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ═══════════════ HERO — 2-Column ═══════════════ */
.hero {
  min-height: 100vh;
  padding: 160px 0 120px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.hero-sub em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc { max-width: 520px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* ═══════════════ SUBPAGE HERO ═══════════════ */
.page-hero {
  padding: 160px 0 80px;
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}

.page-hero-inner h1 { font-size: 52px; }

/* ═══════════════ BUTTONS ═══════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  width: fit-content;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--border-accent);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  width: fit-content;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-accent-dim);
}

.arrow-icon { width: 14px; height: 14px; }

/* ═══════════════ CARDS — 4-up Grid ═══════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s, background 0.3s;
}

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

.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═══════════════ CHECKLIST / DARK CARD ═══════════════ */
.dark-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-icon {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.checklist-icon svg {
  width: 12px; height: 12px;
  color: var(--accent);
}

/* ═══════════════ SPLIT SECTION ═══════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.split-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.split-list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.split-list-item:first-child { border-top: 1px solid var(--border); }

.split-list-item::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ═══════════════ TIER CARDS ═══════════════ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

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

.tier-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.tier-card:hover .tier-bar { opacity: 0.7; }

.tier-bar--sm { width: 20%; }
.tier-bar--md { width: 50%; }
.tier-bar--lg { width: 100%; }

.tier-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.tier-bays {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.tier-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═══════════════ STATEMENT (Full-width) ═══════════════ */
.statement-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.statement-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.statement-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.statement-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.statement-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 16px;
  color: var(--text-secondary);
}

.statement-bullet svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ═══════════════ METRICS ROW ═══════════════ */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-lbl {
  font-size: 15px;
  color: var(--text-muted);
}

/* ═══════════════ LOGO STRIP ═══════════════ */
.logo-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ═══════════════ LAYER STACK (Architecture) ═══════════════ */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layer-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: center;
  transition: border-color 0.3s;
}

.layer-item:hover { border-color: var(--border-hover); }

.layer-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.layer-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layer-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.layer-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ═══════════════ PRINCIPLE GRID ═══════════════ */
.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.principle-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 17px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.principle-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ═══════════════ STAKEHOLDER 3-COL ═══════════════ */
.stake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stake-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stake-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}

.stake-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stake-list span {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.stake-list span::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}

/* ═══════════════ SECTION BG VARIANTS ═══════════════ */
.bg-elevated { background: var(--bg-elevated); }

/* ═══════════════ CTA SECTION ═══════════════ */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.cta-card h2 { max-width: 640px; text-align: center; }

/* ═══════════════ FOOTER ═══════════════ */
footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-loc { font-size: 13px; color: var(--text-muted); }

.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 13px; color: var(--text-muted); }

.footer-marks { display: flex; gap: 20px; }
.footer-marks span { font-size: 11px; color: #3E4555; letter-spacing: 0.02em; }

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.r1 { transition-delay: 0.08s; }
.r2 { transition-delay: 0.16s; }
.r3 { transition-delay: 0.24s; }
.r4 { transition-delay: 0.32s; }
.r5 { transition-delay: 0.40s; }

/* ═══════════════ VIDEO HERO ═══════════════ */
.hero-video-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-video-bg video, .hero-video-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(11,13,17, 0.92) 0%, rgba(11,13,17, 0.78) 40%,
    rgba(11,13,17, 0.45) 70%, rgba(11,13,17, 0.25) 100%);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { grid-template-columns: 1fr !important; }
.hero-left { max-width: 640px; }
.hero-visual { display: none; }

.page-hero--ds { position: relative; overflow: hidden; }
.ds-video-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.ds-video-bg video, .ds-video-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.ds-video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11,13,17, 0.7) 0%, rgba(11,13,17, 0.55) 40%, rgba(11,13,17, 0.75) 100%);
  z-index: 1;
}
.page-hero--ds .wrap { position: relative; z-index: 2; }

.bg-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ═══════════════ IMAGE INTEGRATION ═══════════════ */
.hero-render { border-radius: var(--radius-lg); overflow: hidden; }
.hero-render img { width: 100%; display: block; }

.dash-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.dash-frame img { width: 100%; display: block; }

.os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.os-lists { display: flex; flex-direction: column; gap: 40px; }

.stack-diagram { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.stack-diagram img { width: 100%; display: block; }

.typo-diagram { border-radius: 10px; overflow: hidden; margin: 12px 0 8px; }
.typo-diagram img { width: 100%; display: block; }

.comparison-frame { border-radius: var(--radius-lg); overflow: hidden; margin-top: 24px; }
.comparison-frame img { width: 100%; display: block; }

.card-icon-svg {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.card:hover .card-icon-svg,
.dark-card:hover .card-icon-svg {
  background: rgba(37, 99, 235, 0.16);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.08);
}
.card-icon-svg svg { width: 22px; height: 22px; }

.stake-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; flex-shrink: 0;
}
.stake-icon svg { width: 24px; height: 24px; }

.metric-spark { margin-top: 14px; opacity: 0.4; }
.metric-spark svg { width: 100%; height: 28px; display: block; }

.aura-video-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 16px; position: relative;
}
.aura-video-frame video, .aura-video-frame img { width: 100%; display: block; }
.aura-video-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,13,17, 0.4) 100%);
  pointer-events: none;
}

/* ═══════════════ TWIN BOXES ═══════════════ */
.twin-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.twin-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.twin-box:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.twin-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.4;
}
.twin-box--right::before {
  background: linear-gradient(90deg, transparent, var(--accent));
}
.twin-box-tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}
.twin-box-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.twin-box-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.twin-box-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.twin-box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
  margin-top: auto;
}
.twin-box-link:hover { opacity: 0.75; color: var(--accent-bright); }
.twin-box-link svg { width: 14px; height: 14px; }

/* ═══════════════ APPLICATIONS GRID ═══════════════ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, background 0.3s;
  text-decoration: none;
}

.app-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.app-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--bg-accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon svg { width: 24px; height: 24px; }

.app-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.app-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════ BLOG INSIGHT CARDS ═══════════════ */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}

.insight-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.insight-cluster {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.insight-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.insight-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.insight-read {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
}

.insight-read svg { width: 14px; height: 14px; }

/* ═══════════════ PILLAR PAGE CONTENT ═══════════════ */
.pillar-body {
  max-width: 860px;
}

.pillar-body h2 {
  font-size: clamp(24px, 2vw + 18px, 32px);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pillar-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 72ch;
}

.pillar-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pillar-body ul li {
  font-size: 17px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.pillar-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.pillar-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pillar-aside {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}

.pillar-layout {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.pillar-aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-aside-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pillar-aside-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-aside-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.pillar-aside-links a:hover { color: var(--accent); }
.pillar-aside-links a::before {
  content: '→';
  font-size: 12px;
  opacity: 0.4;
}

/* Key takeaway box */
.pillar-callout {
  background: var(--bg-accent-dim);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
}

.pillar-callout p {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0;
}

/* Related reading section */
.related-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

/* ═══════════════ BLOG INDEX ═══════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.2s;
  overflow: hidden;
  position: relative;
}

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

.blog-card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,22,40,0.1) 0%, rgba(11,22,40,0.55) 100%);
}

.blog-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-cluster-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  width: fit-content;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.blog-card-keyword {
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
}

.blog-card-cta svg { width: 14px; height: 14px; }

.blog-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.blog-filter-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--bg-accent-dim);
}

/* ═══════════════ CONTACT / COMPANY PAGE ═══════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item-value {
  font-size: 17px;
  color: var(--text-primary);
}

.contact-item-value a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item-value a:hover { color: var(--accent); }

/* ═══════════════ COMPANY / ABOUT ═══════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.team-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.team-title {
  font-size: 14px;
  color: var(--accent);
}

.team-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  letter-spacing: -0.02em;
}

.value-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.value-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  nav { padding: 0 32px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .page-hero-inner h1 { font-size: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero { min-height: auto; padding-top: 140px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .tier-grid, .stake-grid, .card-grid--3 { grid-template-columns: 1fr 1fr; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .principle-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .pillar-layout { flex-direction: column; }
  .pillar-aside { width: 100%; position: static; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 72px 0; }
  .hero { padding: 120px 0 72px; }
  .page-hero { padding: 120px 0 56px; }
  .statement-section { padding: 80px 0; }
  .cta-section { padding: 80px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .hero-sub { font-size: 17px; }
  .page-hero-inner h1 { font-size: 34px; }
  .body-lg { font-size: 17px; }
  .metric-val { font-size: 32px; }
  .card-grid, .tier-grid, .stake-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .hero-visual { max-width: 300px; }
  .cta-card { padding: 48px 24px; }
  .dark-card { padding: 36px 28px; }
  footer .wrap { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .statement-bullets { flex-direction: column; align-items: center; }
  .btn-row { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .twin-boxes { grid-template-columns: 1fr; }
  .twin-box { padding: 32px 28px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero { min-height: 85vh; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  nav { padding: 0 20px; height: 64px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .page-hero-inner h1 { font-size: 28px; }
  .metric-val { font-size: 28px; }
  .tier-bays { font-size: 26px; }
  .layer-item { grid-template-columns: 1fr; gap: 4px; padding: 20px 24px; }
  .app-grid { grid-template-columns: 1fr; }
}

/* ── PDF Download Banner ─────────────────────────────── */
.pdf-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.pdf-download-bar-text {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pdf-download-bar-icon {
  width: 36px;
  height: 36px;
  background: rgba(37,99,235,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdf-download-bar-icon svg { width: 18px; height: 18px; stroke: var(--accent); }
.pdf-download-bar-label { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text-primary); line-height: 1.3; }
.pdf-download-bar-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.btn-download:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.btn-download svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
@media (max-width: 600px) {
  .pdf-download-bar { flex-direction: column; align-items: flex-start; }
  .btn-download { width: 100%; justify-content: center; }
}
