/* ===== Variables ===== */
:root {
  --bg: #030306;
  --bg-elevated: #0a0a0f;
  --text: #f4f4f8;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent-plan: #ec4899;
  --accent-sketch: #3b82f6;
  --accent-paint: #a855f7;
  --accent-mix: #f59e0b;
  --glass-bg: rgba(10, 10, 18, 0.8);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glow-plan: rgba(236, 72, 153, 0.35);
  --glow-sketch: rgba(59, 130, 246, 0.35);
  --glow-paint: rgba(168, 85, 247, 0.35);
  --glow-mix: rgba(245, 158, 11, 0.35);
  --font-display: 'Bricolage Grotesque', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: #020204;
  color: var(--text);
  line-height: 1.6;
  position: relative;
}
/* Mesh gradient base — Stripe/Apple style layered spotlights */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: mesh-drift 25s ease-in-out infinite; }
}
@keyframes mesh-drift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  animation: noise-shift 20s steps(10) infinite;
}
@keyframes noise-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(-1px, 1px); }
  75% { transform: translate(1px, 2px); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.02; animation: none; }
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-sketch), var(--accent-paint));
  z-index: 9998;
  transition: width 0.05s linear;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ===== Immersive vignette ===== */
.immersive-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: radial-gradient(
    ellipse 90% 70% at 50% 50%,
    transparent 50%,
    rgba(0, 0, 0, 0.08) 75%,
    rgba(0, 0, 0, 0.25) 100%
  );
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  .immersive-vignette { opacity: 0.4; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero .hero-gradient-orb {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 480px;
  max-height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  will-change: transform;
  transform-origin: center center;
}
.hero-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(168, 85, 247, 0.08) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.hero:hover .hero-spotlight,
.hero:focus-within .hero-spotlight { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-spotlight { display: none; }
}
.hero .hero-gradient-orb.plan { background: radial-gradient(circle, var(--accent-plan) 0%, transparent 65%); top: 20%; left: -10%; opacity: 0.12; }
.hero .hero-gradient-orb.paint { background: radial-gradient(circle, var(--accent-paint) 0%, transparent 65%); top: -20%; right: -15%; }
.hero .hero-gradient-orb.sketch { background: radial-gradient(circle, var(--accent-sketch) 0%, transparent 65%); bottom: -20%; left: -15%; }
.hero .hero-gradient-orb.mix { background: radial-gradient(circle, var(--accent-mix) 0%, transparent 65%); top: 55%; left: 50%; transform: translate(-50%, -50%); opacity: 0.1; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-gradient-orb { opacity: 0.06; }
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  transform-origin: center center;
}
@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 640px; }
.hero-content .reveal { opacity: 0; transform: translateY(24px); }
.hero-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
  background: linear-gradient(90deg, var(--text-dim), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; font-size: 0.8rem; color: var(--text-muted); }
.hero-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-pills .pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.pill-icon { font-size: 1em; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
}
/* Splitting.js char animation */
.hero-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
}
/* .hero-headline.splitting .char opacity/transform managed by GSAP */
.hero-subtext { color: var(--text-muted); font-size: 1.125rem; margin: 0 0 1rem; }

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hero-cta-primary {
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, #9333ea, #a855f7);
  color: #fff;
  box-shadow: 0 0 24px var(--glow-paint);
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.hero-cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 40%, transparent 80%);
  transform: translateX(-100%);
  animation: cta-shimmer 3s ease-in-out infinite;
}
@keyframes cta-shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(200%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta-primary::after { display: none; }
}
.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--glow-paint);
}
.hero-cta-secondary {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-cta-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
.hero-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-nav a {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-nav a:hover { transform: translateY(-2px); }
.hero-nav .plan { background: rgba(236, 72, 153, 0.2); border: 1px solid rgba(236, 72, 153, 0.4); }
.hero-nav .plan:hover { box-shadow: 0 0 24px var(--glow-plan); }
.hero-nav .sketch { background: rgba(59, 130, 246, 0.2); border: 1px solid rgba(59, 130, 246, 0.4); }
.hero-nav .sketch:hover { box-shadow: 0 0 24px var(--glow-sketch); }
.hero-nav .paint { background: rgba(168, 85, 247, 0.2); border: 1px solid rgba(168, 85, 247, 0.4); }
.hero-nav .paint:hover { box-shadow: 0 0 24px var(--glow-paint); }
.hero-nav .mix { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); }
.hero-nav .mix:hover { box-shadow: 0 0 24px var(--glow-mix); }
.hero-nav-apps { margin-top: 0; font-size: 0.85rem; }
.hero-nav-apps a { padding: 0.5rem 1rem; }

/* ===== Hero marquee ===== */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.marquee-track span:nth-child(odd) { color: var(--text-muted); }
.marquee-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.marquee-tech img {
  flex-shrink: 0;
  opacity: 0.85;
}
.marquee-dot {
  opacity: 0.5;
  margin: 0 0.75rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ===== Section divider ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0;
  border: none;
}

/* ===== Product sections (shared) ===== */
section {
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 4.5rem;
}
.showcase-slide.plan-section { padding: 2rem 1.5rem; }
.showcase-slide.sketch-section { padding: 2rem 1.5rem; }
.showcase-slide.paint-section { padding: 2rem 1.5rem; }
.showcase-slide.mix-section { padding: 2rem 1.5rem; }
.plan-section { background: linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.05) 50%, transparent); }
.sketch-section { background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.05) 50%, transparent); }
.paint-section { background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.05) 50%, transparent); }
.mix-section { background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.05) 50%, transparent); }

.section-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; opacity: 0; transform: translateY(40px); }
.section-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}
.plan-section .section-inner h2 { color: #f9a8d4; }
.sketch-section .section-inner h2 { color: #93c5fd; }
.paint-section .section-inner h2 { color: #c4b5fd; }
.mix-section .section-inner h2 { color: #fcd34d; }
.section-inner .tagline { color: var(--text-muted); font-size: 1rem; margin: 0 0 2rem; }
.section-inner ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.section-inner li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; color: var(--text-muted); opacity: 0; transform: translateY(12px); }
.section-inner li::before { content: '—'; position: absolute; left: 0; color: inherit; opacity: 0.6; }

/* CTA buttons (shared pattern) */
.cta {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
}
.cta:hover { transform: translateY(-3px); }
.cta:hover::before { opacity: 1; }
.cta-plan { background: linear-gradient(135deg, #db2777, #ec4899); box-shadow: 0 0 24px var(--glow-plan); }
.cta-plan:hover { box-shadow: 0 0 40px var(--glow-plan); }
.cta-sketch { background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 0 24px var(--glow-sketch); }
.cta-sketch:hover { box-shadow: 0 0 40px var(--glow-sketch); }
.cta-paint { background: linear-gradient(135deg, #9333ea, #a855f7); box-shadow: 0 0 24px var(--glow-paint); }
.cta-paint:hover { box-shadow: 0 0 40px var(--glow-paint); }
.cta-mix { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 0 24px var(--glow-mix); }
.cta-mix:hover { box-shadow: 0 0 40px var(--glow-mix); }

/* ===== Sticky CTA bar (per-section launch button) ===== */
.sticky-cta-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 40;
  pointer-events: none;
}
.sticky-cta-bar .cta-sticky {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  white-space: nowrap;
}
.sticky-cta-bar .cta-sticky.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 767px) {
  .sticky-cta-bar { bottom: 1rem; padding: 0 1rem; }
  .sticky-cta-bar .cta-sticky { font-size: 0.85rem; padding: 0.65rem 1.25rem; }
}

/* ===== Pinned showcase ===== */
.showcase-pinned {
  position: relative;
  perspective: 1200px;
}
.showcase-spacer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-slide .section-inner {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.showcase-pinned::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(59, 130, 246, 0.04) 16%,
    rgba(168, 85, 247, 0.04) 50%,
    rgba(245, 158, 11, 0.04) 83%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}
.showcase-slide {
  position: sticky;
  top: 0;
  height: 100vh;
  scroll-margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  isolation: isolate;
}
.app-mockup {
  transform-style: preserve-3d;
  will-change: transform;
}
.showcase-slide .section-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .showcase-slide .section-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .section-inner.mockup-right .app-mockup { order: 2; }
  .section-inner.mockup-right .section-text { order: 1; }
}
.section-text { display: flex; flex-direction: column; align-items: flex-start; }

/* ===== App mockup (reusable browser window) ===== */
.app-mockup {
  order: -1;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .app-mockup { order: 0; margin-bottom: 0; }
}
.mockup-browser {
  background: rgba(8, 8, 14, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.plan-mockup .mockup-browser { box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(236,72,153,0.12); }
.sketch-mockup .mockup-browser { box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(59,130,246,0.12); }
.paint-mockup .mockup-browser { box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(168,85,247,0.12); }
.mix-mockup .mockup-browser { box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 60px rgba(245,158,11,0.12); }
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--glass-border);
}
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27ca40; }
.mockup-url {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.mockup-content {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  pointer-events: auto;
}

/* Video preview mockups */
.mockup-video-wrap {
  position: relative;
  width: 100%;
  min-height: 200px;
  padding: 0;
  overflow: hidden;
  background: #1a1a1e;
}
.mockup-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mockup-video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.mockup-video-wrap:not(.video-loaded) .mockup-video-fallback {
  opacity: 1;
}
.mockup-video-wrap.video-loaded .mockup-video-fallback {
  opacity: 0;
  pointer-events: none;
}
.mockup-video-wrap .mockup-video-fallback.plan-grid-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 200px;
  margin: auto;
  aspect-ratio: 1;
  padding: 8px;
  background: #1a1a1e;
  border-radius: 8px;
}
.mockup-video-wrap .mockup-video-fallback .plan-slot {
  aspect-ratio: 1;
  background: #252530;
  border: 1px dashed #444;
  border-radius: 4px;
}
@media (min-width: 768px) {
  .mockup-browser { max-width: 460px; margin: 0 auto; }
  .mockup-content { min-height: 260px; padding: 1rem; }
}
.plan-mockup .mockup-content,
.sketch-mockup .mockup-content,
.paint-mockup .mockup-content,
.mix-mockup .mockup-content { min-height: 240px; padding: 0.5rem; }
@media (min-width: 768px) {
  .plan-mockup .mockup-content,
  .sketch-mockup .mockup-content,
  .paint-mockup .mockup-content,
  .mix-mockup .mockup-content { min-height: 280px; padding: 0.75rem; }
}

/* ===== OpenBrand drag feedback ===== */
.plan-slot-img[draggable="true"] { cursor: grab; }
.plan-slot-img[draggable="true"]:active { cursor: grabbing; }
.plan-slot-img.drag-over .plan-img-thumb {
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.8);
  transform: scale(1.06);
  transition: transform 0.15s, box-shadow 0.15s;
}
/* ===== OpenPaint before/after hint ===== */
.paint-ba-hint {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-dim);
  margin: 0.4rem 0 0;
  letter-spacing: 0.05em;
  pointer-events: none;
}
/* ===== OpenSketch app mock ===== */
.sketch-app-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 340px;
  height: 220px;
  margin: 0 auto;
  background: #1a1a1e;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .sketch-app-mock { max-width: 400px; height: 260px; }
}
.sketch-app-mock .sketch-toolbar {
  display: flex;
  gap: 2px;
  padding: 4px 6px;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}
.sketch-tool {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.sketch-tool:hover { background: #2a2a2a; color: #aaa; }
.sketch-tool.active { background: rgba(59, 130, 246, 0.3); color: #93c5fd; }
.sketch-app-mock .sketch-viewport {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sketch-viewport canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}
.sketch-viewport canvas:active { cursor: grabbing; }
.sketch-viewport .sketch-fallback { display: none; width: 80%; height: 80%; opacity: 0.6; }
.sketch-visual.no-motion .sketch-viewport canvas { display: none; }
.sketch-visual.no-motion .sketch-viewport .sketch-fallback { display: block; }
.sketch-status {
  font-size: 10px;
  color: #6b7280;
  padding: 4px 8px;
  background: #151518;
  border-top: 1px solid #333;
}

/* ===== OpenPaint app mock ===== */
.paint-app-mock {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  height: 220px;
  margin: 0 auto;
  background: #1a1a1e;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .paint-app-mock { max-width: 420px; height: 260px; }
}
.paint-app-mock .paint-canvas-mock {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #151518;
  border-radius: 6px;
  overflow: hidden;
}
.paint-app-mock .paint-layer {
  position: absolute;
  inset: 0;
  border-radius: 6px;
}
.paint-app-mock .paint-layer-bg { background: linear-gradient(135deg, #1e1e2e 0%, #252535 100%); }
.paint-app-mock .paint-layer-mid {
  top: 20%;
  left: 15%;
  right: 15%;
  bottom: 25%;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 4px;
}
.paint-app-mock .paint-layer-fg {
  top: 35%;
  left: 25%;
  width: 30%;
  height: 25%;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 4px;
}
.paint-app-mock .paint-brush-cursor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.paint-app-mock .paint-toolbar-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: #1e1e1e;
  border-top: 1px solid #333;
}
.paint-app-mock .paint-tool-group {
  display: flex;
  gap: 4px;
}
.paint-app-mock .paint-tool {
  width: 28px;
  height: 28px;
  padding: 0;
}
.paint-app-mock .paint-tool svg { width: 14px; height: 14px; }
.paint-app-mock .paint-color-swatches {
  display: flex;
  gap: 6px;
}
.paint-app-mock .paint-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.paint-app-mock .paint-swatch.active { border-color: #fff; transform: scale(1.1); }
.paint-app-mock .paint-toolbar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 4px;
  background: #1e1e1e;
  border-right: 1px solid #333;
}
.paint-tool {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.paint-tool:hover { background: #2a2a2a; color: #aaa; }
.paint-tool.active { background: rgba(168, 85, 247, 0.25); color: #c4b5fd; }
.paint-canvas-wrap {
  flex: 1;
  min-width: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paint-canvas-wrap .before-after { max-height: 100%; aspect-ratio: 4/3; }
.paint-layers {
  width: 72px;
  padding: 6px 4px;
  background: #1e1e1e;
  border-left: 1px solid #333;
  font-size: 10px;
  color: #888;
}
.paint-layer-item {
  padding: 4px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.paint-layer-item:hover { background: #2a2a2a; }
.paint-layer-item.locked { opacity: 0.7; }
.layer-eye { font-size: 10px; }

/* ===== OpenPaint before/after (shared) ===== */
.paint-visual {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .paint-visual { max-width: 380px; }
}
.before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  cursor: col-resize;
}
.before-after-before,
.before-after-after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
}
.before-after-before {
  background-image: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?w=400&h=300&fit=crop');
  filter: grayscale(1) contrast(0.9);
}
.before-after-after {
  background-image: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?w=400&h=300&fit=crop');
  filter: saturate(1.5) contrast(1.15) brightness(1.08);
  clip-path: inset(0 0 0 50%);
}
.before-after-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: col-resize;
  z-index: 2;
}
.before-after::after {
  content: '';
  position: absolute;
  top: 0;
  left: var(--slider-pct, 50%);
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  transition: left 0.05s ease-out;
}
.before-after-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: col-resize;
}
.before-after-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: col-resize;
  border: none;
}

/* ===== OpenMix app mock ===== */
.mix-decks {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  flex: 1;
  min-width: 0;
}
.mix-app-mock {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  height: 180px;
  margin: 0 auto;
  background: #1a1a1e;
  border-radius: 8px;
  padding: 10px;
  position: relative;
}
@media (min-width: 768px) {
  .mix-app-mock { max-width: 440px; height: 200px; }
}
.mix-deck {
  flex: 1;
  min-width: 0;
  background: #151518;
  border-radius: 6px;
  border: 1px solid #333;
  padding: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.mix-waveform {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  gap: 1px;
  padding: 4px 0;
}
.mix-waveform .wf-bar {
  flex: 1;
  min-width: 2px;
  background: linear-gradient(180deg, transparent 30%, rgba(59, 130, 246, 0.5) 100%);
  border-radius: 1px;
  animation: mix-wf-bar 1.5s ease-in-out infinite;
}
.mix-deck-b .mix-waveform .wf-bar {
  background: linear-gradient(180deg, transparent 30%, rgba(245, 158, 11, 0.5) 100%);
}
.mix-waveform .wf-bar:nth-child(odd) { animation-delay: 0.2s; }
.mix-waveform .wf-bar:nth-child(3n) { animation-delay: 0.4s; }
.mix-waveform .wf-bar:nth-child(5n) { animation-delay: 0.1s; }
@keyframes mix-wf-bar {
  0%, 100% { transform: scaleY(0.3); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .mix-waveform .wf-bar { animation: none; transform: scaleY(0.7); }
}
.mix-deck-label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
}
.mix-deck-a .mix-deck-label { color: #3b82f6; }
.mix-bpm {
  font-size: 9px;
  color: #6b7280;
  text-align: center;
  margin-top: 4px;
}
.mix-mixer {
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mix-fader {
  flex: 1;
  width: 8px;
  min-height: 40px;
  background: #333;
  border-radius: 4px;
  position: relative;
}
.mix-fader-a::after { content: ''; position: absolute; bottom: 20%; left: -2px; right: -2px; height: 12px; background: #3b82f6; border-radius: 2px; }
.mix-fader-b::after { content: ''; position: absolute; bottom: 35%; left: -2px; right: -2px; height: 12px; background: #f59e0b; border-radius: 2px; }
.mix-crossfader {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
}
.mix-crossfader-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #333;
  border-radius: 3px;
}
.mix-crossfader-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
}
.mix-crossfader-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
  border: none;
}
.mix-visualizer-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 24px;
  padding: 0 4px;
  opacity: 0.6;
}
.mix-visualizer-bars .bar {
  width: 4px;
  min-height: 4px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border-radius: 2px;
}
.mix-visualizer-bars .bar:nth-child(1) { height: 8px; }
.mix-visualizer-bars .bar:nth-child(2) { height: 14px; }
.mix-visualizer-bars .bar:nth-child(3) { height: 18px; }
.mix-visualizer-bars .bar:nth-child(4) { height: 12px; }
.mix-visualizer-bars .bar:nth-child(5) { height: 20px; }
.mix-visualizer-bars .bar:nth-child(6) { height: 10px; }
.mix-visualizer-bars .bar:nth-child(7) { height: 16px; }

/* ===== OpenBrand mockup ===== */
.plan-app-mock .plan-grid-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 200px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: #1a1a1e;
  border-radius: 8px;
  padding: 8px;
}
.plan-app-mock .plan-slot {
  aspect-ratio: 1;
  background: #252530;
  border: 1px dashed #444;
  border-radius: 4px;
}
.plan-app-mock .plan-slot-img { padding: 2px; }
.plan-app-mock .plan-img-thumb {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  min-height: 20px;
}
.plan-app-mock .plan-ai-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.plan-app-mock .plan-ai-chip em { color: #c4b5fd; font-style: italic; }
.plan-app-mock .plan-ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-paint);
  animation: plan-ai-pulse 1.5s ease-in-out infinite;
}
@keyframes plan-ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Made with OpenLabs gallery ===== */
.gallery-section {
  padding: 4rem 0;
  scroll-margin-top: 4.5rem;
  overflow: hidden;
}
.gallery-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-paint);
  margin: 0 0 0.5rem;
  text-align: center;
}
.gallery-heading {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 0.25rem;
}
.gallery-subtext {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  margin: 0 0 2rem;
}
.gallery-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.gallery-track {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  animation: gallery-scroll 40s linear infinite;
  width: max-content;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}
@keyframes gallery-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-item {
  flex-shrink: 0;
  width: 200px;
  background: rgba(12, 12, 20, 0.6);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.gallery-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1e;
}
.gallery-label {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Why OpenLabs (bento grid) ===== */
.why-section { padding: 5rem 1.5rem; scroll-margin-top: 4.5rem; }
.why-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-paint);
  margin: 0 0 0.5rem;
  text-align: center;
}
.why-heading { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; text-align: center; margin: 0 0 2.5rem; }
.why-bento {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .why-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }
  .why-card-large { grid-column: 1; grid-row: 1 / 3; }
  .why-card-wide { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .why-bento { gap: 1.5rem; max-width: 1000px; }
}
.why-card {
  opacity: 0;
  transform: translateY(20px);
  padding: 1.75rem;
  background: rgba(12, 12, 20, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--why-spotlight-x, 50%) var(--why-spotlight-y, 50%),
    rgba(168, 85, 247, 0.08) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.why-card:hover::before {
  opacity: 1;
}
.why-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
  color: var(--accent-paint);
  opacity: 0.9;
}
.why-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.why-card h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.why-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.65; }

/* ===== Footer ===== */
footer {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.3), transparent);
  opacity: 0.6;
}
footer a { color: var(--text-muted); transition: color 0.2s; }
footer a:hover { color: var(--text); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin-bottom: 1.5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.25rem;
}
.footer-legal { margin: 0; }

/* ===== Skip link & Sticky nav ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #0a0a0a;
  font-weight: 600;
  z-index: 100;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
  .sticky-nav { transition: none; }
}
.sticky-nav.visible { transform: translateY(0); }
.sticky-logo { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; }
.sticky-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
@media (min-width: 768px) {
  .sticky-links { gap: 1.25rem; }
}
.sticky-links a { font-size: 0.875rem; color: var(--text-muted); }
.sticky-links a:hover { color: var(--text); }
