/* ============================================================
   TenStreamsLab — Main Stylesheet
   Dark near-black + warm gold. Mobile-first. Zero bloat.
   ============================================================ */

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

:root {
  --bg:          #080808;
  --bg-card:     #101010;
  --bg-raised:   #141414;
  --border:      rgba(232, 200, 122, 0.12);
  --border-soft: rgba(255, 255, 255, 0.06);
  --gold:        #e8c87a;
  --gold-dim:    rgba(232, 200, 122, 0.6);
  --gold-faint:  rgba(232, 200, 122, 0.08);
  --white:       #ffffff;
  --text:        #e0ddd6;
  --muted:       #888480;
  --muted-light: #b0ada8;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --max-w:       1080px;
  --section-gap: 100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover { opacity: 0.8; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-sm {
  padding: 60px 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(20px, 3vw, 26px); }
h4 { font-size: 18px; }

p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted-light);
}

.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.7;
  color: var(--text);
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-faint);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn-primary {
  background: var(--gold);
  color: #080808;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(232, 200, 122, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

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

.btn-ghost {
  background: transparent;
  color: var(--muted-light);
  border: 1px solid var(--border-soft);
}

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

.btn-sm {
  font-size: 13px;
  padding: 10px 20px;
}

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-mark svg {
  width: 18px;
  height: 18px;
  fill: #080808;
}

.nav-brand {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  opacity: 1;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-soft);
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--gold); }

.hero-body {
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* ---- Guide Cards ---- */
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s;
}

.guide-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.guide-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
}

.guide-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.guide-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.price-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-faint);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---- Stream Grid ---- */
.stream-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.stream-item:last-child {
  border-bottom: none;
}

.stream-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-faint);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stream-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.stream-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.stream-status {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.status-live {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-building {
  background: rgba(232, 200, 122, 0.08);
  color: var(--gold-dim);
  border: 1px solid rgba(232, 200, 122, 0.15);
}

.status-planned {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--border-soft);
}

/* ---- Tier Cards ---- */
.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tier-card.featured {
  border-color: var(--border);
  background: var(--bg-raised);
  position: relative;
}

.tier-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #080808;
  background: var(--gold);
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.tier-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.tier-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.tier-features li {
  font-size: 14px;
  color: var(--muted-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.tier-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--gold-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23e8c87a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- Newsletter / CTA blocks ---- */
.cta-block {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 64px);
  text-align: center;
}

.cta-block.gold-border {
  border-color: var(--border);
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border-soft);
  border: none;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--white);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ---- About page specifics ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.stat-block {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.principle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.principle-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.principle-num {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  width: 24px;
  padding-top: 2px;
}

.principle-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.principle-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Community page specifics ---- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .hero {
    padding: 72px 0 60px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
