/* =========================================================
   FTH TRADING — RED SEA RESOURCES MASTER PLAYBOOK
   Institutional color palette + typography
   ========================================================= */

:root {
  --navy-900: #0A1F3D;
  --navy-800: #0F2A52;
  --navy-700: #16386A;
  --navy-600: #1E4682;
  --navy-100: #E8EEF7;
  --navy-050: #F4F7FC;

  --gold-700: #8B7328;
  --gold-600: #B39140;
  --gold-500: #C9A961;
  --gold-100: #F5EDD4;
  --gold-050: #FAF6E9;

  --crimson-700: #7A1E24;
  --crimson-600: #A02830;
  --crimson-500: #C93844;
  --crimson-100: #F7DEE0;
  --crimson-050: #FCEEEF;

  --emerald-700: #1B5E3A;
  --emerald-600: #22794A;
  --emerald-500: #2E9C60;
  --emerald-100: #D4EFDE;
  --emerald-050: #E9F7EE;

  --sky-700: #1A5578;
  --sky-600: #226E9C;
  --sky-500: #3090C3;
  --sky-100: #D6ECF7;
  --sky-050: #EBF5FB;

  --amber-600: #B57A18;
  --amber-500: #D69220;
  --amber-100: #F9E6B9;
  --amber-050: #FCF3D9;

  --slate-900: #0F1520;
  --slate-800: #1E2735;
  --slate-700: #384252;
  --slate-600: #55606F;
  --slate-500: #7A8494;
  --slate-400: #A3ABB8;
  --slate-300: #C9CFD8;
  --slate-200: #E1E5EB;
  --slate-100: #EEF1F4;
  --slate-050: #F7F8FA;

  --white: #FFFFFF;

  --font-serif: 'Georgia', 'Cambria', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Consolas', 'Menlo', 'Courier New', monospace;

  --sidebar-width: 260px;
  --content-max: 1080px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 61, 0.06), 0 1px 3px rgba(10, 31, 61, 0.04);
  --shadow-md: 0 4px 8px rgba(10, 31, 61, 0.08), 0 2px 4px rgba(10, 31, 61, 0.05);
  --shadow-lg: 0 12px 24px rgba(10, 31, 61, 0.10), 0 4px 8px rgba(10, 31, 61, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-800);
  background: var(--slate-050);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-700); text-decoration: none; border-bottom: 1px solid var(--navy-100); }
a:hover { color: var(--navy-900); border-bottom-color: var(--navy-700); }

/* =========================================================
   SIDEBAR
   ========================================================= */
#sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--navy-900);
  color: var(--slate-200);
  padding: 32px 24px;
  overflow-y: auto;
  z-index: 100;
}
#sidebar .brand {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#sidebar .brand-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-500);
}
#sidebar .brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--slate-100);
  letter-spacing: 4px;
  text-transform: uppercase;
}
#sidebar .brand-sub {
  font-size: 11px;
  color: var(--slate-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
}
#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#sidebar li {
  margin: 4px 0;
}
#sidebar a {
  display: block;
  padding: 8px 12px;
  color: var(--slate-300);
  font-size: 13px;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: all 0.15s ease;
}
#sidebar a:hover {
  color: var(--gold-500);
  border-left-color: var(--gold-500);
  background: rgba(255,255,255,0.03);
}
#sidebar .foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: var(--slate-500);
  line-height: 1.7;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
main {
  margin-left: var(--sidebar-width);
  padding: 48px 56px;
  max-width: calc(var(--content-max) + 112px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 56px 48px;
  border-radius: var(--radius);
  margin-bottom: 56px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-500) 0%, transparent 70%);
  opacity: 0.10;
}
.hero-tag {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 400;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 17px;
  color: var(--slate-200);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.pill.navy    { background: rgba(255,255,255,0.10); color: var(--slate-100); }
.pill.gold    { background: var(--gold-500);       color: var(--navy-900); }
.pill.emerald { background: var(--emerald-500);    color: var(--white); }
.pill.crimson { background: var(--crimson-500);    color: var(--white); }
.pill.sky     { background: var(--sky-500);        color: var(--white); }
.pill.amber   { background: var(--amber-500);      color: var(--navy-900); }

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  margin-bottom: 72px;
  scroll-margin-top: 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--slate-200);
}
.section-num {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--gold-500);
  font-weight: 400;
  line-height: 1;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--navy-900);
  margin: 0;
}
p.lead {
  font-size: 16px;
  color: var(--slate-700);
  max-width: 780px;
  margin-bottom: 28px;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--navy-500);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--navy-900);
  margin: 0 0 12px 0;
}
.card p { margin: 0 0 10px 0; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 8px 0 0 0; padding-left: 22px; }
.card ul li { margin-bottom: 6px; }

.card.navy-tint { background: var(--navy-050); border-left-color: var(--navy-700); }
.card.gold-tint { background: var(--gold-050); border-left-color: var(--gold-500); }
.card.emerald-tint { background: var(--emerald-050); border-left-color: var(--emerald-500); }
.card.crimson-tint { background: var(--crimson-050); border-left-color: var(--crimson-500); }
.card.sky-tint { background: var(--sky-050); border-left-color: var(--sky-500); }

.card-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.card-badge.gold    { background: var(--gold-500);    color: var(--navy-900); }
.card-badge.emerald { background: var(--emerald-500); color: var(--white); }
.card-badge.crimson { background: var(--crimson-500); color: var(--white); }
.card-badge.sky     { background: var(--sky-500);     color: var(--white); }

/* =========================================================
   GRIDS
   ========================================================= */
.grid { display: grid; gap: 20px; margin-bottom: 20px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 900px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}

/* =========================================================
   STAT CARDS
   ========================================================= */
.stat-card {
  background: var(--white);
  padding: 24px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--slate-400);
}
.stat-card.crimson { border-top-color: var(--crimson-500); }
.stat-card.gold    { border-top-color: var(--gold-500);    }
.stat-card.navy    { border-top-color: var(--navy-700);    }
.stat-card.emerald { border-top-color: var(--emerald-500); }
.stat-card.sky     { border-top-color: var(--sky-500);     }
.stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 6px;
}
.stat-note {
  font-size: 12px;
  color: var(--slate-600);
}

/* =========================================================
   CALLOUTS
   ========================================================= */
.callout {
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 20px 0;
  border-left: 4px solid;
  font-size: 14px;
}
.callout.navy    { background: var(--navy-050);    border-left-color: var(--navy-700);    color: var(--navy-900); }
.callout.gold    { background: var(--gold-050);    border-left-color: var(--gold-500);    color: var(--gold-700); }
.callout.emerald { background: var(--emerald-050); border-left-color: var(--emerald-500); color: var(--emerald-700); }
.callout.crimson { background: var(--crimson-050); border-left-color: var(--crimson-500); color: var(--crimson-700); }
.callout.amber   { background: var(--amber-050);   border-left-color: var(--amber-500);   color: var(--amber-600); }
.callout.sky     { background: var(--sky-050);     border-left-color: var(--sky-500);     color: var(--sky-700); }
.callout strong { color: inherit; }

/* =========================================================
   OPTION CARDS
   ========================================================= */
.option-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-left: 4px solid var(--slate-400);
}
.option-card.crimson { border-left-color: var(--crimson-500); }
.option-card.sky     { border-left-color: var(--sky-500); }
.option-card.emerald { border-left-color: var(--emerald-500); }
.option-card.gold    { border-left-color: var(--gold-500); }

.option-header {
  padding: 22px 28px 16px 28px;
  border-bottom: 1px solid var(--slate-100);
}
.option-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.option-tag.crimson { background: var(--crimson-100); color: var(--crimson-700); }
.option-tag.sky     { background: var(--sky-100);     color: var(--sky-700); }
.option-tag.emerald { background: var(--emerald-100); color: var(--emerald-700); }
.option-tag.gold    { background: var(--gold-100);    color: var(--gold-700); }
.option-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy-900);
  margin: 0;
}
.option-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 28px 26px 28px;
}
.option-body p { margin: 0 0 10px 0; }
@media (max-width: 900px) {
  .option-body { grid-template-columns: 1fr; }
}
.attr {
  font-size: 13px;
  color: var(--slate-700);
  padding: 6px 0;
  border-bottom: 1px dashed var(--slate-200);
}
.attr:last-child { border-bottom: none; }
.attr span {
  display: inline-block;
  min-width: 130px;
  font-weight: 600;
  color: var(--slate-500);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.attr-strong {
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: var(--slate-050);
}
.attr-strong.good { background: var(--emerald-050); color: var(--emerald-700); }
.attr-strong.bad  { background: var(--crimson-050); color: var(--crimson-700); }

/* =========================================================
   PLATFORM CARDS
   ========================================================= */
.platform-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.platform-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  color: var(--white);
}
.platform-head.bitgo      { background: linear-gradient(135deg, #0A1F3D 0%, #16386A 100%); }
.platform-head.centrifuge { background: linear-gradient(135deg, #2A2440 0%, #7C5DC7 100%); }
.platform-head.maple      { background: linear-gradient(135deg, #E9403A 0%, #B22A25 100%); }
.platform-head.goldfinch  { background: linear-gradient(135deg, #47A5A0 0%, #2B6E6A 100%); }
.platform-head.ondo       { background: linear-gradient(135deg, #1D4ED8 0%, #0F2A6E 100%); }
.platform-head.anchorage  { background: linear-gradient(135deg, #1E293B 0%, #475569 100%); }
.platform-head.fireblocks { background: linear-gradient(135deg, #F97316 0%, #B65413 100%); }
.platform-head.securitize { background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%); }

.platform-logo {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}
.platform-head h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 4px 0;
  color: var(--white);
}
.platform-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
}
.platform-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 26px 28px 30px 28px;
  font-size: 13px;
  line-height: 1.65;
}
.platform-body strong { color: var(--navy-900); display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.platform-body a { font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 1000px) {
  .platform-body { grid-template-columns: 1fr; }
}

/* =========================================================
   STACK CARDS
   ========================================================= */
.stack-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stack-header {
  padding: 22px 28px;
  color: var(--white);
}
.stack-header.stack-1 { background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%); }
.stack-header.stack-2 { background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-500) 100%); }
.stack-header.stack-3 { background: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-500) 100%); }
.stack-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}
.stack-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
  margin: 0;
}
.stack-body {
  padding: 8px 28px 20px 28px;
}
.stack-body table {
  width: 100%;
  border-collapse: collapse;
}
.stack-body th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 600;
  padding: 12px 16px 12px 0;
  border-bottom: 1px dashed var(--slate-200);
  width: 180px;
  vertical-align: top;
}
.stack-body td {
  font-size: 13px;
  color: var(--slate-800);
  padding: 12px 0;
  border-bottom: 1px dashed var(--slate-200);
}
.stack-body tr:last-child th, .stack-body tr:last-child td { border-bottom: none; }

/* =========================================================
   SCENARIO CARDS
   ========================================================= */
.scenario-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.scenario-header {
  padding: 14px 20px;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}
.scenario-header.conservative { background: var(--slate-700); }
.scenario-header.base { background: var(--navy-700); }
.scenario-header.aggressive { background: var(--gold-600); }
.scenario-amount {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--navy-900);
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid var(--slate-100);
}
.scenario-card ul {
  padding: 4px 24px;
  margin: 8px 0;
  list-style: none;
}
.scenario-card ul li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--slate-700);
  border-bottom: 1px dashed var(--slate-200);
}
.scenario-card ul li:last-child { border-bottom: none; }
.scenario-econ {
  padding: 16px 24px 20px 24px;
  background: var(--slate-050);
  font-size: 12px;
  color: var(--slate-700);
  line-height: 1.75;
}
.scenario-econ strong { color: var(--navy-900); }

/* =========================================================
   DOCS TABLE
   ========================================================= */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
}
.docs-table th {
  background: var(--navy-900);
  color: var(--slate-100);
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.docs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}
.docs-table tr:last-child td { border-bottom: none; }
.docs-table tr:hover { background: var(--navy-050); }
.docs-table a { font-family: var(--font-mono); font-size: 12px; }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 24px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gold-500);
}
.tl-item {
  position: relative;
  padding: 12px 0 20px 24px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold-500);
}
.tl-week {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 4px;
}
.tl-body {
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--slate-700);
}
.tl-body strong { color: var(--navy-900); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}
footer div { margin-bottom: 4px; }

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  #sidebar { display: none; }
  main { margin-left: 0; padding: 20px; }
  .hero { background: var(--navy-900) !important; -webkit-print-color-adjust: exact; color-adjust: exact; }
  section { page-break-inside: avoid; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  #sidebar { position: static; width: 100%; height: auto; padding: 20px; }
  main { margin-left: 0; padding: 24px 20px; }
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 34px; }
}
