html, body {
  font-family: 'Google Sans', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #0a0a0a;
}

/* ── AI Blob Animation (Siri-style) ── */
.ai-blob-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .ai-blob-container {
    width: 112px;
    height: 112px;
  }
}

.ai-blob {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: blur(1px);
}

.ai-blob-1 {
  background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.8), rgba(139, 92, 246, 0.6), transparent 70%);
  animation: blob-morph-1 8s ease-in-out infinite;
}

.ai-blob-2 {
  background: radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.6), rgba(167, 139, 250, 0.5), transparent 70%);
  animation: blob-morph-2 10s ease-in-out infinite;
}

.ai-blob-3 {
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.5), rgba(96, 165, 250, 0.4), transparent 70%);
  animation: blob-morph-3 12s ease-in-out infinite;
}

.ai-blob-core {
  position: absolute;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.3) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 30px rgba(255,255,255,0.8),
    0 0 60px rgba(167,139,250,0.4),
    0 0 90px rgba(96,165,250,0.3);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes blob-morph-1 {
  0%, 100% { 
    transform: scale(1) translate(0, 0); 
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% { 
    transform: scale(1.05) translate(5%, -5%); 
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% { 
    transform: scale(0.95) translate(-5%, 5%); 
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
  }
  75% { 
    transform: scale(1.02) translate(3%, 3%); 
    border-radius: 60% 40% 60% 40% / 70% 30% 50% 60%;
  }
}

@keyframes blob-morph-2 {
  0%, 100% { 
    transform: scale(0.95) translate(0, 0) rotate(0deg); 
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
  }
  33% { 
    transform: scale(1.05) translate(-8%, 5%) rotate(120deg); 
    border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
  }
  66% { 
    transform: scale(0.98) translate(8%, -5%) rotate(240deg); 
    border-radius: 30% 70% 70% 30% / 50% 50% 50% 50%;
  }
}

@keyframes blob-morph-3 {
  0%, 100% { 
    transform: scale(1) translate(0, 0) rotate(0deg); 
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  }
  50% { 
    transform: scale(1.1) translate(0, 0) rotate(180deg); 
    border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
  }
}

@keyframes core-pulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 0 30px rgba(255,255,255,0.8),
      0 0 60px rgba(167,139,250,0.4),
      0 0 90px rgba(96,165,250,0.3);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 
      0 0 40px rgba(255,255,255,0.9),
      0 0 80px rgba(167,139,250,0.5),
      0 0 120px rgba(96,165,250,0.4);
  }
}

/* ── Site header ── */
#site-header {
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#site-header.header-hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none !important;
}

#site-header > * {
  pointer-events: auto;
}

#site-header.header-hidden > * {
  pointer-events: none;
}

.site-nav-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-radius: 0;
  background: transparent;
  transition: none;
  border: 1px solid transparent;
}

/* RAEM wordmark — white on dark hero; badge keeps SVG fills/gradients */
.site-nav-inner #site-logo .logo-raem path {
  fill: #ffffff;
  transition: fill 0.3s;
}

/* Nav links — initial (dark hero) */
.site-nav-inner .nav-link {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s, background-color 0.2s;
}
.site-nav-inner .nav-link:hover {
  color: rgba(255, 255, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.08);
}

/* CTA — initial (ghost white) */
.site-nav-inner .nav-cta-btn {
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}
.site-nav-inner .nav-cta-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Mobile toggle — initial */
.site-nav-inner .nav-toggle-btn {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}
.site-nav-inner .nav-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ── Floating island header (appears from top on scroll) ── */
.floating-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  max-width: 680px;
  width: calc(100% - 32px);
  margin-top: 12px;
  padding: 6px 6px 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: 
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.floating-nav.nav-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-nav #floating-logo {
  filter: none;
  height: auto;
  max-height: 28px;
}

.floating-nav .nav-link {
  color: rgba(23, 23, 23, 0.6);
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
}
.floating-nav .nav-link:hover {
  color: rgba(23, 23, 23, 0.95);
  background-color: rgba(0, 0, 0, 0.05);
}

.floating-nav .nav-cta-btn {
  color: #fff;
  border: none;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 -1px 2px rgba(0,0,0,0.1) inset,
    0 4px 12px -2px rgba(0,0,0,0.2);
}
.floating-nav .nav-cta-btn:hover {
  background: linear-gradient(180deg, #333 0%, #222 100%);
}

.floating-nav .nav-toggle-btn {
  color: rgba(23, 23, 23, 0.7);
  background: rgba(0, 0, 0, 0.05);
}
.floating-nav .nav-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Bare hamburger for floating nav */
.nav-toggle-btn-bare {
  color: rgba(23, 23, 23, 0.65);
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle-btn-bare:hover {
  color: rgba(23, 23, 23, 0.95);
}

/* Mobile menu CTA — 16px between label and arrow (overrides .btn-primary gap) */
#mobile-menu a.btn-primary[href="#cta"] {
  gap: 16px;
}

/* Static gradient orb */
.gradient-orb {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #60a5fa 100%);
}

.gradient-orb-blur {
  background: radial-gradient(ellipse at center, 
    rgba(96,165,250,0.25) 0%, 
    rgba(139,92,246,0.15) 30%,
    rgba(167,139,250,0.1) 50%, 
    transparent 70%);
  pointer-events: none;
}

/* Vertical gradient text */
.text-gradient-vertical {
  background-image: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Hero Background Effects (Linear.ai style) ── */
.hero-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Dot pattern */
.grid-pattern,
.dot-pattern {
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.5px, transparent 0);
  background-size: 28px 28px;
}

/* Radial gradient overlay */
.hero-radial-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, 
    rgba(96,165,250,0.15) 0%,
    rgba(139,92,246,0.08) 40%,
    transparent 70%);
}

/* Tech lines - Linear.ai style */
.tech-lines {
  position: absolute;
  inset: 0;
}

.tech-line {
  position: absolute;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(96,165,250,0.3) 20%,
    rgba(139,92,246,0.4) 50%,
    rgba(96,165,250,0.3) 80%,
    transparent 100%);
  height: 1px;
  animation: line-glow 4s ease-in-out infinite;
}

.tech-line-1 {
  top: 15%;
  left: 0;
  right: 0;
  animation-delay: 0s;
}

.tech-line-2 {
  top: 35%;
  left: 10%;
  right: 10%;
  animation-delay: 1s;
}

.tech-line-3 {
  top: 55%;
  left: 5%;
  right: 5%;
  animation-delay: 2s;
}

.tech-line-4 {
  top: 75%;
  left: 15%;
  right: 15%;
  animation-delay: 3s;
}

/* Vertical accent lines */
.tech-line-v {
  position: absolute;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(139,92,246,0.2) 30%,
    rgba(96,165,250,0.15) 70%,
    transparent 100%);
  width: 1px;
  height: 40%;
}

.tech-line-v-1 {
  left: 20%;
  top: 10%;
  animation: line-fade 6s ease-in-out infinite;
}

.tech-line-v-2 {
  right: 20%;
  top: 20%;
  animation: line-fade 6s ease-in-out infinite 2s;
}

.tech-line-v-3 {
  left: 35%;
  top: 30%;
  height: 30%;
  animation: line-fade 6s ease-in-out infinite 1s;
}

.tech-line-v-4 {
  right: 35%;
  top: 15%;
  height: 35%;
  animation: line-fade 6s ease-in-out infinite 3s;
}

/* Glowing nodes at intersections */
.glow-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(167,139,250,0.8);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(167,139,250,0.6), 0 0 40px rgba(96,165,250,0.3);
  animation: node-pulse 3s ease-in-out infinite;
}

.glow-node-1 { top: 15%; left: 20%; animation-delay: 0s; }
.glow-node-2 { top: 35%; right: 25%; animation-delay: 0.5s; }
.glow-node-3 { top: 55%; left: 30%; animation-delay: 1s; }
.glow-node-4 { top: 75%; right: 30%; animation-delay: 1.5s; }
.glow-node-5 { top: 25%; left: 50%; animation-delay: 2s; }

@keyframes line-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes line-fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

@keyframes node-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: scale(1.5);
    opacity: 1;
  }
}

/* Hero bottom fade to white - smooth multi-stop gradient */
.hero-fade-to-white {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 450px;
  background: linear-gradient(
    0deg,
    #ffffff,
    #fafafa 4%,
    #f5f5f5 8%,
    #e8e8e8 12%,
    #d4d4d4 18%,
    #a3a3a3 26%,
    #737373 35%,
    #525252 44%,
    #404040 52%,
    #2d2d2d 60%,
    #1f1f1f 68%,
    #171717 75%,
    #0f0f0f 82%,
    #0a0a0a 88%,
    #050508 94%,
    transparent 100%
  );
  pointer-events: none;
}

/* Converging lines to AI point - improved */
.converge-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.converge-lines::before,
.converge-lines::after {
  content: '';
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.3), transparent);
}

.converge-lines::before {
  top: 25%;
  left: 0;
  right: 50%;
  transform-origin: right center;
  animation: converge-line 5s ease-in-out infinite;
}

.converge-lines::after {
  top: 25%;
  left: 50%;
  right: 0;
  transform-origin: left center;
  animation: converge-line 5s ease-in-out infinite 0.5s;
}

@keyframes converge-line {
  0% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 0.5; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 -1px 2px rgba(0,0,0,0.1) inset,
    0 4px 12px -2px rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #333 0%, #222 100%);
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 -1px 2px rgba(0,0,0,0.1) inset,
    0 8px 20px -4px rgba(0,0,0,0.3),
    0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary-white {
  /* Самодостаточный класс — не требует btn-primary */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%);
  color: #111;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 4px 16px -2px rgba(0,0,0,0.35),
    0 2px 6px rgba(0,0,0,0.18);
}
.btn-primary-white:hover {
  /* С .btn-primary вместе: иначе :hover тёмной кнопки даёт фон, а текст остаётся #111 */
  background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
  color: #111;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    0 8px 24px -4px rgba(0,0,0,0.4),
    0 4px 10px rgba(0,0,0,0.22);
}
.btn-primary-white:active { transform: translateY(0); }
.btn-primary-white:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  color: rgba(23, 23, 23, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary-light:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

.button-dark {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  box-shadow:
    0 1px 2px rgba(255,255,255,0.15) inset,
    0 -1px 2px rgba(0,0,0,0.1) inset,
    0 4px 12px -2px rgba(0,0,0,0.25);
}

.button-white {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.05) inset,
    0 4px 12px -2px rgba(0,0,0,0.15);
}

/* Glass morphism */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-badge {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}

.glass-badge-light {
  background: linear-gradient(135deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.02) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* ── Process Scrollytelling ── */

/* Outer scroll container — ~30vh per step of scroll */
/* Steps sidebar (left ~44%) */
.process-steps-sidebar {
  width: 44%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Connector line between steps */
.process-step-connector {
  position: relative;
  height: 28px;
  pointer-events: none;
}
.process-step-connector::before {
  content: '';
  position: absolute;
  /* align with icon center: step padding 0.875rem + num 1.5rem + gap 0.625rem + half-icon 1.0625rem = 4.0625rem, then minus 1px for half line-width */
  left: calc(0.875rem + 1.5rem + 0.625rem + 1.0625rem - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8e8e8;
  border-radius: 1px;
  transition: background 0.35s ease;
}
.process-step-connector.is-done::before {
  background: #222;
}

.process-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 0.875rem;
  border-radius: 1rem;
  opacity: 0.3;
  transition: opacity 0.35s ease, background-color 0.25s ease;
  cursor: pointer;
}

@media (hover: hover) {
  .process-step-item:not(.is-active):hover {
    opacity: 0.6;
  }
}

.process-step-item.is-active {
  opacity: 1;
  background-color: #f7f7f7;
}

.process-step-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

.process-step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a3a3a3;
  width: 1.5rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.process-step-item.is-active .process-step-num {
  color: #525252;
}

.process-step-icon-wrap {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.625rem;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #737373;
  transition: background-color 0.35s ease, color 0.35s ease;
  flex-shrink: 0;
}

.process-step-item.is-active .process-step-icon-wrap {
  background: #111111;
  color: #ffffff;
}

.process-step-content {
  flex: 1;
  min-width: 0;
}

.process-step-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.process-step-desc {
  font-size: 0.775rem;
  color: #737373;
  line-height: 1.55;
}

/* Visual panel — compact card */
.process-visual-wrapper {
  flex: 1;
  position: relative;
  height: min(520px, 72vh);
  min-height: 380px;
}

.process-visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.984);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.process-visual.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* macOS-style dark window card */
.pv-card {
  width: 100%;
  height: 100%;
  background: #0f0f0f;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.18),
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.pv-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: #171717;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  flex-shrink: 0;
}

.pv-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.pv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pv-red    { background: #ff5f57; }
.pv-yellow { background: #febc2e; }
.pv-green  { background: #28c840; }

.pv-label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  flex: 1;
  text-align: center;
}

.pv-url-bar {
  flex: 1;
  margin: 0 0.75rem;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 9999px;
  padding: 0.22rem 0.75rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

.pv-body {
  flex: 1;
  overflow: hidden;
  color: white;
}

.pv-pad {
  padding: 1.25rem 1.375rem;
  height: 100%;
  box-sizing: border-box;
}

.pv-section-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 0.875rem;
}

.pv-field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.75rem;
  padding: 0.6rem 0.875rem;
}

.pv-field-label {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.32);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.pv-field-value {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.pv-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.85em;
  background: rgba(255, 255, 255, 0.75);
  margin-left: 1px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.pv-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  width: 90px;
}

.pv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  border-radius: 2px;
}

/* Code editor syntax */
.pv-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.76rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
}

.pv-indent { padding-left: 1.25rem; }
.pv-tag    { color: #c678dd; }
.pv-attr   { color: #61afef; }
.pv-str    { color: #98c379; }
.pv-text   { color: #e5c07b; }
.pv-muted  { color: rgba(255, 255, 255, 0.38); }
.pv-comment { color: rgba(255, 255, 255, 0.22); font-style: italic; }

.pv-badge {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 600;
}
.pv-badge-blue   { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }
.pv-badge-purple { background: rgba(139, 92, 246, 0.14); color: #a78bfa; }
.pv-badge-yellow { background: rgba(234, 179, 8, 0.14);  color: #eab308; }

/* ── Step 3: Realistic browser preview ── */
.pv-header-browser {
  background: #1a1a1a;
}

.pv-browser-body {
  background: #ffffff;
  color: #111;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pv-site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.pv-site-logo {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.pv-site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.68rem;
  color: #737373;
  font-weight: 500;
}

.pv-site-cta {
  background: #111;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.pv-site-hero {
  position: relative;
  flex: 1;
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(58, 30, 15, 0.55) 0%, rgba(20, 10, 5, 0.75) 100%),
    url('https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?auto=format&fit=crop&w=900&q=70');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 1.25rem 1.25rem;
  overflow: hidden;
}

.pv-site-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left, rgba(0,0,0,0.35) 0%, transparent 70%);
}

.pv-site-hero-content {
  position: relative;
  z-index: 1;
  max-width: 70%;
}

.pv-site-eyebrow {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.625rem;
  letter-spacing: 0.02em;
}

.pv-site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pv-site-hero-buttons {
  display: flex;
  gap: 0.5rem;
}

.pv-site-btn-primary {
  background: #f59e0b;
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 9999px;
}

.pv-site-btn-ghost {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border-radius: 9999px;
}

.pv-site-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.875rem 1rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.pv-site-feature {
  text-align: center;
  border-right: 1px solid #e5e5e5;
}

.pv-site-feature:last-child {
  border-right: none;
}

.pv-site-feature-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
}

.pv-site-feature-label {
  font-size: 0.6rem;
  color: #737373;
  margin-top: 0.1rem;
}

/* Mobile process steps — timeline style */
.process-mobile-step {
  display: flex;
  gap: 1rem;
  padding-bottom: 0;
}

.process-mobile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.process-mobile-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1rem;
}

.process-mobile-line {
  width: 2px;
  flex: 1;
  min-height: 1.5rem;
  background: #e8e8e8;
  border-radius: 1px;
  margin: 0.375rem 0;
}

.process-mobile-body {
  padding-bottom: 1.5rem;
}

.process-mobile-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #a3a3a3;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.process-mobile-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.process-mobile-desc {
  font-size: 0.8125rem;
  color: #737373;
  line-height: 1.55;
}

/* Legacy process card (kept for safety) */
.process-card-step {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card-step:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4), 0 0 20px rgba(96,165,250,0.08);
}

/* Slide-up animation */
@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up-fade 0.6s ease-out forwards;
}

/* Typing cursor */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.typing-cursor {
  animation: blink 1s step-end infinite;
}

/* Building blocks animation */
@keyframes block-appear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.block-animate {
  animation: block-appear 0.4s ease-out forwards;
}

/* Glow pulse */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.glow-line {
  animation: glow-pulse 4s ease-in-out infinite;
}

/* Browser mockup responsive */
.browser-mockup {
  width: 100%;
  max-width: 900px;
}

.browser-viewport {
  width: 100%;
  aspect-ratio: 864 / 441;
}

/* Pricing cards */
.pricing-card-light {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card-light:hover {
  transform: translateY(-2px);
}
.pricing-card-dark {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
}

/* Mobile menu styles */
#mobile-menu {
  animation: menu-slide-down 0.3s ease-out;
}

button.p-2\.5 {
  padding: 0.45rem 0.65rem;
}

@keyframes menu-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section transitions */
.section-dark-to-light {
  background: linear-gradient(to bottom, #050508 0%, #050508 80%, #ffffff 100%);
}

.section-dark-smooth {
  background: none;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Loading shimmer for demo */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.05) 0%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Hero demo states */
.demo-state-typing .demo-loading,
.demo-state-typing .demo-result { display: none; }

.demo-state-loading .demo-input,
.demo-state-loading .demo-result { opacity: 0.5; }

.demo-state-result .demo-loading { display: none; }

/* Loading spinner */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Progress bar */
.progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  border-radius: 2px;
  animation: progress-fill 2s ease-out forwards;
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ── Feature cards (2-col grid with 3D bg icons) ── */
.feat-card {
  min-height: 220px;
}

@media (min-width: 768px) {
  .feat-card {
    min-height: 260px;
  }
}

.feat-card__title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 0.875rem;
  max-width: 16ch;
}

@media (min-width: 768px) {
  .feat-card__title {
    font-size: 1.875rem;
  }
}

.feat-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.38);
  max-width: 34ch;
}

.feat-card__icon {
  position: absolute;
  right: -1rem;
  bottom: calc(-1.25rem + 15px);
  width: 180px;
  height: 180px;
  object-fit: contain;
  opacity: 0.18;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
  pointer-events: none;
  user-select: none;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  transform: rotate(-8deg) scale(1);
}

@media (min-width: 768px) {
  .feat-card__icon {
    width: 220px;
    height: 220px;
    right: -0.5rem;
    bottom: calc(-1.5rem + 15px);
  }
}

.feat-card:hover .feat-card__icon {
  opacity: 0.28;
  transform: rotate(-4deg) scale(1.06);
}
