/* ============================================================
   SMARTTBUILDER — Marketing Site Styles
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --bg-dark:       #0f172a;
  --bg-elevated:   #1e293b;
  --bg-card:       #162032;
  --accent-cyan:   #06b6d4;
  --accent-blue:   #3b82f6;
  --accent-purple: #8b5cf6;
  --text-primary:  #f1f5f9;
  --text-muted:    #64748b;
  --text-dim:      #94a3b8;
  --border:        #334155;
  --border-light:  #1e3a5f;
  --glow-cyan:     rgba(6, 182, 212, 0.3);
  --glow-blue:     rgba(59, 130, 246, 0.3);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --transition:    0.22s ease;
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow:   0 0 40px rgba(6, 182, 212, 0.15);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ============================================================
   Utility Classes
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--bg-elevated);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

.accent-cyan { color: var(--accent-cyan); }
.accent-blue { color: var(--accent-blue); }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
  color: #0f172a;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, #22d3ee, var(--accent-cyan));
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo .logo-smartt {
  color: var(--accent-cyan);
}

.nav-logo .logo-builder {
  color: var(--text-primary);
}

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

.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 9px 20px;
  font-size: 0.875rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-mobile .btn {
  margin-top: 8px;
  justify-content: center;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
              var(--bg-dark);
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 65, 85, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 65, 85, 0.4) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 20s linear infinite;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  animation: float-up linear infinite;
  opacity: 0;
}

.hero-particle:nth-child(1)  { width: 3px; height: 3px; background: var(--accent-cyan); left: 15%; animation-duration: 12s; animation-delay: 0s; }
.hero-particle:nth-child(2)  { width: 2px; height: 2px; background: var(--accent-blue); left: 25%; animation-duration: 15s; animation-delay: 3s; }
.hero-particle:nth-child(3)  { width: 4px; height: 4px; background: var(--accent-cyan); left: 40%; animation-duration: 10s; animation-delay: 1s; }
.hero-particle:nth-child(4)  { width: 2px; height: 2px; background: var(--accent-purple); left: 55%; animation-duration: 14s; animation-delay: 5s; }
.hero-particle:nth-child(5)  { width: 3px; height: 3px; background: var(--accent-blue); left: 70%; animation-duration: 11s; animation-delay: 2s; }
.hero-particle:nth-child(6)  { width: 2px; height: 2px; background: var(--accent-cyan); left: 82%; animation-duration: 13s; animation-delay: 7s; }
.hero-particle:nth-child(7)  { width: 4px; height: 4px; background: var(--accent-blue); left: 8%; animation-duration: 16s; animation-delay: 4s; }
.hero-particle:nth-child(8)  { width: 2px; height: 2px; background: var(--accent-cyan); left: 92%; animation-duration: 9s; animation-delay: 6s; }

@keyframes float-up {
  0%   { opacity: 0; bottom: -10px; transform: translateX(0); }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { opacity: 0; bottom: 110%; transform: translateX(30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-headline .highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-social-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-social-proof-item svg {
  color: var(--accent-cyan);
}

/* App Mockup */
.hero-mockup {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(6, 182, 212, 0.1);
}

.mockup-topbar {
  background: #0a1628;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 auto;
  font-weight: 500;
}

.mockup-body {
  display: flex;
  height: 480px;
  background: var(--bg-dark);
}

/* Left panel */
.mockup-left {
  width: 200px;
  flex-shrink: 0;
  background: #0a1628;
  border-right: 1px solid var(--border);
  padding: 12px 0;
}

.mockup-panel-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 14px 10px;
}

.mockup-widget-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: default;
  border-radius: 0;
  transition: background 0.15s;
}

.mockup-widget-item:hover {
  background: rgba(255,255,255,0.04);
}

.mockup-widget-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* Canvas area */
.mockup-canvas {
  flex: 1;
  background:
    linear-gradient(rgba(51,65,85,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,65,85,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #0d1b30;
  position: relative;
  overflow: hidden;
}

.mockup-card-tab {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 2px;
  padding: 8px 12px 0;
  background: #0a1628;
  border-bottom: 1px solid var(--border);
}

.mockup-tab {
  padding: 5px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  color: var(--text-muted);
  background: transparent;
}

.mockup-tab.active {
  color: var(--text-primary);
  background: #0d1b30;
  border: 1px solid var(--border);
  border-bottom: 1px solid #0d1b30;
  margin-bottom: -1px;
}

/* Canvas widgets */
.mockup-widget {
  position: absolute;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Right panel */
.mockup-right {
  width: 220px;
  flex-shrink: 0;
  background: #0a1628;
  border-left: 1px solid var(--border);
  padding: 12px;
}

.mockup-prop-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mockup-prop-row {
  margin-bottom: 10px;
}

.mockup-prop-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.mockup-prop-field {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 5px;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.mockup-prop-field.has-value {
  color: var(--accent-cyan);
  border-color: rgba(6,182,212,0.3);
}

/* ============================================================
   Trust Bar
   ============================================================ */
.trust-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0.5;
  transition: opacity var(--transition);
  filter: grayscale(1);
}

.trust-logo:hover {
  opacity: 0.8;
  filter: none;
}

.trust-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* ============================================================
   Features Section
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.35);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================================
   Widget Showcase
   ============================================================ */
.widgets-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1420 100%);
}

.widget-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}

.widget-tab-btn {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-elevated);
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
}

.widget-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(6,182,212,0.4);
}

.widget-tab-btn.active {
  background: rgba(6,182,212,0.12);
  color: var(--accent-cyan);
  border-color: rgba(6,182,212,0.4);
}

.widget-panel {
  display: none;
}

.widget-panel.active {
  display: block;
}

.widget-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--transition);
  cursor: default;
}

.widget-pill:hover {
  background: rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.35);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.widget-pill-emoji {
  font-size: 0.9375rem;
  line-height: 1;
}

.widget-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6,182,212,0.15);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 4px;
}

/* ============================================================
   SMART Script Section
   ============================================================ */
.script-section {
  background: var(--bg-elevated);
}

.script-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.script-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.script-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.script-feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.script-feature-check svg {
  width: 10px;
  height: 10px;
  color: var(--accent-cyan);
}

.script-feature-text {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.script-feature-text strong {
  color: var(--text-primary);
}

/* Script tab bar */
.script-tabs-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.script-tab-bar {
  display: flex;
  gap: 4px;
  padding: 0 4px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-wrap: nowrap;
  margin-bottom: -1px; /* overlap code-block top border */
  position: relative;
  z-index: 1;
}

.script-tab-bar::-webkit-scrollbar { display: none; }

.script-tab-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.script-tab-btn:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

.script-tab-btn.active {
  color: var(--text-primary);
  background: #0a0f1e;
  border-color: var(--border);
  border-bottom-color: #0a0f1e;
}

/* Individual script examples — only the active one shown */
.script-example {
  display: none;
}

.script-example.active {
  display: block;
}

/* Code block */
.code-block {
  background: #0a0f1e;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.code-block-header {
  background: #111827;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-block-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-block-dot:nth-child(1) { background: #ff5f57; }
.code-block-dot:nth-child(2) { background: #febc2e; }
.code-block-dot:nth-child(3) { background: #28c840; }

.code-block-filename {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
}

.code-block-body {
  padding: 24px;
  overflow-x: auto;
}

.code-block-body pre {
  margin: 0;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  color: #c9d1d9;
}

/* Syntax colours */
.sy-keyword  { color: #ff79c6; font-weight: 600; }
.sy-string   { color: #f1fa8c; }
.sy-number   { color: #bd93f9; }
.sy-comment  { color: #6272a4; font-style: italic; }
.sy-widget   { color: #50fa7b; }
.sy-var      { color: #8be9fd; }
.sy-func     { color: #ffb86c; }
.sy-operator { color: #ff79c6; }
.sy-url      { color: #f1fa8c; text-decoration: underline; text-decoration-color: rgba(241,250,140,0.3); }

/* ============================================================
   AI Assistant Section
   ============================================================ */
.ai-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1828 100%);
}

.ai-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a78bfa;
  margin-bottom: 24px;
}

.ai-providers {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.ai-provider-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
}

.ai-provider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* Chat mockup */
.chat-mockup {
  width: 100%;
  max-width: 720px;
  margin: 52px auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), var(--shadow-glow);
}

.chat-header {
  background: #0a1628;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-header-info {
  flex: 1;
}

.chat-header-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-header-status {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s infinite;
}

.chat-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-msg.user {
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-msg.user .chat-msg-avatar {
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.3);
}

.chat-msg.ai .chat-msg-avatar {
  background: linear-gradient(135deg, #8b5cf6, var(--accent-cyan));
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.chat-msg.user .chat-bubble {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--text-primary);
  border-top-right-radius: 4px;
}

.chat-msg.ai .chat-bubble {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--text-dim);
  border-top-left-radius: 4px;
}

.chat-bubble strong {
  color: var(--text-primary);
}

.chat-build-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-build-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.chat-build-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(6,182,212,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  color: var(--accent-cyan);
}

.chat-input-bar {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a1628;
}

.chat-input-field {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: inherit;
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

/* ============================================================
   Templates Section
   ============================================================ */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.template-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border-color: rgba(6,182,212,0.3);
}

.template-preview {
  height: 176px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}


.template-info {
  padding: 18px 20px;
}

.template-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.template-desc {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.template-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: rgba(6,182,212,0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(6,182,212,0.2);
}

/* ============================================================
   Template card mini-mockups
   ============================================================ */

/* Hover CTA overlay */
.tpl-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.template-card:hover .tpl-hover-overlay {
  opacity: 1;
}

.tpl-hover-overlay span {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(6,182,212,0.4);
}

/* Base mockup wrapper — fills the preview area */
.tpl {
  position: absolute;
  inset: 0;
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 7.5px;
  font-family: var(--font);
  overflow: hidden;
  box-sizing: border-box;
}

/* Fake search bar */
.tpl-search {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 8px;
  color: rgba(255,255,255,0.35);
  font-size: 7px;
  flex-shrink: 0;
  margin-bottom: 2px;
}

/* Table row */
.tpl-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 4px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Avatar circle (small — list rows) */
.tpl-av {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Text placeholder line */
.tpl-text {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
  flex: 1;
}

/* Coloured badge pill */
.tpl-badge {
  padding: 1.5px 5px;
  border-radius: 3px;
  font-size: 6px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* Priority / status dot */
.tpl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Stat cards row */
.tpl-stats {
  display: flex;
  gap: 4px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.tpl-stat {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 5px 6px 4px;
}

.tpl-stat-val {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  margin-bottom: 2px;
}

.tpl-stat-label {
  font-size: 5.5px;
  color: rgba(255,255,255,0.38);
  line-height: 1;
}

.tpl-stat-delta {
  font-size: 6px;
  margin-top: 2px;
  font-weight: 600;
}

/* Progress bar (inventory) */
.tpl-progress-wrap {
  width: 70px;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.tpl-progress {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

/* Kanban board */
.tpl-kanban {
  display: flex;
  gap: 5px;
  flex: 1;
  overflow: hidden;
}

.tpl-kanban-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.tpl-kanban-header {
  font-size: 5.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.tpl-kanban-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 4px 5px;
  font-size: 6.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.2;
  flex-shrink: 0;
}

/* Calendar (booking) */
.tpl-cal-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.tpl-cal-day-label {
  font-size: 5.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-align: center;
  letter-spacing: 0.04em;
}

.tpl-cal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  flex: 1;
}

.tpl-cal-slot {
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.tpl-booked {
  background: rgba(6,182,212,0.3);
  border-color: rgba(6,182,212,0.5);
}

/* Mini CTA button (booking) */
.tpl-btn {
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.28);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 7px;
  font-weight: 600;
  color: rgba(6,182,212,0.8);
  text-align: center;
  flex-shrink: 0;
}

/* Avatar grid (employee directory) */
.tpl-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 4px;
  padding: 2px 2px 0;
  flex: 1;
}

.tpl-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tpl-av-lg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.tpl-av-name {
  font-size: 5.5px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ============================================================
   Collaboration Section
   ============================================================ */
.collab-section {
  background: var(--bg-elevated);
}

.collab-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.collab-block {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.collab-block:hover {
  border-color: rgba(6,182,212,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.collab-block-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.collab-block-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.collab-block-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   Pricing Section
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.popular {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
              linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)) border-box;
  box-shadow: 0 0 60px rgba(6,182,212,0.12), 0 20px 40px rgba(0,0,0,0.3);
  transform: scale(1.03);
}

.pricing-card.popular:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.pricing-price sup {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: 10px;
  display: inline-block;
}

.pricing-price-period {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(6,182,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 10px;
  color: var(--accent-cyan);
}

.pricing-card.popular .pricing-check {
  background: rgba(6,182,212,0.25);
}

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

/* Pricing toggle */
.pricing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 0;
}

.pricing-toggle {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 2px;
}

.pricing-toggle-btn {
  background: transparent;
  border: none;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pricing-toggle-btn.active {
  background: var(--accent-blue);
  color: #fff;
}

.pricing-toggle-btn:not(.active):hover {
  color: var(--text-primary);
}

.pricing-save-badge {
  background: linear-gradient(135deg, var(--accent-cyan), #16a34a);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.pricing-annual-note {
  font-size: 0.8125rem;
  color: var(--accent-cyan);
  font-weight: 500;
  min-height: 1.2em;
  transition: opacity 0.2s;
}

.pricing-annual-note.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Final CTA Section
   ============================================================ */
.final-cta {
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(6,182,212,0.1) 0%, transparent 70%),
              var(--bg-dark);
  text-align: center;
  padding: 120px 0;
}

.final-cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.final-cta-sub {
  font-size: 1.125rem;
  color: var(--text-dim);
  margin: 0 auto 40px;
  max-width: 500px;
  line-height: 1.7;
}

.final-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #080e1c;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.footer-social-icon:hover {
  background: rgba(6,182,212,0.1);
  border-color: rgba(6,182,212,0.3);
  color: var(--accent-cyan);
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* ============================================================
   Publish & Deploy Section
   ============================================================ */
.publish-section {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(6,182,212,0.07) 0%, transparent 70%);
}

/* Step flow */
.publish-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 56px 0 64px;
}

.publish-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 200px;
  padding: 0 8px;
}

.publish-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.publish-step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.publish-step-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.publish-step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.publish-step-arrow {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  align-self: center;
  padding: 0 4px;
  opacity: 0.5;
  flex-shrink: 0;
  margin-top: -40px;
}

/* Mockup panels */
.publish-mockup-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 56px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.publish-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.publish-panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.publish-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.publish-panel-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 500;
}

.publish-panel-body {
  padding: 20px;
  flex: 1;
}

/* Library panel */
.publish-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.publish-library-logo {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.publish-library-role {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(6,182,212,0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(6,182,212,0.25);
}

.publish-library-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.publish-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.publish-app-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.publish-app-card:hover,
.publish-app-active {
  border-color: rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.06);
}

.publish-app-icon {
  font-size: 1.375rem;
  margin-bottom: 6px;
  line-height: 1;
}

.publish-app-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.publish-app-open {
  font-size: 0.6875rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

/* Divider between panels */
.publish-panel-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  gap: 6px;
  width: 56px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.publish-panel-divider-line {
  width: 1px;
  flex: 1;
  background: var(--border);
}

.publish-panel-divider-label {
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  white-space: nowrap;
}

/* Running app panel */
.publish-app-running {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.publish-stats-row {
  display: flex;
  gap: 10px;
}

.publish-stat {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 10px 8px;
}

.publish-stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.publish-stat-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.publish-stat-delta {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 2px;
}

.publish-stat-delta.up   { color: #22c55e; }
.publish-stat-delta.down { color: #ef4444; }

.publish-chart-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.publish-chart-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.publish-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.publish-readonly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.22);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

/* Role comparison */
.publish-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.publish-role {
  border-radius: 14px;
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.publish-role-admin {
  border-color: rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.04);
}

.publish-role-viewer {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.04);
}

.publish-role-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.publish-role-icon {
  font-size: 1.375rem;
}

.publish-role-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.publish-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.publish-role-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.publish-role-list li:nth-child(n+5) {
  color: #64748b;
}

/* ============================================================
   Responsive — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .script-layout {
    gap: 40px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .mockup-left { width: 160px; }
  .mockup-right { width: 180px; }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero { padding: 100px 0 64px; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .script-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .script-tab-btn {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collab-blocks {
    grid-template-columns: 1fr;
  }

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

  .pricing-card.popular {
    transform: scale(1);
    order: -1;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .mockup-left,
  .mockup-right {
    display: none;
  }

  .trust-logos {
    gap: 28px;
  }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero-headline { font-size: 2.25rem; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .widget-tabs {
    gap: 6px;
  }

  .widget-tab-btn {
    padding: 7px 14px;
    font-size: 0.8125rem;
  }

  .collab-blocks {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .publish-steps {
    flex-direction: column;
    gap: 12px;
  }

  .publish-step-arrow {
    transform: rotate(90deg);
    font-size: 1.25rem;
  }

  .publish-mockup-wrap {
    flex-direction: column;
  }

  .publish-panel-divider {
    flex-direction: row;
  }

  .publish-panel-divider-line {
    flex: 1;
    height: 1px;
    width: auto;
  }

  .publish-roles {
    grid-template-columns: 1fr;
  }
}
