/* =========================================================================
   stitch2stream.com — global stylesheet
   ========================================================================= */

:root {
  --bg:         #08080f;
  --bg-2:       #0f0f1a;
  --bg-3:       #181825;
  --card:       #1a1a2e;
  --border:     #2a2a42;
  --primary:    #7c3aff;
  --primary-hi: #9b5fff;
  --blue:       #3b82f6;
  --cyan:       #06b6d4;
  --green:      #22c55e;
  --red:        #ef4444;
  --text:       #f1f5f9;
  --muted:      #94a3b8;
  --faint:      #4a5568;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,.6);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--muted); line-height: 1.75; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hi); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124,58,255,.4); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-hi); }
.btn-lg { padding: 17px 36px; font-size: 1.1rem; border-radius: 12px; }
.btn-sm { padding: 9px 18px; font-size: .875rem; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 15, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.nav-logo span:not(.logo-2) { color: var(--primary); }
.logo-2 { color: var(--cyan); }
.compare-table th.highlight .logo-2 { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; }
.nav-hamburger svg { stroke: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,255,.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(124,58,255,.12);
  border: 1px solid rgba(124,58,255,.3);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary-hi);
  margin-bottom: 24px;
}
.hero-badge::before { content: '●'; font-size: .6rem; }
.hero h1 { margin-bottom: 24px; }
.hero p { font-size: 1.15rem; max-width: 520px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-value { font-size: 1.6rem; font-weight: 800; }
.hero-stat-label { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.hero-visual {
  position: relative;
}
.hero-screen {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 80px rgba(124,58,255,.15);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-screen-bar {
  height: 28px;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.hero-screen-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-screen-wrap { display: flex; flex-direction: column; width: 100%; height: 100%; }
.hero-screen-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-dual-feed {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #07080f;
  padding: 24px;
}
.hero-fisheye {
  flex: 1;
  max-width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  outline: 1.5px solid rgba(124,58,255,.55);
  box-shadow: 0 0 52px rgba(124,58,255,.45);
}
.hero-fisheye svg { width: 100%; height: 100%; display: block; }
.hero-fisheye-b {
  outline: 1.5px solid rgba(6,182,212,.5);
  box-shadow: 0 0 52px rgba(6,182,212,.38);
}
.fisheye-tag {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,.5);
  letter-spacing: .12em;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,.9);
}
.hero-screen-overlay {
  position: absolute;
  bottom: 12px; left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  font-size: .7rem;
  font-family: 'JetBrains Mono', monospace;
  backdrop-filter: blur(8px);
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; } 50% { opacity:.3; }
}

/* ── Logos ──────────────────────────────────────────────────────────────── */
.logos {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.logos-label { font-size: .8rem; color: var(--muted); margin-bottom: 20px; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.logos-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logo-chip {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  transition: color .15s, border-color .15s;
}
.logo-chip:hover { color: var(--primary-hi); border-color: var(--primary); }

/* ── Features grid ──────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(124,58,255,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: .9rem; }

/* ── Comparison table ───────────────────────────────────────────────────── */
.compare-wrap { overflow-x: auto; margin-top: 56px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
/* Sticky top — all header cells */
.compare-table thead th {
  position: sticky;
  top: 64px;
  z-index: 2;
}
.compare-table th {
  background: var(--bg-3);
  padding: 16px 20px;
  text-align: center;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
/* Sticky left — Feature column header; z-index 3 beats both axes */
.compare-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--bg-3);
  box-shadow: 2px 0 8px rgba(0,0,0,.4);
}
.compare-table th.highlight { color: var(--primary-hi); background: rgba(124,58,255,.1); }
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(42,42,66,.6);
  text-align: center;
  color: var(--muted);
}
/* Sticky left — Feature column body cells */
.compare-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-2);
  box-shadow: 2px 0 8px rgba(0,0,0,.4);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(124,58,255,.04); }
.compare-table .col-s2s { background: rgba(124,58,255,.05); }
.chk  { color: var(--green); font-size: 1.1rem; }
.nope { color: var(--faint); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform .2s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(124,58,255,.08) 0%, var(--card) 60%);
}
.popular-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-tier { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 16px; }
.pricing-price { margin-bottom: 8px; }
.pricing-price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; }
.pricing-price .per { font-size: .9rem; color: var(--muted); margin-left: 4px; }
.pricing-annual { font-size: .8rem; color: var(--muted); margin-bottom: 24px; }
.pricing-annual strong { color: var(--green); }
.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: .9rem;
  color: var(--muted);
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-features li.dim::before { content: '–'; color: var(--faint); }
.pricing-features li.dim { color: var(--faint); }
.pricing-cta { margin-top: 32px; width: 100%; text-align: center; display: block; }

/* ── Platforms ──────────────────────────────────────────────────────────── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.platform-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.platform-icon { font-size: 2rem; margin-bottom: 12px; }
.platform-card h3 { font-size: 1rem; margin-bottom: 6px; }
.platform-card p { font-size: .8rem; }

/* ── Plugin teaser ──────────────────────────────────────────────────────── */
.plugins-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.plugin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: border-color .2s;
}
.plugin-card:hover { border-color: var(--primary); }
.plugin-icon { font-size: 2.2rem; flex-shrink: 0; }
.plugin-meta { flex: 1; }
.plugin-meta h3 { margin-bottom: 6px; }
.plugin-meta p { font-size: .875rem; }
.plugin-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  background: rgba(124,58,255,.15);
  border: 1px solid rgba(124,58,255,.3);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary-hi);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plugin-badge.free { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: var(--green); }

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(124,58,255,.2) 0%, rgba(59,130,246,.15) 100%);
  border: 1px solid rgba(124,58,255,.3);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: .9rem; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a { display: block; font-size: .875rem; color: var(--muted); padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: var(--primary-hi); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--faint);
}

/* ── Page hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { font-size: 1.1rem; max-width: 580px; margin: 16px auto 0; }

/* ── Download cards ─────────────────────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.download-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.download-icon { font-size: 3rem; margin-bottom: 20px; }
.download-card h3 { margin-bottom: 8px; }
.download-card p { font-size: .875rem; margin-bottom: 24px; }
.download-meta { font-size: .75rem; color: var(--faint); margin-top: 12px; }

/* ── Tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; background: var(--bg-3); border-radius: 10px; padding: 4px; width: fit-content; margin: 0 auto 40px; }
.tab-btn {
  padding: 8px 20px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-visual      { display: none; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .features-grid    { grid-template-columns: 1fr; }
  .plugins-row      { grid-template-columns: 1fr; }
  .platforms-grid   { grid-template-columns: repeat(2, 1fr); }
  .download-grid    { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .nav-links        { display: none; }
  .nav-hamburger    { display: block; }
  .hero-stats       { gap: 20px; flex-wrap: wrap; }
  .compare-table    { font-size: .8rem; }
  .cta-banner       { padding: 40px 24px; }
}
