:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-elevated: #ffffff;
  --fg: #0a0a0a;
  --fg-secondary: #666666;
  --fg-muted: #999999;
  --accent: #0a0a0a;
  --accent-subtle: #f5f5f5;
  --border: #eaeaea;
  --border-subtle: #f2f2f2;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 4px 8px rgba(0,0,0,0.02);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.02), 0 12px 32px rgba(0,0,0,0.06);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
  --max-w: 1100px;
  --section-py: 120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== SKIP LINK ========== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--fg);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
  z-index: 200;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

/* ========== EYEBROW ========== */

.eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.12;
}

.section-sub {
  text-align: center;
  font-size: 16px;
  color: var(--fg-secondary);
  margin-bottom: 64px;
  line-height: 1.55;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== NAV ========== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.nav-toggle-input { display: none; }

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}

.nav-toggle-label span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--fg); }

.nav-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
}

.nav-btn {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--fg);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s;
}

.nav-btn:hover {
  background: #333;
}

/* ========== HERO ========== */

.hero {
  position: relative;
  padding: 0 0 64px;
  text-align: center;
  overflow: hidden;
}

.hero-outer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-container {
  position: relative;
  background: transparent;
  padding: 48px 0 0;
}

/* Large diamond grid background with shimmer */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.025) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.025) 75%);
  background-size: 80px 80px;
  background-position: 0 0, 0 40px, 40px -40px, -40px 0;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 0%, transparent 65%);
}

.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.5) 45%,
    rgba(255,255,255,0.8) 50%,
    rgba(255,255,255,0.5) 55%,
    transparent 60%
  );
  background-size: 250% 100%;
  animation: hero-shimmer 8s ease-in-out infinite;
}

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

/* Hero text */
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
  background: var(--bg);
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 16px);
  color: var(--fg-secondary);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ========== HERO MOCKUP AREA ========== */

.hero-mockup-area {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
}

/* -- Source input cards (left) -- */

.hero-sources {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 100px;
  padding-right: 0;
}

.hero-source {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-right: 8px;
  transition: box-shadow 0.2s;
}

.hero-source:hover { box-shadow: var(--shadow-sm); }

.hero-source-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-source-icon svg { width: 18px; height: 18px; }

.hero-source-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-source-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.hero-source-tag {
  font-size: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-source-dot {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: hero-dot-pulse 2s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(37,99,235,0); }
}

.hero-source-line {
  position: absolute;
  left: 100%;
  top: 50%;
  width: 60px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.hero-source-pulse {
  display: block;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  border-radius: 1px;
  animation: hero-pulse-travel 2.5s ease-in-out infinite;
}

@keyframes hero-pulse-travel {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(60px); }
}

/* -- Center: app column -- */

.hero-app-col {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

/* Notification card */
.hero-notif {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.hero-notif-icon {
  display: none;
}

.hero-notif > .hero-notif-body,
.hero-notif > .hero-notif-footer {
  /* layout handled below */
}

.hero-notif {
  display: flex;
  flex-direction: column;
}

.hero-notif-body {
  padding: 12px 16px 8px;
}

.hero-notif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hero-notif-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
}

.hero-notif-time {
  font-size: 10px;
  color: var(--fg-muted);
}

.hero-notif-headline {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}

.hero-notif-desc {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.hero-notif-footer {
  padding: 6px 16px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  display: flex;
  justify-content: flex-end;
}

.hero-notif-action {
  font-size: 11px;
  font-weight: 600;
  color: #ea580c;
  cursor: default;
}

/* App window */
.hero-app-window {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-app-header {
  height: 40px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--bg);
}

.hero-app-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-app-logo {
  width: 14px;
  height: 14px;
  color: var(--fg-muted);
}

.hero-app-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.hero-app-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-app-saving {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  padding: 2px 8px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: 4px;
}

.hero-app-dots {
  color: var(--fg-muted);
}

.hero-app-dots svg { width: 14px; height: 14px; }

/* Toolbar */
.hero-app-toolbar {
  height: 36px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 2px;
  background: rgba(248,248,248,0.5);
}

.hat-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: 4px;
  color: var(--fg-secondary);
  font-size: 12px;
  cursor: default;
}

.hat-btn:hover { background: var(--border-subtle); }
.hat-btn svg { width: 13px; height: 13px; }

.hat-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
}

/* App body: split panels, fixed height to prevent layout shift during typing */
.hero-app-body {
  display: flex;
  height: 240px;
}

.hero-app-prompt {
  flex: 2;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg);
  white-space: pre-wrap;
  text-align: left;
  border-right: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.editor-prompt {
  color: var(--fg-muted);
  user-select: none;
}

.editor-cursor {
  display: inline-block;
  color: var(--fg);
  animation: blink 1s steps(1) infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-app-preview {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 14px 14px;
  position: relative;
}

.hero-app-preview-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-garment-svg {
  width: 110px;
  height: auto;
  color: var(--fg);
}

.hero-gen-label {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.hero-gen-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

/* App footer */
.hero-app-footer {
  height: 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.hero-app-synced {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 500;
}

.hero-app-synced svg { width: 11px; height: 11px; }

/* Gradient fade at bottom of mockup */
.hero-mockup-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-alt) 100%);
  pointer-events: none;
  z-index: 5;
}

/* -- Floating output card (right) -- */

.hero-float {
  position: absolute;
  right: -40px;
  bottom: 40px;
  width: 240px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.02);
  z-index: 3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  pointer-events: none;
}

.hero-float.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hero-float-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.hero-float-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  padding: 2px 8px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: 6px;
}

.hero-float-badge svg { width: 8px; height: 8px; color: #22c55e; }

.hero-float-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-float-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-float-row:last-child { border-bottom: none; }

.hero-float-name {
  font-size: 12px;
  color: var(--fg-secondary);
}

.hero-float-status {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
}

.hero-float-status--done { color: #22c55e; }

.hero-float-status--wip {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-muted);
}

.hero-spin {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--border);
  border-top-color: var(--fg-muted);
  border-radius: 50%;
  animation: hero-spin 0.8s linear infinite;
}

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

.hero-float-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.hero-float-metric {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
}

/* Scroll link */
.hero-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s, gap 0.2s var(--ease-out);
  margin-top: 16px;
}

.hero-scroll-link:hover {
  color: var(--fg);
  gap: 8px;
}

.hero-scroll-link svg {
  transition: transform 0.3s var(--ease-out);
}

.hero-scroll-link:hover svg {
  transform: translateY(3px);
}

/* ========== PIPELINE ========== */

.pipeline {
  padding: var(--section-py) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pipeline-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pipeline-step {
  flex: 1;
  max-width: 190px;
  text-align: center;
  padding: 0 10px;
}

.step-num-wrap {
  margin-bottom: 16px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

.step-icon {
  width: 28px;
  height: 28px;
  color: var(--fg);
  margin-bottom: 14px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 13px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.pipeline-connector {
  width: 32px;
  min-width: 32px;
  height: 1px;
  background: var(--border);
  margin-top: 56px;
  position: relative;
}

.pipeline-connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--border);
  border-top: 1.5px solid var(--border);
  transform: rotate(45deg);
}

/* ========== PERSONAS ========== */

.personas {
  padding: var(--section-py) 0;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.persona-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s;
}

.persona-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: #d4d4d4;
}

.persona-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--fg);
}

.persona-icon svg {
  width: 24px;
  height: 24px;
}

.persona-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.persona-pain {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  font-style: italic;
}

.persona-solve {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ========== COMPARISON ========== */

.comparison {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.comparison-col {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}

.comparison-badge {
  display: inline-block;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  background: var(--accent-subtle);
  color: var(--fg-muted);
}

.comparison-badge--accent {
  background: var(--fg);
  color: #fff;
}

.comparison-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comparison-num {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.comparison-label {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

.comparison-old .comparison-num { color: var(--fg-muted); }
.comparison-new .comparison-num { color: var(--fg); }

/* ========== FEATURES ========== */

.features {
  padding: var(--section-py) 0;
}

.features .section-heading {
  margin-bottom: 72px;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-block:last-child { margin-bottom: 0; }

.feature-block--flipped { direction: rtl; }
.feature-block--flipped > * { direction: ltr; }

.feature-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.feature-desc {
  font-size: 15px;
  color: var(--fg-secondary);
  line-height: 1.7;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== SHARED MOCKUP CARD ========== */

.mockup-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s;
  overflow: hidden;
}

.mockup-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d4d4d4;
}

/* -- Shared mockup header -- */

.mu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mu-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mu-header-icon {
  width: 14px;
  height: 14px;
  color: var(--fg);
  flex-shrink: 0;
}

.mu-header-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.mu-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-subtle);
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.mu-badge--accent {
  background: var(--fg);
  color: #fff;
}

/* -- Shared tabs bar -- */

.mu-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 0 14px;
}

.mu-tab {
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 7px 10px;
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.mu-tab--active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* -- Shared footer -- */

.mu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mu-footer-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.mu-footer-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--fg);
  padding: 4px 10px;
  border-radius: 5px;
  cursor: default;
}

.mu-btn-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* ========== TECH PACK MOCKUP ========== */

.mockup-techpack { /* inherits mockup-card */ }

.mu-tp-body {
  display: flex;
  padding: 14px;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-tp-flat-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mu-tp-svg {
  width: 90px;
  height: auto;
  color: var(--fg);
}

.mu-tp-flat-label {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mu-tp-spec-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mu-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.mu-mini-table th {
  font-size: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-align: center;
  padding: 3px 4px 5px;
  border-bottom: 1px solid var(--border);
}

.mu-mini-table th:first-child { text-align: left; }

.mu-mini-table td {
  padding: 4px 4px;
  text-align: center;
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.mu-mini-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--fg);
}

.mu-mini-table tbody tr:last-child td { border-bottom: none; }

.mu-unit {
  font-size: 8px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.mu-tp-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-color-chip {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.mu-color-text {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-secondary);
}

.mu-color-hex {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  margin-left: auto;
}

.mu-tp-materials {
  padding: 6px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-mat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-mat-row:last-child { border-bottom: none; }

.mu-mat-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--fg);
}

.mu-mat-value {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

/* ========== MARKETING VISUALS MOCKUP ========== */

.mockup-model { /* inherits mockup-card */ }

.mu-vis-body {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-vis-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 8px;
  position: relative;
}

.mu-vis-canvas {
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 16px 16px;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mu-vis-figure {
  width: 70px;
  height: auto;
  color: var(--fg-muted);
}

.mu-vis-generating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  margin-top: 8px;
}

.mu-gen-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  animation: mu-pulse 2s ease-in-out infinite;
}

@keyframes mu-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.mu-vis-controls {
  width: 150px;
  border-left: 1px solid var(--border-subtle);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-alt);
}

.mu-ctrl-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-ctrl-row:last-child { border-bottom: none; }

.mu-ctrl-label {
  font-size: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.mu-ctrl-select {
  font-size: 10px;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: default;
}

.mu-ctrl-select svg {
  width: 7px;
  height: 7px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.mu-tone-picker {
  display: flex;
  gap: 4px;
  padding-top: 2px;
}

.mu-tone {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: default;
}

.mu-tone--active {
  border-color: var(--fg);
  box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--fg);
}

.mu-vis-gallery {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-vis-thumb {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mu-thumb-img {
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/5;
}

.mu-thumb-img svg {
  width: 80%;
  height: auto;
}

.mu-thumb-img--loading {
  opacity: 0.5;
}

.mu-thumb-badge {
  font-size: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.mu-thumb-badge--done {
  color: #22c55e;
}

/* ========== DESIGN EDITOR MOCKUP ========== */

.mockup-editor {
  overflow: hidden;
}

.mu-ed-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.mu-ed-tools, .mu-ed-history {
  display: flex;
  gap: 2px;
}

.mu-tool {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--fg-muted);
  cursor: default;
  transition: background 0.15s, color 0.15s;
}

.mu-tool:hover { background: var(--border-subtle); color: var(--fg-secondary); }

.mu-tool--active {
  background: var(--fg);
  color: #fff;
}

.mu-tool--active:hover { background: var(--fg); color: #fff; }

.mu-tool--disabled {
  opacity: 0.3;
}

.mu-tool svg { width: 12px; height: 12px; }

.mu-ed-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 4px;
}

.mu-ed-zoom {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  padding: 0 4px;
}

.mu-ed-main {
  display: flex;
  min-height: 200px;
}

.mu-ed-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 14px 14px;
  padding: 14px;
}

.mu-ed-garment {
  width: 100px;
  height: auto;
  color: var(--fg-secondary);
}

.mu-handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--bg);
  border: 1.5px solid var(--fg);
  border-radius: 50%;
}

.mu-handle--selected {
  background: var(--fg);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--fg);
}

.mu-ed-sidebar {
  width: 130px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.mu-ed-props {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex: 1;
}

.mu-ed-panel-title {
  display: block;
  font-size: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.mu-prop {
  padding: 4px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mu-prop:last-child { border-bottom: none; }

.mu-prop-label {
  display: block;
  font-size: 8px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.mu-prop-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 500;
  color: var(--fg);
  padding: 2px 5px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: default;
}

.mu-prop-select svg {
  width: 6px;
  height: 6px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.mu-ed-layers {
  padding: 8px 10px;
}

.mu-layer {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 0;
}

.mu-layer-eye {
  width: 11px;
  height: 11px;
  color: var(--fg-muted);
  flex-shrink: 0;
}

.mu-layer-name {
  font-size: 9px;
  color: var(--fg-secondary);
}

.mu-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.mu-status-left, .mu-status-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mu-status-icon {
  width: 8px;
  height: 8px;
}

.mu-status-center {
  font-variant-numeric: tabular-nums;
}

.mu-saved-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

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

.btn-ghost {
  background: transparent;
  color: var(--fg-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: #d4d4d4;
}

.btn-lg {
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

/* ========== HERO CTAS ========== */

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

/* ========== SOCIAL PROOF ========== */

.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 28px 0;
}

.proof-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.proof-num {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.proof-label {
  font-size: 12px;
  color: var(--fg-muted);
}

.proof-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ========== MID-PAGE CTA ========== */

.mid-cta {
  padding: 64px 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mid-cta-text {
  font-size: 16px;
  color: var(--fg-secondary);
  margin-bottom: 20px;
}

.mid-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ========== PRICING ========== */

.pricing {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d4d4d4;
}

.pricing-card--featured {
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured:hover {
  border-color: var(--fg);
  box-shadow: var(--shadow-lg);
}

.pricing-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--fg);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: 24px;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 10px;
}

.pricing-amount {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-period {
  font-size: 14px;
  color: var(--fg-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--fg-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-muted);
}

.pricing-card--featured .pricing-features li::before {
  background: var(--fg);
  border-color: var(--fg);
}

.pricing-cta {
  width: 100%;
  text-align: center;
}

/* ========== FINAL CTA ========== */

.final-cta {
  padding: var(--section-py) 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.final-cta-heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  line-height: 1.12;
}

.final-cta-sub {
  font-size: 16px;
  color: var(--fg-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

/* ========== SUBPAGE LAYOUTS ========== */

.subpage-hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}

.subpage-back {
  display: inline-block;
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.subpage-back:hover { color: var(--fg); }

.subpage-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 640px;
}

.subpage-sub {
  font-size: 16px;
  color: var(--fg-secondary);
  line-height: 1.6;
  max-width: 560px;
}

.subpage-cta {
  padding: var(--section-py) 0;
  text-align: center;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* ========== JOURNEY (SUBPAGE) ========== */

.journey-full {
  padding: var(--section-py) 0;
}

.journey-timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.journey-stage {
  position: relative;
  margin-bottom: 48px;
}

.journey-stage:last-child { margin-bottom: 0; }

.journey-num {
  position: absolute;
  left: -60px;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  z-index: 1;
}

.journey-body { padding-top: 4px; }

.journey-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.journey-desc {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.journey-tdb {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  line-height: 1.5;
  border-left: 2px solid var(--fg);
}

/* ========== CAPABILITIES (SUBPAGE) ========== */

.capabilities-full {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s var(--ease-out), border-color 0.2s;
}

.cap-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: #d4d4d4;
}

.cap-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--fg);
}

.cap-icon svg {
  width: 22px;
  height: 22px;
}

.cap-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cap-desc {
  font-size: 14px;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* ========== TECH PACK PREVIEW (REMOVED FROM MAIN, KEPT FOR REFERENCE) ========== */

.techpack-preview {
  padding: var(--section-py) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.techpack-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tp-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.tp-chrome-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-chrome-icon {
  width: 16px;
  height: 16px;
  color: var(--fg);
  flex-shrink: 0;
}

.tp-chrome-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.tp-chrome-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-subtle);
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.tp-chrome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-chrome-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.tp-chrome-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--fg);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: default;
}

.tp-chrome-btn svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.tp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 0 24px;
}

.tp-tab {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 10px 14px;
  cursor: default;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.tp-tab--active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.tp-cover {
  display: flex;
  gap: 36px;
  padding: 22px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.tp-status-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.tp-status-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.tp-status-right {
  font-size: 11px;
}

.tp-cover-item { min-width: 0; }

.tp-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.tp-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tp-color-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.tp-color-row .tp-label {
  margin-bottom: 0;
  flex-shrink: 0;
}

.tp-color-spec {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.tp-color-detail {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
}

.tp-flats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-subtle);
  border-bottom: 1px solid var(--border);
}

.tp-flat {
  background: var(--bg);
  padding: 28px;
  text-align: center;
}

.tp-flat-label {
  display: block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tp-flat-svg {
  width: 76px;
  height: auto;
  color: var(--fg-muted);
}

.tp-spec {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tp-table th {
  text-align: left;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.tp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}

.tp-table td:first-child { font-weight: 500; }
.tp-table tbody tr:last-child td { border-bottom: none; }

.tp-unit {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}

.tp-construction {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.tp-section-title {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 500;
}

.tp-table--construction td:nth-child(2) {
  font-family: var(--font-mono);
  font-size: 12px;
}

.tp-bom { padding: 24px 32px; }

.tp-bom-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.tp-bom-row:last-child { border-bottom: none; }
.tp-bom-item { font-weight: 500; }

.tp-bom-detail {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ========== FOOTER ========== */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.04em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 2px;
}

.footer-col-title {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
}

/* ========== SCROLL REVEAL ========== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  :root { --section-py: 100px; }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-block--flipped { direction: ltr; }

  .pipeline-connector { width: 16px; min-width: 16px; }

  .persona-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-sources { width: 140px; padding-top: 80px; }
  .hero-source-line { width: 30px; }
  .hero-float { right: -20px; width: 200px; bottom: 60px; }
  .hero-float-name { font-size: 11px; }

  .cap-grid { gap: 16px; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card--featured { order: -1; }
}

@media (max-width: 768px) {
  :root { --section-py: 80px; }

  .container { padding: 0 20px; }
  .nav-inner { padding: 0 16px; }

  .nav-toggle-label { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100dvh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 72px 24px 32px;
    gap: 20px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), visibility 0s 0.35s;
    z-index: 105;
    box-shadow: -12px 0 40px rgba(0,0,0,0.08);
  }

  .nav-sep { display: none; }

  .nav-toggle-input:checked ~ .nav-links {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease-out), visibility 0s 0s;
  }

  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }

  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero { padding: 0 0 32px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }

  .hero-outer { padding: 0 16px; }
  .hero-container { padding: 32px 0 0; }

  .proof-stats { flex-direction: column; gap: 16px; }
  .proof-sep { width: 40px; height: 1px; }

  .mid-cta-links { flex-direction: column; gap: 10px; }

  .hero-sources { display: none; }
  .hero-float { display: none; }

  .hero-mockup-area {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-app-col { max-width: 100%; }

  .hero-app-body { flex-direction: column; height: auto; }

  .hero-app-prompt {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    height: 140px;
    padding: 16px 20px;
  }

  .hero-app-preview { padding: 16px; min-height: 140px; }

  .hero-app-toolbar { overflow-x: auto; }

  .pipeline-track {
    flex-direction: column;
    align-items: center;
  }

  .pipeline-step {
    max-width: 100%;
    padding: 16px 0;
  }

  .pipeline-connector {
    width: 1px;
    min-width: 1px;
    height: 20px;
    margin-top: 0;
  }

  .pipeline-connector::after {
    right: -3px;
    top: auto;
    bottom: -1px;
    border-right: 1.5px solid var(--border);
    border-top: none;
    border-bottom: 1.5px solid var(--border);
    transform: rotate(45deg);
  }

  .feature-block { margin-bottom: 72px; }

  .journey-timeline { padding-left: 48px; }
  .journey-timeline::before { left: 14px; }
  .journey-num { left: -48px; width: 32px; height: 32px; font-size: 10px; }
  .journey-title { font-size: 16px; }
  .journey-desc { font-size: 14px; }
  .journey-stage { margin-bottom: 36px; }

  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { padding: 20px; }

  .subpage-hero { padding: 32px 0 40px; }
  .subpage-title { font-size: clamp(26px, 6vw, 36px); }

  .mu-vis-body { flex-direction: column; }

  .mu-vis-controls {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .mu-vis-controls .mu-ctrl-row {
    flex: 1;
    min-width: 45%;
    border-bottom: none;
  }

  .mu-ed-main { flex-direction: column; }

  .mu-ed-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
  }

  .mu-ed-props {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }

  .mu-ed-layers { flex: 1; }

  .tp-chrome { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .tp-chrome-actions { gap: 8px; }
  .tp-tabs { padding: 0 16px; overflow-x: auto; }
  .tp-tab { font-size: 11px; padding: 8px 10px; white-space: nowrap; }
  .tp-cover { flex-wrap: wrap; gap: 16px; padding: 18px 24px; }
  .tp-spec { padding: 20px 24px; }
  .tp-construction { padding: 20px 24px; }
  .tp-bom { padding: 20px 24px; }
  .tp-status-footer { padding: 8px 16px; }

  .tp-bom-row { flex-direction: column; gap: 2px; }

  .tp-color-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-float {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .editor-cursor {
    animation: none;
    opacity: 1;
  }

  .hero-source-dot,
  .hero-source-pulse,
  .hero-spin { animation: none; }

  .hero-grid-bg::after { animation: none; }

  html { scroll-behavior: auto; }

  .persona-card,
  .mockup-card { transition: none; }
}
