*, *::before, *::after { box-sizing: border-box; margin: 0; }

:root {
  --color-bg: #141414;
  --text-primary: #ffffffde;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.50);
  --text-quaternary: rgba(255, 255, 255, 0.25);
}

body {
  background: var(--color-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, p, li, blockquote { text-wrap: balance; }

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  min-height: 100vh;
  padding: 60px 24px;
  pointer-events: none;

}

/* Mute toggle */
.mute-toggle {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-quaternary);
  transition: color 0.2s;
  z-index: 10;
}

.mute-toggle:hover { color: var(--text-tertiary); }

.mute-toggle .mute-icon {
  width: 16px;
  height: 16px;
  display: none;
}

.mute-toggle .mute-icon.unmuted { display: block; }
.mute-toggle.is-muted .mute-icon.unmuted { display: none; }
.mute-toggle.is-muted .mute-icon.muted { display: block; }

.hero-brand {
  position: absolute;
  top: 12px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-quaternary);
  letter-spacing: 0.02em;
}

.hero-statement {
  font-size: clamp(48px, 12vw, 168px);
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 0.15em;
}

.hero-mark {
  display: none;
}

.hero-tagline {
  margin-top: 0.75em;
  font-size: clamp(48px, 12vw, 168px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.85;
  color: var(--text-secondary);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-tertiary);
  max-width: 420px;
  line-height: 1.5;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transition: background 0.2s;
  pointer-events: auto;
}

.hero-btn:hover { background: rgba(255, 255, 255, 0.18); }
.hero-btn svg { flex-shrink: 0; }

.hero-link {
  font-size: 12px;
  color: var(--text-quaternary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-link:hover { color: var(--text-tertiary); }

/* Pull quotes */
.pull-quote {
  position: relative;
  overflow: hidden;
  font-size: clamp(48px, 12vw, 168px);
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  padding: 80px 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Pipeline icon strips behind pull quotes */
.pipeline-strip {
  position: absolute;
  left: -10%;
  width: 120%;
  display: flex;
  align-items: center;
  gap: 40px;
  pointer-events: none;
  will-change: transform;
}

.pipeline-strip svg {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  stroke: white;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sections */
.landing-section {
  padding: 80px clamp(24px, 6vw, 120px);
  width: 100%;
}

.section-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-wrap: balance;
}

.section-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  color: var(--text-tertiary);
  margin: -20px 0 32px;
  line-height: 1.5;
  max-width: 560px;
}

.section-grid {
  display: grid;
  gap: 20px;
  container-type: inline-size;
}

.two-col { grid-template-columns: repeat(2, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }

.section-card {
  padding: clamp(20px, 5cqi, 36px);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-icon {
  width: clamp(28px, 6cqi, 44px);
  height: clamp(28px, 6cqi, 44px);
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.card-title {
  font-size: clamp(16px, 4cqi, 22px);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-body {
  font-size: clamp(13px, 3cqi, 17px);
  color: var(--text-tertiary);
  line-height: 1.55;
}

/* Live demo iframe */
.demo-section {
  padding: 0 clamp(16px, 4vw, 80px) 60px;
}

.demo-window {
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.demo-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-quaternary);
  margin-right: 36px; /* offset for dots so text centers visually */
}

.demo-frame {
  width: 100%;
  height: 80vh;
  border: none;
  display: block;
}

/* Anecdote */
.anecdote-section {
  max-width: 680px;
  padding: 60px clamp(24px, 6vw, 120px) 80px;
  margin: 0 auto;
}

.anecdote-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.anecdote-text:last-child {
  margin-bottom: 0;
  color: var(--text-primary);
}

/* Pipeline — horizontal scroll panels */
.pipeline-section {
  padding: 100px 0 60px;
  overflow: visible;
}

.pipeline-heading {
  padding-left: clamp(24px, 6vw, 120px);
}

.pipeline-sub {
  padding-left: clamp(24px, 6vw, 120px);
}

.pipeline-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 clamp(24px, 6vw, 120px);
  scroll-snap-type: x mandatory;

  /* Expand hit area upwards to capture swipes */
  margin-top: -35vh;
  padding-top: 35vh;
}

.pipeline-scroll::-webkit-scrollbar { display: none; }

.pipeline-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  padding-bottom: 8px;
}

.pipeline-panel {
  flex-shrink: 0;
  width: 440px;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: row;
  padding-left: 24px;
  gap: 28px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.pipeline-panel.auto-panel {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.04);
}

.panel-icon {
  width: 44px;
  height: 44px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.panel-icon svg { width: 100%; height: 100%; }

.auto-panel .panel-icon { color: var(--text-tertiary);}

.panel-head {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  /*writing-mode: vertical-rl;*/
	/*text-orientation: mixed;*/
	/*rotate: 180deg;*/
	text-transform: uppercase;
	padding: 0.125em 0;
}
.panel-content {
	display: flex;
	flex-direction: column;
    justify-content: space-between;
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,0.075);
}
.auto-panel .panel-title { color: var(--text-secondary); }

.panel-body {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 10px;
  display: flex;
}

.panel-tag {
  font-size: 12px;
  color: var(--text-quaternary);
  margin-top: 4px;
text-transform: uppercase;
}

.auto-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-quaternary);
}

.auto-spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--text-tertiary);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pipeline-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 32px;
}

.pipeline-connector span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.pipeline-footnote {
  padding: 24px clamp(24px, 6vw, 120px) 0;
  font-size: 13px;
  color: var(--text-quaternary);
  text-align: center;
}

/* CTA */
.landing-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 100px clamp(24px, 6vw, 120px) 60px;
}

.cta-heading {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 560px;
  text-wrap: balance;
}

.cta-sub {
  font-size: 15px;
  color: var(--text-tertiary);
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 24px;
  font-size: 11px;
  color: var(--text-quaternary);
}

/* Brain rot toggle */
.vibe-toggle {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.25;
  transition: opacity 0.2s;
  z-index: 10;
}
.vibe-toggle:hover { opacity: 0.6; }

/* Pipeline scroll path */
.pipeline-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.pipeline-svg .pipeline-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.pipeline-svg .pipeline-glow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 6;
  stroke-linecap: round;
}

.pipeline-svg .pipeline-dot {
  fill: rgba(255, 255, 255, 0.5);
}

/* Section entrance animations */
.section-entrance {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.section-entrance.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pull quote text reveal */
.pull-quote span {
  display: inline;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.6s ease-out, filter 0.6s ease-out;
}

.pull-quote span.text-visible {
  opacity: 1;
  filter: blur(0);
}

/* Ambient floating dots */
.ambient-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.15; }
  50% { transform: translateY(-8px); opacity: 0.35; }
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Pre-launch mode — hero + pipeline + footer, no scroll */
.prelaunch {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.prelaunch .hero { min-height: 0; flex: 1; padding: 40px 24px 20px; gap: 14px; }

.prelaunch .pipeline-section { flex-shrink: 0; padding: 0;  }

.prelaunch .landing-footer { flex-shrink: 0; }

.prelaunch .demo-section,
.prelaunch .landing-section,
.prelaunch .pull-quote,
.prelaunch .anecdote-section,
.prelaunch .landing-cta,
.prelaunch .vibe-toggle { display: none; }

/* Responsive */
@media (max-width: 680px) {
  .two-col, .three-col {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-entrance { transition: none; opacity: 1; transform: none; }
  .hero-tagline { animation: none; background: none; color: var(--text-primary); -webkit-background-clip: unset; background-clip: unset; }
  .ambient-dot { animation: none; display: none; }
  .pull-quote span { opacity: 1; filter: none; transition: none; }
}
