/* LYCHEETAH FRAMEWORK — STYLESHEET
   Refused spectacle. Validated struggle.
   Design: alchemical geometry, not decoration. */

:root {
  --bg:           #0d0d0d;
  --bg-raised:    #131313;
  --bg-card:      #181818;
  --border:       #2a2a2a;
  --border-light: #333333;

  --gold:         #c9a227;
  --gold-dim:     #8b6914;
  --gold-glow:    rgba(201, 162, 39, 0.12);
  --gold-glow-sm: rgba(201, 162, 39, 0.06);

  --text:         #f0ece0;
  --text-dim:     #a09880;
  --text-muted:   #5c5646;

  --phase-black:  #333333;
  --phase-white:  #e8e4d8;
  --phase-gold:   #c9a227;
  --phase-red:    #b04444;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;

  --radius: 4px;
  --radius-lg: 8px;

  --transition: 180ms ease;
}

/* ============================================================
   RESET + BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--text);
  opacity: 0.9;
}

img { max-width: 100%; }

ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

p {
  color: var(--text-dim);
  max-width: 64ch;
}

p + p { margin-top: 1rem; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  color: var(--text-dim);
  line-height: 1.5;
}

code:not(pre code) {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15em 0.4em;
  color: var(--gold-dim);
}

strong { color: var(--text); font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 780px;
}

section {
  padding: 5rem 0;
}

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

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav__logo:hover { color: var(--text); }

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dim);
  font-size: 1.25rem;
  line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-glow-sm) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--gold);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

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

.btn--outline {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-light);
}

.btn--outline:hover {
  border-color: var(--gold-dim);
  color: var(--text);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: transparent;
  padding-left: 0;
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--transition);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   CARDS
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  position: relative;
  transition: background var(--transition);
}

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

.card__marker {
  width: 28px;
  height: 3px;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.card__marker--protector { background: #444; }
.card__marker--healer    { background: var(--gold); }
.card__marker--beacon    { background: var(--phase-red); }

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.card__body {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card__link {
  font-size: 0.8rem;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition), color var(--transition);
}

.card__link:hover {
  gap: 0.6rem;
  color: var(--text);
}

.card__link::after { content: '→'; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  margin-bottom: 3rem;
}

.section-header__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 0.95rem;
}

/* ============================================================
   AXIOM BLOCKS
   ============================================================ */

.axioms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.axiom {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.axiom--protector { border-left: 3px solid #444; }
.axiom--healer    { border-left: 3px solid var(--gold); }
.axiom--beacon    { border-left: 3px solid var(--phase-red); }

.axiom__glyph {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: block;
}

.axiom__name {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.axiom__quote {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.55;
}

/* ============================================================
   CODE BLOCKS (DEPLOYMENT)
   ============================================================ */

.deploy-block {
  margin: 1.5rem 0;
}

.deploy-block__label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* ============================================================
   PHASES
   ============================================================ */

.phases {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.phase {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
  transition: border-color var(--transition), background var(--transition);
}

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

.phase__label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  padding-top: 0.15rem;
}

.phase__number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.phase__desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================================
   CRISIS CALLOUT
   ============================================================ */

.crisis-callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--phase-red);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.crisis-callout__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phase-red);
  margin-bottom: 0.5rem;
}

.crisis-callout p {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: none;
}

.crisis-callout a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--gold-dim);
}

/* ============================================================
   LINKS LIST
   ============================================================ */

.link-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.link-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
}

.link-list__item:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card);
}

.link-list__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.link-list__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.link-list__arrow {
  color: var(--gold-dim);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.link-list__item:hover .link-list__arrow {
  transform: translateX(4px);
  color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__left {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__left strong {
  color: var(--text-dim);
  font-weight: 400;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--text-dim); }

.footer__sig {
  width: 100%;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  opacity: 0.5;
}

/* ============================================================
   PLATFORM TABS
   ============================================================ */

.platform-tabs {
  margin-top: 2rem;
}

.platform-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-tabs__nav::-webkit-scrollbar { display: none; }

.platform-tab-btn {
  background: none;
  border: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}

.platform-tab-btn:hover { color: var(--text-dim); }

.platform-tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.platform-tab-panel { display: none; }
.platform-tab-panel.active { display: block; }

/* ============================================================
   MANIFEST PREVIEW
   ============================================================ */

.manifest-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.manifest-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.manifest-preview__body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  overflow-x: auto;
}

/* ============================================================
   VERIFICATION SECTION
   ============================================================ */

.verify-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.verify-item {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.verify-item__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
}

.verify-item__prompt {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.verify-item__expected {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */

.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-header__tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1rem;
}

/* ============================================================
   STATUS BANNER & QUICK ACCESS
   ============================================================ */

.status-banner {
  padding: 3rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.status-banner h2 {
  margin-bottom: 2rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.status-item {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.status-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.status-value {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.status-detail {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.quick-access {
  padding: 3rem 0;
}

.quick-access h2 {
  margin-bottom: 2rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--gold);
  background: var(--bg-raised);
  transform: translateY(-2px);
}

.link-card__title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.link-card__desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .nav__links.open { display: flex; }

  .nav__toggle { display: flex; }

  .phase {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  section { padding: 3rem 0; }

  .hero { padding: 4rem 0 3rem; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .axioms { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
