/* ==========================================================================
   XRVS — XR Venture Studio
   Dark, high-contrast manifesto theme
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --bg: #0b0b0b;
  --bg-elevated: #131210;
  --bg-card: #1a1814;
  --text: #d8d4cf;
  --text-muted: #807a72;
  --text-bright: #f0ece6;
  --accent: #C8922A;
  --accent-dim: #a67720;
  --border: #221f1a;
  --font-heading: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  --max-width: 900px;
  --max-width-wide: 1100px;
}

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

/* ---------- Base ---------- */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: 2.8rem; margin-bottom: 0.5em; }
h2 { font-size: 1.8rem; margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; margin-bottom: 0.5em; }

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--max-width-wide);
}

/* ---------- Header ---------- */
.site-header {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
}

.site-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-logo:hover {
  color: var(--text-bright);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text-bright);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  transition: background 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 10rem 0 8rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}

.section-dark {
  background: var(--bg-elevated);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.section-content {
  max-width: 700px;
}

.lead {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
}

/* ---------- Ecosystem Cards ---------- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.ecosystem-card:hover {
  border-color: var(--accent-dim);
}

.ecosystem-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.ecosystem-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.ecosystem-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0;
}

/* ---------- Positioning ---------- */
.positioning-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.positioning-heading {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

.positioning-list {
  list-style: none;
  padding: 0;
}

.positioning-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.5;
  padding-left: 1.25rem;
  position: relative;
}

.positioning-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.positioning-list-not li::before {
  content: "\2013";
  color: var(--text-muted);
}

/* ---------- Ventures ---------- */
.ventures-category {
  margin-bottom: 2.5rem;
}

.ventures-category:last-child {
  margin-bottom: 0;
}

.ventures-category-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.venture-item {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
  text-decoration: none;
}

a.venture-item:hover {
  border-color: var(--accent-dim);
}

.venture-stage {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
  background: rgba(200, 146, 42, 0.1);
  color: var(--accent);
  border: 1px solid rgba(200, 146, 42, 0.25);
}

.venture-stage.stage-1 { background: rgba(200, 146, 42, 0.08); }
.venture-stage.stage-2 { background: rgba(200, 146, 42, 0.12); }
.venture-stage.stage-3 { background: rgba(200, 146, 42, 0.16); }
.venture-stage.stage-4 { background: rgba(200, 146, 42, 0.20); }
.venture-stage.stage-5 { background: rgba(200, 146, 42, 0.25); }
.venture-stage.stage-6 { background: rgba(200, 146, 42, 0.30); }
.venture-stage.stage-7 { background: rgba(200, 146, 42, 0.35); }
.venture-stage.stage-8 { background: rgba(200, 146, 42, 0.40); }

/* ---------- Venture Detail Page ---------- */
.venture-header {
  padding: 2rem 0 0;
}

.venture-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.venture-back:hover {
  color: var(--accent);
}

.venture-header .venture-stage {
  margin-bottom: 1rem;
}

.venture-page-title {
  font-size: 2.4rem;
  margin-bottom: 0.25rem;
}

.venture-page-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.venture-page-desc {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 600px;
  line-height: 1.7;
}

.venture-page-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-phase {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.roadmap-phase:last-child {
  border-bottom: none;
}

.roadmap-horizon {
  padding-top: 0.2rem;
}

.roadmap-horizon-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
}

.roadmap-list {
  list-style: none;
  padding: 0;
}

.roadmap-list li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(34, 31, 26, 0.5);
}

.roadmap-list li:last-child {
  border-bottom: none;
}

.roadmap-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.venture-instrument-ref {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.venture-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.venture-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- CTA ---------- */
.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ---------- Contact Form ---------- */
.contact-form {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

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

.contact-form textarea {
  margin-bottom: 1.5rem;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

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

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

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Page Layout ---------- */
.page {
  padding: 4rem 0 6rem;
}

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

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.page-content h2 {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 6rem 0 5rem;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .section {
    padding: 4rem 0;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ventures-grid {
    grid-template-columns: 1fr;
  }

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

  .venture-page-title {
    font-size: 1.8rem;
  }

  .positioning-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 11, 11, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-title {
    font-size: 1.6rem;
  }
}

/* ---------- Mobile nav toggle script inline ---------- */
/* JS is added at end of baseof.html for nav toggle */
