@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@300;500;700;900&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

:root {
  --bg-primary: #08080a;
  --bg-secondary: #111115;
  --bg-tertiary: #18181f;
  --text-primary: #f4f4f6;
  --text-muted: #8e8e99;
  --text-dim: #4e4e59;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-white: #ffffff;
  
  --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important; /* Managed by vector tail cursor */
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Custom Tail Cursor Canvas */
#cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999999;
}

/* Micro vibration kinetic class */
.kinetic-pulse {
  animation: microVibrate 0.15s var(--ease-out-expo);
}

@keyframes microVibrate {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}

/* Navigation Header - Pure Typography */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  mix-blend-mode: difference;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: lowercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.cta-nav-button {
  background: var(--text-primary);
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.25rem;
  font-weight: 700;
}

/* Display Typography Hero Block */
.hero-display {
  padding-top: 10rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.display-block-wrapper {
  width: 100%;
  margin-bottom: 4rem;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 13vw, 16rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  padding: 0 2rem;
  transition: transform 0.4s var(--ease-out-expo), color 0.4s ease;
}

.display-block-wrapper:nth-child(odd) .display-title {
  color: var(--text-primary);
  text-align: left;
}

.display-block-wrapper:nth-child(even) .display-title {
  color: var(--bg-primary);
  -webkit-text-stroke: 2px var(--text-primary);
  text-align: right;
}

.display-block-wrapper:hover .display-title {
  color: var(--accent-cyan);
  -webkit-text-stroke: 0px transparent;
  transform: scale(1.02);
}

/* Marquee Ticker Section */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 1.25rem 0;
  margin: 3rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-content {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-right: 4rem;
  white-space: nowrap;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Content Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Header - Pure Typography */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

/* Folding Accordion / State Switcher Section */
.state-switcher-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 8rem;
}

.state-card {
  background: var(--bg-secondary);
  padding: 3rem;
  transition: all 0.4s var(--ease-out-expo);
  border-left: 4px solid var(--text-dim);
}

.state-card.active, .state-card:hover {
  background: var(--bg-tertiary);
  border-left-color: var(--accent-cyan);
  transform: translateX(10px);
}

.state-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.state-card-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-dim);
  font-weight: 700;
}

.state-card-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.state-card-body {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.8;
}

/* Direct Action Hero CTA Box */
.action-hero-box {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 5rem 3rem;
  text-align: center;
  margin: 6rem 0;
}

.action-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.action-hero-desc {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  opacity: 0.85;
}

.action-btn-large {
  display: inline-block;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  padding: 1.5rem 3.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.action-btn-large:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  transform: scale(1.05);
}

/* Pricing Grid - Typography Driven */
.pricing-section {
  padding: 6rem 0;
}

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

.price-card {
  background: var(--bg-secondary);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.price-card:hover {
  transform: translateY(-8px);
}

.price-card-tier {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.price-card-amount {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin: 1.5rem 0 0.5rem 0;
}

.price-card-period {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price-features {
  list-style: none;
  margin-bottom: 3rem;
}

.price-features li {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-features li strong {
  color: var(--text-primary);
}

.price-btn {
  display: block;
  text-align: center;
  padding: 1.1rem 0;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.3s ease;
}

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

/* Articles Section */
.articles-section {
  padding: 6rem 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.article-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.article-excerpt {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.article-read-btn {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: none;
  border: none;
}

.article-read-btn:hover {
  text-decoration: underline;
}

/* Reader Modal View */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 20000;
  overflow-y: auto;
  padding: 6rem 2rem 8rem 2rem;
  display: none;
}

.article-modal.open {
  display: block;
}

.article-modal-inner {
  max-width: 900px;
  margin: 0 auto;
}

.modal-close-btn {
  position: fixed;
  top: 2rem;
  right: 3rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 0.75rem 1.5rem;
  border: none;
}

.article-full-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.article-body-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.article-body-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1.25rem 0;
  color: var(--text-primary);
}

.article-body-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: var(--accent-cyan);
}

.article-body-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.article-body-content ul {
  margin: 1.5rem 0 2rem 2rem;
  color: var(--text-muted);
}

.article-body-content li {
  margin-bottom: 0.75rem;
}

.article-body-content a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* Reviews Section - Typography Grid */
.reviews-section {
  padding: 6rem 0;
}

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

.review-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
}

.review-quote {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

.review-author {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.review-author strong {
  color: var(--accent-cyan);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0 8rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--bg-secondary);
  padding: 2rem 2.5rem;
  transition: background 0.3s ease;
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-toggle {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-cyan);
}

.faq-answer {
  display: none;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer & PBN Weight Link Matrix */
footer {
  background: var(--bg-secondary);
  padding: 6rem 2rem 4rem 2rem;
  margin-top: 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  text-transform: lowercase;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 3.5rem;
  letter-spacing: 0.1em;
}

/* PBN Internal / External Link Matrix */
.pbn-matrix {
  width: 100%;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 2rem;
}

.pbn-matrix-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.pbn-links-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  list-style: none;
}

.pbn-links-grid a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.pbn-links-grid a:hover {
  color: var(--accent-cyan);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .top-nav {
    padding: 1.25rem 1.5rem;
  }
  
  .nav-links {
    display: none; /* Mobile concise menu */
  }

  .display-title {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .state-card {
    padding: 2rem 1.5rem;
  }

  .action-hero-box {
    padding: 3.5rem 1.5rem;
  }

  .action-btn-large {
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    width: 100%;
  }

  .articles-grid, .pricing-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }

  .article-modal {
    padding: 5rem 1.25rem 6rem 1.25rem;
  }

  .modal-close-btn {
    top: 1.5rem;
    right: 1.5rem;
  }
}
