/* ============================================
   BliBling Agency — Design System
   ============================================ */

:root {
  --blue-dark: #060f1f;
  --blue-mid: #0a1830;
  --blue-surface: #0f2242;
  --purple-dark: #08061a;
  --purple-mid: #0d0a22;
  --purple-surface: #14102e;
  --blue-accent: #4d7cff;
  --blue-glow: #6b94ff;
  --purple-accent: #8b6aff;
  --purple-glow: #a88bff;
  --cyan-accent: #4ecdc4;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.9);
  --white-muted: rgba(255, 255, 255, 0.65);
  --white-faint: rgba(255, 255, 255, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-height: 72px;
  --section-padding: clamp(64px, 8vw, 100px);
  --page-gutter: clamp(2rem, 5vw, 4.5rem);
  --container-max: 1180px;
}

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

html {
  scroll-behavior: auto;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: var(--white-soft);
  background: var(--blue-dark);
  overflow-x: hidden;
  cursor: none;
}

.logo-rounded {
  border-radius: 12px;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

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

ul[role="list"] {
  list-style: none;
}

strong {
  font-weight: 600;
  color: var(--white);
}

h1, h2, h3, h4, h5, h6, p, li, label, blockquote, cite, .section-text, .hero-lead, .hero-tagline, .btn, .detail-value {
  overflow: visible;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  padding-bottom: 0.2em;
  -webkit-font-smoothing: antialiased;
}

p, .section-text, .founder-text p, .step-content p, .service-card-body > p, .niche-panel p, .ai-feature p {
  line-height: 1.6;
}

/* Solid accent text (wedding site approach — no background-clip, descenders stay intact) */
.section-title em {
  font-style: normal;
  color: var(--purple-glow);
}

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

.ai-feature-number {
  color: var(--purple-accent);
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--page-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* ============================================
   Custom Cursor
   ============================================ */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10002;
  pointer-events: none;
  contain: layout style;
}

body.lightbox-open .cursor-dot {
  background: var(--blue-accent);
}

body.lightbox-open .cursor-ring {
  border-color: var(--blue-accent);
}

.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 16, 36, 0.45);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo);
}

.cursor-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 16, 36, 0.25);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), opacity 0.3s;
}

.cursor.is-hovering .cursor-dot {
  width: 0;
  height: 0;
}

.cursor.is-hovering .cursor-ring {
  width: 60px;
  height: 60px;
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
  button { cursor: pointer; }
}

/* ============================================
   Page Loader
   ============================================ */

.section--blue {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(77, 124, 255, 0.08) 0%, transparent 55%),
    linear-gradient(165deg, var(--blue-dark) 0%, var(--blue-mid) 55%, #0c1e3f 100%);
}

.section--purple {
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(139, 106, 255, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, var(--purple-dark) 0%, var(--purple-mid) 55%, #140f32 100%);
}

.section--purple .founder-accent-card,
.section--purple .ai-feature,
.section--purple .contact-form,
.section--purple .lightbox-panel {
  background: var(--purple-surface);
}

.section--purple .step-marker {
  background: var(--purple-mid);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  margin-inline: auto;
  opacity: 0;
  animation: loaderFadeIn 1s var(--ease-out-expo) 0.2s forwards;
}

.loader-line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-accent), var(--purple-accent));
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderProgress 1.8s var(--ease-in-out) 0.5s forwards;
}

.loader-text {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-muted);
  opacity: 0;
  animation: loaderFadeIn 0.8s var(--ease-out-expo) 1s forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

@keyframes loaderProgress {
  to { transform: scaleX(1); }
}

/* ============================================
   Particle Canvas
   ============================================ */

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

main,
.marquee-section,
.site-footer {
  position: relative;
}

.service-card,
.demo-card,
.hero-gallery,
.hero-gallery-main,
.hero-gallery-thumb,
.site-photo,
.img-placeholder,
.ai-visual-card,
.ai-feature,
.founder-img-wrap,
.founder-accent-card,
.founder-floating-badge,
.contact-form,
.niches-stage,
.craft-pillar,
.niche-mobile-card,
.service-card-visual,
.lightbox-panel {
  position: relative;
  z-index: 2;
}

/* ============================================
   Image Placeholders
   ============================================ */

.site-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-photo {
  object-position: center top;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    hsl(var(--hue, 230), 45%, 35%) 0%,
    hsl(var(--hue, 230), 40%, 22%) 50%,
    hsl(calc(var(--hue, 230) + 40), 35%, 18%) 100%
  );
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  animation: shimmer 4s ease-in-out infinite;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background 0.5s, backdrop-filter 0.5s, transform 0.5s var(--ease-out-expo);
}

.site-header.is-scrolled {
  background: rgba(6, 15, 31, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--page-gutter);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-accent), var(--purple-accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  border-radius: 100px;
  transition: background 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), box-shadow 0.35s, color 0.35s;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #7aa3ff, #c4a8ff);
  color: #0a1020;
  box-shadow: 0 12px 40px rgba(122, 163, 255, 0.45);
  transform: translateY(-2px) scale(1.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.nav-toggle.is-active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(30px);
}

.mobile-menu a:hover {
  color: var(--purple-glow);
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: visible;
  line-height: 1.5;
  padding-block: 1.05rem;
}

.btn span {
  line-height: 1.5;
  padding-bottom: 0.08em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  transition: background 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), box-shadow 0.35s, color 0.35s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7aa3ff, #c4a8ff);
  color: #0a1020;
  box-shadow: 0 14px 48px rgba(122, 163, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.03);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.35s var(--ease-out-expo);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-dark);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  color: var(--white);
  border: 1px solid var(--border-hover);
  background: transparent;
  transition: all 0.35s var(--ease-out-expo);
}

.btn-outline:hover {
  border-color: var(--purple-glow);
  background: var(--purple-accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(139, 106, 255, 0.35);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 0.85rem;
}

/* ============================================
   Section Utilities
   ============================================ */

.section {
  padding-block: var(--section-padding);
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 0.2em;
  letter-spacing: -0.02em;
  color: var(--white);
  overflow: visible;
}

.section-text {
  color: var(--white-muted);
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 42ch;
  margin-top: 1rem;
  line-height: 1.6;
}

.section-text--wide {
  max-width: 65ch;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--compact {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-text {
  margin-inline: auto;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-height) + 2rem) 5rem;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 50%, rgba(77, 124, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 40%, rgba(139, 106, 255, 0.14) 0%, transparent 50%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow--1 {
  width: 280px;
  height: 280px;
  background: rgba(77, 124, 255, 0.2);
  top: 15%;
  left: 5%;
}

.hero-glow--2 {
  width: 220px;
  height: 220px;
  background: rgba(139, 106, 255, 0.15);
  bottom: 15%;
  right: 15%;
  animation-delay: -4s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.38fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  width: 100%;
}

.hero-copy {
  max-width: 470px;
  overflow: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
}

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

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  overflow: visible;
}

.hero-title-line {
  display: block;
  line-height: 1.25;
  padding-bottom: 0.22em;
  overflow: visible;
}

.hero-tagline,
.hero-lead,
.section-text,
p,
.footer-tagline {
  line-height: 1.65;
  padding-bottom: 0.12em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--white-muted);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white-muted);
  margin-bottom: 0.75rem;
  line-height: 1.65;
  padding-bottom: 0.12em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.72fr 1fr;
  gap: 0.85rem;
  height: clamp(380px, 56vh, 530px);
  min-height: clamp(380px, 56vh, 530px);
  max-height: clamp(380px, 56vh, 530px);
  overflow: hidden;
  align-items: stretch;
}

.hero-gallery-main {
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: floatY 5s ease-in-out infinite;
  animation-play-state: paused;
}

.hero-gallery-thumb:first-child {
  animation: floatY 5s ease-in-out infinite 0.6s;
  animation-play-state: paused;
}

.hero-gallery-thumb:last-child {
  animation: floatY 5s ease-in-out infinite 1.2s;
  animation-play-state: paused;
}

body.is-ready .hero-gallery-main,
body.is-ready .hero-gallery-thumb:first-child,
body.is-ready .hero-gallery-thumb:last-child {
  animation-play-state: running;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-gallery-thumb {
  flex: 1 1 0;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-gallery-thumb--chat,
.service-card-visual--chat {
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.hero-gallery-thumb--chat .ai-visual-card--embed {
  flex: 1;
  min-height: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 3.75rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-faint);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: var(--border);
  overflow: hidden;
}

.scroll-line span {
  display: block;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, var(--blue-accent), var(--purple-accent));
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + 2rem) 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-gallery {
    height: clamp(320px, 48vh, 400px);
    min-height: clamp(320px, 48vh, 400px);
    max-height: clamp(320px, 48vh, 400px);
    max-width: 560px;
    margin-inline: auto;
  }

  .hero-scroll {
    display: none;
  }
}

/* ============================================
   Marquee
   ============================================ */

.marquee-section {
  padding: 0.85rem 0;
  overflow: hidden;
  max-width: 100vw;
  border-block: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.35vw, 1rem);
  font-weight: 600;
  color: var(--white-muted);
  flex-shrink: 0;
  line-height: 1.5;
  padding-bottom: 0.1em;
}

.marquee-dot {
  color: var(--purple-accent) !important;
  font-size: 0.5rem !important;
  line-height: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Services
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
  cursor: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.service-card-visual {
  height: clamp(280px, 30vw, 360px);
  min-height: clamp(280px, 30vw, 360px);
  max-height: clamp(280px, 30vw, 360px);
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-body {
  padding: 1.5rem;
}

.service-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.08em;
  margin-bottom: 0.5rem;
}

.service-card-body > p {
  color: var(--white-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-muted);
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
}

.service-hover-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(77, 124, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover .service-hover-bg {
  opacity: 1;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Design Craft
   ============================================ */

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.craft-content .section-text + .section-text {
  margin-top: 1rem;
}

.craft-cta {
  margin-top: 1.75rem;
}

.craft-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.craft-pillar {
  padding: 1.5rem 1.75rem;
  background: var(--purple-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
}

.craft-pillar:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.craft-pillar-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple-glow);
  display: block;
  margin-bottom: 0.5rem;
}

.craft-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.craft-pillar p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .craft-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Niches — Scroll Pin
   ============================================ */

.niches-intro {
  padding-top: var(--section-padding);
  padding-bottom: 0.75rem;
}

.niches-intro .section-header {
  margin-bottom: 0;
}

.niches-scrub-track {
  height: 420vh;
  position: relative;
}

.niches-scrub-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
}

.niches-scrub-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  max-height: calc(100dvh - 2.5rem);
}

.niches-stage {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.niches-stage-glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 106, 255, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.niches-pin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr 1.25fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  min-height: 0;
}

.niches-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.niches-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  color: var(--white-muted);
  transition: all 0.4s var(--ease-out-expo);
  cursor: none;
  position: relative;
}

.niches-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(to bottom, var(--blue-accent), var(--purple-accent));
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo);
}

.niches-nav-item .nav-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.45;
  min-width: 1.25rem;
}

.niches-nav-item .nav-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  padding-bottom: 0.08em;
}

.niches-nav-item.is-active {
  background: rgba(139, 106, 255, 0.18);
  border-color: rgba(139, 106, 255, 0.35);
  color: var(--white);
  transform: translateX(4px);
}

.niches-nav-item.is-active::before {
  transform: translateY(-50%) scaleY(1);
}

.niches-nav-item.is-active .nav-num {
  opacity: 1;
  color: var(--purple-glow);
}

.niches-content {
  position: relative;
  min-height: 300px;
  padding-inline: 0.5rem;
}

.niche-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.niche-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.niche-panel.is-active .btn-niche-cta,
.niche-panel.is-active .btn-niche-demo {
  animation: ctaPop 0.5s var(--ease-out-expo) 0.15s both;
}

.niche-panel.is-active .btn-niche-demo {
  animation-delay: 0.28s;
}

@keyframes ctaPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.niche-panel .niche-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 0.75rem;
}

.niche-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.1em;
  margin-bottom: 1rem;
  overflow: visible;
}

.niche-panel p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white-muted);
  line-height: 1.6;
  max-width: 34ch;
  margin-bottom: 1.25rem;
}

.niche-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.btn-niche-cta {
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem;
}

.btn-niche-demo {
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem;
}

.btn-niche-demo--soon {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: auto;
}

.btn-niche-demo--soon:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border-color: var(--border-hover);
  transform: none;
  box-shadow: none;
}

.niches-visual {
  position: relative;
  height: clamp(300px, 46vh, 420px);
}

.niche-preview {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.niche-preview.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.niche-preview-main {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.niche-preview-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.niche-preview-thumb {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.niches-progress {
  margin-top: 2rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.niches-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-accent), var(--purple-accent));
  border-radius: 2px;
  transition: width 0.15s linear;
}

.niches-outro {
  padding-top: 2.5rem;
  padding-bottom: var(--section-padding);
}

.niches-universal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.niches-universal-bar p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white-soft);
  line-height: 1.5;
}

.services-cta,
.demos-cta,
.process-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.demos-cta {
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}

.niches-mobile {
  display: none;
  padding-block: var(--section-padding);
}

.niches-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.niche-mobile-card {
  background: var(--purple-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.niche-mobile-visual {
  height: 120px;
}

.niche-mobile-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1rem 0.25rem;
}

.niche-mobile-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-muted);
  padding: 0 1rem 1rem;
}

.niches-mobile-note {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white-muted);
}

@media (max-width: 1100px) {
  .niches-pin-layout {
    grid-template-columns: 170px 1fr 1.1fr;
  }

  .niches-visual {
    height: clamp(280px, 42vh, 380px);
  }
}

@media (max-width: 900px) {
  .niches-intro,
  .niches-outro,
  .niches-scrub-track {
    display: none;
  }

  .niches-mobile {
    display: block;
    padding-block: var(--section-padding);
  }
}

@media (max-width: 640px) {
  .niches-mobile-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Demos
   ============================================ */

.demos {
  padding-bottom: var(--section-padding);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1.25rem;
  width: 100%;
}

.demo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: none;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s;
}

.demo-card:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: var(--blue-accent);
  box-shadow: 0 20px 50px rgba(77, 124, 255, 0.2);
}

.demo-card--tall {
  grid-row: span 2;
}

.demo-card--wide {
  grid-column: span 2;
}

.demo-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    hsl(var(--hue, 230), 45%, 35%) 0%,
    hsl(var(--hue, 230), 40%, 22%) 50%,
    hsl(calc(var(--hue, 230) + 40), 35%, 18%) 100%
  );
  transition: transform 0.8s var(--ease-out-expo);
}

.demo-card:hover .demo-img {
  transform: scale(1.05);
}

.demo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(6, 10, 20, 0.9) 0%, rgba(6, 10, 20, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
}

.demo-card:hover .demo-overlay {
  opacity: 1;
}

.demo-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.5rem;
}

.demo-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.08em;
}

.demo-overlay p {
  font-size: 0.85rem;
  color: var(--white-muted);
}

.demo-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  background: rgba(78, 205, 196, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 100px;
}

.demo-status--soon {
  background: rgba(124, 92, 252, 0.15);
  color: var(--purple-glow);
  border-color: rgba(124, 92, 252, 0.3);
}

@media (max-width: 1024px) {
  .demos-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .demo-card--tall {
    grid-row: span 1;
  }

  .demo-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .demos-grid {
    grid-template-columns: 1fr;
  }

  .demo-card--wide {
    grid-column: span 1;
  }

  .demo-card {
    min-height: 240px;
  }
}

/* ============================================
   Founder
   ============================================ */

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.founder-visual {
  position: relative;
  height: 550px;
}

.founder-img-wrap {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.founder-accent-card {
  position: absolute;
  bottom: 10%;
  right: -5%;
  z-index: 2;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.accent-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.25rem;
}

.accent-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.founder-floating-badge {
  position: absolute;
  top: 10%;
  left: -8%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 4.5rem;
  box-shadow: 0 16px 40px rgba(59, 108, 255, 0.3);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.founder-floating-badge > span:last-child {
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.founder-text {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
}

.founder-text p {
  color: var(--white-muted);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.founder-text em {
  color: var(--white);
  font-style: italic;
}

.founder-quote {
  margin-top: 2.5rem;
  padding: 2rem;
  border-left: 2px solid var(--purple-accent);
  background: rgba(124, 92, 252, 0.05);
  border-radius: 0 12px 12px 0;
}

.founder-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--white-soft);
  margin-bottom: 1rem;
}

.founder-quote cite {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-style: normal;
}

.founder-content .btn-primary {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-visual {
    height: 400px;
    max-width: 500px;
    margin-inline: auto;
  }

  .founder-floating-badge {
    left: 0;
  }

  .founder-accent-card {
    right: 0;
  }
}

/* ============================================
   AI Section
   ============================================ */

.ai-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

#ai .ai-visual {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

#ai .ai-visual-card,
#ai .ai-chat-demo {
  position: relative;
  z-index: 2;
}

.ai-visual-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(12, 30, 63, 0.95) 0%, rgba(26, 53, 104, 0.85) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ai-visual-card--embed {
  aspect-ratio: auto;
  height: 100%;
  border-radius: inherit;
  box-shadow: none;
}

.service-card-visual--chat .ai-visual-card--embed {
  flex: 1;
  min-height: 0;
  border-radius: 0;
  border: none;
}

.ai-chat-demo--compact .ai-chat-header {
  padding: 0.5rem 0.65rem;
}

.ai-chat-demo--compact .ai-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.ai-chat-demo--compact .ai-chat-name {
  font-size: 0.7rem;
}

.ai-chat-demo--compact .ai-chat-status {
  font-size: 0.58rem;
}

.ai-chat-demo--compact .ai-chat-messages {
  padding: 0.55rem 0.65rem;
  gap: 0.45rem;
}

.ai-chat-demo--compact .ai-chat-message {
  font-size: 0.65rem;
  padding: 0.45rem 0.6rem;
}

.ai-chat-demo--compact .ai-chat-input {
  padding: 0.45rem 0.6rem;
}

.ai-chat-demo--compact .ai-chat-input input {
  font-size: 0.65rem;
  padding: 0.4rem 0.55rem;
}

.ai-chat-demo--compact .ai-chat-input button {
  width: 28px;
  height: 28px;
}

.ai-chat-demo--compact .ai-chat-handoff p {
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
}

.ai-chat-demo {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

.ai-chat-demo.is-handoff .ai-chat-messages,
.ai-chat-demo.is-handoff .ai-chat-typing,
.ai-chat-demo.is-handoff .ai-chat-input {
  opacity: 0.35;
  pointer-events: none;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.ai-chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ai-chat-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--white-muted);
  letter-spacing: 0.04em;
}

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

.ai-chat-messages {
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.ai-chat-message {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: chatMessageIn 0.45s var(--ease-out-expo) forwards;
}

.ai-chat-message--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-soft);
  border-bottom-left-radius: 4px;
}

.ai-chat-message--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

@keyframes chatMessageIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-typing {
  padding: 0 1rem 0.5rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.ai-chat-typing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-chat-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.ai-chat-input input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(12, 30, 63, 0.6);
  color: var(--white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ai-chat-input input::placeholder {
  color: var(--white-faint);
}

.ai-chat-input input:focus {
  border-color: var(--purple-accent);
  box-shadow: 0 0 0 2px rgba(139, 106, 255, 0.2);
}

.ai-chat-input button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.ai-chat-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(77, 124, 255, 0.35);
}

.ai-chat-handoff {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 30, 63, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.ai-chat-handoff.is-visible {
  opacity: 1;
  visibility: visible;
}

.ai-chat-handoff p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  padding: 1rem 1.5rem;
  background: rgba(139, 106, 255, 0.15);
  border: 1px solid rgba(139, 106, 255, 0.3);
  border-radius: 12px;
  animation: handoffPulse 2s ease-in-out infinite;
}

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

.ai-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ai-feature {
  padding: 2rem;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
}

.ai-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 252, 0.3);
}

.ai-feature-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  padding-bottom: 0.1em;
  opacity: 0.5;
  margin-bottom: 1rem;
  overflow: visible;
}

.ai-feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.08em;
  margin-bottom: 0.75rem;
}

.ai-feature p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white-muted);
  line-height: 1.5;
}

.ai-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .ai-header {
    grid-template-columns: 1fr;
  }

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

/* ============================================
   Process — Scroll Pin
   ============================================ */

.process-scrub-track {
  height: 360vh;
  position: relative;
  padding-top: var(--section-padding);
}

.process-scrub-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--header-height) + 0.75rem);
  padding-bottom: 1.25rem;
}

.process-scrub-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 2.8vw, 2.15rem);
}

.process-header {
  margin-bottom: 0;
}

.process-timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(to bottom, var(--blue-accent), var(--purple-accent));
  transition: height 0.1s linear;
}

.process-step {
  display: flex;
  gap: 2rem;
  padding-bottom: 3rem;
  opacity: 0.4;
  transition: opacity 0.5s;
}

.process-scrub-track .process-step {
  opacity: 0;
  transform: translateX(-30px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  padding-bottom: 0;
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo),
    max-height 0.55s var(--ease-out-expo);
}

.process-scrub-track .process-step.is-revealed {
  opacity: 0.4;
  transform: translateX(0);
  max-height: none;
  overflow: visible;
  pointer-events: auto;
  padding-bottom: 3rem;
}

.process-scrub-track .process-step.is-revealed.is-active {
  opacity: 1;
}

.process-step.is-active {
  opacity: 1;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-scrub-track .process-step.is-revealed:last-child {
  padding-bottom: 0;
}

.process-outro {
  padding-top: 0.5rem;
  padding-bottom: var(--section-padding);
}

.process-outro .process-cta {
  margin-top: 0.5rem;
}

.process-mobile {
  display: none;
  padding-block: var(--section-padding);
}

.process-timeline--mobile .process-step {
  opacity: 0.4;
  transform: none;
  max-height: none;
  overflow: visible;
  pointer-events: auto;
  padding-bottom: 3rem;
}

.process-timeline--mobile .process-step.is-active {
  opacity: 1;
}

@media (max-width: 900px) {
  .process-outro,
  .process-scrub-track {
    display: none;
  }

  .process-mobile {
    display: block;
  }
}

.step-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--blue-mid);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}

.process-step.is-active .step-marker {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 0.12em;
  margin-bottom: 0.75rem;
  overflow: visible;
}

.step-content p {
  color: var(--white-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

/* ============================================
   Contact
   ============================================ */

.contact {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59, 108, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(124, 92, 252, 0.08) 0%, transparent 50%);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.3s var(--ease-out-expo);
}

a.contact-detail:hover {
  transform: translateX(8px);
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-form {
  background: var(--blue-surface);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-dark);
  color: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(59, 108, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--cyan-accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo);
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row--2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--white-muted);
  display: block;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--blue-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--white-faint);
}

.footer-location {
  color: var(--white-muted);
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }

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

/* ============================================
   Demo Lightbox
   ============================================ */

.demo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.demo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.lightbox-visual {
  min-height: 420px;
  background: linear-gradient(
    160deg,
    hsl(var(--lb-hue, 230), 45%, 35%) 0%,
    hsl(var(--lb-hue, 230), 40%, 22%) 100%
  );
}

.lightbox-content {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 1rem;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.1em;
  margin-bottom: 0.5rem;
  overflow: visible;
}

.lightbox-niche {
  font-size: 0.9rem;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
}

.lightbox-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--white-muted);
  margin-bottom: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo);
}

.lightbox-close:hover {
  background: var(--blue-accent);
  transform: rotate(90deg);
}

.lightbox-demo-link {
  margin-bottom: 1.5rem;
  width: fit-content;
}

.lightbox-nav {
  display: flex;
  gap: 0.75rem;
}

.lightbox-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
}

.lightbox-nav-btn:hover {
  border-color: var(--purple-accent);
  background: var(--purple-accent);
}

@media (max-width: 768px) {
  .lightbox-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .lightbox-visual {
    min-height: 240px;
  }
}

/* ============================================
   Reveal Animation Base States
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  overflow: visible;
}

[data-reveal]:is(h1, h2, h3, h4, p, .section-title, .hero-title, .hero-tagline, .hero-lead, .section-eyebrow, .section-text, blockquote, .founder-text, .hero-badge) {
  transform: none;
}

[data-split] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
}

[data-service-card] {
  opacity: 0;
  transform: translateY(60px);
}

[data-demo-card] {
  opacity: 0;
  transform: scale(0.92);
}

[data-ai-feature] {
  opacity: 0;
  transform: translateY(30px);
}

.process-mobile [data-process-step-mobile] {
  opacity: 0;
  transform: translateX(-30px);
}
/* ============================================
   Cookie consent (minimal GDPR banner)
   ============================================ */

.cookie-consent {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10050;
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent__card {
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(8, 16, 32, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: var(--white-soft);
  font-family: var(--font-body);
}

.cookie-consent__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.cookie-consent__desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--white-muted);
  margin-bottom: 0.95rem;
}

.cookie-consent__link {
  color: var(--blue-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cookie-consent__link:hover {
  color: var(--white);
}

.cookie-consent__prefs {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.cookie-consent__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--white-soft);
}

.cookie-consent__row strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.cookie-consent__row small {
  display: block;
  color: var(--white-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.cookie-consent__row input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  accent-color: var(--blue-accent);
  cursor: pointer;
}

.cookie-consent__row input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cookie-consent__btn {
  appearance: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 0.7rem 1.05rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s var(--ease-out-expo), color 0.25s, border-color 0.25s, transform 0.25s;
}

.cookie-consent__btn--primary {
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
}

.cookie-consent__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(77, 124, 255, 0.35);
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: var(--white-soft);
  border: 1px solid var(--border-hover);
}

.cookie-consent__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.cookie-consent__btn--text {
  background: transparent;
  color: var(--white-muted);
  padding-inline: 0.55rem;
  letter-spacing: 0.06em;
}

.cookie-consent__btn--text:hover,
.cookie-consent__btn--text[aria-expanded="true"] {
  color: var(--blue-glow);
}

/* Keep clear of the chat bubble on small screens */
@media (max-width: 640px) {
  .cookie-consent {
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(5.5rem, env(safe-area-inset-bottom));
    width: auto;
  }

  .cookie-consent__actions {
    gap: 0.4rem;
  }

  .cookie-consent__btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }

  .cookie-consent__btn--text {
    flex: 1 1 100%;
    order: 3;
    text-align: center;
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-legal a,
.footer-legal button {
  font-size: 0.75rem;
  color: var(--white-faint);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--blue-glow);
}

@media (max-width: 640px) {
  .footer-legal {
    justify-content: center;
  }
}
