/* Thread Rush — skeleton layout (customize colors/fonts later) */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --text: #f0f0f5;
  --text-muted: #8b8b9e;
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --border: #2a2a35;
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --container: min(1200px, 100% - 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-discord {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-discord:hover {
  text-decoration: underline;
}

.hero-examples {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-examples:hover {
  color: var(--text);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 560px;
  margin: 0 0 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-desc:last-of-type {
  margin-bottom: 2.5rem;
}

/* Examples */
.examples-section {
  background: var(--bg-elevated);
}

.examples-section .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.example-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.example-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.example-card--video {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

/* Block hover/click so videos are non-interactive and can't open Streamable */
.example-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  cursor: default;
}

/* Streamable uses 16:9 embed; scale so height fills our 9:16 card and we crop sides (force zoom) */
.example-embed-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  transform: translate(-50%, -50%) scale(3.16); /* (16/9)/(9/16) so height fills card */
  transform-origin: center center;
  height: 0;
  pointer-events: none;
}

.example-embed-wrap .example-embed {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

/* Proof */
.proof-section .section-title,
.proof-section .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.proof-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.proof-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: block;
}

.proof-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.proof-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.proof-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.proof-links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.proof-links a {
  font-size: 0.9rem;
  color: var(--accent);
}

.proof-links a:hover {
  text-decoration: underline;
}

.proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.proof-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proof-stats strong {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.proof-stats span {
  font-size: 1.25rem;
  font-weight: 700;
}

/* CTA section */
.cta-section {
  position: relative;
  background: var(--bg-elevated);
  text-align: center;
  overflow: hidden;
}

/* Horizontal carousel: constrained to inner limits (not full page width), fade in/out at those edges */
.cta-carousel-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.cta-carousel-inner {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
}

.cta-carousel-edges {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.cta-carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  max-width: 200px;
  z-index: 1;
  pointer-events: none;
}

.cta-carousel-fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg-elevated) 0%, transparent 100%);
}

.cta-carousel-fade--right {
  right: 0;
  left: auto;
  background: linear-gradient(to left, var(--bg-elevated) 0%, transparent 100%);
}

.cta-carousel-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: cta-carousel-scroll 32s linear infinite;
}

.cta-carousel-track img {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  min-width: 460px;
  object-fit: cover;
  display: block;
  margin: 0 -1px;
}

@keyframes cta-carousel-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.cta-section-content {
  position: relative;
  z-index: 3;
}

.cta-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.cta-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Capabilities */
.capabilities-section {
  background: var(--bg-elevated);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.capability-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}

.capability-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.capability-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cap-note {
  font-size: 0.85rem !important;
  margin-top: 0.5rem !important;
  opacity: 0.85;
}

.cap-badge {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.capability-compare .compare-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}

.compare-bar .us,
.compare-bar .them {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.compare-bar .us {
  color: var(--accent);
}

.compare-bar .vs {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compare-bar small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Benefits two-column */
.benefits-section {
  padding: 3rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.benefit-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.benefit-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-card li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing-note {
  max-width: 560px;
  margin: 0 0 2.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #0a0a0f;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.price {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.price .amount {
  font-weight: 700;
  font-size: 2rem;
}

.pricing-card ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pricing-card .btn {
  width: 100%;
}

/* FAQ */
.faq-section .section-desc {
  margin-bottom: 2rem;
}

.faq-list {
  max-width: 680px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 1.25rem;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  background: var(--bg-elevated);
  text-align: center;
}

.final-cta .section-desc {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  margin-bottom: 2rem;
}

.footer-tagline {
  max-width: 360px;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .proof-stats {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }
}
