/* ==========================================================================
   Split Present — Marketing & Site Stylesheet (shadcn/ui Zinc Dark)
   ========================================================================== */

:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #111114;
  --card-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #38bdf8;
  --border: #27272a;
  --border-subtle: #1e1e24;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Site Shell & Header */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Navbar */
nav.navbar {
  width: 100%;
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 13px;
}

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

.nav-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--foreground);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background-color: #e4e4e7;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--muted-foreground);
}

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

/* Hero */
.hero {
  padding: 84px 0 64px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
}

/* Visual Stage Preview Card & App Preview Frame */
.stage-preview-section {
  padding: 0 0 40px;
}

.app-preview-frame,
.stage-preview-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.app-preview-media {
  background-color: #050507;
  line-height: 0;
}

.app-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* 2-Up Visual Showcase */
.showcase-section {
  padding: 0 0 56px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.showcase-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.showcase-media {
  background-color: #050507;
  border-bottom: 1px solid var(--border);
  line-height: 0;
}

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

.showcase-caption {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-caption strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--foreground);
}

.showcase-caption span {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.stage-preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background-color: #0c0c0f;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stage-preview-left,
.stage-preview-workspaces,
.stage-preview-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background-color: var(--muted);
  border: 1px solid var(--border);
}

.stage-pill--live {
  color: var(--foreground);
}

.stage-pill--danger {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background-color: rgba(248, 113, 113, 0.1);
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ade80;
}

.ws-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background-color: var(--muted);
  border: 1px solid var(--border);
}

.ws-pill--live {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  background-color: rgba(34, 197, 94, 0.14);
}

.ws-pill--add {
  color: var(--foreground);
}

.stage-preview-canvas {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  padding: 14px;
  background-color: #050507;
  min-height: 320px;
}

.stage-pane-column {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.stage-pane {
  background-color: #111115;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage-pane--primary {
  border-color: rgba(56, 189, 248, 0.45);
}

.stage-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background-color: #16161b;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}

.stage-pane-tag {
  font-weight: 600;
  color: var(--foreground);
}

.stage-pane-meta {
  color: var(--muted-foreground);
}

.stage-pane-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-pane-body--slide {
  gap: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(9, 9, 11, 0.95));
}

.mock-slide-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.mock-slide-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-slide-copy {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.mock-annotation-pill {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.stage-pane-body--compare {
  padding: 0;
  flex-direction: row;
  align-items: stretch;
}

.mock-compare-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.mock-compare-before {
  background: linear-gradient(135deg, #1b1b22, #121217);
}

.mock-compare-after {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), #121217);
  color: var(--foreground);
}

.mock-compare-divider {
  width: 2px;
  background-color: var(--accent);
}

.stage-pane-body--web {
  gap: 10px;
  justify-content: flex-start;
}

.mock-web-bar {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: var(--muted-foreground);
  background-color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 5px;
}

.mock-web-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-bar {
  height: 10px;
  border-radius: 999px;
  background-color: var(--secondary);
}

.mock-bar--lg {
  width: 85%;
  background-color: rgba(56, 189, 248, 0.35);
}

.mock-bar--md {
  width: 62%;
}

.mock-bar--sm {
  width: 44%;
}

.stage-pip-card {
  position: absolute;
  right: 26px;
  bottom: 24px;
  background-color: rgba(17, 17, 20, 0.94);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.stage-pip-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.stage-pip-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--foreground);
}

.stage-preview-touchbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background-color: #0c0c0f;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--muted-foreground);
  flex-wrap: wrap;
}

.touchbar-zone--center {
  color: var(--foreground);
  font-weight: 500;
}

/* Secondary Spotlight Banner & Bottom CTA */
.spotlight-banner {
  margin: 0 0 64px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), var(--card));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.spotlight-content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-content h2 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.spotlight-content p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bottom-cta {
  text-align: center;
  padding: 48px 24px 80px;
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
}

.bottom-cta h2 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.bottom-cta p {
  color: var(--muted-foreground);
  font-size: 1rem;
  margin-bottom: 26px;
}

/* Plugins & Domain Shelves Page */
.plugins-page {
  padding: 64px 0 84px;
}

.plugins-free-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 222, 128, 0.3);
  background-color: rgba(34, 197, 94, 0.08);
  font-size: 0.92rem;
  color: var(--muted-foreground);
}

.plugins-free-banner strong {
  color: #4ade80;
}

.shelves-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.shelf-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shelf-card--soon {
  border-style: dashed;
  background-color: rgba(17, 17, 20, 0.7);
}

.shelf-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shelf-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.shelf-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.shelf-badge--free {
  color: #4ade80;
  background-color: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.shelf-badge--soon {
  color: #fbbf24;
  background-color: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.shelf-summary {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.shelf-plugin-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.shelf-plugin-list li {
  font-size: 0.875rem;
  color: var(--foreground);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.shelf-plugin-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.shelf-card-footer {
  margin-top: auto;
  padding-top: 10px;
}

.shelf-docs-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.shelf-docs-link:hover {
  text-decoration: underline;
}

/* Download Highlights & Requirements */
.download-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 8px;
}

.download-highlights li {
  font-size: 0.88rem;
  color: var(--foreground);
  padding-left: 16px;
  position: relative;
}

.download-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}

.requirements-section {
  margin-bottom: 32px;
}

.requirements-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.requirement-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.requirement-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.requirement-card ul {
  padding-left: 18px;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.65;
}

.changelog-version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 32px;
}

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

/* Features Grid */
.features-section {
  padding: 48px 0 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background-color: rgba(56, 189, 248, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Download Page */
.download-page {
  padding: 64px 0 80px;
}

.page-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-lead {
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.download-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.download-meta code,
.download-handoff code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background-color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}

.download-handoff {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.download-handoff-copy {
  flex: 1 1 320px;
}

.download-handoff h3 {
  margin-bottom: 8px;
}

.download-handoff p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.download-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background-color: var(--muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.download-qr-svg {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  padding: 6px;
}

.download-qr-caption {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 168px;
  line-height: 1.4;
}

.changelog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.changelog-markdown h1 {
  display: none;
}

.changelog-markdown h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.changelog-markdown h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 20px 0 8px;
}

.changelog-markdown h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 16px 0 6px;
}

.changelog-markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  background-color: var(--muted);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--foreground);
}

.changelog-markdown a {
  color: var(--accent);
  text-decoration: none;
}

.changelog-markdown a:hover {
  text-decoration: underline;
}

/* Legal & Changelog Pages */
.legal-page {
  max-width: 720px;
  margin: 56px auto 80px;
  width: 100%;
}

.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 20px;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--foreground);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .download-grid,
  .shelves-grid,
  .requirements-grid,
  .showcase-grid,
  .stage-preview-canvas {
    grid-template-columns: 1fr;
  }

  .stage-pip-card {
    position: static;
    margin-top: 8px;
  }

  .nav-links {
    display: none;
  }
}
