/* the-last-platform.com — shared site styles
   Single source of truth for nav, footer, components across all pages.
   Linked from /, /what, /how-to-use, /how-it-works, /status. */

:root {
  --bg: #0A0A0A;
  --bg-raised: #1A1A1A;
  --bg-sunken: #060606;
  --panel: #0E1316;
  --accent: #6FC3DF;
  --accent-light: #9DD9EE;
  --accent-glow: rgba(111, 195, 223, 0.08);
  --text: #E0E0E0;
  --text2: #888;
  --text3: #555;
  --shipped: #4caf50;
  --progress: #f5a623;
  --drafting: #888;
  --notyet: #555;
  --danger: #C0392B;
}

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

html { font-size: 17px; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

/* ========== NAV ========== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #000; border-bottom: 1px solid #1A1A1A;
  padding: 12px 24px;
}
nav .nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
nav .brand {
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  text-decoration: none;
}
nav .links { display: flex; gap: 1.6rem; align-items: center; }
nav .links a {
  color: var(--text); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.18s;
}
nav .links a:hover, nav .links a.active { color: var(--accent); }
nav .links a.cta-link {
  color: var(--accent); border: 1px solid rgba(111,195,223,0.4);
  padding: 4px 12px; border-radius: 999px; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
nav .links a.cta-link:hover { background: rgba(111,195,223,0.08); }
nav .nav-toggle {
  display: none; background: none;
  border: 1px solid rgba(111,195,223,0.3);
  border-radius: 4px;
  color: var(--accent);
  font-size: 1.3rem;
  padding: 4px 10px;
  cursor: pointer;
}

/* ========== HERO + PAGE HEADER ========== */
.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 80px 24px 50px; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 540px; height: 540px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: 64px; font-weight: 800; letter-spacing: 8px;
  color: var(--accent); line-height: 1; margin-bottom: 24px; position: relative;
}
.hero .sub-mark {
  color: var(--text); font-size: 14px; letter-spacing: 6px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 26px; position: relative;
}
.hero .sub-mark .dot { color: var(--accent); }
.hero .line { width: 60px; height: 1px; background: var(--accent); margin: 0 auto 28px; position: relative; }
.hero .pitch {
  font-size: 20px; line-height: 1.7; color: var(--text);
  max-width: 640px; font-weight: 300; position: relative;
}
.hero .pitch strong { color: var(--accent); font-weight: 600; }
.hero .scroll-hint { margin-top: 40px; color: var(--text3); font-size: 20px; animation: pulse 2s ease-in-out infinite; position: relative; }
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(6px); }
}

.page-header {
  padding: 70px 24px 40px; text-align: center;
  border-bottom: 1px solid #141414;
}
.page-header .label { font-size: 11px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.page-header h1 {
  font-size: 36px; color: var(--accent);
  letter-spacing: 4px; font-weight: 800; line-height: 1.15;
  text-transform: uppercase;
}
.page-header .lede {
  margin-top: 18px; font-size: 16px; color: #BBB;
  max-width: 640px; margin-left: auto; margin-right: auto;
  line-height: 1.7; font-weight: 300;
}
.page-header .lede strong { color: var(--accent); font-weight: 600; }

/* ========== HOME -- THREE DOORS ========== */
.three-doors {
  max-width: 800px; margin: 60px auto;
  padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #141414; border: 1px solid #141414;
}
.door {
  display: block; background: var(--bg);
  padding: 26px 22px; text-decoration: none; color: inherit;
  transition: background 0.18s, transform 0.18s;
}
.door:hover { background: rgba(111,195,223,0.04); transform: translateY(-1px); }
.door .door-label { font-size: 10px; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.door .door-title { font-size: 17px; color: var(--text); font-weight: 700; margin-bottom: 6px; }
.door .door-desc { color: var(--text2); font-size: 13px; line-height: 1.6; font-weight: 300; }

/* ========== HOME -- STATUS STRIP ========== */
.status-strip {
  text-align: center; padding: 40px 24px;
  border-top: 1px solid #141414; border-bottom: 1px solid #141414;
  background: linear-gradient(180deg, var(--bg), #0B0F12, var(--bg));
}
.status-strip a {
  color: var(--accent); text-decoration: none;
  font-size: 14px; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(111,195,223,0.4);
  padding-bottom: 2px;
}
.status-strip a:hover { border-bottom-color: var(--accent); }
.status-strip a .arrow { margin-left: 0.4rem; }

/* ========== STATEMENT / SECTION COMMON ========== */
.statement, .section {
  padding: 50px 24px; text-align: center;
  max-width: 720px; margin: 0 auto;
}
.statement h2, .section h2 {
  font-size: 13px; color: var(--accent);
  letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 22px; font-weight: 600;
}
.statement p, .section p { font-size: 16px; line-height: 1.8; color: #BBB; font-weight: 300; }
.statement p + p, .section p + p { margin-top: 14px; }
.statement .emphasis, .section .emphasis { font-size: 22px; color: var(--text); font-weight: 600; line-height: 1.45; letter-spacing: 0.2px; }
.statement ul, .section ul { list-style: none; padding: 0; margin-top: 20px; text-align: left; max-width: 580px; margin-left: auto; margin-right: auto; }
.statement li, .section li { padding: 11px 0; border-bottom: 1px solid #141414; font-size: 15px; color: #BBB; line-height: 1.65; font-weight: 300; }
.statement li:last-child, .section li:last-child { border-bottom: none; }
.statement li strong, .section li strong { color: var(--accent); font-weight: 600; }

.div-line { width: 1px; height: 50px; background: linear-gradient(180deg, transparent, var(--accent), transparent); margin: 0 auto; }

/* ========== SOVEREIGNTY ========== */
.sovereignty {
  padding: 60px 24px; text-align: center;
  background: linear-gradient(180deg, var(--bg), #060B0E, var(--bg));
}
.sovereignty .label { font-size: 11px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.sovereignty h2 { font-size: 30px; color: var(--accent); letter-spacing: 3px; font-weight: 800; margin-bottom: 18px; }
.sovereignty p { font-size: 16px; color: #BBB; max-width: 600px; margin: 0 auto; line-height: 1.7; font-weight: 300; }
.sovereignty p + p { margin-top: 12px; }
.sovereignty .own { margin-top: 28px; font-size: 14px; color: var(--accent); letter-spacing: 6px; text-transform: uppercase; font-weight: 700; }

/* ========== BASICI / NAMES GRID ========== */
.names-grid, .basici-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: #141414; border: 1px solid #141414;
  max-width: 760px; margin: 0 auto;
}
.bi-cell, .name-cell { background: var(--bg); padding: 24px 22px; text-align: left; }
.bi-name, .name-cell h3 { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.3px; }
.bi-desc, .name-cell p { color: var(--text2); font-size: 13px; line-height: 1.7; font-weight: 300; }
.bi-desc strong, .name-cell p strong { color: var(--accent); font-weight: 600; }

/* ========== CHAIN RIBBON ========== */
.chain {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 28px auto 0; max-width: 800px; flex-wrap: wrap;
}
.chain .step {
  background: var(--panel); border: 1px solid #1a2024; border-radius: 999px;
  padding: 8px 16px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); font-weight: 600;
}
.chain .step.accent { color: var(--accent); border-color: var(--accent); }
.chain .arrow { color: var(--text3); font-size: 14px; }

/* ========== CONVO / INDUSTRY PANELS ========== */
.convo {
  max-width: 760px; margin: 28px auto 0;
  background: #0E1316; border: 1px solid #1a2024; border-radius: 10px;
  text-align: left; overflow: hidden;
}
.convo .row { padding: 16px 20px; border-bottom: 1px solid #161b1f; }
.convo .row:last-child { border-bottom: none; }
.convo .role {
  display: inline-block;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: var(--accent); margin-bottom: 6px;
}
.convo .role .nous { color: var(--accent); }
.convo .speak { color: #ddd; font-size: 15px; line-height: 1.65; font-weight: 300; }
.convo .speak em { color: var(--accent); font-style: normal; font-weight: 500; }
.convo .meta {
  color: var(--text2); font-size: 13px; line-height: 1.75; font-weight: 300;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.convo .meta .k { color: var(--accent); }
.convo .meta .row-line { display: flex; gap: 8px; }
.convo .meta .row-line .k { min-width: 5.5rem; }

/* ========== TAB SWITCHER (manifest band + getting-started + how-to-use) ========== */
.tab-bar, .gs-tab-bar {
  display: flex; background: #0a0d10; border-bottom: 1px solid #1a2024;
  overflow-x: auto;
}
.tab-btn, .gs-tab-btn {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: none; color: var(--text2);
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 14px 14px; cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab-btn:hover, .gs-tab-btn:hover { color: var(--text); }
.tab-btn.active, .gs-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(111, 195, 223, 0.04);
}
.tab-pane, .gs-tab-pane { display: none; }
.tab-pane.active, .gs-tab-pane.active { display: block; }

/* ========== HOW-IT-WORKS SUBSECTIONS (anchored) ========== */
.subsection {
  padding: 50px 24px; max-width: 800px; margin: 0 auto;
  border-bottom: 1px solid #141414;
}
.subsection:last-of-type { border-bottom: none; }
.subsection .label { font-size: 11px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.subsection h2 {
  font-size: 26px; color: var(--accent); letter-spacing: 2px; font-weight: 800;
  line-height: 1.2; margin-bottom: 16px;
}
.subsection h2 a { color: var(--text3); text-decoration: none; font-size: 16px; margin-left: 0.5rem; }
.subsection h2 a:hover { color: var(--accent); }
.subsection p { color: #BBB; font-size: 15px; line-height: 1.75; font-weight: 300; margin-bottom: 0.85rem; }
.subsection p strong { color: var(--accent); font-weight: 600; }
.subsection ul { list-style: none; padding: 0; margin: 1rem 0; }
.subsection li {
  padding: 8px 0 8px 20px; position: relative;
  color: #BBB; font-size: 14px; line-height: 1.65; font-weight: 300;
}
.subsection li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.subsection li strong { color: var(--accent); font-weight: 600; }

/* ========== CAPABILITY LEDGER (status page) ========== */
.ledger-section { padding: 50px 24px; max-width: 800px; margin: 0 auto; }
.ledger-section h2 {
  font-size: 13px; color: var(--accent); letter-spacing: 4px;
  text-transform: uppercase; text-align: center; margin-bottom: 24px; font-weight: 600;
}
.ledger { width: 100%; border-collapse: collapse; border-top: 1px solid #141414; font-size: 14px; }
.ledger th, .ledger td { text-align: left; padding: 14px 8px; border-bottom: 1px solid #141414; vertical-align: top; }
.ledger th { color: var(--text3); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.ledger td.cap { color: var(--text); font-weight: 500; min-width: 12rem; }
.ledger td.note { color: var(--text2); font-size: 13px; line-height: 1.6; font-weight: 300; }
.badge {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap;
}
.badge.shipped { color: var(--shipped); }
.badge.progress { color: var(--progress); }
.badge.drafting { color: var(--drafting); }
.badge.notyet { color: var(--notyet); }

/* ========== HONEST NOTE CALLOUT (recurring) ========== */
.honest-note {
  max-width: 640px; margin: 1.5rem auto;
  padding: 14px 20px;
  background: rgba(245, 166, 35, 0.05);
  border-left: 2px solid var(--progress);
  text-align: left;
}
.honest-note .label {
  display: block; color: var(--progress);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 6px;
}
.honest-note p {
  color: #ccc; font-size: 15px; line-height: 1.65; font-weight: 300;
  margin: 0;
}
.honest-note p + p { margin-top: 0.6rem; }
.honest-note p strong { color: var(--progress); font-weight: 600; }

/* ========== CLOSER BAND ========== */
.closer-band {
  padding: 70px 24px; text-align: center;
  background: linear-gradient(180deg, var(--bg), #0A0E11, var(--bg));
}
.closer-band .label { font-size: 11px; color: var(--text3); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.closer-band h2 {
  font-size: 28px; color: var(--accent);
  letter-spacing: 4px; font-weight: 800; margin-bottom: 24px; line-height: 1.15;
}
.closer-band p {
  font-size: 16px; color: #DDD; max-width: 620px;
  margin: 0 auto 14px; line-height: 1.7; font-weight: 300;
}
.closer-band p strong { color: var(--accent); font-weight: 700; }
.closer-band p em { color: var(--text); font-style: normal; font-weight: 600; }

/* ========== FOOTER + QR + SHARE ========== */
footer {
  text-align: center; padding: 36px 24px 80px;
  border-top: 1px solid #141414;
  background: #000;
}
footer .footer-cta {
  margin-bottom: 28px;
}
footer .footer-cta a.mailto {
  display: inline-block; color: var(--accent);
  border: 1px solid rgba(111,195,223,0.4);
  padding: 10px 22px; border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.08em;
  transition: background 0.18s;
}
footer .footer-cta a.mailto:hover { background: rgba(111,195,223,0.08); }
footer .footer-cta button.share-btn {
  margin-left: 0.75rem;
  background: transparent; color: var(--accent);
  border: 1px solid rgba(111,195,223,0.4);
  padding: 10px 22px; border-radius: 999px;
  font-family: inherit; font-size: 0.85rem; letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s;
}
footer .footer-cta button.share-btn:hover { background: rgba(111,195,223,0.08); }
footer .footer-cta button.share-btn[hidden] { display: none; }
footer .qr-share {
  display: inline-block; margin: 0 auto 28px;
  padding: 1.2rem; background: var(--bg-raised);
  border-radius: 8px; text-align: center;
}
footer .qr-share .qr-label {
  font-size: 0.72rem; color: var(--accent);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.6rem;
}
footer .qr-share img {
  width: 160px; height: 160px;
  image-rendering: pixelated;
  border-radius: 4px;
  display: block; margin: 0 auto;
}
footer .qr-share .qr-url {
  font-size: 0.72rem; color: var(--text2);
  margin-top: 0.5rem; letter-spacing: 0.03em;
}
footer .mark { color: var(--accent); font-size: 11px; letter-spacing: 4px; font-weight: 700; text-transform: uppercase; }
footer .own-line { color: var(--text2); font-size: 12px; margin-top: 12px; line-height: 1.7; font-weight: 400; }
footer .own-line .future { color: var(--text3); }
footer .powered { color: var(--text3); font-size: 11px; margin-top: 8px; letter-spacing: 1.5px; text-transform: uppercase; }
footer .powered a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted #2a4a55; }
footer .powered a:hover { border-bottom-style: solid; }
footer .rev { color: var(--text3); font-size: 11px; margin-top: 12px; }

/* ========== FOOTER DISCLAIMER LIST (for status page or footer-level disclosures) ========== */
footer .disclaimer, .disclaimer-list {
  list-style: none; padding: 0; margin: 0.8rem auto;
  max-width: 600px; text-align: left;
  font-size: 0.78rem; color: rgba(232,232,232,0.4);
}
footer .disclaimer li, .disclaimer-list li {
  padding: 0.2rem 0 0.2rem 1rem; position: relative;
  line-height: 1.55;
}
footer .disclaimer li::before, .disclaimer-list li::before {
  content: '\2022'; position: absolute; left: 0;
}

/* ========== BACK-TO-TOP BUTTON ========== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--accent); color: #000;
  border: none; border-radius: 50%;
  font-size: 1.2rem; font-weight: 900;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 99;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent-light); transform: scale(1.1); }

/* ========== INLINE CODE ========== */
code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em; color: var(--accent);
  background: rgba(111, 195, 223, 0.07);
  padding: 1px 6px; border-radius: 3px;
  white-space: nowrap;
}

/* ========== RESPONSIVE -- TABLET ========== */
@media (max-width: 768px) {
  nav { padding: 0.5rem 0.8rem; }
  nav .nav-toggle { display: block; }
  nav .nav-inner { flex-wrap: wrap; }
  nav .links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.5rem;
  }
  nav.open .links { display: flex; }
  nav .links a {
    font-size: 0.9rem; padding: 0.7rem 0;
    border-bottom: 1px solid #1a1a1a;
    width: 100%; text-align: center;
  }
  nav .links a.cta-link {
    border: 1px solid rgba(111,195,223,0.4);
    margin-top: 0.5rem; padding: 8px 22px; max-width: 200px; align-self: center;
  }
  .three-doors { grid-template-columns: 1fr; }
  .names-grid, .basici-grid { grid-template-columns: 1fr; }
}

/* ========== RESPONSIVE -- MOBILE ========== */
@media (max-width: 600px) {
  .hero h1 { font-size: 38px; letter-spacing: 4px; }
  .hero .sub-mark { font-size: 12px; letter-spacing: 4px; }
  .hero .pitch { font-size: 17px; }
  .hero { padding: 60px 24px 40px; }
  .page-header h1 { font-size: 26px; letter-spacing: 2px; }
  .sovereignty h2 { font-size: 22px; }
  .closer-band h2 { font-size: 22px; letter-spacing: 2px; }
  .convo .row { padding: 14px 16px; }
  .convo .speak { font-size: 14px; }
  .convo .meta { font-size: 12px; }
  .ledger th, .ledger td { padding: 10px 4px; font-size: 13px; }
  .ledger td.cap { min-width: 8rem; }
  .ledger td.note { font-size: 12px; }
  .statement .emphasis, .section .emphasis { font-size: 19px; }
  .subsection h2 { font-size: 22px; letter-spacing: 1.5px; }
  .back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1rem; }
  footer .qr-share { padding: 1rem; }
  footer .qr-share img { width: 140px; height: 140px; }
}
