/* ============================================================
   CTRLFLOW.AI — STYLE.CSS  v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Cormorant+Garamond:ital,wght@1,400;1,600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-bg-primary:   #080808;
  --color-bg-surface:   #0F0F0F;
  --color-bg-elevated:  #18101F;
  --color-accent:       #A855F7;
  --color-accent-dark:  #7C3AED;
  --color-text-primary: #F5F0FF;
  --color-text-muted:   #6B7280;
  --color-border:       #2a1a3a;

  --orb-violet: rgba(168, 85, 247, 0.22);
  --orb-deep:   rgba(124, 58, 237, 0.15);
  --orb-faint:  rgba(168, 85, 247, 0.08);

  --font-display: 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-serif:   'Cormorant Garamond', serif;

  --max-width:   1100px;
  --section-pad: 120px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 76px);
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  color: var(--color-text-primary);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--color-text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h5 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* Mono accent — for power words inside headings */
.mono-accent {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-accent);
  font-size: 0.85em;
  letter-spacing: -0.01em;
  font-style: normal;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

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

/* ============================================================
   SCROLL FADE-UP
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================================
   SECTION LABEL — JetBrains Mono // FORMAT
   ============================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.08);
  padding: 4px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--color-text-primary);
  border: 0.5px solid rgba(168, 85, 247, 0.27);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-elevated);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 52px;
  font-size: 17px;
}

/* ============================================================
   CARDS (shared base)
   ============================================================ */
.card {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 36px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.27);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.07);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-24px); }
}

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

/* Logo orbit ellipse — runs always, appears on hover */
@keyframes logo-orbit-path {
  0%   { transform: translate(-100px,  0px); }
  25%  { transform: translate(   0px, -22px); }
  50%  { transform: translate( 100px,  0px); }
  75%  { transform: translate(   0px,  22px); }
  100% { transform: translate(-100px,  0px); }
}

/* Testimonial orbit */
@keyframes ob-orbit {
  from { transform: rotate(0deg)   translateX(22px); }
  to   { transform: rotate(360deg) translateX(22px); }
}

/* Service icon pulse on card hover */
@keyframes icon-bounce {
  0%, 100% { transform: scale(1)    rotate(0deg); }
  50%       { transform: scale(1.18) rotate(6deg); }
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 40px;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}

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

/* Logo with orbit dots */
.nav-logo { display: inline-flex; align-items: center; }

.logo-orbit-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo-orbit-wrap img {
  width: 280px !important;
  height: auto !important;
  max-width: none !important;
  min-width: 280px !important;
  transition: filter 0.35s ease, transform 0.35s ease;
}

.nav-logo:hover .logo-orbit-wrap img {
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.65))
          drop-shadow(0 0 22px rgba(168, 85, 247, 0.25));
  transform: scale(1.04);
}

/* Orbit dots */
.orbit-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  margin: -2.5px 0 0 -2.5px;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: logo-orbit-path 4s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.9);
}

.od-1 { animation-delay:  0s; }
.od-2 { animation-delay: -1s; }
.od-3 { animation-delay: -2s; }
.od-4 { animation-delay: -3s; }

.nav-logo:hover .orbit-dot { opacity: 0.85; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn-primary):hover { color: var(--color-text-primary); }

.nav-links .nav-cta {
  padding: 10px 22px;
  font-size: 14px;
  color: var(--color-text-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* WebGL shader canvas — bottom-most hero layer */
.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

.orb-1 { width:600px; height:600px; background:rgba(168,85,247,0.18); top:-220px; left:-120px; animation-delay:0s; }
.orb-2 { width:420px; height:420px; background:rgba(79,70,229,0.20);  top:-100px; right:-100px; animation-delay:-3s; }
.orb-3 { width:360px; height:360px; background:rgba(236,72,153,0.14); bottom:40px; left:10%; animation-delay:-5s; }
.orb-4 { width:280px; height:280px; background:rgba(124,58,237,0.13); bottom:-60px; right:18%; animation-delay:-2s; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 24px;
  padding-top: 88px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-elevated);
  border: 0.5px solid rgba(168, 85, 247, 0.27);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

#hero h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--color-text-muted);
  opacity: 0.4;
  animation: bounce 2.4s ease-in-out infinite;
}

/* ============================================================
   SOCIAL PROOF BAR — marquee
   ============================================================ */
#social-proof {
  border-top: 0.5px solid var(--color-border);
  border-bottom: 0.5px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
  overflow: hidden;
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.45;
  margin-bottom: 16px;
}

.proof-marquee-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.proof-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.proof-marquee-track:hover { animation-play-state: paused; }

.proof-marquee-inner {
  display: flex;
  align-items: center;
}

.proof-marquee-inner span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: #9CA3AF;
  white-space: nowrap;
  padding: 0 32px;
  border-right: 1px solid rgba(168, 85, 247, 0.14);
}

.proof-marquee-inner span:last-child { border-right: none; }

/* ============================================================
   SERVICES — enhanced hover
   ============================================================ */
#services h2 { margin-bottom: 52px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.4s cubic-bezier(0.16,1,0.3,1),
              transform     0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow    0.4s cubic-bezier(0.16,1,0.3,1);
}

.service-card:hover {
  border: 1px solid var(--color-accent);
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(168,85,247,0.25),
              0 0 80px rgba(168,85,247,0.10);
}

.service-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
  animation: icon-bounce 0.55s ease-in-out;
}

.service-card h3 { font-size: 26px; margin-bottom: 0; }

.service-card > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  opacity: 0.55;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
  margin-top: auto;
  padding-top: 4px;
}

.card-link:hover { opacity: 0.65; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#process { background: var(--color-bg-surface); }
#process h2 { margin-bottom: 56px; }

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

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 24px;
  min-height: 300px;
  cursor: pointer;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover,
.step.is-revealed {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.15);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 72px;
  color: var(--color-text-primary);
  opacity: 0.05;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-icon { color: var(--color-accent); margin-top: -18px; }
.step h4   { margin-bottom: 4px; }

.step > p {
  font-size: 15px;
  max-width: 220px;
  line-height: 1.6;
  transition: opacity 0.3s ease;
}

.step:hover > p,
.step.is-revealed > p {
  opacity: 0.6;
}

/* ============================================================
   STATS — flip cards
   ============================================================ */
.stats-section {
  background: var(--color-bg-primary);
  border-top: 0.5px solid var(--color-border);
  border-bottom: 0.5px solid var(--color-border);
}

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

/* Flip card container */
.stat-flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 180px;
}

.stat-flip-card:focus-visible {
  outline: 2px solid rgba(168,85,247,0.6);
  outline-offset: 4px;
  border-radius: 12px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.stat-flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-front {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
}

.flip-back {
  transform: rotateY(180deg);
  background: var(--color-bg-elevated);
  border: 1px solid rgba(168, 85, 247, 0.22);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 58px;
  color: var(--color-text-primary);
  line-height: 1;
  display: block;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 140px;
  line-height: 1.4;
}

.flip-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--color-accent);
  opacity: 0.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: absolute;
  bottom: 10px;
}

.flip-back p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 220px;
}

/* ============================================================
   FEATURED WORK (index preview)
   ============================================================ */
#work h2 { margin-bottom: 52px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.work-card { padding: 0; overflow: hidden; }

.work-preview {
  height: 200px;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 14px;
  position: relative;
  overflow: hidden;
}

.work-preview-1 { background: linear-gradient(135deg, #130e1e 0%, #1e1035 100%); }
.work-preview-2 { background: linear-gradient(135deg, #0c0f1a 0%, #141b30 100%); }
.work-preview-3 { background: linear-gradient(135deg, #0f0e18 0%, #1a152e 100%); }

.work-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}

.browser-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: block;
}

.browser-url {
  flex: 1; height: 7px;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  margin-left: 8px;
}

.work-preview-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.wpl { display: block; border-radius: 4px; }
.wpl-hero   { width:60%; height:10px; background:rgba(245,240,255,0.15); }
.wpl-sub    { width:80%; height:7px;  background:rgba(245,240,255,0.08); }
.wpl-btn    { width:36%; height:9px;  background:rgba(168,85,247,0.35); border-radius:5px; }
.wpl-flow-1 { width:50%; height:8px;  background:rgba(168,85,247,0.22); }
.wpl-flow-2 { width:70%; height:6px;  background:rgba(168,85,247,0.14); }
.wpl-flow-3 { width:40%; height:8px;  background:rgba(168,85,247,0.22); }

.work-info { padding: 22px 26px 26px; }

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.work-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-primary);
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.work-info > p { font-size: 14px; color: var(--color-text-muted); line-height: 1.55; }

.work-cta { margin-top: 52px; text-align: center; }

.view-all-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.view-all-link:hover { opacity: 0.65; }

/* ============================================================
   TESTIMONIALS — with orbit icons
   ============================================================ */
#testimonials { background: var(--color-bg-surface); }
#testimonials h2 { margin-bottom: 52px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.testimonial-wrap { position: relative; }

/* Orbit ring — the orbit center is positioned top-right of card */
.orbit-ring {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}

.ob-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  margin: -3.5px 0 0 -3.5px;
  box-shadow: 0 0 8px rgba(168,85,247,0.85),
              0 0 16px rgba(168,85,247,0.3);
  animation: ob-orbit linear infinite;
}

.ob-1 .ob-dot { animation-duration: 7s;  animation-delay: 0s; }
.ob-2 .ob-dot { animation-duration: 9s;  animation-delay: -3s; }
.ob-3 .ob-dot { animation-duration: 6s;  animation-delay: -5s; }

.testimonial-card {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-left: 2px solid var(--color-accent);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 1.7;
  opacity: 0.88;
}

.testimonial-author { display: flex; flex-direction: column; gap: 3px; }

.author-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.author-biz { font-size: 12px; color: var(--color-text-muted); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-primary);
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.cta-orb-1 {
  width: 600px; height: 600px;
  background: rgba(168, 85, 247, 0.10);
  top: -200px; left: 50%;
  transform: translateX(-50%);
}

.cta-orb-2 {
  width: 300px; height: 300px;
  background: rgba(124, 58, 237, 0.09);
  bottom: -80px; right: 15%;
  animation-delay: -4s;
}

.cta-content { position: relative; z-index: 1; }
.cta-content h2 { margin-bottom: 16px; }

.cta-sub {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-bg-primary) 0%,
    #0c0915 30%,
    #120d25 60%,
    #1a0f38 85%,
    #1f1042 100%
  );
  border-top: 0.5px solid var(--color-border);
  padding: 80px 32px 40px;
}

.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.footer-orb-1 {
  width:600px; height:600px;
  background: rgba(168, 85, 247, 0.07);
  bottom:-280px; left:50%;
  transform: translateX(-50%);
}

.footer-orb-2 {
  width:300px; height:300px;
  background: rgba(124, 58, 237, 0.06);
  bottom:0; right:8%;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
}

.footer-logo img { height: 34px; width: auto; }

.footer-nav { display: flex; gap: 80px; justify-content: center; }

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-email {
  font-size: 15px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-email:hover { color: var(--color-accent); }

.footer-socials { display: flex; align-items: center; gap: 20px; }

.footer-socials a {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover { color: var(--color-accent); transform: translateY(-2px); }

.footer-copy {
  border-top: 0.5px solid rgba(42, 26, 58, 0.5);
  padding-top: 28px;
  width: 100%;
  text-align: center;
}

.footer-copy p {
  font-size: 12px;
  color: var(--color-text-muted);
  opacity: 0.38;
  letter-spacing: 0.02em;
}

/* ============================================================
   PAGE HERO (shared — work.html, book.html smaller heroes)
   ============================================================ */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 88px;
  padding-bottom: 48px;
}

.page-hero .hero-badge { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }

.page-hero-sub {
  font-size: 17px;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   WORK PAGE
   ============================================================ */
.filter-section {
  border-bottom: 0.5px solid var(--color-border);
  padding: 32px 0;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: transparent;
  border: 0.5px solid var(--color-border);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-pill:hover {
  color: var(--color-text-primary);
  border-color: rgba(168, 85, 247, 0.4);
}

.filter-pill.active {
  background: var(--color-accent);
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

.projects-section { padding: 60px 0 120px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.project-card {
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
}

/* Project preview gradients */
.pp-health    { background: linear-gradient(135deg, #130e1e 0%, #1e1035 100%); }
.pp-contractor{ background: linear-gradient(135deg, #0c0f1a 0%, #141b30 100%); }
.pp-realestate{ background: linear-gradient(135deg, #0f0e18 0%, #1a152e 100%); }
.pp-restaurant{ background: linear-gradient(135deg, #150a10 0%, #240d1a 100%); }
.pp-ecommerce { background: linear-gradient(135deg, #080f14 0%, #0d1a24 100%); }
.pp-consulting { background: linear-gradient(135deg, #0a0f0d 0%, #121f17 100%); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-frame {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-frame { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: var(--color-bg-elevated);
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 1;
}

.modal-close:hover {
  color: var(--color-text-primary);
  background: var(--color-border);
}

.modal-inner { padding: 40px; }

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-preview-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid var(--color-border);
}

.modal-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-bg-elevated);
  padding: 10px 14px;
}

.modal-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-left: 10px;
  opacity: 0.55;
}

.modal-preview-body {
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 32px;
}

.mpl { display: block; border-radius: 4px; }
.mpl-h  { width: 55%; height: 10px; background: rgba(245,240,255,0.14); }
.mpl-s  { width: 75%; height: 7px;  background: rgba(245,240,255,0.08); }
.mpl-b  { width: 32%; height: 9px;  background: rgba(168,85,247,0.32); border-radius:5px; }
.mpl-l1 { width: 65%; height: 6px;  background: rgba(168,85,247,0.18); }
.mpl-l2 { width: 80%; height: 5px;  background: rgba(168,85,247,0.10); }

.modal-stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 0.5px solid var(--color-border);
}

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

.modal-stat-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.modal-stat-l {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================================
   BOOK PAGE
   ============================================================ */
.book-form-section { padding: 56px 0 120px; }

/* Progress indicator */
.progress-outer {
  max-width: 440px;
  margin: 0 auto 56px;
}

.progress-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 12px;
}

.ps-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.ps-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.ps-item.active .ps-dot,
.ps-item.done .ps-dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text-primary);
}

.ps-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  text-align: center;
}

.ps-item.active .ps-label { color: var(--color-accent); }

.ps-connector {
  flex: 1;
  height: 1.5px;
  background: var(--color-border);
  margin: 13px 4px 0;
  transition: background 0.3s ease;
  min-width: 24px;
}

.ps-connector.done { background: var(--color-accent); }

.progress-bar-track {
  height: 2px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

/* Form steps */
.form-step { display: none; }
.form-step.active { display: block; }

.form-step-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 32px;
}

.form-step-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 40px;
}

/* Step selection cards grid */
.step-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.step-cards-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.step-cards-grid.grid-5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.step-card {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}

.step-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
}

.step-card.selected {
  border-color: var(--color-accent);
  background: rgba(168, 85, 247, 0.06);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.12);
}

.step-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.step-card-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.step-card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.rec-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-text-primary);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* Step nav buttons */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.btn-back {
  background: transparent;
  border: 0.5px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 13px 24px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-back:hover {
  color: var(--color-text-primary);
  border-color: rgba(168, 85, 247, 0.4);
}

.btn-next {
  background: var(--color-accent);
  color: var(--color-text-primary);
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-next:hover:not(:disabled) {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.btn-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Step 4: Summary + form */
.summary-box {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
  text-align: left;
}

.summary-heading {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 18px;
  display: block;
}

.summary-items {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.summary-item { display: flex; flex-direction: column; gap: 4px; }

.summary-item-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-item-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.contact-form { max-width: 520px; margin: 0 auto; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.form-field .optional {
  opacity: 0.45;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
}

.form-field input {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--color-text-primary);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-field input:focus { border-color: var(--color-accent); }

.form-field input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.4;
}

.form-success {
  text-align: center;
  padding: 80px 32px;
  max-width: 480px;
  margin: 0 auto;
  display: none;
}

.form-success.visible { display: block; }

.form-success h2 { margin-bottom: 16px; }

.form-success p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — LOGO MOBILE (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .logo-orbit-wrap img {
    width: 200px !important;
    min-width: 200px !important;
  }
}

/* ============================================================
   RESPONSIVE — TABLET (max 960px)
   ============================================================ */
@media (max-width: 960px) {
  :root { --section-pad: 80px; }

  h2 { font-size: 40px; }

  .services-grid,
  .steps-grid,
  .work-grid,
  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin-left: auto; margin-right: auto; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 480px; margin: 0 auto; }

  .service-card { text-align: center; align-items: center; }
  .service-icon { justify-content: center; }
  .service-list li { padding-left: 0; }
  .service-list li::before { display: none; }

  .footer-nav { gap: 48px; }

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

  .step-cards-grid.grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --section-pad: 64px; }

  #navbar { padding: 16px 20px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 28px 24px;
    gap: 22px;
    border-bottom: 0.5px solid var(--color-border);
    z-index: 99;
  }

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

  .nav-links .nav-cta { width: 100%; text-align: center; padding: 12px 24px; }

  .nav-toggle { display: flex; }

  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }

  .hero-sub { font-size: 16px; }

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-ghost { width: 100%; text-align: center; }

  .orb-1 { width:280px; height:280px; }
  .orb-2 { width:200px; height:200px; }
  .orb-3 { width:180px; height:180px; }
  .orb-4 { width:150px; height:150px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-flip-card { height: 160px; }
  .stat-number { font-size: 46px; }

  .footer-nav { flex-direction: column; align-items: center; gap: 32px; }
  #footer { padding: 60px 24px 32px; }
  .footer-inner { gap: 40px; }
  .btn-large { padding: 16px 36px; font-size: 16px; }
  .container { padding: 0 20px; }

  .project-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .modal-inner { padding: 28px 24px; }
  .modal-stats-row { gap: 20px; }

  .step-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .step-cards-grid.grid-3 { grid-template-columns: 1fr; }
  .step-cards-grid.grid-5 { grid-template-columns: repeat(2, 1fr); }

  .summary-items { flex-direction: column; gap: 16px; }

  .form-step-inner { padding: 0 20px; }

  .page-hero h1 { font-size: 34px; }
  .filter-bar { gap: 8px; }
}

/* ============================================================
   MARKETPLACE: NAV ACTIVE
   ============================================================ */
.nav-active {
  color: var(--color-accent) !important;
}

/* ============================================================
   MARKETPLACE: FILTER SECTION — two rows
   ============================================================ */
.filter-section-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-row-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
  margin-bottom: 10px;
}

/* ============================================================
   MARKETPLACE: TYPE BADGES
   ============================================================ */
.work-type-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.type-project    { color: var(--color-accent);  background: rgba(168, 85,  247, 0.10); }
.type-template   { color: #EC4899;              background: rgba(236, 72,  153, 0.10); }
.type-automation { color: #818CF8;              background: rgba(79,  70,  229, 0.12); }
.type-bundle     { color: var(--color-accent);  background: linear-gradient(90deg, rgba(168,85,247,0.12), rgba(236,72,153,0.10)); }

/* ============================================================
   MARKETPLACE: INDUSTRY TAG
   ============================================================ */
.work-industry-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  opacity: 0.5;
  display: block;
  margin-bottom: 8px;
}

/* ============================================================
   MARKETPLACE: CARD ACTION ROW
   ============================================================ */
.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid var(--color-border);
}

.card-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.btn-card-buy {
  padding: 9px 18px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.card-case-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  transition: opacity 0.2s ease;
  display: inline-block;
}

.card-case-link:hover { opacity: 0.65; }

/* ============================================================
   MARKETPLACE: IFRAME LIVE PREVIEW OVERLAY
   ============================================================ */
.preview-iframe-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.preview-iframe-wrap.active { opacity: 1; }

.preview-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 250%;
  height: 250%;
  border: none;
  transform: scale(0.4);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}

/* ============================================================
   MARKETPLACE: NO RESULTS
   ============================================================ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.product-hero .orb { z-index: 0; }

.product-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.product-breadcrumb a {
  color: var(--color-accent);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.product-breadcrumb a:hover { opacity: 1; }
.product-breadcrumb span   { opacity: 0.35; margin: 0 8px; }

.product-hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 56px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   V6 / V7: STEP FLOW SVG DIAGRAMS — hover reveal
   ============================================================ */
.step-flow-wrap {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  margin-top: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.06s,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.06s,
              margin-top 0.4s ease;
}

.step:hover .step-flow-wrap,
.step.is-revealed .step-flow-wrap {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
}

.step-flow {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   V6: SERVICE MODALS
   ============================================================ */
.modal-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  background: var(--color-bg-elevated);
  border: 0.5px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 16px 16px 0 0;
  transition: color 0.2s, border-color 0.2s;
  z-index: 10;
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

.modal-body {
  padding: 8px 48px 48px;
  clear: both;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.modal-header-icon {
  width: 60px;
  height: 60px;
  background: var(--color-bg-elevated);
  border: 0.5px solid rgba(168, 85, 247, 0.26);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.modal-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  color: var(--color-text-primary);
  margin: 0 0 8px;
}

.modal-sub {
  color: var(--color-text-muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

.modal-section {
  margin-bottom: 36px;
}

.modal-section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.modal-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-tile {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 20px 22px;
  transition: border-color 0.2s;
}

.modal-tile:hover {
  border-color: rgba(168, 85, 247, 0.26);
}

.tile-icon {
  font-size: 17px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
}

.modal-tile h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 6px;
}

.modal-tile p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

.modal-process-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mps-step {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 68px;
}

.mps-step-final {
  border-color: rgba(168, 85, 247, 0.3);
}

.mps-num {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--color-accent);
  font-weight: 500;
}

.mps-title {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.mps-arrow {
  color: var(--color-accent);
  font-size: 16px;
  opacity: 0.5;
  line-height: 1;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tag {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  border: 0.5px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 12px;
}

.modal-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.pricing-tier {
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border);
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.pricing-tier-featured {
  border-color: rgba(168, 85, 247, 0.3);
  background: var(--color-bg-elevated);
}

.tier-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.tier-price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.tier-desc {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.modal-cta {
  text-align: center;
  padding-top: 8px;
  border-top: 0.5px solid var(--color-border);
  margin-top: 4px;
  padding-top: 32px;
}

.modal-cta-note {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 10px 0 0;
}

/* Mobile modal */
@media (max-width: 768px) {
  .modal-body { padding: 8px 20px 36px; }
  .modal-header { flex-direction: column; gap: 14px; }
  .modal-header h2 { font-size: 28px; }
  .modal-tiles { grid-template-columns: 1fr; }
  .modal-pricing { grid-template-columns: 1fr; }
  .modal-process-steps { justify-content: center; }
}

/* ============================================================
   V6: THANK-YOU PAGE
   ============================================================ */
.ty-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 120px 24px;
}

.ty-hero canvas { position: absolute; inset: 0; z-index: 0; }

.ty-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.ty-check-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
}

.ty-check-circle {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: ty-circle-draw 0.7s ease forwards 0.2s;
}

.ty-check-tick {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: ty-tick-draw 0.4s ease forwards 0.85s;
}

@keyframes ty-circle-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ty-tick-draw {
  to { stroke-dashoffset: 0; }
}

.ty-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 56px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.ty-sub {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 48px;
  line-height: 1.6;
}

.ty-order-card {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
  text-align: left;
}

.ty-order-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--color-border);
  font-size: 14px;
}

.ty-order-row:last-child { border-bottom: none; }

.ty-order-label { color: var(--color-text-muted); }
.ty-order-value { color: var(--color-text-primary); font-weight: 500; }
.ty-order-value.accent { color: var(--color-accent); font-family: var(--font-mono); }

.ty-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
  text-align: left;
}

.ty-download-box {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 20px;
  text-align: left;
}

.ty-download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--color-border);
}

.ty-download-item:last-child { border-bottom: none; }

.ty-dl-name {
  font-size: 14px;
  color: var(--color-text-primary);
  font-weight: 500;
}

.ty-dl-size {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-left: 10px;
}

.ty-dl-btn {
  background: var(--color-bg-elevated);
  border: 0.5px solid var(--color-border);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.ty-dl-btn:hover {
  border-color: var(--color-accent);
  background: rgba(168, 85, 247, 0.08);
}

.ty-next-steps {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 36px;
  text-align: left;
}

.ty-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--color-border);
  font-size: 14px;
}

.ty-step-item:last-child { border-bottom: none; }

.ty-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.08);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ty-step-text { color: var(--color-text-muted); line-height: 1.5; }
.ty-step-text strong { color: var(--color-text-primary); font-weight: 500; }

.ty-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .ty-hero h1 { font-size: 36px; }
  .ty-order-card, .ty-download-box, .ty-next-steps { padding: 18px 18px; }
}

/* ============================================================
   V6: SETUP GUIDE PAGE
   ============================================================ */
.sg-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  align-items: start;
}

.sg-sidebar {
  position: sticky;
  top: 100px;
}

.sg-sidebar-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.sg-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sg-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.sg-nav-link:hover,
.sg-nav-link.active {
  color: var(--color-text-primary);
  background: var(--color-bg-elevated);
  border-left-color: var(--color-accent);
}

.sg-main {
  min-width: 0;
}

.sg-product-header {
  margin-bottom: 56px;
}

.sg-product-header h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 48px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.sg-product-header p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 540px;
}

.sg-section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.sg-section-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--color-border);
}

.sg-card {
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 14px;
}

.sg-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.sg-card-body {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.sg-req-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--color-border);
  font-size: 14px;
}

.sg-req-item:last-child { border-bottom: none; }

.sg-req-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.08);
  border: 0.5px solid rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 13px;
  flex-shrink: 0;
}

.sg-req-label {
  font-weight: 500;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: 2px;
}

.sg-req-detail { color: var(--color-text-muted); }
.sg-req-link { color: var(--color-accent); font-size: 12px; text-decoration: none; }
.sg-req-link:hover { text-decoration: underline; }

.sg-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.sg-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.08);
  border: 0.5px solid rgba(168, 85, 247, 0.2);
  border-radius: 6px;
  padding: 4px 9px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sg-step-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.sg-step-body {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.sg-faq-item {
  border-bottom: 0.5px solid var(--color-border);
  padding: 16px 0;
}

.sg-faq-q {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 6px;
  cursor: pointer;
}

.sg-faq-a {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.sg-help-card {
  background: var(--color-bg-elevated);
  border: 0.5px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.sg-help-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.sg-help-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.sg-help-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.sg-not-found {
  text-align: center;
  padding: 120px 24px;
  color: var(--color-text-muted);
}

.sg-not-found h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 36px;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .sg-layout {
    grid-template-columns: 1fr;
    padding: 80px 20px 60px;
    gap: 32px;
  }
  .sg-sidebar { position: static; }
  .sg-nav-list { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .sg-nav-link { border-left: none; border-bottom: 2px solid transparent; }
  .sg-nav-link:hover, .sg-nav-link.active { border-bottom-color: var(--color-accent); border-left-color: transparent; }
}

/* Demo iframe frame */
.product-demo-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--color-border);
  background: var(--color-bg-surface);
}

.product-demo-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-bg-elevated);
  padding: 10px 14px;
}

.product-demo-url {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text-muted);
  margin-left: 10px;
  opacity: 0.5;
}

.product-demo-body {
  height: 460px;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-demo-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.product-demo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.product-demo-placeholder .mpl { display: block; border-radius: 4px; }
.product-demo-placeholder .mpl-h  { width: 55%; height: 10px; background: rgba(245,240,255,0.14); }
.product-demo-placeholder .mpl-s  { width: 75%; height:  7px; background: rgba(245,240,255,0.08); }
.product-demo-placeholder .mpl-b  { width: 32%; height:  9px; background: rgba(168, 85,247,0.32); border-radius: 5px; }
.product-demo-placeholder .mpl-l1 { width: 65%; height:  6px; background: rgba(168, 85,247,0.18); }
.product-demo-placeholder .mpl-l2 { width: 80%; height:  5px; background: rgba(168, 85,247,0.10); }

/* Detail panel */
.product-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1;
}

.product-price.is-project {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.product-detail-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  line-height: 1.15;
  text-align: left;
}

.product-detail-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.product-includes-preview {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-includes-preview li {
  font-size: 14px;
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.product-includes-preview li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 12px;
}

.product-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-cta-note {
  font-size: 12px;
  color: var(--color-text-muted);
  opacity: 0.55;
  text-align: center;
}

/* Product sections */
.product-section {
  padding: 80px 0;
  border-top: 0.5px solid var(--color-border);
}

.product-section-grid {
  text-align: center;
}

.product-section h2 { margin-bottom: 8px; }

/* Includes list (full) */
.product-includes-list {
  list-style: none;
  max-width: 480px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.product-includes-list li {
  font-size: 15px;
  color: var(--color-text-muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}

.product-includes-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
}

/* Tech stack pills */
.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-surface);
  border: 0.5px solid var(--color-border);
  padding: 7px 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tech-pill:hover {
  border-color: rgba(168,85,247,0.4);
  color: var(--color-text-primary);
}

/* Steps numbered (How It Works on product page) */
.steps-numbered {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 28px auto 0;
  text-align: left;
}

.step-numbered {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-numbered-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
  background: rgba(168,85,247,0.10);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 500;
}

.step-numbered-text {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
  padding-top: 5px;
}

/* FAQ accordion */
.faq-list {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: left;
}

.faq-item { border-top: 0.5px solid var(--color-border); }
.faq-item:last-child { border-bottom: 0.5px solid var(--color-border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-question:hover { color: var(--color-accent); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-bottom 0.4s ease;
  padding-bottom: 0;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

/* ============================================================
   PRODUCT PAGE — RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail-panel { order: -1; }
  .product-demo-body { height: 320px; }
}

@media (max-width: 640px) {
  .product-hero { padding: 100px 0 60px; }
  .product-hero-grid { padding: 0 20px; gap: 28px; }
  .product-demo-body { height: 240px; }
  .product-price { font-size: 32px; }
  .filter-section-inner { gap: 16px; }
}

/* ============================================================
   V7: MARKETPLACE MOCKUP PREVIEWS
   ============================================================ */

/* Shared mockup container — fills browser frame below the chrome bar */
.wpm {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  font-family: var(--font-display);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .wpm {
  transform: scale(1.05);
  transform-origin: center center;
}

/* Tag badge */
.wpm-tag {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.12);
  border-radius: 3px;
  padding: 2px 7px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 1px;
}

/* Title */
.wpm-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.wpm-subtitle {
  font-size: 9px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.wpm-divider {
  height: 0.5px;
  background: var(--color-border);
  margin: 1px 0;
}

/* CTA button strip */
.wpm-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-primary);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 5px;
  margin-top: auto;
  align-self: flex-start;
}
.wpm-btn-warm { background: #c23a5a; }
.wpm-btn-blue { background: #3d6fc4; }
.wpm-btn-teal { background: #0d9488; }

/* Form input placeholders */
.wpm-fields { display: flex; flex-direction: column; gap: 4px; margin: 2px 0; }
.wpm-field {
  height: 13px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
}
.wpm-field-sm { width: 60%; }

/* Restaurant menu rows */
.wpm-menu { display: flex; flex-direction: column; gap: 0; margin: 2px 0; }
.wpm-menu-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(245, 240, 255, 0.6);
  padding: 5px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}
.wpm-menu-row:last-child { border-bottom: none; }
.wpm-menu-special { color: rgba(168, 85, 247, 0.85); }
.wpm-price { color: rgba(245, 240, 255, 0.38); }

/* Property preview (real estate) */
.wpm-prop {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 2px 0;
}
.wpm-prop-img {
  width: 52px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.wpm-prop-img::before {
  content: '';
  position: absolute;
  bottom: 0; left: 4px; right: 4px;
  height: 55%;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 2px 2px 0 0;
}
.wpm-prop-img::after {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 10px solid rgba(168, 85, 247, 0.2);
}
.wpm-prop-price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.2;
}
.wpm-prop-det {
  font-size: 8px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.wpm-auto-pill {
  font-size: 8px;
  color: var(--color-accent);
  background: rgba(168, 85, 247, 0.1);
  border: 0.5px solid rgba(168, 85, 247, 0.25);
  border-radius: 3px;
  padding: 2px 7px;
  display: inline-block;
}

/* Checklist (contractors) */
.wpm-checks { display: flex; flex-direction: column; gap: 4px; margin: 2px 0; }
.wpm-check {
  font-size: 9px;
  color: rgba(245, 240, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 5px;
}
.wpm-check::before {
  content: '✓';
  color: var(--color-accent);
  font-size: 8px;
}

/* Workflow diagram (automation) */
.wpm-flow {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 3px 0;
}
.wpm-flow-node {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(168, 85, 247, 0.22);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 8px;
  color: rgba(245, 240, 255, 0.65);
  text-align: center;
  flex: 1;
  line-height: 1.3;
}
.wpm-flow-accent {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c4b5fd;
}
.wpm-flow-arr {
  font-size: 10px;
  color: rgba(168, 85, 247, 0.45);
  flex-shrink: 0;
}
.wpm-stat-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 1px 0;
}
.wpm-stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
}
.wpm-stat-label {
  font-size: 9px;
  color: var(--color-text-muted);
}

/* Class schedule (wellness) */
.wpm-schedule { display: flex; flex-direction: column; gap: 0; margin: 2px 0; }
.wpm-class {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: rgba(245, 240, 255, 0.6);
  padding: 4px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}
.wpm-class:last-child { border-bottom: none; }
.wpm-class-time {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(168, 85, 247, 0.75);
  width: 30px;
  flex-shrink: 0;
}
.wpm-class-full { color: rgba(245, 240, 255, 0.28); }
