@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --brand-purple      : #461c7b;                     /* Dark Rich Brand Purple */
  --brand-purple-mid  : #5e24a3;                     /* Medium Accent Purple */
  --brand-purple-light: #7b32d6;                     /* Bright Accent Purple */
  --brand-purple-glow : rgba(70, 28, 123, 0.12);      /* Soft shadow glow */
  --brand-purple-glass: rgba(70, 28, 123, 0.02);      /* Premium glass tint */
  --brand-purple-border: rgba(70, 28, 123, 0.12);     /* Subtle purple borders */
  --white             : #FFFFFF;
  --white-60          : rgba(255,255,255,0.60);
  --white-30          : rgba(255,255,255,0.30);
  --bg-base           : #FFFFFF;                     /* Pure white background base */
  --bg-surface        : #faf8fd;                     /* Soft purple-white surface tint */
  --bg-card           : #f4effb;                     /* Light card background */
  --text-primary      : #130c24;                     /* High-contrast dark purple-black */
  --text-muted        : rgba(19, 12, 36, 0.65);       /* Muted charcoal-purple */
  --text-subtle       : rgba(19, 12, 36, 0.45);       /* Subtle light charcoal-purple */
  --glow-shadow       : 0 15px 40px rgba(70, 28, 123, 0.08), 0 4px 12px rgba(70, 28, 123, 0.04);
  --card-border       : 1px solid rgba(70, 28, 123, 0.08);
  --card-border-hover : 1px solid rgba(70, 28, 123, 0.35);
  --radius-card       : 20px;
  --radius-pill       : 9999px;
  --transition        : all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Dark theme overrides ── */
[data-theme="dark"] {
  --bg-base           : #07050f;
  --bg-surface        : #0d0a1a;
  --bg-card           : #130e25;
  --text-primary      : #ede8f7;
  --text-muted        : rgba(237, 232, 247, 0.68);
  --text-subtle       : rgba(237, 232, 247, 0.42);
  --brand-purple-glow : rgba(138, 61, 232, 0.22);
  --brand-purple-glass: rgba(138, 61, 232, 0.06);
  --brand-purple-border: rgba(138, 61, 232, 0.22);
  --glow-shadow       : 0 15px 40px rgba(0,0,0,0.45), 0 4px 12px rgba(138, 61, 232, 0.12);
  --card-border       : 1px solid rgba(138, 61, 232, 0.14);
  --card-border-hover : 1px solid rgba(138, 61, 232, 0.45);
}

/* Dark — navbar glass */
[data-theme="dark"] .navbar {
  background: rgba(7, 5, 15, 0.88);
  border-bottom-color: rgba(138, 61, 232, 0.12);
}

/* Dark — all glass cards (service, timeline, work, ROI, etc.) */
[data-theme="dark"] .glass-card {
  background: rgba(19, 14, 37, 0.92);
  border-color: rgba(138, 61, 232, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.40);
}
[data-theme="dark"] .glass-card:hover {
  border-color: rgba(138, 61, 232, 0.45);
}

/* Dark — other card types */
[data-theme="dark"] .service-card,
[data-theme="dark"] .work-card,
[data-theme="dark"] .process-step,
[data-theme="dark"] .roi-result-card,
[data-theme="dark"] .calculator-inputs,
[data-theme="dark"] .roi-calculator-inner {
  background: var(--bg-card);
  border-color: rgba(138, 61, 232, 0.14);
}

/* Dark — hero section */
[data-theme="dark"] .hero {
  background: var(--bg-base);
}

/* Dark — sections with explicit white bg */
[data-theme="dark"] #services,
[data-theme="dark"] #work,
[data-theme="dark"] #process,
[data-theme="dark"] #ai-chat,
[data-theme="dark"] #calculator {
  background: var(--bg-surface) !important;
}

/* Dark — phone scene (no overrides needed — phone uses its own dark palette) */

/* Dark — input fields */
[data-theme="dark"] input[type="range"] {
  background: rgba(138, 61, 232, 0.12);
}

/* Dark — chat wrapper */
[data-theme="dark"] .n8n-chat-wrapper {
  background: rgba(13, 10, 26, 0.6) !important;
}

/* Dark — mobile overlay */
[data-theme="dark"] .mobile-overlay {
  background: rgba(7, 5, 15, 0.98);
}

/* Dark — secondary button: white bg becomes transparent ghost */
[data-theme="dark"] .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(237, 232, 247, 0.28);
}
[data-theme="dark"] .btn-secondary:hover {
  background: rgba(237, 232, 247, 0.08);
  border-color: rgba(237, 232, 247, 0.55);
}

/* Dark — footer / trust bar */
[data-theme="dark"] .hero-proof {
  border-top-color: rgba(138, 61, 232, 0.14);
}

/* Dark — ROI result cards */
[data-theme="dark"] .roi-result-card {
  background: var(--bg-card) !important;
  border-color: rgba(138, 61, 232, 0.18);
}

/* Dark — Work section image preview */
[data-theme="dark"] .work-img {
  background: linear-gradient(135deg, #130e25 0%, #0d0a1a 100%);
  border-bottom-color: rgba(138, 61, 232, 0.12);
}

/* Dark — Chat section: header */
[data-theme="dark"] .n8n-chat-header {
  background: rgba(19, 14, 37, 0.90);
  border-bottom-color: rgba(138, 61, 232, 0.18);
}
[data-theme="dark"] .n8n-header-text h3 {
  color: var(--text-primary);
}
[data-theme="dark"] .n8n-avatar-sq.brand-dark {
  background: rgba(138, 61, 232, 0.22);
  color: #c4b5fd;
}
[data-theme="dark"] .n8n-tag {
  background: rgba(138, 61, 232, 0.20);
  color: #c4b5fd;
  border-color: rgba(138, 61, 232, 0.30);
}

/* Dark — chat messages & bubbles */
[data-theme="dark"] .n8n-chat-messages {
  background: transparent;
}
[data-theme="dark"] .n8n-bubble.ai-bubble {
  background: rgba(30, 20, 55, 0.95);
  color: var(--text-primary);
  border-color: rgba(138, 61, 232, 0.20);
}
[data-theme="dark"] .n8n-timestamp {
  color: var(--text-subtle);
}

/* Dark — chat input area */
[data-theme="dark"] .n8n-chat-input-area {
  background: rgba(13, 10, 26, 0.95);
  border-top-color: rgba(138, 61, 232, 0.18);
}
[data-theme="dark"] .n8n-input-box {
  background: rgba(25, 18, 48, 0.98);
  border-color: rgba(138, 61, 232, 0.28);
}
[data-theme="dark"] .n8n-input-box input {
  color: var(--text-primary);
  background: transparent;
}
[data-theme="dark"] .n8n-input-box input::placeholder {
  color: var(--text-subtle);
}
[data-theme="dark"] .n8n-input-footer {
  color: var(--text-subtle);
}

/* Dark — ROI wrapper & slider */
[data-theme="dark"] .roi-wrapper {
  background: var(--bg-card);
  border-color: rgba(138, 61, 232, 0.18);
}
[data-theme="dark"] .roi-slider-group {
  border-color: rgba(138, 61, 232, 0.10);
}
[data-theme="dark"] .roi-cta {
  border-top-color: rgba(138, 61, 232, 0.14);
}

/* Dark — footer border */
[data-theme="dark"] .antigravity-footer {
  border-top-color: rgba(138, 61, 232, 0.12);
}

/* Dark — timeline dots border */
[data-theme="dark"] .timeline-dot {
  border-color: var(--bg-surface);
}

/* Dark — proof logos */
[data-theme="dark"] .proof-logo {
  color: var(--text-muted);
  border-color: rgba(138, 61, 232, 0.16);
}

/* ── Theme toggle — sliding pill ── */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* The pill track */
.toggle-pill {
  width: 58px;
  height: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.toggle-pill:hover {
  background: rgba(138, 61, 232, 0.28);
  border-color: rgba(138, 61, 232, 0.55);
}

/* Sliding knob */
.toggle-pill::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.40s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

/* Knob slides right in dark mode  (58 - 24 - 3*2 = 28px) */
[data-theme="dark"] .toggle-pill::before {
  transform: translateX(28px);
}

/* Icons inside pill */
.toggle-pill svg {
  position: absolute;
  width: 12px;
  height: 12px;
  z-index: 2;
  pointer-events: none;
  transition: color 0.3s, opacity 0.3s;
}
.toggle-pill .icon-sun {
  display: block;
  left: 7px;
  color: #fbbf24;          /* golden — active in light mode */
  opacity: 1;
}
.toggle-pill .icon-moon {
  display: block;
  right: 7px;
  color: rgba(255, 255, 255, 0.42);  /* dim — inactive in light mode */
  opacity: 1;
}

/* Dark mode: swap which icon is highlighted */
[data-theme="dark"] .toggle-pill .icon-sun  { color: rgba(255, 220, 80, 0.38); }
[data-theme="dark"] .toggle-pill .icon-moon { color: #c4b5fd; }  /* lavender — active in dark */

/* Base resets & global styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-purple);
  border-radius: 5px;
  border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-purple-mid);
}

/* Hide cursor only on fine pointer (desktop) */
@media (pointer: fine) {
  body, a, button, select, input, textarea, label {
    cursor: none !important;
  }
}

/* Custom Cursor */
.custom-cursor {
  display: none;
}

@media (pointer: fine) {
  .custom-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--brand-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(70, 28, 123, 0.4);
    will-change: transform;
    transition: background-color 0.2s;
  }
  
  .custom-cursor-follower {
    display: none;
  }
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  position: relative;
  z-index: 3;
}

section {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
  background: var(--bg-primary);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--brand-purple);
}

/* Background Animated Blobs */
.bg-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 28, 123, 0.08) 0%, rgba(255, 255, 255, 0) 75%);
  filter: blur(120px);
  opacity: 0.65;
  pointer-events: none;
}

.blob-1 {
  width: 600px;
  height: 600px;
  top: -10%;
  right: -10%;
  animation: blob-float-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  top: 30%;
  left: -15%;
  animation: blob-float-2 20s infinite alternate ease-in-out;
}

.blob-3 {
  width: 700px;
  height: 700px;
  bottom: -10%;
  right: -5%;
  animation: blob-float-1 28s infinite alternate-reverse ease-in-out;
}

@keyframes blob-float-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 60px) scale(1.1); }
  100% { transform: translate(40px, -40px) scale(0.95); }
}

@keyframes blob-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -80px) scale(0.9); }
  100% { transform: translate(-30px, 50px) scale(1.05); }
}

/* Subtle grain texture overlay */
.grain-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(70, 28, 123, 0.03);
}

.glass-card:hover {
  border: var(--card-border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow-shadow);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(70, 28, 123, 0) 0%,
    rgba(70, 28, 123, 0.02) 50%,
    rgba(70, 28, 123, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 150%;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  color: var(--text-primary);
  line-height: 1.1;
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: 700;
}

/* Buttons and CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-purple);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(70, 28, 123, 0.15);
}

.btn-primary:hover {
  background: var(--brand-purple-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(70, 28, 123, 0.25);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid rgba(19, 12, 36, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: rgba(19, 12, 36, 0.35);
  transform: translateY(-3px);
}

/* NAVIGATION CONTAINER STYLES */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 1000;
  background: rgba(7, 5, 15, 0.96); /* Solid premium dark background to keep white text visible */
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(138, 61, 232, 0.15);
  transition: all 0.4s ease;
}

/* Scrolled state overrides */
.header-nav.scrolled {
  background: rgba(7, 5, 15, 0.88);
  box-shadow: 0 8px 32px rgba(7, 5, 15, 0.3);
}

/* Navigation Inner Shell */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* LEFT SIDE: LOGO STYLING */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.logo-dot {
  width: 4px;
  height: 4px;
  background-color: var(--brand-purple-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-purple-light);
  animation: dot-pulse 2s infinite ease-in-out;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 1; box-shadow: 0 0 14px var(--brand-purple-light); }
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  transition: text-shadow 0.4s ease;
}

.logo-text span {
  color: var(--brand-purple-light);
}

.logo-wrapper:hover .logo-text {
  text-shadow: 0 0 15px rgba(138, 61, 232, 0.6);
}

/* CENTER: DESKTOP LINKS STYLING */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--white-60);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 0;
  position: relative;
}

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

/* Bottom Border Active State */
.nav-links li.active a {
  color: var(--white);
}

.nav-links li.active a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-purple);
  border-radius: 99px;
}

/* RIGHT SIDE: CTA & WHATSAPP BUTTONS */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* E-login Button */
.btn-elogin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-purple-light, #a855f7);
  border: 1px solid rgba(123, 50, 214, 0.45);
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition);
}

.btn-elogin:hover {
  background: rgba(123, 50, 214, 0.08);
  border-color: var(--brand-purple-light, #a855f7);
  box-shadow: 0 0 18px rgba(123, 50, 214, 0.35);
  transform: translateY(-2px);
}

/* Start Project Button */
.btn-cta {
  background: var(--brand-purple);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 9999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: var(--transition);
}

.btn-cta:hover {
  background: var(--brand-purple-light);
  box-shadow: 0 0 25px rgba(70, 28, 123, 0.6);
  transform: translateY(-2px);
}

/* MOBILE NAVIGATION SYSTEM */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

/* Hamburger transformation (X state) */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(2px, -1px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(2px, 1px);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-base);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 40px;
}

.mobile-overlay.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.mobile-nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links li.active a {
  color: var(--brand-purple-light);
}

/* Dark theme: overlay is near-black so white text works */
[data-theme="dark"] .mobile-nav-links a {
  color: rgba(255,255,255,0.70);
}
[data-theme="dark"] .mobile-nav-links a:hover,
[data-theme="dark"] .mobile-nav-links li.active a {
  color: var(--white);
}

/* Staggered animation triggers on overlay load */
.mobile-overlay .mobile-nav-links li {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-overlay.active .mobile-nav-links li {
  opacity: 1;
  transform: translateX(0);
}

/* Loop staggered delays */
.mobile-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.18s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.26s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.34s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.42s; }
.mobile-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.5s; }

.mobile-overlay-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 300px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.mobile-overlay.active .mobile-overlay-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Close button */
.mobile-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(70, 28, 123, 0.20);
  background: var(--brand-purple-glow);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}
.mobile-close-btn:hover {
  background: rgba(70, 28, 123, 0.18);
  border-color: var(--brand-purple);
}
.mobile-close-btn svg { width: 20px; height: 20px; }

/* Mobile theme toggle row */
.theme-toggle--mobile {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(70, 28, 123, 0.18);
  background: var(--brand-purple-glow);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle--mobile:hover {
  background: rgba(70, 28, 123, 0.15);
  border-color: var(--brand-purple);
}
.theme-toggle-label { flex: 1; text-align: left; }

/* Pill inside mobile toggle — adapts to light overlay background */
.theme-toggle--mobile .toggle-pill {
  background: rgba(70, 28, 123, 0.12);
  border-color: rgba(70, 28, 123, 0.25);
}
.theme-toggle--mobile .toggle-pill::before {
  background: var(--brand-purple);
}
.theme-toggle--mobile .toggle-pill .icon-sun  { color: #f59e0b; }
.theme-toggle--mobile .toggle-pill .icon-moon { color: rgba(70, 28, 123, 0.45); }
[data-theme="dark"] .theme-toggle--mobile .toggle-pill .icon-sun  { color: rgba(255, 200, 80, 0.40); }
[data-theme="dark"] .theme-toggle--mobile .toggle-pill .icon-moon { color: #a78bfa; }

[data-theme="dark"] .mobile-close-btn,
[data-theme="dark"] .theme-toggle--mobile {
  border-color: rgba(138, 61, 232, 0.25);
  color: var(--text-primary);
}

.mobile-overlay-actions .btn-elogin,
.mobile-overlay-actions .btn-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 120px;
  position: relative;
  overflow: clip; /* clips decorative blobs but doesn't break sticky children */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  background: rgba(70, 28, 123, 0.04);
  border: 1px solid rgba(70, 28, 123, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-tag span {
  width: 6px;
  height: 6px;
  background-color: var(--brand-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-purple);
  display: inline-block;
  animation: pulse-dot 1.5s infinite alternate;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-title span {
  background: linear-gradient(135deg, var(--brand-purple) 20%, var(--brand-purple-light) 75%, var(--brand-purple-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 400;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-proof {
  border-top: 1px solid rgba(70, 28, 123, 0.08);
  padding-top: 32px;
}

.hero-proof p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proof-logos {
  display: flex;
  gap: 32px;
  align-items: center;
  opacity: 0.85;
}

.proof-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-purple);
  letter-spacing: -0.02em;
  opacity: 0.65;
}

/* Graphic side of Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 80px;
}

.cube-tilt-wrapper {
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-interactive-cube {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  animation: cube-rotate 16s infinite linear;
}

.cube-face {
  position: absolute;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(70, 28, 123, 0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(70, 28, 123, 0.1);
  backface-visibility: hidden;
}

.cube-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cube-face-top,
.cube-face-bottom {
  background: linear-gradient(135deg, rgba(138, 61, 232, 0.18), rgba(70, 28, 123, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-top-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(138, 61, 232, 0.7)) drop-shadow(0 0 24px rgba(138, 61, 232, 0.4));
}

.cube-face-front  { transform: translateZ(160px); }
.cube-face-back   { transform: rotateY(180deg) translateZ(160px); }
.cube-face-left   { transform: rotateY(-90deg) translateZ(160px); }
.cube-face-right  { transform: rotateY(90deg) translateZ(160px); }
.cube-face-top    { transform: rotateX(90deg) translateZ(160px); }
.cube-face-bottom { transform: rotateX(-90deg) translateZ(160px); }

@keyframes cube-rotate {
  0%   { transform: rotateX(-8deg) rotateY(0deg); }
  100% { transform: rotateX(-8deg) rotateY(360deg); }
}

.cube-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(70, 28, 123, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ── iPhone Chatbot Hero Visual ───────────────────────────────────────────── */
.iphone-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
}

/* iPhone 15 Pro frame */
.iphone-frame {
  position: relative;
  width: 340px;
  height: 660px;
  background: linear-gradient(160deg, #e8e8ed 0%, #f5f5f7 50%, #e8e8ed 100%);
  border-radius: 46px;
  border: none;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08),
    inset 0 0 0 1px rgba(255,255,255,0.9),
    0 40px 80px rgba(0,0,0,0.18),
    0 10px 30px rgba(91,31,168,0.15);
  flex-shrink: 0;
  animation: iphone-entry 1s cubic-bezier(0.16,1,0.3,1) 0.3s both;
}
[data-theme="dark"] .iphone-frame {
  background: linear-gradient(160deg, #2c2c2e 0%, #3a3a3c 50%, #2c2c2e 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 40px 80px rgba(0,0,0,0.5),
    0 10px 30px rgba(91,31,168,0.2);
}

@keyframes iphone-entry {
  0%   { transform: perspective(900px) rotateY(-18deg) rotateX(4deg); opacity: 0.4; }
  100% { transform: perspective(900px) rotateY(0deg) rotateX(0deg); opacity: 1; }
}

/* Sine-wave rings behind phone */
.phone-waves {
  position: absolute;
  inset: -80px;
  pointer-events: none;
  z-index: 0;
}
.waves-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wave-ring {
  fill: none;
  stroke: rgba(91, 31, 168, 0.13);
  stroke-width: 1.5;
  stroke-linecap: round;
  animation: wave-pulse 3.5s ease-in-out infinite;
}
[data-theme="dark"] .wave-ring {
  stroke: rgba(192, 132, 252, 0.14);
}
@keyframes wave-pulse {
  0%, 100% { stroke-opacity: 0.55; transform: scaleX(1); }
  50%       { stroke-opacity: 1;    transform: scaleX(1.04); }
}
.iphone-frame { position: relative; z-index: 1; }


/* Screen */
.iphone-screen {
  position: absolute;
  inset: 6px;
  background: #f2f2f7;
  border-radius: 41px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status bar */
.iphone-status-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 5px;
  flex-shrink: 0;
  background: #ffffff;
}
.iphone-time {
  font-family: -apple-system, 'SF Pro Display', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.3px;
}
.iphone-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
}
.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.iphone-colon {
  animation: colon-blink 1s step-start infinite;
  display: inline-block;
}
@keyframes colon-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Chatbot UI inside screen */
.chatbot-ui {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f2f2f7;
  overflow: hidden;
}

/* Chatbot header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b1fa8, #c084fc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(91,31,168,0.35);
  overflow: hidden;
}
.chatbot-avatar-logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.chatbot-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chatbot-name {
  font-family: -apple-system, 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #000;
}
.chatbot-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, 'DM Sans', sans-serif;
  font-size: 10px;
  color: #6e6e73;
}
.chatbot-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 4px rgba(52,199,89,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.chatbot-header-actions {
  position: relative;
  display: flex;
  align-items: center;
}
.chatbot-menu-btn {
  display: flex;
  gap: 3px;
  align-items: center;
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.chatbot-menu-btn:hover { background: rgba(0,0,0,0.06); }
.chatbot-header-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #8e8e93;
}
.chatbot-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  overflow: hidden;
  min-width: 140px;
  z-index: 100;
}
.chatbot-menu-dropdown.open { display: block; }
.chatbot-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: none;
  font-family: -apple-system, 'DM Sans', sans-serif;
  font-size: 13px;
  color: #ff3b30;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.chatbot-menu-item:hover { background: rgba(255,59,48,0.07); }

/* Messages area */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 14px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #7b32d6; border-radius: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: rgba(123,50,214,0.08); border-radius: 4px; }

/* Bot greeting bubble */
.bot-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  align-self: flex-start;
  max-width: 88%;
  animation: bubble-in 0.3s ease forwards;
}
.bot-bubble-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b1fa8, #c084fc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.bot-bubble {
  background: #ffffff;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  padding: 10px 13px;
  font-family: -apple-system, 'DM Sans', sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: #1c1c1e;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  word-break: break-word;
}

/* User bubble */
.user-bubble-wrap {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
  max-width: 80%;
  animation: bubble-in 0.3s ease forwards;
}
.user-bubble {
  background: linear-gradient(135deg, #5b1fa8, #9333ea);
  border-radius: 18px;
  border-bottom-right-radius: 4px;
  padding: 10px 13px;
  font-family: -apple-system, 'DM Sans', sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  color: #fff;
  box-shadow: 0 2px 8px rgba(91,31,168,0.4);
}

/* Typing indicator */
.bot-typing-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  align-self: flex-start;
  animation: bubble-in 0.3s ease forwards;
}
.bot-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 14px;
  background: #ffffff;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.bot-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7c7cc;
  animation: typing-bounce 1.1s infinite;
}
.bot-typing span:nth-child(2) { animation-delay: 0.18s; }
.bot-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-4px); }
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Quick reply chips */
.chatbot-quick-replies {
  display: flex;
  gap: 6px;
  padding: 6px 12px 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.quick-reply {
  background: #ffffff;
  border: 1.5px solid rgba(91,31,168,0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: -apple-system, 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #5b1fa8;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.quick-reply:hover {
  background: #5b1fa8;
  color: #fff;
  border-color: #5b1fa8;
}

/* Input bar */
.chatbot-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.chatbot-input-field {
  flex: 1;
  background: #f2f2f7;
  border: 1.5px solid rgba(0,0,0,0.15);
  outline: none;
  border-radius: 22px;
  padding: 9px 14px;
  font-family: -apple-system, 'DM Sans', sans-serif;
  font-size: 11px;
  color: #1c1c1e;
  min-width: 0;
  transition: border-color 0.2s;
}
.chatbot-input-field:focus {
  border-color: rgba(123, 50, 214, 0.5);
}
.chatbot-input-field::placeholder { color: #aeaeb2; }
.chatbot-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b1fa8, #9333ea);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(91,31,168,0.4);
  transition: transform 0.15s ease;
}
.chatbot-send-btn:hover { transform: scale(1.1); }

/* Home indicator */
.iphone-home-bar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
}
.iphone-home-bar::after {
  content: '';
  width: 96px;
  height: 4px;
  background: #000;
  border-radius: 4px;
  opacity: 0.18;
}

/* Floating install badge */
.install-badge {
  position: absolute;
  bottom: -44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(91,31,168,0.15);
  border-radius: 20px;
  padding: 7px 14px 7px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #5b1fa8;
  box-shadow: 0 4px 16px rgba(91,31,168,0.12);
  white-space: nowrap;
  animation: badge-float 3s ease-in-out infinite;
}
[data-theme="dark"] .install-badge {
  background: #1a0a35;
  border-color: rgba(192,132,252,0.25);
  color: #c084fc;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Dark mode screen adjustments */
[data-theme="dark"] .iphone-screen   { background: #1c1c1e; }
[data-theme="dark"] .chatbot-ui      { background: #1c1c1e; }
[data-theme="dark"] .iphone-status-bar,
[data-theme="dark"] .chatbot-header,
[data-theme="dark"] .chatbot-input-bar,
[data-theme="dark"] .iphone-home-bar { background: #2c2c2e; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .chatbot-name    { color: #fff; }
[data-theme="dark"] .iphone-time     { color: #fff; }
[data-theme="dark"] .bot-bubble      { background: #3a3a3c; color: #fff; }
[data-theme="dark"] .chatbot-input-field { background: #3a3a3c; color: #ede8f7; border-color: rgba(255,255,255,0.18); }
[data-theme="dark"] .quick-reply     { background: #2c2c2e; border-color: rgba(192,132,252,0.3); color: #c084fc; }
[data-theme="dark"] .quick-reply:hover { background: #5b1fa8; color: #fff; }
.iphone-status-icons { color: #1a1a1a; }
[data-theme="dark"] .iphone-status-icons { color: #ffffff; }
[data-theme="dark"] .chatbot-header-dot { background: #48484a; }
[data-theme="dark"] .iphone-home-bar::after { background: #fff; opacity: 0.3; }

/* Responsive tablet */
@media (max-width: 1024px) {
  .iphone-frame {
    width: 280px;
    height: 544px;
    border-radius: 38px;
  }
  .iphone-screen { border-radius: 33px; }
  .iphone-dynamic-island { width: 84px; height: 24px; top: 8px; }
  .bot-bubble, .user-bubble { font-size: 11px; }
  .chatbot-input-field { font-size: 10px; }
}

/* ── Work Page ────────────────────────────────────────────────────────────── */
.work-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
}
.work-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(91,31,168,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.work-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.work-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-purple-glass);
  border: 1px solid var(--brand-purple-border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  margin-bottom: 32px;
  color: var(--text-muted);
}
.work-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-purple-light);
  animation: pulse-dot 2s ease-in-out infinite;
}
.work-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.work-hero-title span {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.work-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 52px;
}
.work-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: 16px;
  padding: 28px 40px;
  max-width: 520px;
  margin: 0 auto;
}
.work-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}
.work-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.work-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.work-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
  flex-shrink: 0;
}
.work-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  opacity: 0.5;
}
.work-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--brand-purple-light));
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0%,100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

.work-grid-section {
  padding: 80px 0 100px;
  background: var(--bg-surface);
}

.work-cta-band {
  padding: 100px 0 120px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}
.work-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(91,31,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.work-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.work-cta-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.work-cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .work-cta-inner { flex-direction: column; text-align: center; }
  .work-cta-actions { justify-content: center; }
  .work-hero-stats { padding: 20px 24px; }
  .work-stat-num { font-size: 1.5rem; }
}

/* ── Portfolio Section ────────────────────────────────────────────────────── */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.ptab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-purple-border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.ptab:hover {
  border-color: var(--brand-purple-light);
  color: var(--brand-purple-light);
}
.ptab.active {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(91,31,168,0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}
@media (max-width: 640px) { .portfolio-grid { grid-template-columns: 1fr; } }

.pcard {
  background: #0d0b14;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: pcard-in 0.35s ease both;
}
.pcard:hover {
  border-color: rgba(123,50,214,0.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(70,28,123,0.28);
}
@keyframes pcard-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pcard-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #1a1030 0%, #0f0820 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.pcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcard-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple-light, #a855f7);
}
.pcard-emoji svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 24px rgba(123,50,214,0.45));
}
.pcard-body {
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.pcard-cat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}
.pcard-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}
.pcard-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap 0.2s ease, color 0.2s ease;
}
.pcard-read-more:hover { gap: 10px; color: var(--brand-purple-light); }
.pcard-read-more svg { flex-shrink: 0; }

/* See more button */
.portfolio-more-wrap {
  display: flex;
  justify-content: center;
}
.portfolio-more-btn {
  padding: 13px 36px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--brand-purple-light);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-purple-light);
  cursor: pointer;
  transition: var(--transition);
}
.portfolio-more-btn:hover {
  background: var(--brand-purple-light);
  color: #fff;
  box-shadow: 0 6px 20px rgba(91,31,168,0.3);
}
.portfolio-more-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Project detail modal */
.pmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pmodal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.pmodal {
  background: var(--bg-base);
  border: var(--card-border);
  border-radius: var(--radius-card);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.pmodal-backdrop.open .pmodal { transform: translateY(0); }
.pmodal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.pmodal-close:hover { color: var(--text-primary); }
.pmodal-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pmodal-body .pmodal-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--brand-purple-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: block;
}
.pmodal-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.pmodal-body .pmodal-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pmodal-body .pmodal-tags span {
  background: var(--brand-purple-glass);
  border: 1px solid var(--brand-purple-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand-purple-light);
}
.pmodal-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-light));
  border-radius: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}
.pmodal-thumb img { width:100%; height:100%; object-fit:cover; }

/* ── Co-Founders Section ─────────────────────────────────────────────────── */
.founders-fade {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.founders-fade.founders-active {
  opacity: 1;
  transform: translateY(0);
}
.founders-section {
  padding: 120px 0 130px;
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.founders-blob {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.founders-blob-left  { background: var(--brand-purple-glow); top: -120px; left: -180px; }
.founders-blob-right { background: var(--brand-purple-glow); bottom: -140px; right: -160px; }
.founders-section .container { position: relative; z-index: 1; }
.founders-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-purple-light); margin-bottom: 14px;
}
.founders-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800; line-height: 1.13;
  color: var(--text-primary); margin-bottom: 64px;
}
.founders-heading span { color: var(--brand-purple-light); }
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.founder-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
  padding: 52px 40px 44px;
  background: var(--bg-card);
  border: 1px solid var(--brand-purple-border);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.22,.68,0,1.2), box-shadow 0.4s ease;
}
.founder-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px var(--brand-purple-glow);
}
.founder-accent {
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-purple-light), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.founder-card:hover .founder-accent { opacity: 1; }
.founder-photo-wrap {
  position: relative; width: 170px; height: 170px; flex-shrink: 0;
}
.founder-glow {
  position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,50,214,0.28) 0%, transparent 72%);
  filter: blur(14px); z-index: 0;
}
.founder-photo {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block;
}
.founder-ring {
  position: absolute; inset: -4px; border-radius: 50%; z-index: 2;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--brand-purple-light), transparent 60%, var(--brand-purple-mid)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out; mask-composite: exclude;
  transition: opacity 0.3s ease; opacity: 0.6;
}
.founder-card:hover .founder-ring { opacity: 1; }
.founder-info { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.founder-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.founder-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-purple-light);
}
.founder-bio {
  font-size: 14.5px; line-height: 1.75;
  color: var(--text-muted); max-width: 300px; margin-top: 4px;
}
@media (max-width: 768px) {
  .founders-section { padding: 80px 0 90px; }
  .founders-grid { grid-template-columns: 1fr; gap: 24px; }
  .founder-card { padding: 40px 28px 36px; }
  .founder-photo-wrap { width: 140px; height: 140px; }
}

/* Services Section */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px auto;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: 16px;
  margin-bottom: 24px;
  font-weight: 700;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
}

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

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(70, 28, 123, 0.05);
  border: 1px solid rgba(70, 28, 123, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--brand-purple);
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--brand-purple);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(70, 28, 123, 0.25);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  border-top: 1px solid rgba(70, 28, 123, 0.08);
  padding-top: 20px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.service-features li::before {
  content: '→';
  color: var(--brand-purple);
  font-weight: 700;
}

/* Calculator Section */
.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-weight: 600;
  font-size: 1.05rem;
}

.slider-value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand-purple);
  font-size: 1.25rem;
  font-weight: 700;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ebe6f5;
  border-radius: var(--radius-pill);
  outline: none;
  border: 1px solid rgba(70, 28, 123, 0.08);
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-purple);
  border: 2px solid var(--white);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(70, 28, 123, 0.25);
  transition: var(--transition);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 15px rgba(70, 28, 123, 0.4);
}

.calc-results {
  background: var(--brand-purple);
  border: none;
  box-shadow: 0 15px 40px rgba(70, 28, 123, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.results-box {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.result-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
}

.result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.result-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.result-val {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.result-val.highlight {
  background: linear-gradient(135deg, var(--white) 60%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Kinetic Grid Canvas */

#process .container {
  position: relative;
  z-index: 1;
}

/* Process Section */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(70, 28, 123, 0.15) 0%, var(--brand-purple) 50%, rgba(70, 28, 123, 0.15) 100%);
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 40px;
  z-index: 2;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 60px;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-purple);
  border: 4px solid var(--white);
  box-shadow: 0 4px 10px rgba(70, 28, 123, 0.25);
  z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(70, 28, 123, 0.05);
  position: absolute;
  top: 20px;
  right: 40px;
  line-height: 1;
}

.timeline-item:nth-child(even) .timeline-num {
  right: auto;
  left: 40px;
}

.timeline-card {
  padding: 30px;
}

.timeline-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.timeline-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Case Studies */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.work-card {
  padding: 0;
  border-radius: var(--radius-card);
}

.work-img {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid rgba(70, 28, 123, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-img svg {
  width: 150px;
  height: 150px;
  opacity: 0.8;
  transition: var(--transition);
}

.work-card:hover .work-img svg {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.work-info {
  padding: 35px;
}

.work-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.work-tag {
  background: rgba(70, 28, 123, 0.04);
  border: 1px solid rgba(70, 28, 123, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

.work-info h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.work-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.work-metrics {
  display: flex;
  gap: 30px;
  border-top: 1px solid rgba(70, 28, 123, 0.08);
  padding-top: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-purple);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Qualified Lead capture Wizard Form */
.form-layout {
  max-width: 750px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 48px;
}

.form-progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
}

.form-progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background-color: #ebe6f5;
  z-index: 1;
}

.form-progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 0%;
  height: 2px;
  background-color: var(--brand-purple);
  z-index: 2;
  transition: var(--transition);
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(70, 28, 123, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-subtle);
  position: relative;
  z-index: 3;
  transition: var(--transition);
}

.progress-step.active {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  box-shadow: 0 0 15px rgba(70, 28, 123, 0.15);
  background: var(--white);
  font-weight: 700;
}

.progress-step.completed {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: var(--white);
  box-shadow: 0 0 15px rgba(70, 28, 123, 0.15);
}

.wizard-steps {
  position: relative;
  min-height: 380px;
}

.wizard-step {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: 600;
  text-align: center;
}

/* Option Grids */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.option-card {
  background: var(--white);
  border: 1px solid rgba(70, 28, 123, 0.08);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
}

.option-card:hover {
  border-color: rgba(70, 28, 123, 0.25);
  background: rgba(70, 28, 123, 0.02);
}

.option-card.selected {
  border-color: var(--brand-purple);
  background: rgba(70, 28, 123, 0.06);
  box-shadow: 0 8px 20px rgba(70, 28, 123, 0.08);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.option-label {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Inputs and Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

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

.form-control {
  background: var(--white);
  border: 1px solid rgba(70, 28, 123, 0.15);
  padding: 16px 20px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 15px rgba(70, 28, 123, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Wizard Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid rgba(70, 28, 123, 0.08);
  padding-top: 30px;
}

/* Success layout */
.success-card {
  text-align: center;
  padding: 60px 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(70, 28, 123, 0.05);
  border: 2px solid var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 30px auto;
  color: var(--brand-purple);
  box-shadow: 0 4px 15px rgba(70, 28, 123, 0.15);
  animation: scale-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scale-up {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-card p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 30px auto;
}

/* Reveal Scroll Class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Antigravity Inspired Footer */
.antigravity-footer {
  background: var(--bg-base);
  color: var(--text-primary);
  padding: 100px 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 100px;
  border-top: 1px solid rgba(0,0,0,0.05);
  font-family: 'DM Sans', sans-serif;
}

.antigravity-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.antigravity-footer .footer-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.antigravity-footer .footer-links-grid {
  display: flex;
  gap: 120px;
}

.antigravity-footer .footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.antigravity-footer .footer-link-col a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.antigravity-footer .footer-link-col a:hover {
  opacity: 0.6;
}

.antigravity-footer .footer-massive-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5vw;
  font-weight: 700;
  text-align: center;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--brand-purple);
  margin-left: -1vw; /* Visually center tight tracking */
}

.antigravity-footer .antigravity-footer .footer-bottom {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .antigravity-footer .footer-links-grid {
    gap: 60px;
  }
}

/* ==========================================================================
   LENIS SMOOTH SCROLLING UTILITIES
   ========================================================================== */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ==========================================================================
   NAVIGATION DROPDOWN (GLASSMORPHIC)
   ========================================================================== */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-chevron {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 3px;
  margin-top: -2px;
  transition: transform 0.25s ease;
}

.nav-dropdown-wrapper:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(15, 10, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(138, 61, 232, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  list-style: none;
  padding: 8px 0;
  width: max-content;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.nav-dropdown-wrapper:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--white-60);
  transition: var(--transition);
}

.nav-dropdown li a:hover {
  color: var(--white);
  background: rgba(138, 61, 232, 0.1);
}

/* ==========================================================================
   N8N-INSPIRED AI CHAT SYSTEM
   ========================================================================== */
.n8n-chat-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: transparent;
  border: 1px solid rgba(138, 61, 232, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(138, 61, 232, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  height: 600px;
  position: relative;
}

#chat-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: 16px;
}

/* Header */
.n8n-chat-header {
  padding: 16px 24px;
  background: rgba(248, 249, 252, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(138, 61, 232, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.n8n-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.n8n-avatar-sq {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.n8n-avatar-sq.brand-gradient {
  background: linear-gradient(135deg, #8a3de8, #461c7b);
}

.n8n-avatar-sq.brand-dark {
  background: #f0e6ff;
  color: #8a3de8;
}

.n8n-avatar-sq.user {
  background: transparent;
  color: transparent;
}

.n8n-header-text h3 {
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 2px;
  font-weight: 600;
}

.n8n-header-text p {
  font-size: 11px;
  color: #8a3de8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #8a3de8;
  border-radius: 50%;
  display: inline-block;
}

.n8n-tag {
  background: rgba(138, 61, 232, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #8a3de8;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(138, 61, 232, 0.2);
}

/* Webhook Bar Removed */

/* Chat Area */
.n8n-chat-divider {
  text-align: center;
  margin: 24px 0 16px;
  position: relative;
  z-index: 1;
}

.n8n-chat-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.n8n-chat-divider span {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 12px;
  position: relative;
  z-index: 2;
  font-size: 11px;
  color: #888888;
}

.n8n-chat-messages {
  flex: 1;
  padding: 16px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.n8n-chat-messages::-webkit-scrollbar {
  width: 6px;
}
.n8n-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

@keyframes message-in {
  to { opacity: 1; transform: translateY(0); }
}

.n8n-message-row {
  display: flex;
  gap: 12px;
  animation: message-in 0.3s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

.n8n-message-row.user {
  flex-direction: row-reverse;
}

.n8n-message-content {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.n8n-message-row.user .n8n-message-content {
  align-items: flex-end;
}

.n8n-bubble {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 12px;
}

.n8n-bubble.ai-bubble {
  background: rgba(248, 249, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1a1a1a;
  border: 1px solid rgba(138, 61, 232, 0.2);
  border-top-left-radius: 4px;
}

.n8n-bubble.user-bubble {
  background: rgba(138, 61, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  border-top-right-radius: 4px;
}

.n8n-timestamp {
  font-size: 10px;
  color: #888888;
  margin-top: 6px;
}

/* Input Area */
.n8n-chat-input-area {
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}

.n8n-input-box {
  background: #f8f9fc;
  border: 1px solid rgba(138, 61, 232, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.n8n-input-box:focus-within {
  border-color: #8a3de8;
  box-shadow: 0 0 0 2px rgba(138, 61, 232, 0.15);
}

.n8n-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #1a1a1a;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  padding: 8px;
}

.n8n-input-box input::placeholder {
  color: #888888;
}

.n8n-input-box button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #8a3de8;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--white);
  transition: var(--transition);
}

.n8n-input-box button:hover {
  background: #a074e8;
}

.n8n-input-box button svg {
  width: 18px;
  height: 18px;
  transform: translateX(1px);
}

.n8n-input-footer {
  margin-top: 12px;
  font-size: 11px;
  color: #888888;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.n8n-input-footer .kbd {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid #e0e0e0;
  color: #666666;
}


/* ==========================================================================
   SECTION OVERLAP STACKING EFFECT
   ========================================================================== */

main {
  position: relative;
}

/* ==========================================================================
   SECTION OVERLAP / CARD STACK EFFECT
   Lower section slides up and covers the one above it as you scroll.
   KEY: NO overflow:hidden on sticky elements — it breaks sticky in Chrome/Safari.
   ========================================================================== */

/* Hero scrolls away normally — sits at the bottom of the stack */
.hero {
  position: relative;
  z-index: 1;
  border-radius: 0;
}

/* All non-hero sections stack on top of each other */
#services,
#ai-chat,
#process,
#work {
  position: sticky;
  top: 0;
  border-radius: 24px 24px 0 0;
  /* Clip radius without overflow:hidden by using outline trick */
  outline: 1px solid transparent;
}

/* Rising z-index so each section covers the one before it */
#services { z-index: 2; background: var(--bg-base);    box-shadow: 0 -8px 40px rgba(0,0,0,0.10); padding-bottom: 160px; }
#ai-chat  { z-index: 3; background: var(--bg-surface); box-shadow: 0 -8px 40px rgba(0,0,0,0.12); padding-bottom: 160px; }
#process  { z-index: 4; background: var(--bg-base);    box-shadow: 0 -8px 40px rgba(0,0,0,0.14); padding-bottom: 160px; }
#work     { z-index: 5; background: var(--bg-surface); box-shadow: 0 -8px 40px rgba(0,0,0,0.16); }

/* Inner radius clip — wraps section content so border-radius is visible */
#services > .container,
#ai-chat  > .container,
#process  > .container,
#work     > .container {
  position: relative;
}

/* Rounded top visual using ::before pseudo on each section */
#services::before,
#ai-chat::before,
#process::before,
#work::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  border-radius: 24px 24px 0 0;
  pointer-events: none;
  z-index: 0;
}


/* ==========================================================================
   RESPONSIVE — TABLET & MOBILE
   ========================================================================== */

/* ── Tablet (≤ 1024px) ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Switch to hamburger at tablet — navbar too cramped otherwise */
  .nav-links,
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Hero stays 2-column at tablet, just tighter */
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
  }

  .hero-ctas {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

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

  .timeline-item:nth-child(even) {
    flex-direction: row;
  }

  .timeline-item:nth-child(even) .timeline-num {
    text-align: left;
  }

  .hero-interactive-cube {
    width: 240px;
    height: 240px;
  }

  .cube-face {
    width: 240px;
    height: 240px;
  }

  .cube-face-front  { transform: translateZ(120px); }
  .cube-face-back   { transform: rotateY(180deg) translateZ(120px); }
  .cube-face-left   { transform: rotateY(-90deg) translateZ(120px); }
  .cube-face-right  { transform: rotateY(90deg) translateZ(120px); }
  .cube-face-top    { transform: rotateX(90deg) translateZ(120px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(120px); }

  .n8n-chat-wrapper {
    height: 500px;
  }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  /* Typography */
  /* Prevent horizontal overflow */
  body { overflow-x: hidden; }

  .hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* Hero */
  section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: auto;
  }

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

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-ctas a, .hero-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hide cube on small screens — layout breaks */
  .hero-visual {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Chat */
  .n8n-chat-wrapper {
    height: 480px;
    border-radius: 12px;
  }

  #chat-fluid-canvas {
    border-radius: 12px;
  }

  .n8n-chat-input-area {
    padding: 16px;
  }

  .n8n-chat-messages {
    padding: 12px 16px;
  }

  /* Timeline — single column on mobile */
  .timeline::before {
    left: 16px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 16px 16px 16px 52px;
  }

  .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 7px !important;
    right: auto !important;
    top: 28px;
    transform: none;
  }

  .timeline-num {
    font-size: 2.2rem;
    top: 14px;
    right: 16px !important;
    left: auto !important;
    text-align: right;
  }

  .timeline-card {
    width: 100%;
    padding: 20px;
  }

  /* Work */
  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Footer */
  .antigravity-footer {
    overflow: hidden;
    padding: 60px 24px 32px; /* reduce from 80px sides — leaves room for text */
    gap: 48px;
  }

  .footer-massive-text {
    font-size: clamp(1.8rem, 9vw, 4rem);
    margin-left: 0;
    text-align: left;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  .footer-links-grid {
    gap: 24px;
  }

  /* Container padding */
  .container {
    padding: 0 20px;
  }

  /* Overlap rounding smaller on mobile */
  section {
    border-radius: 16px 16px 0 0;
  }
}

/* ── Small mobile (≤ 480px) ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .proof-logos {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .n8n-chat-wrapper {
    height: 440px;
  }

  .n8n-input-footer {
    display: none;
  }

  .work-metrics {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ==========================================================================
   ROI CALCULATOR
   ========================================================================== */

#calculator {
  z-index: 6;
  background: var(--bg-base);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.16);
  position: sticky;
  top: 0;
  border-radius: 24px 24px 0 0;
  padding-bottom: 160px;
}

.roi-wrapper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid rgba(138, 61, 232, 0.12);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 12px 50px rgba(138, 61, 232, 0.08);
}

/* ── Sliders ── */
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 48px;
}

.roi-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roi-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.roi-slider-label strong {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-purple);
  background: rgba(138, 61, 232, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
  min-width: 72px;
  text-align: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--brand-purple) 0%, var(--brand-purple) var(--val, 5%), rgba(138,61,232,0.15) var(--val, 5%), rgba(138,61,232,0.15) 100%);
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-purple);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(138, 61, 232, 0.4);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(138, 61, 232, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-purple);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(138, 61, 232, 0.4);
  cursor: pointer;
}

.roi-slider-range {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted, #aaa);
  font-family: 'JetBrains Mono', monospace;
}

/* ── Result Cards ── */
.roi-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.roi-result-card {
  background: var(--bg-base);
  border: 1px solid rgba(138, 61, 232, 0.12);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.roi-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(138, 61, 232, 0.12);
}

.roi-result-card--highlight {
  background: linear-gradient(135deg, #461c7b, #8a3de8);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(138, 61, 232, 0.35);
}

.roi-result-card--highlight .roi-result-icon,
.roi-result-card--highlight .roi-result-value,
.roi-result-card--highlight .roi-result-label {
  color: #ffffff;
}

.roi-result-icon {
  color: var(--brand-purple);
  opacity: 0.7;
  margin-bottom: 4px;
}

.roi-result-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  transition: all 0.3s ease;
}

.roi-result-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
}

/* ── CTA ── */
.roi-cta {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(138, 61, 232, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.roi-cta p {
  font-size: 15px;
  color: var(--text-secondary);
}

.roi-cta p strong {
  color: var(--brand-purple);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .roi-wrapper {
    padding: 28px 20px;
  }

  .roi-results {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .roi-result-card--highlight {
    order: -1;
  }
}

/* ==========================================================================
   MM DASHBOARD CARDS — Hero
   ========================================================================== */

.mm-cards-scene {
  width: 480px;
  height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  animation: mm-float 5s ease-in-out infinite;
}
.mm-cards-scene:hover {
  animation-play-state: paused;
}

@keyframes mm-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.mm-cards-wrapper {
  position: relative;
  width: 230px;
  height: 470px;
  transform-style: preserve-3d;
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ── Individual card ── */
.mm-card {
  position: absolute;
  width: 230px;
  height: 470px;
  border-radius: 24px;
  background: linear-gradient(160deg, #12082a 0%, #0d0618 60%, #0a0d1f 100%);
  border: 1px solid rgba(138, 61, 232, 0.25);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.08) inset;
  transition:
    transform 1.0s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 1.0s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.8s ease;
  cursor: pointer;
  overflow: hidden;
}

/* Stagger the cards so they peel out one by one */
.mm-card--1 { transition-delay: 0ms; }
.mm-card--2 { transition-delay: 55ms; }
.mm-card--3 { transition-delay: 110ms; }

/* Subtle shimmer overlay */
.mm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.05) 0%,
    transparent 50%,
    rgba(138,61,232,0.04) 100%);
  pointer-events: none;
}

/* ── Resting: dramatic fan with clear card separation ── */
.mm-card--1 {
  top: 0; left: 0;
  transform: rotate(-26deg) translate(-115px, 55px);
  z-index: 1;
  opacity: 0.85;
}
.mm-card--2 {
  top: 0; left: 0;
  transform: rotate(-4deg) translate(-10px, -8px);
  z-index: 3;
  opacity: 1;
}
.mm-card--3 {
  top: 0; left: 0;
  transform: rotate(20deg) translate(92px, 38px);
  z-index: 2;
  opacity: 0.90;
}

/* ── Hover: W-shape spread (symmetric around scene centre) ── */
.mm-cards-scene:hover .mm-card--1 {
  transform: translateX(-248px) translateY(-70px) rotate(-14deg);
  opacity: 1;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 40px rgba(192, 38, 211, 0.22);
}
.mm-cards-scene:hover .mm-card--2 {
  transform: translateX(0px) translateY(55px) rotate(1deg);
  opacity: 1;
  box-shadow: 0 40px 100px rgba(0,0,0,0.65), 0 0 60px rgba(138, 61, 232, 0.25);
}
.mm-cards-scene:hover .mm-card--3 {
  transform: translateX(248px) translateY(-70px) rotate(14deg);
  opacity: 1;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 40px rgba(6, 182, 212, 0.22);
}

/* ── Card inner layout ── */
.mm-card-inner {
  display: flex;
  height: 100%;
  padding: 22px 18px 22px 12px;
  gap: 12px;
}

/* Left strip — brand + metrics */
.mm-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 32px;
  flex-shrink: 0;
}

.mm-card-brand {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  line-height: 1.1;
  user-select: none;
}

.mm-card-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.mm-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.mm-metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(138, 61, 232, 0.9);
  line-height: 1;
}

.mm-metric-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6.5px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Center — glowing line */
.mm-card-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
  flex-shrink: 0;
  padding: 4px 0;
}

/* ── Hover hint badge ── */
.mm-hover-hint {
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(138, 61, 232, 0.22);
  border: 1px solid rgba(138, 61, 232, 0.55);
  backdrop-filter: blur(14px);
  padding: 9px 20px 9px 14px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10;
  box-shadow: 0 4px 24px rgba(138, 61, 232, 0.30), 0 0 0 1px rgba(255,255,255,0.06) inset;
}

.mm-hover-hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 8px #a855f7, 0 0 18px rgba(168,85,247,0.7);
  animation: hint-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #a855f7, 0 0 18px rgba(168,85,247,0.7); }
  50%       { opacity: 0.6; transform: scale(0.65); box-shadow: 0 0 4px #a855f7, 0 0 8px rgba(168,85,247,0.3); }
}

.mm-cards-scene:hover .mm-hover-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.mm-glow-line {
  width: 2px;
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(to bottom,
    #c026d3 0%,
    #8a3de8 40%,
    #3b82f6 70%,
    #06b6d4 100%);
  box-shadow:
    0 0 6px rgba(192, 38, 211, 0.8),
    0 0 18px rgba(138, 61, 232, 0.5),
    0 0 30px rgba(6, 182, 212, 0.3);
  position: relative;
}

/* Animated bright spot travelling down the line */
.mm-glow-line::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 10px #fff, 0 0 20px #c026d3;
  animation: mm-line-travel 3s ease-in-out infinite;
}

@keyframes mm-line-travel {
  0%   { top: 0%;   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 18px); opacity: 0; }
}

/* Right — steps */
.mm-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
}

.mm-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mm-step-num {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(138, 61, 232, 0.15);
  border: 1px solid rgba(138, 61, 232, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(138, 61, 232, 0.95);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.mm-card:hover .mm-step-num {
  background: rgba(138, 61, 232, 0.28);
  border-color: rgba(138, 61, 232, 0.6);
}

.mm-step-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mm-step-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
}

.mm-step-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.2;
}

.mm-chevron {
  font-size: 22px;
  color: rgba(138, 61, 232, 0.5);
  text-align: center;
  line-height: 1;
  padding: 0 0 0 6px;
  transform: rotate(90deg);
  display: block;
  margin: -4px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .mm-cards-scene { width: 220px; height: 440px; }
  .mm-cards-wrapper { width: 205px; height: 425px; }
  .mm-card { width: 200px; height: 415px; }
  .mm-cards-scene:hover .mm-card--1 { transform: translateX(-215px) translateY(-55px) rotate(-14deg); }
  .mm-cards-scene:hover .mm-card--2 { transform: translateX(0px) translateY(44px) rotate(1deg); }
  .mm-cards-scene:hover .mm-card--3 { transform: translateX(215px) translateY(-55px) rotate(14deg); }
}

@media (max-width: 768px) {
  .mm-cards-scene { width: 185px; height: 360px; animation: none; }
  .mm-cards-wrapper { width: 170px; height: 345px; }
  .mm-card { width: 165px; height: 335px; border-radius: 18px; }
  .mm-card--1 { transform: rotate(-20deg) translate(-64px, 36px); }
  .mm-card--2 { transform: rotate(-3deg) translate(-8px, -6px); }
  .mm-card--3 { transform: rotate(14deg) translate(50px, 22px); }
  .mm-cards-scene:hover .mm-card--1 { transform: translateX(-185px) rotate(-3deg); }
  .mm-cards-scene:hover .mm-card--3 { transform: translateX(185px) rotate(3deg); }
  .mm-step-label { font-size: 10px; }
  .mm-step-num { width: 28px; height: 28px; font-size: 9px; }
}

/* ── Mobile / Touch Performance ────────────────────────────────────────────
   On touch devices we kill every GPU-heavy decoration:
   - blobs (filter:blur 120px + continuous animation)
   - backdrop-filter on cards and nav
   - custom cursor (hidden via CSS too, in case JS doesn't catch it)
   ────────────────────────────────────────────────────────────────────── */
@media (pointer: coarse) {
  /* Kill animated blobs — biggest single GPU win */
  .bg-blobs { display: none; }

  /* Remove backdrop-filter from every surface */
  .glass-card,
  .header-nav,
  .nav-dropdown,
  .mobile-overlay,
  .n8n-chat-wrapper,
  .n8n-chat-header,
  .n8n-input-box,
  .timeline-card,
  .roi-wrapper,
  .footer-top {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Hide custom cursor elements */
  .custom-cursor,
  .custom-cursor-follower { display: none !important; }

  /* Remove will-change layers — no benefit without the effects */
  * { will-change: auto !important; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .hero-interactive-cube { animation-play-state: paused !important; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}
