:root {
  --gold: #D0BC8A; --gold-deep: #B0A070;
  --crystal: #94B0C0; --crystal-deep: #7892A2;
  --sand: #C49484; --sand-deep: #A87868;
  --ink: #0C0C0E; --ink-surface: #141416; --ink-border: #222228;
  --shell: #F8F6F2; --shell-warm: #F3F0EB;
  --glass-light: rgba(255,255,255,0.45); --glass-light-border: rgba(255,255,255,0.25);
  --glass-dark: rgba(255,255,255,0.05); --glass-dark-border: rgba(255,255,255,0.08);
  --text-dark: #1A1A1C; --text-body: #4A4A52; --text-dim: #7A7A84;
  --text-light: #E8E8EC; --text-light-dim: #9A9AA4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'DM Sans', sans-serif; color: var(--text-dark); background: var(--shell); overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: 'Outfit', sans-serif; }

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 200;
  padding: 8px 16px; background: var(--ink); color: var(--text-light);
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 500;
  border-radius: 0 0 8px 8px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; transition: all 0.4s; }
nav.scrolled { background: rgba(248,246,242,0.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid rgba(0,0,0,0.04); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-dark); }
.nav-wordmark { font-family: 'Outfit'; font-weight: 500; font-size: 20px; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link-pilot {
  font-family: 'Outfit'; font-size: 14px; font-weight: 500;
  text-decoration: none;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 40%, var(--crystal) 50%, var(--gold) 60%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: navTextShimmer 4s ease-in-out infinite;
  transition: opacity 0.2s;
}
@keyframes navTextShimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: -100% 0; }
}
.nav-link-pilot:hover { opacity: 0.75; }
.nav-cta { font-family: 'Outfit'; font-size: 14px; font-weight: 500; padding: 10px 24px; border-radius: 8px; background: var(--ink); color: var(--text-light); text-decoration: none; transition: transform 0.2s, opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }
@media (max-width: 600px) { .nav-link-pilot { display: none; } }
.container { max-width: 1140px; margin: 0 auto; padding: 0 40px; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--shell) 0%, var(--shell-warm) 100%); }
.hero-bg-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.035; animation: hero-rotate 120s linear infinite; }
@keyframes hero-rotate { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb-1 { width: 400px; height: 400px; background: var(--gold); top: 10%; left: -5%; opacity: 0.3; animation: orb-float 20s ease-in-out infinite; }
.hero-orb-2 { width: 350px; height: 350px; background: var(--crystal); bottom: 10%; right: -5%; opacity: 0.3; animation: orb-float 20s ease-in-out infinite -7s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--sand); top: 60%; left: 60%; opacity: 0.3; animation: orb-float 20s ease-in-out infinite -13s; }
@keyframes orb-float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-40px) scale(1.05); } 66% { transform: translate(-20px,20px) scale(0.95); } }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-mark { margin-bottom: 32px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s; }
.hero h1 {
  font-size: clamp(42px,6vw,72px); font-weight: 600; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.4s;
  background: linear-gradient(90deg, var(--text-dark) 0%, var(--text-dark) 40%, var(--gold) 50%, var(--crystal) 55%, var(--text-dark) 60%, var(--text-dark) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeUp 0.8s ease forwards 0.4s, heroShimmer 6s ease-in-out 1.5s infinite;
}
@keyframes heroShimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: -100% 0; }
}
.hero p { font-size: 18px; color: var(--text-body); line-height: 1.6; max-width: 480px; margin: 0 auto 40px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.6s; }
.hero-cta { display: inline-block; font-family: 'Outfit'; font-weight: 500; font-size: 16px; padding: 14px 36px; border-radius: 12px; background: var(--ink); color: var(--text-light); text-decoration: none; transition: transform 0.3s, box-shadow 0.3s; opacity: 0; animation: fadeUp 0.8s ease forwards 0.8s; }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* MISSION */
.mission { padding: 160px 0; background: var(--shell); text-align: center; }
.mission-text { font-family: 'Outfit'; font-size: clamp(28px,4vw,52px); font-weight: 500; letter-spacing: -0.8px; line-height: 1.25; max-width: 820px; margin: 0 auto; }
.mission-text em { font-style: normal; color: var(--sand-deep); }
.mission-word { display: inline-block; opacity: 0.12; transition: opacity 0.5s ease; }
.mission-word.lit { opacity: 1; }

/* MANCHESTER SKYLINE */
.manchester-skyline {
  margin-top: 80px;
  width: 100%;
  overflow: hidden;
}
.manchester-skyline img {
  width: 150%;
  max-width: 5504px;
  display: block;
  opacity: 0.55;
  filter: grayscale(0.2);
  will-change: transform;
  transform: translateX(0);
  image-rendering: auto;
}

/* ETYMOLOGY */
.etymology {
  text-align: center; padding: 80px 24px;
  background: var(--shell);
}
.etymology p {
  font-family: 'Outfit'; font-size: clamp(20px, 3vw, 28px); font-weight: 300;
  color: var(--text-body); letter-spacing: 0.3px; line-height: 1.6;
  max-width: 600px; margin: 0 auto;
}
.etymology em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(135deg, var(--sand-deep), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* SERVICES */
.services { padding: 100px 0 120px; background: var(--ink); color: var(--text-light); position: relative; overflow: hidden; }
.services-orb-1 { width: 500px; height: 500px; background: var(--gold); top: -20%; right: -10%; opacity: 0.15; filter: blur(120px); }
.services-orb-2 { width: 400px; height: 400px; background: var(--crystal); bottom: -20%; left: -10%; opacity: 0.15; filter: blur(120px); }
.section-label { font-family: 'Outfit'; font-weight: 400; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-light-dim); margin-bottom: 48px; }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; position: relative; z-index: 2; }
.service-card { background: var(--glass-dark); border: 1px solid var(--glass-dark-border); border-radius: 16px; padding: 36px 28px; backdrop-filter: blur(20px); transition: border-color 0.3s, transform 0.3s, background 0.3s; }
.service-card:hover { border-color: rgba(255,255,255,0.14); transform: translateY(-6px); background: rgba(255,255,255,0.08); }
.service-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.service-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 10px; }
.service-card p { font-size: 14px; line-height: 1.6; color: var(--text-light-dim); }

/* CASE STUDIES */
.case-studies { padding: 120px 0; background: var(--shell); position: relative; overflow: hidden; }
.cs-orb-1 { width: 450px; height: 450px; background: var(--gold); top: 5%; left: -15%; opacity: 0.12; filter: blur(100px); }
.cs-orb-2 { width: 400px; height: 400px; background: var(--crystal); top: 35%; right: -10%; opacity: 0.1; filter: blur(100px); }
.cs-orb-3 { width: 350px; height: 350px; background: var(--sand); top: 65%; left: -10%; opacity: 0.1; filter: blur(100px); }
.case-studies .section-label { color: var(--text-dim); }
.case-study { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 160px; min-height: 70vh; position: relative; z-index: 2; }
.case-study:last-child { margin-bottom: 0; }
.case-study:nth-child(even) { direction: rtl; }
.case-study:nth-child(even) > * { direction: ltr; }
.case-study-visual {
  aspect-ratio: 4/3; border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  transform-style: preserve-3d; perspective: 800px; transition: transform 0.15s ease-out;
}
.cs-visual-1 { background: linear-gradient(145deg,#0a1218,#142028,#0a1520); border: 1px solid rgba(148,176,192,0.12); box-shadow: 0 24px 80px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04); }
.cs-visual-2 { background: linear-gradient(145deg,#1a1814,#2a2418,#1a1610); border: 1px solid rgba(196,170,122,0.12); box-shadow: 0 24px 80px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04); }
.cs-visual-3 { background: linear-gradient(145deg,#141820,#1a2230,#101820); border: 1px solid rgba(176,184,176,0.12); box-shadow: 0 24px 80px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04); }
.cs-visual-4 { background: linear-gradient(145deg,#1a1520,#2a1e2e,#1a1218); border: 1px solid rgba(196,148,132,0.12); box-shadow: 0 24px 80px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04); }
.cs-terminal { position: absolute; inset: 20px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; backdrop-filter: blur(16px); padding: 20px; overflow: hidden; }
.cs-terminal-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.cs-terminal-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.cs-terminal-dot:first-child { background: rgba(255,100,100,0.4); }
.cs-terminal-dot:nth-child(2) { background: rgba(255,200,50,0.4); }
.cs-terminal-dot:nth-child(3) { background: rgba(100,200,100,0.4); }
.cs-code { font-family: 'SF Mono','Fira Code',monospace; font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.9; white-space: pre; position: relative; }
.cs-code.typing::after {
  content: '\2588'; color: var(--gold); opacity: 0.8;
  animation: blink 0.6s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 0.8; } 50% { opacity: 0; } }
.cs-code .highlight { color: var(--gold); opacity: 0.8; }
.cs-code .dim { opacity: 0.2; }
.cs-code .accent-crystal { color: var(--crystal); opacity: 0.7; }
.cs-code .accent-sand { color: var(--sand); opacity: 0.7; }
.cs-overlay-mark { position: absolute; bottom: 20px; right: 20px; opacity: 0.15; }
.case-study-info .cs-number { font-family: 'Outfit'; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.case-study-info h3 { font-size: 30px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 8px; }
.case-study-info .cs-subtitle { font-family: 'Outfit'; font-size: 15px; color: var(--sand-deep); margin-bottom: 20px; }
.case-study-info p { font-size: 15px; line-height: 1.75; color: var(--text-body); margin-bottom: 24px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tag { font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 8px; background: var(--glass-light); border: 1px solid var(--glass-light-border); color: var(--text-dim); backdrop-filter: blur(10px); }
.scroll-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--crystal), var(--sand), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(0.16,1,0.3,1); margin: 0 40px; }
.scroll-line.visible { transform: scaleX(1); }

/* BEFORE / AFTER COMPARISON */
.before-after {
  padding: 120px 0; background: var(--ink); color: var(--text-light);
  position: relative; overflow: hidden;
}
.before-after .section-label { color: var(--text-light-dim); }
.ba-heading {
  font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.5px;
  text-align: center; margin-bottom: 48px; color: var(--text-light);
}
.ba-wrapper {
  position: relative; max-width: 860px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--glass-dark-border);
}
.ba-panel {
  padding: 40px 32px; position: relative;
}
.ba-before {
  background: linear-gradient(145deg, rgba(196,148,132,0.08), rgba(196,148,132,0.03)), var(--ink);
}
.ba-after {
  background: linear-gradient(145deg, rgba(208,188,138,0.08), rgba(208,188,138,0.03)), var(--ink);
}
.ba-panel-label {
  font-family: 'Outfit'; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
}
.ba-before .ba-panel-label { color: var(--sand); }
.ba-after .ba-panel-label { color: var(--gold); }
.ba-step {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ba-step:last-child { border-bottom: none; }
.ba-step-text {
  font-size: 14px; color: var(--text-light-dim); line-height: 1.5;
}
.ba-step-time {
  font-family: 'Outfit'; font-size: 13px; font-weight: 600;
  white-space: nowrap; margin-left: 16px;
}
.ba-before .ba-step-time { color: var(--sand); }
.ba-after .ba-step-time { color: var(--gold); }
.ba-step-total {
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
}
.ba-step-total .ba-step-text {
  font-family: 'Outfit'; font-weight: 600; color: var(--text-light);
}
.ba-step-total .ba-step-time { font-size: 16px; }

/* Slider divider */
.ba-slider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; z-index: 10; cursor: col-resize;
  transform: translateX(-50%);
}
.ba-slider-line {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold), var(--sand));
  opacity: 0.6;
}
.ba-slider-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold);
  cursor: col-resize; z-index: 11;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 16px rgba(208,188,138,0.2);
}
.ba-slider-handle::before {
  content: '';
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23D0BC8A' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M3 2L1 6l2 4'/%3E%3Cpath d='M9 2l2 4-2 4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ba-slider-handle:hover, .ba-slider-handle:active {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 24px rgba(208,188,138,0.4);
}

/* Overlay layout: after sits on top of before */
.ba-wrapper {
  display: block; position: relative;
}
.ba-before {
  position: relative;
}
.ba-after {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  clip-path: inset(0 0 0 50%);
}

@media (max-width: 600px) {
  .ba-wrapper { border-radius: 16px; }
  .ba-panel { padding: 28px 20px; }
  .ba-step-text { font-size: 13px; }
  .ba-slider-handle { width: 30px; height: 30px; }
}

/* STATS COUNTERS */
.stats-bar {
  padding: 80px 0;
  background: var(--ink);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center; position: relative; z-index: 2;
}
.stat-item { padding: 20px; }
.stat-number {
  font-family: 'Outfit'; font-size: clamp(36px, 5vw, 56px); font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--crystal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1; margin-bottom: 8px;
}
.stat-label {
  font-family: 'Outfit'; font-size: 13px; letter-spacing: 1px;
  color: var(--text-light-dim); text-transform: uppercase;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }

/* TESTIMONIAL */
.testimonial-section {
  padding: 100px 0; background: var(--shell); text-align: center;
}
.testimonial-card {
  max-width: 640px; margin: 0 auto; padding: 52px;
  background: white; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px; box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
.testimonial-logo {
  height: 48px; width: auto; margin-bottom: 28px; opacity: 0.8;
}
.testimonial-quote p {
  font-family: 'Outfit'; font-size: clamp(16px, 2.5vw, 20px); font-weight: 400;
  font-style: italic; color: var(--text-body); line-height: 1.7;
  margin: 0 0 20px;
}
.testimonial-cite {
  font-family: 'Outfit'; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); font-style: normal;
}
.testimonial-stars { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }

/* PRICING */
.pricing {
  padding: 120px 0; background: var(--ink); color: var(--text-light);
  position: relative; overflow: hidden;
}
.pricing-orb-1 { width: 500px; height: 500px; background: var(--gold); top: -15%; right: -10%; opacity: 0.1; filter: blur(120px); }
.pricing-orb-2 { width: 400px; height: 400px; background: var(--crystal); bottom: -10%; left: -5%; opacity: 0.08; filter: blur(100px); }
.pricing .section-label { color: var(--text-light-dim); }
.pricing-header {
  text-align: center; max-width: 560px; margin: 0 auto 56px;
  position: relative; z-index: 2;
}
.pricing-header p {
  font-size: 17px; color: var(--text-light-dim); line-height: 1.7;
}
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative; z-index: 2;
}
.pricing-card {
  background: var(--glass-dark); border: 1px solid var(--glass-dark-border);
  border-radius: 16px; padding: 36px 28px; backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-4px); }

.pricing-card-featured {
  background: linear-gradient(145deg, rgba(208,188,138,0.08), rgba(196,148,132,0.06));
  border-color: rgba(208,188,138,0.25);
  box-shadow: 0 0 40px rgba(208,188,138,0.08);
}
.pricing-card-featured:hover { border-color: rgba(208,188,138,0.4); }

.pricing-tag {
  font-family: 'Outfit'; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-light-dim); margin-bottom: 16px;
}
.pricing-tag-featured {
  color: var(--gold);
}
.pricing-card h3 {
  font-family: 'Outfit'; font-size: 20px; font-weight: 500;
  margin-bottom: 12px; color: var(--text-light);
}
.pricing-price {
  font-family: 'Outfit'; font-size: 36px; font-weight: 700;
  margin-bottom: 16px; line-height: 1.1;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-period {
  font-size: 16px; font-weight: 400;
  -webkit-text-fill-color: var(--text-light-dim);
}
.pricing-desc {
  font-size: 14px; line-height: 1.65; color: var(--text-light-dim);
  margin-bottom: 24px;
}
.pricing-features {
  list-style: none; padding: 0; margin: 0 0 28px; flex: 1;
}
.pricing-features li {
  font-size: 13px; line-height: 1.6; color: var(--text-light-dim);
  padding: 6px 0 6px 20px; position: relative;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child { border-bottom: 1px solid rgba(255,255,255,0.04); }
.pricing-features li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0.5;
  transform: translateY(-50%);
}
.pricing-card-featured .pricing-features li::before { opacity: 0.9; }

.pricing-cta {
  display: block; text-align: center;
  font-family: 'Outfit'; font-weight: 500; font-size: 14px;
  padding: 12px 24px; border-radius: 10px;
  background: var(--glass-dark); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light); text-decoration: none;
  transition: transform 0.2s, border-color 0.3s, background 0.3s;
}
.pricing-cta:hover {
  transform: translateY(-2px); border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}
.pricing-cta-featured {
  background: linear-gradient(135deg, var(--gold), var(--sand));
  border: none; color: white;
}
.pricing-cta-featured:hover {
  background: linear-gradient(135deg, var(--gold), var(--sand));
  box-shadow: 0 8px 24px rgba(208,188,138,0.3);
}

@media (max-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 24px; }
}

/* HOW IT WORKS */
.how-it-works { padding: 100px 0 120px; background: var(--ink); color: var(--text-light); position: relative; overflow: hidden; }
.how-it-works .section-label { color: var(--text-light-dim); }
.hiw-orb-1 { width: 400px; height: 400px; background: var(--sand); top: -10%; left: 30%; opacity: 0.1; filter: blur(100px); }
.hiw-orb-2 { width: 350px; height: 350px; background: var(--gold); bottom: -15%; right: 10%; opacity: 0.08; filter: blur(100px); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; position: relative; z-index: 2; }
.step { background: var(--glass-dark); border: 1px solid var(--glass-dark-border); border-radius: 16px; padding: 40px 32px; backdrop-filter: blur(16px); transition: border-color 0.3s, transform 0.3s; }
.step:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-4px); }
.step-number { font-family: 'Outfit'; font-size: 48px; font-weight: 700; background: linear-gradient(135deg,var(--gold),var(--crystal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 16px; opacity: 0.3; }
.step h3 { font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.step p { font-size: 14px; line-height: 1.7; color: var(--text-light-dim); }

/* ROI CALCULATOR */
.roi-calc {
  padding: 120px 0; background: var(--shell); position: relative; overflow: hidden; text-align: center;
}
.roi-orb-1 { width: 450px; height: 450px; background: var(--gold); top: -15%; right: -10%; opacity: 0.12; filter: blur(120px); }
.roi-orb-2 { width: 400px; height: 400px; background: var(--sand); bottom: -10%; left: -5%; opacity: 0.1; filter: blur(100px); }
.roi-calc .section-label { color: var(--text-dim); }
.roi-card {
  max-width: 640px; margin: 0 auto; padding: 52px;
  background: var(--glass-light); border: 1px solid var(--glass-light-border);
  border-radius: 20px; backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
  position: relative; z-index: 2;
}
.roi-card h3 {
  font-family: 'Outfit'; font-size: 24px; font-weight: 500;
  letter-spacing: -0.3px; margin-bottom: 8px;
}
.roi-intro {
  font-size: 15px; line-height: 1.7; color: var(--text-body); margin-bottom: 36px;
}
.roi-inputs { margin-bottom: 36px; }
.roi-slider-group { margin-bottom: 24px; text-align: left; }
.roi-slider-group label {
  display: block; font-family: 'Outfit'; font-size: 13px; font-weight: 500;
  color: var(--text-dim); letter-spacing: 0.3px; margin-bottom: 10px;
}
.roi-slider-row { display: flex; align-items: center; gap: 16px; }
.roi-slider-row input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sand));
  outline: none; cursor: pointer;
}
.roi-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.roi-slider-row input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(208,188,138,0.4);
}
.roi-slider-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold);
  cursor: pointer;
}
.roi-slider-value {
  font-family: 'Outfit'; font-size: 16px; font-weight: 600;
  color: var(--text-dark); min-width: 64px; text-align: right;
}

.roi-results {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  margin-bottom: 28px; padding: 32px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.roi-result-item { flex: 1; }
.roi-result-number {
  font-family: 'Outfit'; font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1; margin-bottom: 6px;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.roi-result-label {
  font-family: 'Outfit'; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim);
}
.roi-result-divider {
  width: 1px; height: 48px; background: rgba(0,0,0,0.08);
}
.roi-note {
  font-size: 12px; color: var(--text-dim); margin-bottom: 28px; line-height: 1.6;
}
.roi-card .hero-cta {
  animation: none;
}

@media (max-width: 600px) {
  .roi-results { flex-direction: column; gap: 24px; }
  .roi-result-divider { width: 48px; height: 1px; }
  .roi-card { padding: 36px 24px; }
}

/* AUTOMATION QUIZ */
.auto-quiz {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(208,188,138,0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(196,148,132,0.06), transparent 50%),
    radial-gradient(ellipse 90% 40% at 50% 50%, rgba(148,176,192,0.05), transparent 70%),
    var(--shell);
  position: relative; overflow: hidden; text-align: center;
}
.quiz-orb-1 { width: 500px; height: 500px; background: var(--gold); top: -12%; left: -8%; opacity: 0.10; filter: blur(120px); }
.quiz-orb-2 { width: 450px; height: 450px; background: var(--crystal); bottom: -8%; right: -3%; opacity: 0.08; filter: blur(100px); }
.auto-quiz .section-label { color: var(--gold); }

/* Returning user banner */
.quiz-banner {
  display: none; max-width: 640px; margin: 0 auto 16px;
  padding: 12px 20px; border-radius: 12px;
  background: rgba(208,188,138,0.08); border: 1px solid rgba(208,188,138,0.15);
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text-body);
  z-index: 2; position: relative;
}
.quiz-banner.visible { display: block; }
.quiz-banner a {
  color: var(--gold-deep); font-weight: 500; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}

.quiz-card {
  max-width: 640px; margin: 0 auto; padding: 52px;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(208,188,138,0.3);
  border-radius: 20px; backdrop-filter: blur(32px);
  box-shadow:
    0 0 0 1px rgba(208,188,138,0.06),
    0 4px 16px rgba(0,0,0,0.04),
    0 20px 60px rgba(0,0,0,0.08),
    0 0 120px rgba(208,188,138,0.15),
    0 0 60px rgba(148,176,192,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative; z-index: 2;
  overflow: hidden; min-height: 340px;
  animation: quizCardGlow 5s ease-in-out infinite;
}
@keyframes quizCardGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(208,188,138,0.06),
      0 4px 16px rgba(0,0,0,0.04),
      0 20px 60px rgba(0,0,0,0.08),
      0 0 100px rgba(208,188,138,0.12),
      0 0 50px rgba(148,176,192,0.06),
      inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(208,188,138,0.25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(208,188,138,0.12),
      0 8px 24px rgba(0,0,0,0.06),
      0 24px 80px rgba(0,0,0,0.10),
      0 0 140px rgba(208,188,138,0.22),
      0 0 70px rgba(148,176,192,0.12),
      0 0 40px rgba(196,148,132,0.06),
      inset 0 1px 0 rgba(255,255,255,1);
    border-color: rgba(208,188,138,0.4);
  }
}

.quiz-progress {
  height: 4px; background: rgba(0,0,0,0.06);
  border-radius: 2px; margin-bottom: 36px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--sand));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* Quiz step display & directional slide animations */
.quiz-step { display: none; }
.quiz-step.active {
  display: block;
  animation: quizSlideInRight 0.3s ease forwards;
}
.quiz-step.active.slide-in-left {
  animation: quizSlideInLeft 0.3s ease forwards;
}
.quiz-step.active.slide-in-right {
  animation: quizSlideInRight 0.3s ease forwards;
}
.quiz-step.slide-out-left {
  display: block;
  animation: quizSlideOutLeft 0.3s ease forwards;
}
.quiz-step.slide-out-right {
  display: block;
  animation: quizSlideOutRight 0.3s ease forwards;
}
@keyframes quizSlideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes quizSlideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}
@keyframes quizSlideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes quizSlideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

/* Back button */
.quiz-back {
  position: absolute; top: 52px; left: 52px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--text-dim); background: none; border: none; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  z-index: 3;
}
.quiz-back:hover { color: var(--text-dark); background: rgba(0,0,0,0.04); }

.quiz-step h3 {
  font-family: 'Outfit'; font-size: 22px; font-weight: 500;
  letter-spacing: -0.3px; margin-bottom: 28px; color: var(--text-dark);
}

.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: white; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text-body); text-align: left;
  transition: border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.quiz-option:hover {
  border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.quiz-option:active {
  transform: translateY(0);
}
.quiz-option.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
  background: rgba(208,188,138,0.06);
}
.quiz-option.selected .quiz-option-icon {
  background: rgba(208,188,138,0.2);
}
.quiz-option.maxed {
  opacity: 0.45; pointer-events: none;
}
.quiz-option-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 10px; background: rgba(208,188,138,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}

/* Multi-select note */
.quiz-multi-note {
  font-size: 13px; color: var(--text-dim); margin-top: -16px; margin-bottom: 16px;
}

/* Continue button for multi-select steps */
.quiz-continue {
  display: none; margin-top: 20px;
  padding: 12px 32px; border-radius: 10px; border: none;
  background: var(--ink); color: var(--text-light);
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
}
.quiz-continue.visible {
  display: inline-block;
  animation: quizContinueFadeIn 0.3s ease forwards;
}
@keyframes quizContinueFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.quiz-continue:hover { background: #2a2a2e; transform: translateY(-1px); }

/* Step 5 — text input */
.quiz-input-wrap {
  max-width: 400px; margin: 0 auto 12px;
}
.quiz-input {
  width: 100%; padding: 16px 20px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1); background: white;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--text-dark); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quiz-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(208,188,138,0.3);
}
.quiz-input::placeholder { color: var(--text-dim); }
.quiz-input-hint {
  font-size: 13px; color: var(--text-dim); margin-bottom: 24px;
}

/* Hours slider (step 4) */
.quiz-slider-wrap {
  max-width: 440px; margin: 0 auto 28px; text-align: center;
}
.quiz-slider-row {
  display: flex; align-items: center; gap: 16px;
}
.quiz-hours-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--sand));
  outline: none; cursor: pointer;
}
.quiz-hours-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.quiz-hours-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(208,188,138,0.4);
}
.quiz-hours-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold);
  cursor: pointer;
}
.quiz-slider-value {
  font-family: 'Outfit'; font-size: 20px; font-weight: 600;
  color: var(--text-dark); min-width: 64px; text-align: right;
}
.quiz-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-dim); margin-top: 6px;
  font-family: 'Outfit';
}

/* Dynamic question steps (6 & 7) */
.quiz-dynamic-q {
  font-family: 'Outfit'; font-size: 22px; font-weight: 500;
  letter-spacing: -0.3px; margin-bottom: 28px; color: var(--text-dark);
  min-height: 1.4em; position: relative;
}
.quiz-dynamic-q.shimmer {
  color: transparent;
}
.quiz-dynamic-q.shimmer::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(208,188,138,0.08) 25%, rgba(208,188,138,0.18) 50%, rgba(208,188,138,0.08) 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: quizAiShimmer 1.5s ease-in-out infinite;
}
.quiz-dynamic-input {
  width: 100%; padding: 16px 20px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1); background: white;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--text-dark); outline: none;
  resize: vertical; min-height: 80px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quiz-dynamic-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(208,188,138,0.3);
}
.quiz-dynamic-input::placeholder { color: var(--text-dim); }
.quiz-dynamic-hint {
  font-size: 13px; color: var(--text-dim); margin-top: 8px; margin-bottom: 20px;
}

/* Quiz result */
.quiz-result { display: none; }
.quiz-result.active { display: block; }

/* Staggered reveal for result elements */
.quiz-result-el {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.quiz-result-el.visible {
  opacity: 1; transform: translateY(0);
}

/* Result header */
.quiz-result-header {
  font-family: 'Outfit'; font-size: 26px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 4px;
  background: linear-gradient(90deg, var(--text-dark), var(--gold-deep), var(--text-dark));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: quizShimmerText 3s ease-in-out infinite;
}
@keyframes quizShimmerText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.quiz-result-business {
  font-family: 'Outfit'; font-size: 15px; font-weight: 400;
  color: var(--text-dim); margin-bottom: 24px;
}

/* Result hero stat */
.quiz-result-hero-stat { margin-bottom: 24px; }
.quiz-result-hero-number {
  font-family: 'Outfit'; font-size: clamp(36px, 6vw, 56px); font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.1; margin-bottom: 6px;
}
.quiz-result-hero-sub {
  font-family: 'Outfit'; font-size: 14px; color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* Result service card */
.quiz-result-service-card {
  background: white; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px; padding: 24px;
  margin-bottom: 16px; text-align: left;
}
.quiz-result-service-card-primary {
  display: flex; align-items: flex-start; gap: 14px;
}
.quiz-result-service-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 10px; background: rgba(208,188,138,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.quiz-result-service-name {
  font-family: 'Outfit'; font-size: 18px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 4px;
}
.quiz-result-service-desc {
  font-size: 14px; line-height: 1.6; color: var(--text-body);
}
.quiz-result-secondary {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.quiz-result-secondary-label {
  font-family: 'Outfit'; font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 6px;
}
.quiz-result-secondary-name {
  font-family: 'Outfit'; font-size: 15px; font-weight: 600;
  color: var(--text-dark);
}
.quiz-result-starting-point {
  display: inline-block; padding: 10px 20px;
  background: rgba(208,188,138,0.08); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text-body); margin-top: 12px; margin-bottom: 4px;
  text-align: left;
}
.quiz-result-starting-point strong {
  color: var(--text-dark); font-weight: 600;
}

/* Result case study card */
.quiz-result-case-study {
  background: white; border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px; padding: 24px;
  margin-bottom: 20px; text-align: left;
}
.quiz-result-cs-title {
  font-family: 'Outfit'; font-size: 16px; font-weight: 600;
  color: var(--text-dark); margin-bottom: 4px;
}
.quiz-result-cs-summary {
  font-size: 14px; color: var(--text-body); margin-bottom: 8px;
}
.quiz-result-cs-metric {
  font-family: 'Outfit'; font-size: 14px; font-weight: 600;
  color: var(--gold-deep); margin-bottom: 12px;
}
.quiz-result-cs-link {
  font-family: 'Outfit'; font-size: 13px; font-weight: 500;
  color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.quiz-result-cs-link:hover { border-color: var(--gold-deep); }

/* AI paragraph */
.quiz-ai-wrap {
  margin-bottom: 28px; text-align: left;
}
.quiz-ai-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Outfit'; font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}
.quiz-ai-label svg { color: var(--gold); }
.quiz-ai-text {
  font-size: 15px; line-height: 1.7; color: var(--text-body);
  min-height: 60px; position: relative;
}
.quiz-ai-text.shimmer::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(208,188,138,0.05) 25%, rgba(208,188,138,0.12) 50%, rgba(208,188,138,0.05) 75%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: quizAiShimmer 1.5s ease-in-out infinite;
}
@keyframes quizAiShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.quiz-ai-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: var(--gold); margin-left: 1px;
  vertical-align: text-bottom;
  animation: quizAiCursorBlink 0.7s step-end infinite;
}
@keyframes quizAiCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Timeline estimate */
.quiz-result-timeline {
  font-family: 'Outfit'; font-size: 14px; font-weight: 500;
  color: var(--gold-deep); margin-bottom: 20px;
  padding: 10px 20px; border-radius: 10px;
  background: rgba(208,188,138,0.08); display: inline-block;
}
.quiz-result-timeline svg {
  vertical-align: -2px; margin-right: 4px; color: var(--gold-deep);
}

/* Share button */
.quiz-share {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Outfit'; font-size: 14px; font-weight: 500;
  color: var(--text-dim); background: none; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px; padding: 8px 16px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.quiz-share:hover { color: var(--text-dark); border-color: var(--gold); background: rgba(208,188,138,0.04); }
.quiz-share svg { color: inherit; }

.quiz-result-secondary-actions {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  margin-top: 8px;
}

/* Share copied toast */
.quiz-share-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 12px 24px; border-radius: 10px;
  background: var(--ink); color: var(--text-light);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
  z-index: 200; pointer-events: none;
}
.quiz-share-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Contact form context banner */
.form-context-banner {
  max-width: 560px; margin: 0 auto 20px;
  padding: 14px 20px; border-radius: 12px;
  background: rgba(208,188,138,0.1); border: 1px solid rgba(208,188,138,0.2);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text-body); display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.form-context-banner[hidden] { display: none; }
.form-context-dismiss {
  background: none; border: none; font-size: 18px; color: var(--text-dim);
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.form-context-dismiss:hover { color: var(--text-dark); }

/* ── Chat mode ── */
.quiz-card.chat-mode {
  min-height: 480px;
  transition: min-height 0.3s ease;
}
.quiz-chat-container {
  display: none; text-align: left;
}
.quiz-card.chat-mode .quiz-chat-container { display: flex; flex-direction: column; height: 100%; }

/* Chat header */
.quiz-chat-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.quiz-chat-header svg { color: var(--gold); }
.quiz-chat-header span {
  font-family: 'Outfit'; font-size: 13px; font-weight: 500;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-dim);
}

/* Message area */
.quiz-chat-messages {
  flex: 1; overflow-y: auto;
  max-height: 320px; min-height: 160px;
  padding-right: 8px; margin-bottom: 16px;
  scroll-behavior: smooth;
}
.quiz-chat-messages::-webkit-scrollbar { width: 4px; }
.quiz-chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

/* Bubbles */
.chat-bubble {
  max-width: 85%; padding: 12px 16px;
  border-radius: 14px; margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.6;
  opacity: 0; transform: translateY(8px);
  animation: chatBubbleIn 0.3s ease forwards;
}
.chat-bubble.ai {
  background: var(--glass-light); border: 1px solid rgba(0,0,0,0.06);
  color: var(--text-body); align-self: flex-start; margin-right: auto;
  border-bottom-left-radius: 4px;
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--gold), var(--sand));
  color: white; align-self: flex-end; margin-left: auto;
  border-bottom-right-radius: 4px;
}
@keyframes chatBubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.chat-typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--glass-light); border: 1px solid rgba(0,0,0,0.06);
  border-bottom-left-radius: 4px; margin-bottom: 10px;
}
.chat-typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
  animation: chatTypingPulse 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatTypingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Quick-reply chips */
.quiz-chat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.chat-chip {
  padding: 8px 16px; border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1); background: white;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--text-body); cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.chat-chip:hover {
  border-color: var(--gold); background: rgba(208,188,138,0.04);
}
.chat-chip.selected {
  border-color: var(--gold); background: rgba(208,188,138,0.08);
  box-shadow: 0 0 0 1px var(--gold);
}
.chat-chip.maxed { opacity: 0.4; pointer-events: none; }
.chat-chip-done {
  padding: 8px 16px; border-radius: 20px;
  border: none; background: var(--ink); color: var(--text-light);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  display: none;
}
.chat-chip-done.visible { display: inline-block; }
.chat-chip-done:hover { background: #2a2a2e; transform: translateY(-1px); }

/* Chat input bar */
.quiz-chat-input-bar {
  display: flex; gap: 8px; align-items: center;
}
.quiz-chat-input {
  flex: 1; padding: 12px 16px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.1); background: white;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text-dark); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quiz-chat-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(208,188,138,0.3);
}
.quiz-chat-input::placeholder { color: var(--text-dim); }
.quiz-chat-send {
  width: 40px; height: 40px; border-radius: 10px;
  border: none; background: var(--ink); color: var(--text-light);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.quiz-chat-send:hover { background: #2a2a2e; transform: translateY(-1px); }
.quiz-chat-send:disabled { opacity: 0.4; pointer-events: none; }

/* Chat visible alongside result */
.quiz-chat-container.above-result {
  display: flex; margin-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 24px;
}
.quiz-chat-container.above-result .quiz-chat-input-bar { display: none; }
.quiz-chat-container.above-result .quiz-chat-chips { display: none; }

/* Result CTAs */
.quiz-result-ctas { margin-top: 8px; }
.quiz-restart {
  display: inline-block; margin-top: 12px;
  font-family: 'Outfit'; font-size: 14px; font-weight: 500;
  color: var(--text-dim); background: none; border: none; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.2s;
}
.quiz-restart:hover { color: var(--text-dark); }

@media (max-width: 600px) {
  .quiz-card { padding: 32px 20px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-option-icon { display: none; }
  .quiz-back { top: 32px; left: 20px; }
  .quiz-result-service-card,
  .quiz-result-case-study { padding: 20px; }
  .quiz-result-header { font-size: 22px; }
  .quiz-card.chat-mode { min-height: 400px; }
  .quiz-chat-messages { max-height: 260px; }
  .chat-bubble { max-width: 92%; }
}

/* PILOT */
.testimonials { padding: 100px 0; background: var(--ink); color: var(--text-light); text-align: center; position: relative; overflow: hidden; }
.test-orb-1 { width: 400px; height: 400px; background: var(--crystal); top: -20%; right: -5%; opacity: 0.12; filter: blur(100px); }
.test-orb-2 { width: 350px; height: 350px; background: var(--sand); bottom: -15%; left: -5%; opacity: 0.1; filter: blur(100px); }
.testimonials .section-label { color: var(--text-light-dim); }
.pilot-card { max-width: 640px; margin: 0 auto; padding: 52px; background: var(--glass-dark); border: 1px solid var(--glass-dark-border); border-radius: 20px; backdrop-filter: blur(24px); box-shadow: 0 8px 40px rgba(0,0,0,0.2); position: relative; z-index: 2; }
.pilot-card h3 {
  font-size: 24px; font-weight: 500; margin-bottom: 16px; letter-spacing: -0.3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 40%, var(--crystal) 50%, var(--gold) 60%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: navTextShimmer 4s ease-in-out infinite;
}
.pilot-card p { font-size: 15px; line-height: 1.7; color: var(--text-light-dim); margin-bottom: 28px; }
.pilot-cta { display: inline-block; font-family: 'Outfit'; font-weight: 500; font-size: 15px; padding: 12px 28px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--sand)); color: white; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.pilot-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(208,188,138,0.3); }

/* AI ADOPTION */
.ai-adoption {
  padding: 120px 0; background: var(--ink); color: var(--text-light);
  position: relative; overflow: hidden;
}
.adopt-orb-1 { width: 450px; height: 450px; background: var(--gold); top: -10%; right: -10%; opacity: 0.12; filter: blur(120px); }
.adopt-orb-2 { width: 400px; height: 400px; background: var(--crystal); bottom: -15%; left: -5%; opacity: 0.1; filter: blur(100px); }
.ai-adoption .section-label { color: var(--text-light-dim); }
.adopt-header { text-align: center; margin-bottom: 64px; position: relative; z-index: 2; }
.adopt-header h2 {
  font-size: clamp(32px, 4.5vw, 56px); font-weight: 600; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 16px;
}
.adopt-header p {
  font-size: 18px; color: var(--text-light-dim); max-width: 520px; margin: 0 auto;
}

.adopt-chart {
  max-width: 700px; margin: 0 auto 48px; position: relative; z-index: 2;
}
.adopt-bar-group {
  display: flex; align-items: center; gap: 20px; margin-bottom: 20px;
}
.adopt-bar-label {
  font-family: 'Outfit'; font-size: 13px; font-weight: 500;
  color: var(--text-light-dim); width: 100px; text-align: right; flex-shrink: 0;
  letter-spacing: 0.3px;
}
.adopt-bar-track {
  flex: 1; height: 44px; background: rgba(255,255,255,0.04);
  border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}
.adopt-bar-filled {
  height: 100%; width: 0; border-radius: 10px;
  background: linear-gradient(90deg, var(--crystal), var(--crystal-deep));
  display: flex; align-items: center; justify-content: flex-end; padding-right: 14px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.adopt-bar-filled.adopt-bar-gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-deep), var(--sand));
}
.adopt-bar-value {
  font-family: 'Outfit'; font-size: 13px; font-weight: 600;
  color: white; white-space: nowrap; opacity: 0;
  transition: opacity 0.4s ease 1.2s;
}
.adopt-chart.animated .adopt-bar-value { opacity: 1; }
.adopt-bar-you .adopt-bar-label { color: var(--gold); font-weight: 600; }

.adopt-source {
  text-align: center; margin-bottom: 48px; position: relative; z-index: 2;
}
.adopt-source p {
  font-size: 12px; color: var(--text-light-dim); opacity: 0.5;
}
.adopt-source a {
  color: var(--text-light-dim); text-decoration: underline; text-underline-offset: 2px;
}
.adopt-source a:hover { color: var(--text-light); }

.adopt-cta {
  text-align: center; position: relative; z-index: 2;
}
.adopt-cta p {
  font-size: 16px; color: var(--text-light-dim); max-width: 540px;
  margin: 0 auto 32px; line-height: 1.7;
}

/* ABOUT */
.about { padding: 120px 0; background: var(--shell-warm); position: relative; overflow: hidden; }
.about-orb-1 { width: 500px; height: 500px; background: var(--gold); top: -20%; right: -10%; opacity: 0.15; filter: blur(120px); }
.about-orb-2 { width: 400px; height: 400px; background: var(--sand); bottom: -15%; left: 10%; opacity: 0.1; filter: blur(100px); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.about-photo { width: 200px; height: 200px; border-radius: 0; background: transparent; border: none; display: flex; align-items: center; justify-content: center; box-shadow: none; flex-shrink: 0; overflow: hidden; }
.about-photo-placeholder { font-family: 'Outfit'; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }
.about-content .section-label { color: var(--text-dim); }
.about-content h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 24px; }
.about-content p { font-size: 15px; line-height: 1.8; color: var(--text-body); margin-bottom: 16px; }
.about-link { display: inline-block; margin-top: 12px; font-family: 'Outfit'; font-weight: 500; font-size: 14px; color: var(--sand-deep); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.about-link:hover { border-color: var(--sand-deep); }

/* NAV SECTION LINKS */
.nav-link-section {
  font-family: 'Outfit'; font-size: 14px; font-weight: 400;
  text-decoration: none; color: var(--text-dim);
  transition: color 0.2s;
}
.nav-link-section:hover { color: var(--text-dark); }
@media (max-width: 768px) { .nav-link-section { display: none; } }

/* MID-PAGE CTA */
.mid-cta {
  text-align: center; padding: 64px 24px;
  background: var(--shell);
}
.mid-cta p {
  font-family: 'Outfit'; font-size: clamp(20px, 3vw, 28px); font-weight: 500;
  color: var(--text-dark); letter-spacing: -0.3px; margin-bottom: 24px;
}
.mid-cta .hero-cta { animation: none; }

/* STATS SOURCE */
.stats-source {
  font-family: 'Outfit'; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-light-dim); opacity: 0.5;
  text-align: center; margin-top: 24px;
}

/* THE PELLUCEN MODEL */
.pely-model {
  padding: 120px 0; background: var(--shell-warm);
  text-align: center; position: relative; overflow: hidden;
}
.pely-model .section-label {
  font-size: 16px; letter-spacing: 4px;
  background: linear-gradient(90deg, var(--text-dim) 0%, var(--text-dim) 40%, var(--gold) 50%, var(--crystal) 55%, var(--text-dim) 60%, var(--text-dim) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: pmLabelShimmer 6s ease-in-out 1s infinite;
}
@keyframes pmLabelShimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: -100% 0; }
}
.pm-heading {
  font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.5px;
  line-height: 1.2; max-width: 700px; margin: 0 auto 16px;
  color: var(--text-dark);
}
.pm-tagline {
  font-family: 'Outfit'; font-size: 17px; font-weight: 400;
  color: var(--text-body); margin-bottom: 56px;
}
.pm-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  position: relative; z-index: 2;
}
.pm-card {
  background: var(--glass-light); border: 1px solid var(--glass-light-border);
  border-radius: 16px; padding: 40px 28px;
  backdrop-filter: blur(20px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: left;
}
.pm-card:hover {
  border-color: rgba(0,0,0,0.08); transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.pm-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(208,188,138,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pm-card h3 {
  font-family: 'Outfit'; font-size: 18px; font-weight: 600;
  letter-spacing: -0.2px; margin-bottom: 10px; color: var(--text-dark);
}
.pm-card p {
  font-size: 14px; line-height: 1.7; color: var(--text-body);
}
@media (max-width: 900px) {
  .pm-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* TECH STACK */
.tech-stack {
  padding: 80px 0; background: var(--ink);
  border-top: 1px solid var(--ink-border);
}
.tech-stack .section-label { color: var(--text-light-dim); margin-bottom: 32px; }
.tech-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.tech-item {
  font-family: 'Outfit'; font-size: 13px; font-weight: 500;
  padding: 8px 20px; border-radius: 8px;
  background: var(--glass-dark); border: 1px solid var(--glass-dark-border);
  color: var(--text-light-dim); backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
  transition: border-color 0.3s, color 0.3s;
}
.tech-item:hover {
  border-color: rgba(255,255,255,0.14); color: var(--text-light);
}

/* FAQ */
.faq {
  padding: 120px 0; background: var(--shell-warm); position: relative; overflow: hidden;
}
.faq-orb-1 { width: 400px; height: 400px; background: var(--gold); top: -10%; left: -10%; opacity: 0.1; filter: blur(120px); }
.faq-orb-2 { width: 350px; height: 350px; background: var(--crystal); bottom: -10%; right: -5%; opacity: 0.08; filter: blur(100px); }
.faq .section-label { color: var(--text-dim); }
.faq-list {
  max-width: 760px; margin: 0 auto; position: relative; z-index: 2;
}
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}
.faq-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.open::before { transform: scaleY(1); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 24px 0 24px 16px; border: none; background: none; cursor: pointer;
  text-align: left; font-family: inherit;
  transition: padding-left 0.3s cubic-bezier(0.16,1,0.3,1);
}
.faq-item.open .faq-trigger { padding-left: 24px; }
.faq-number {
  font-family: 'Outfit'; font-size: 14px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0.4; min-width: 28px;
  transition: opacity 0.3s;
}
.faq-item.open .faq-number { opacity: 1; }
.faq-question {
  font-family: 'Outfit'; font-size: 17px; font-weight: 500;
  color: var(--text-dark); flex: 1; letter-spacing: -0.2px;
  transition: color 0.3s;
}
.faq-item.open .faq-question { color: var(--text-dark); }
.faq-icon {
  color: var(--text-dim); flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg); color: var(--gold);
}
.faq-answer {
  max-height: 0; overflow: hidden; padding-left: 60px;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1), padding-bottom 0.4s;
}
.faq-item.open .faq-answer {
  max-height: 300px; padding-bottom: 24px;
}
.faq-answer p {
  font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.75;
  color: var(--text-body); max-width: 620px;
}

@media (max-width: 600px) {
  .faq-answer { padding-left: 16px; }
  .faq-trigger { gap: 12px; }
  .faq-number { display: none; }
}

/* FOOTER */
.footer-cta { padding: 160px 0; background: var(--ink); text-align: center; position: relative; overflow: hidden; }
.footer-orb-1 { width: 400px; height: 400px; background: var(--gold); top: 10%; left: 10%; opacity: 0.12; filter: blur(100px); }
.footer-orb-2 { width: 350px; height: 350px; background: var(--crystal); bottom: 10%; right: 15%; opacity: 0.12; filter: blur(100px); }
.footer-orb-3 { width: 300px; height: 300px; background: var(--sand); top: 40%; right: 30%; opacity: 0.12; filter: blur(100px); }
.footer-bg-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.025; }
.footer-cta h2 { font-size: clamp(36px,5vw,60px); font-weight: 600; letter-spacing: -1px; color: var(--text-light); margin-bottom: 20px; position: relative; z-index: 2; }
.footer-cta p { font-size: 16px; color: var(--text-light-dim); margin-bottom: 40px; position: relative; z-index: 2; }
.footer-cta-btn { display: inline-block; font-family: 'Outfit'; font-weight: 500; font-size: 16px; padding: 16px 40px; border-radius: 12px; background: var(--glass-light); border: 1px solid var(--glass-light-border); color: var(--text-dark); text-decoration: none; backdrop-filter: blur(16px); transition: transform 0.3s, box-shadow 0.3s; position: relative; z-index: 2; }
.footer-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.footer-bottom { padding: 32px 40px; background: var(--ink); border-top: 1px solid var(--ink-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom span { font-size: 13px; color: var(--text-light-dim); }
.footer-address { font-size: 12px; color: var(--text-light-dim); opacity: 0.6; font-style: normal; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-light-dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-light); }

/* CONTACT FORM */
.contact-form {
  max-width: 480px; margin: 0 auto; position: relative; z-index: 2;
  padding: 48px; border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  background-clip: padding-box;
}
/* Animated gradient border */
.contact-form::before {
  content: ''; position: absolute; inset: -1px; border-radius: 21px; z-index: -1;
  background: linear-gradient(135deg, var(--gold), var(--crystal), var(--sand), var(--gold));
  background-size: 300% 300%;
  animation: formBorderGlow 8s ease infinite;
  opacity: 0.4;
  transition: opacity 0.4s;
}
.contact-form:focus-within::before { opacity: 0.8; }
@keyframes formBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.contact-form .form-group { margin-bottom: 24px; text-align: left; position: relative; }
.contact-form label {
  display: block; font-family: 'Outfit'; font-size: 13px; font-weight: 500;
  color: var(--text-light-dim); letter-spacing: 0.5px; margin-bottom: 8px;
  transition: color 0.3s;
}
.contact-form .form-group:focus-within label { color: var(--gold); }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 14px 18px;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  color: var(--text-light); background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  backdrop-filter: blur(16px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light-dim); opacity: 0.5;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 20px rgba(208,188,138,0.15), inset 0 0 20px rgba(208,188,138,0.03);
  background: rgba(255,255,255,0.06);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  display: inline-block; font-family: 'Outfit'; font-weight: 500; font-size: 16px;
  padding: 16px 40px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  color: white; position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.contact-form button::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  background-size: 200% 100%; background-position: 100% 0;
  transition: background-position 0.6s ease;
}
.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(208,188,138,0.3);
}
.contact-form button:hover::after { background-position: -100% 0; }

/* FORM THANK YOU */
.form-thankyou {
  text-align: center; position: relative; z-index: 2;
  animation: fadeInUp 0.6s ease forwards;
}
.form-thankyou h3 {
  font-family: 'Outfit'; font-size: clamp(24px, 3vw, 36px); font-weight: 600;
  color: var(--text-light); margin-bottom: 12px;
}
.form-thankyou p {
  font-size: 16px; color: var(--text-light-dim); margin-bottom: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCROLL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: 0.1s; } .stagger-2 { transition-delay: 0.2s; } .stagger-3 { transition-delay: 0.3s; } .stagger-4 { transition-delay: 0.4s; }

/* Page load */
body { animation: pageIn 0.6s ease forwards; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  nav { padding: 16px 24px; } .container { padding: 0 24px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .case-study { grid-template-columns: 1fr; gap: 32px; min-height: auto; margin-bottom: 100px; }
  .case-study:nth-child(even) { direction: ltr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 180px; margin: 0 auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 36px; } .case-study-info h3 { font-size: 24px; } }

/* ─── CHATBOT WIDGET ─── */
.chatbot-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--text-light);
}
.chatbot-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.3); }
.chatbot-fab .chatbot-fab-close { display: none; }
.chatbot-fab.open .chatbot-fab-open { display: none; }
.chatbot-fab.open .chatbot-fab-close { display: block; }

.chatbot-panel {
  position: fixed; bottom: 96px; right: 28px; z-index: 299;
  width: 380px; max-height: 520px;
  background: white; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot-panel.open {
  opacity: 1; transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; gap: 10px;
}
.chatbot-header-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #34c759; flex-shrink: 0;
}
.chatbot-header-text {
  font-family: 'Outfit'; font-size: 15px; font-weight: 600;
  color: var(--text-dark);
}
.chatbot-header-sub {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--text-dim); margin-top: 1px;
}

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  min-height: 200px; max-height: 340px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }

.chatbot-bubble {
  max-width: 85%; padding: 10px 14px;
  border-radius: 14px; margin-bottom: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.55;
  opacity: 0; transform: translateY(6px);
  animation: chatbotBubbleIn 0.25s ease forwards;
}
.chatbot-bubble.ai {
  background: var(--shell-warm); color: var(--text-body);
  margin-right: auto; border-bottom-left-radius: 4px;
}
.chatbot-bubble.user {
  background: var(--ink); color: var(--text-light);
  margin-left: auto; border-bottom-right-radius: 4px;
}
@keyframes chatbotBubbleIn {
  to { opacity: 1; transform: translateY(0); }
}

.chatbot-typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--shell-warm); border-bottom-left-radius: 4px;
  margin-bottom: 8px;
}
.chatbot-typing-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-dim);
  animation: chatbotTypingPulse 1.2s ease-in-out infinite;
}
.chatbot-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatbotTypingPulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

.chatbot-input-bar {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; gap: 8px; align-items: center;
}
.chatbot-input {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1); background: var(--shell);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text-dark); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chatbot-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(208,188,138,0.25);
}
.chatbot-input::placeholder { color: var(--text-dim); }
.chatbot-send {
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: var(--ink); color: var(--text-light);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s;
}
.chatbot-send:hover { background: #2a2a2e; }
.chatbot-send:disabled { opacity: 0.4; pointer-events: none; }

@media (max-width: 600px) {
  /* Mobile: slim bottom bar instead of floating bubble */
  .chatbot-fab {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; height: 44px; border-radius: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
    z-index: 300;
  }
  .chatbot-fab::after {
    content: 'Ask Pely.ai';
    color: var(--text-light);
  }
  .chatbot-fab.open::after {
    content: 'Close chat';
  }
  .chatbot-fab:hover { transform: none; }
  .chatbot-panel {
    position: fixed; bottom: 44px; left: 0; right: 0;
    width: 100%; max-height: calc(100vh - 44px);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  }
  .chatbot-messages { max-height: calc(100vh - 200px); }
}

/* COOKIE CONSENT BANNER */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  padding: 16px 24px;
  background: var(--ink); color: var(--text-light);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; line-height: 1.5;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
}
.cookie-banner p { margin: 0; max-width: 640px; color: var(--text-light-dim); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept, .cookie-decline {
  padding: 8px 18px; border-radius: 8px; border: none;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: opacity 0.2s;
}
.cookie-accept { background: var(--gold); color: var(--ink); }
.cookie-accept:hover { opacity: 0.85; }
.cookie-decline { background: transparent; color: var(--text-light-dim); border: 1px solid rgba(255,255,255,0.15); }
.cookie-decline:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 16px 20px 20px; gap: 12px; }
  .cookie-actions { width: 100%; justify-content: center; }
}

/* WORKFLOW MAPPER — FLOWCHART */
.flow-chart {
  display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px;
  position: relative;
}
.flow-step {
  flex: 0 0 calc(33.333% - 14px);
  background: white; border-radius: 16px; padding: 24px 20px;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative; opacity: 0;
  animation: flowStepReveal 0.5s ease forwards;
  transition: transform 0.2s, box-shadow 0.2s;
}
.flow-step:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
@keyframes flowStepReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Serpentine: reverse every other row */
.flow-chart .flow-step:nth-child(n+4):nth-child(-n+6) { order: unset; }
.flow-chart { direction: ltr; }
/* Even rows (items 4-6, 10-12, etc.) get reversed via order */
.flow-step:nth-child(4) { order: 6; }
.flow-step:nth-child(5) { order: 5; }
.flow-step:nth-child(6) { order: 4; }
.flow-step:nth-child(10) { order: 12; }
.flow-step:nth-child(11) { order: 11; }
.flow-step:nth-child(12) { order: 10; }

/* Connecting lines between steps */
.flow-step::after {
  content: ''; position: absolute; right: -21px; top: 50%;
  width: 20px; height: 2px; background: rgba(0,0,0,0.1);
}
/* Hide connector after every 3rd in a row */
.flow-step:nth-child(3n)::after { display: none; }
/* Last item has no connector */
.flow-step:last-child::after { display: none; }
/* Reversed rows: connectors go left */
.flow-step:nth-child(4)::after,
.flow-step:nth-child(5)::after {
  left: -21px; right: auto;
}
.flow-step:nth-child(6)::after { display: none; }
.flow-step:nth-child(10)::after,
.flow-step:nth-child(11)::after {
  left: -21px; right: auto;
}
.flow-step:nth-child(12)::after { display: none; }

/* Down-connectors between rows */
.flow-step:nth-child(3)::before {
  content: ''; position: absolute; right: 50%; bottom: -21px;
  width: 2px; height: 20px; background: rgba(0,0,0,0.1);
}
.flow-step:nth-child(4)::before {
  content: ''; position: absolute; left: 50%; top: -21px;
  width: 2px; height: 20px; background: rgba(0,0,0,0.1);
}
.flow-step:nth-child(6)::before {
  content: ''; position: absolute; left: 50%; bottom: -21px;
  width: 2px; height: 20px; background: rgba(0,0,0,0.1);
}
.flow-step:nth-child(7)::before {
  content: ''; position: absolute; right: 50%; top: -21px;
  width: 2px; height: 20px; background: rgba(0,0,0,0.1);
}
.flow-step:nth-child(9)::before {
  content: ''; position: absolute; right: 50%; bottom: -21px;
  width: 2px; height: 20px; background: rgba(0,0,0,0.1);
}
.flow-step:nth-child(10)::before {
  content: ''; position: absolute; left: 50%; top: -21px;
  width: 2px; height: 20px; background: rgba(0,0,0,0.1);
}

/* Automatable step — gold glow */
.flow-step--auto {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 20px rgba(208,188,138,0.15);
  animation: flowStepReveal 0.5s ease forwards, flowGlow 3s ease-in-out infinite;
}
@keyframes flowGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(208,188,138,0.12); }
  50% { box-shadow: 0 0 0 1px var(--gold), 0 0 28px rgba(208,188,138,0.25); }
}

/* Manual step — dimmed */
.flow-step--manual {
  opacity: 0; animation: flowStepReveal 0.5s ease forwards;
}
.flow-step--manual .flow-step-title,
.flow-step--manual .flow-step-desc { opacity: 0.7; }

/* Step badge (number) */
.flow-step-badge {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit'; font-size: 13px; font-weight: 600; margin-bottom: 12px;
  background: var(--shell); color: var(--text-dim);
}
.flow-step--auto .flow-step-badge {
  background: var(--gold); color: white;
}

/* Step content */
.flow-step-title {
  font-family: 'Outfit'; font-size: 15px; font-weight: 600; margin-bottom: 6px;
  letter-spacing: -0.2px;
}
.flow-step-desc {
  font-size: 13px; color: var(--text-body); line-height: 1.5; margin-bottom: 12px;
}
.flow-step-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.flow-step-time {
  font-family: 'Outfit'; font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 12px;
  background: var(--shell); color: var(--text-dim);
}
.flow-step-tag {
  font-family: 'Outfit'; font-size: 12px; font-weight: 500;
  padding: 3px 10px; border-radius: 12px;
}
.flow-step--auto .flow-step-tag {
  background: rgba(208,188,138,0.15); color: var(--gold-deep);
}
.flow-step--manual .flow-step-tag {
  background: var(--shell); color: var(--text-dim);
}
.flow-step-method {
  margin-top: 10px; font-size: 12px; color: var(--gold-deep);
  font-style: italic; line-height: 1.4;
}

/* Mobile: single column */
@media (max-width: 768px) {
  .flow-step {
    flex: 0 0 100%;
  }
  /* Reset serpentine ordering */
  .flow-step:nth-child(n) { order: unset !important; }
  /* Hide horizontal connectors, show vertical only */
  .flow-step::after { display: none !important; }
  .flow-step::before { display: none !important; }
  /* Simple vertical connector for all but last */
  .flow-step:not(:last-child) {
    margin-bottom: 0;
  }
  .flow-step:not(:last-child)::after {
    display: block !important;
    left: 50%; right: auto; top: auto; bottom: -21px;
    width: 2px; height: 20px;
  }
}
.intro-arrow {
  font-size: 32px;
}