/* ============================================================
   EPS & SALES — Design System
   Palette: Copper & Slate
   Typography: Bricolage Grotesque + Source Serif 4 + JetBrains Mono
   ============================================================ */

:root {
  --copper:       #B87333;
  --copper-light: #D4A574;
  --copper-pale:  #F0D9C0;
  --slate-dark:   #1E2A35;
  --slate:        #2F3640;
  --slate-mid:    #4A5568;
  --slate-light:  #8896A5;
  --cream:        #F5F0EB;
  --cream-dark:   #EDE5DA;
  --white:        #FFFFFF;
  --pos:          #1A56DB;
  --neg:          #E02424;
  --neutral:      #6B7280;

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Source Serif 4', serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-copper: 0 4px 24px rgba(184,115,51,0.25);

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--slate-dark);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(47,54,64,0.08);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--slate);
}

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

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,240,235,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,115,51,0.15);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--slate-dark);
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  color: var(--copper);
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-mid);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover {
  color: var(--slate-dark);
  background: rgba(47,54,64,0.06);
}
.nav-cta {
  background: var(--slate-dark) !important;
  color: var(--cream) !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--copper) !important;
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  z-index: 99;
  padding: 1rem 2rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--slate-mid);
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover { color: var(--slate-dark); background: rgba(47,54,64,0.06); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--copper);
  color: var(--white);
  box-shadow: var(--shadow-copper);
}
.btn-primary:hover {
  background: #9E6228;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184,115,51,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--slate-dark);
  border: 1.5px solid rgba(47,54,64,0.25);
}
.btn-ghost:hover {
  background: rgba(47,54,64,0.06);
  border-color: rgba(47,54,64,0.4);
  transform: translateY(-1px);
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-mid);
  background: rgba(47,54,64,0.06);
  border: 1px solid rgba(47,54,64,0.15);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.btn-copy:hover {
  background: var(--slate-dark);
  color: var(--cream);
  border-color: var(--slate-dark);
}
.btn-copy.copied {
  background: #166534;
  color: white;
  border-color: #166534;
}

/* ── SECTION SHARED ── */
.section {
  padding: 6rem 0;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(184,115,51,0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--slate-dark);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--slate-mid);
  line-height: 1.7;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,115,51,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,115,51,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -2;
}
.hero-bg-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,115,51,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-mid);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--slate-dark);
}
.hero-title em {
  font-style: normal;
  color: var(--copper);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--copper-light);
  border-radius: 2px;
  opacity: 0.5;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--slate-mid);
  line-height: 1.75;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-dark);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--cream-dark);
}

/* ── HERO TABLE PREVIEW ── */
.hero-table-preview {
  position: relative;
}
.preview-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.75rem;
}
.mock-table {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.mock-table-header {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.7fr 1.1fr 0.7fr 0.7fr;
  background: var(--slate-dark);
  color: var(--cream);
  padding: 0.6rem 1rem;
  gap: 0.5rem;
  font-weight: 500;
}
.mock-table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.7fr 1.1fr 0.7fr 0.7fr;
  padding: 0.45rem 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background var(--transition);
}
.mock-table-row:hover { background: rgba(184,115,51,0.04); }
.mock-table-row.est { background: rgba(184,115,51,0.08); font-style: italic; }
.mock-table-row.odd { background: rgba(229,234,243,0.6); }
.mock-table-row.even { background: var(--white); }
.mock-table-row .pos { color: var(--pos); font-weight: 600; }
.mock-table-row .neg { color: var(--neg); font-weight: 600; }
.mock-table-row .neutral { color: var(--neutral); }

/* ── FEATURES ── */
.features { background: var(--slate-dark); }
.features .section-header h2 { color: var(--cream); }
.features .section-header p { color: var(--slate-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(184,115,51,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--slate-light);
  line-height: 1.65;
}
.feature-card strong { color: var(--copper-light); font-weight: 600; }
.feature-card code {
  background: rgba(255,255,255,0.08);
  color: var(--copper-light);
}

/* ── PARAMETERS ── */
.parameters { background: var(--cream); }
.param-groups { display: flex; flex-direction: column; gap: 1rem; }
.param-group {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.param-group:hover { box-shadow: var(--shadow-md); }
.param-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  cursor: pointer;
  transition: background var(--transition);
  gap: 1rem;
}
.param-group-header:hover { background: rgba(184,115,51,0.04); }
.param-group-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-dark);
  letter-spacing: -0.02em;
}
.param-group-icon { font-size: 1.2rem; }
.param-group-count {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-light);
  background: rgba(47,54,64,0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-left: auto;
}
.param-chevron {
  font-size: 1.1rem;
  color: var(--slate-light);
  transition: transform var(--transition);
}
.param-group-header[aria-expanded="true"] .param-chevron {
  transform: rotate(180deg);
}
.param-group-body {
  border-top: 1px solid var(--cream-dark);
  overflow-x: auto;
}
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.param-table thead tr {
  background: rgba(47,54,64,0.04);
}
.param-table th {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  padding: 0.75rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}
.param-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--slate-mid);
  line-height: 1.55;
  vertical-align: top;
}
.param-table tr:last-child td { border-bottom: none; }
.param-table tr:hover td { background: rgba(184,115,51,0.03); }
.param-table td:first-child code {
  font-size: 0.8rem;
  background: rgba(47,54,64,0.07);
  color: var(--slate-dark);
  font-weight: 500;
  white-space: nowrap;
}
.type-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.type-badge.bool   { background: rgba(34,197,94,0.12);  color: #166534; }
.type-badge.string { background: rgba(59,130,246,0.12); color: #1e40af; }
.type-badge.color  { background: rgba(168,85,247,0.12); color: #6b21a8; }
.type-badge.int    { background: rgba(245,158,11,0.12); color: #92400e; }
.default-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-mid);
  white-space: nowrap;
}

/* ── TABLES SECTION ── */
.tables { background: var(--cream-dark); }
.layout-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: var(--white);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.layout-tab {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-mid);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}
.layout-tab.active {
  background: var(--slate-dark);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.layout-tab:not(.active):hover {
  background: rgba(47,54,64,0.06);
  color: var(--slate-dark);
}
.layout-content { animation: fadeIn 0.3s ease; }
.layout-content.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.layout-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-dark);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}
.layout-info p {
  color: var(--slate-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.layout-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.layout-features li {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--slate-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Demo Tables */
.demo-table {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.demo-header-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.7fr 1.1fr 0.7fr 0.7fr;
  background: var(--slate-dark);
  color: var(--cream);
  padding: 0.6rem 1rem;
  gap: 0.5rem;
  font-weight: 500;
}
.demo-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.7fr 1.1fr 0.7fr 0.7fr;
  padding: 0.45rem 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.demo-row.est-row { background: rgba(184,115,51,0.08); font-style: italic; }
.demo-row.odd-row { background: rgba(229,234,243,0.7); }
.demo-row.even-row { background: var(--white); }
.demo-row .pos { color: var(--pos); font-weight: 600; }
.demo-row .neg { color: var(--neg); font-weight: 600; }
.demo-row .neutral { color: var(--neutral); }

/* HeadBand Demo */
.headband-demo { font-size: 0.68rem; }
.hb-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 0.6fr;
  background: var(--slate-dark);
  color: var(--cream);
  padding: 0.6rem 0.75rem;
  gap: 0.5rem;
}
.hb-date { font-size: 0.65rem; font-weight: 500; }
.hb-col-label { display: flex; align-items: center; }
.hb-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 0.6fr;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(229,234,243,0.5);
  align-items: center;
}
.hb-cell {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.hb-cell .vs { color: var(--slate-light); font-size: 0.62rem; }
.hb-cell .pos { color: var(--pos); font-weight: 600; }
.hb-cell .neg { color: var(--neg); font-weight: 600; }
.hb-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-mid);
}

/* ── ARROWS SECTION ── */
.arrows-section { background: var(--white); }
.arrows-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Chart Demo */
.arrow-demo-chart {
  background: #1a1f2e;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  position: relative;
}
.bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, #3a7bd5, #5a9bf5);
  opacity: 0.7;
  transition: opacity var(--transition);
}
.bar:hover { opacity: 1; }
.b1  { height: 55%; }
.b2  { height: 62%; }
.b3  { height: 58%; }
.b4  { height: 70%; }
.b5  { height: 65%; }
.b6  { height: 72%; }
.b7  { height: 68%; }
.b8  { height: 85%; }
.b9  { height: 78%; }
.b10 { height: 82%; }
.b11 { height: 75%; }
.b12 { height: 60%; }
.b13 { height: 68%; }
.b14 { height: 74%; }
.earn-bar { position: relative; opacity: 1; background: linear-gradient(to top, #4a8be5, #6aaff5); }
.earn-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}
.earn-title {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: rgba(255,255,255,0.6);
}
.earn-pct {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
}
.earn-pct.pos { color: #60a5fa; }
.earn-pct.neg { color: #f87171; }
.earn-arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
}
.earn-arrow.neg-arrow { color: #f87171; }

/* Option Cards */
.arrows-options h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-dark);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.option-cards { display: flex; flex-direction: column; gap: 0.85rem; }
.option-card {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: all var(--transition);
}
.option-card:hover {
  border-color: var(--copper-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.option-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.option-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-dark);
}
.badge-default {
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(184,115,51,0.15);
  color: var(--copper);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  font-family: var(--font-display);
}
.option-card p {
  font-size: 0.83rem;
  color: var(--slate-mid);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.option-example code {
  font-size: 0.78rem;
  background: var(--slate-dark);
  color: var(--copper-light);
  padding: 0.25rem 0.6rem;
}

/* ── METHODOLOGY ── */
.methodology { background: var(--cream-dark); }
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.method-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.method-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(184,115,51,0.2);
}
.method-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--copper-pale);
}
.method-card p {
  font-size: 0.875rem;
  color: var(--slate-mid);
  line-height: 1.7;
}
.method-card strong { color: var(--slate-dark); font-weight: 600; }
.method-card code {
  font-size: 0.78rem;
  background: rgba(47,54,64,0.07);
  color: var(--slate-dark);
}

/* ── SOURCE CODE ── */
.source-section { background: var(--slate-dark); }
.source-section .section-header h2 { color: var(--cream); }
.source-section .section-header p { color: var(--slate-light); }
.source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.source-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.source-lang, .source-lines, .source-author {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-light);
}
.source-lang {
  color: var(--copper-light);
  background: rgba(184,115,51,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.source-code-wrap {
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  max-height: 520px;
  overflow-y: auto;
}
.source-code-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
.source-code-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
.source-code-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.source-code {
  margin: 0;
  padding: 1.5rem;
  background: #0d1117;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #c9d1d9;
  tab-size: 4;
}
/* Pine Script syntax highlighting */
.pine-keyword   { color: #ff7b72; }
.pine-function  { color: #d2a8ff; }
.pine-string    { color: #a5d6ff; }
.pine-number    { color: #79c0ff; }
.pine-comment   { color: #8b949e; font-style: italic; }
.pine-builtin   { color: #ffa657; }
.pine-operator  { color: #ff7b72; }
.pine-variable  { color: #c9d1d9; }
.pine-type      { color: #7ee787; }

/* ── FOOTER ── */
.footer {
  background: #141920;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--slate-light);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--copper-light); }
.footer-credit {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--slate-light);
}
.footer-credit strong { color: var(--copper-light); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 3rem; min-height: auto; padding-top: 7rem; }
  .hero-table-preview { max-width: 600px; }
  .layout-split { grid-template-columns: 1fr; gap: 2rem; }
  .arrows-split { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }
  .section { padding: 4rem 0; }
  .mock-table-header,
  .mock-table-row { font-size: 0.62rem; padding: 0.4rem 0.6rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .param-table { font-size: 0.8rem; }
  .param-table th, .param-table td { padding: 0.65rem 0.85rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero { padding: 6rem 1.25rem 3rem; }
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .layout-tabs { width: 100%; }
  .layout-tab { flex: 1; text-align: center; }
}