/* =========================================================
   INTELLICORE — Design System
   Refined corporate aesthetic. Black + Purple. Generous whitespace.
   ========================================================= */

:root {
  /* Brand */
  --brand-purple: #6B2BD9;
  --brand-purple-dark: #4A1AA0;
  --brand-purple-light: #8F5BE8;
  --brand-purple-50: #F5F0FE;
  --brand-purple-100: #E8DCFC;

  /* Neutrals */
  --ink: #0A0A0A;
  --ink-soft: #1A1A1F;
  --gray-900: #18181B;
  --gray-700: #3F3F46;
  --gray-500: #71717A;
  --gray-400: #A1A1AA;
  --gray-300: #D4D4D8;
  --gray-200: #E4E4E7;
  --gray-100: #F4F4F5;
  --gray-50: #FAFAFA;
  --paper: #FFFFFF;

  /* Semantic */
  --text-primary: var(--ink);
  --text-secondary: var(--gray-500);
  --text-muted: var(--gray-400);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  /* Spacing */
  --container: 1240px;
  --container-narrow: 980px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow: 0 2px 8px rgba(10, 10, 10, 0.05), 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.08);
  --shadow-purple: 0 12px 32px rgba(107, 43, 217, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* =========================================================
   Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem); }
h4 { font-size: 1.25rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--brand-purple);
}
.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
}
.body-text { color: var(--text-secondary); }

/* =========================================================
   Layout primitives
   ========================================================= */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-tight { padding: clamp(48px, 5vw, 80px) 0; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-purple);
  color: var(--paper);
  border-color: var(--brand-purple);
}
.btn-primary:hover {
  background: var(--brand-purple-dark);
  border-color: var(--brand-purple-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-purple);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--brand-purple); }
.btn-lg { padding: 18px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-arrow::after {
  content: '→';
  transition: transform var(--transition);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--ink); background: var(--gray-100); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--brand-purple);
  border-radius: 50%;
  margin: 4px auto 0;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease-out);
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 14px 20px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-quote-desktop { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 140px) 0 clamp(64px, 7vw, 100px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 400px at 80% 10%, rgba(107, 43, 217, 0.08), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(107, 43, 217, 0.04), transparent 60%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-100) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 80%);
  opacity: 0.7;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--brand-purple); font-style: italic; font-weight: 500; }
.hero .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-meta-item .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-meta-item .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
}
.trust-bar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--gray-400);
  transition: color var(--transition);
}
.trust-logo:hover { color: var(--gray-700); }

/* =========================================================
   Section heading
   ========================================================= */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; margin-bottom: 16px; }
.section-head p { color: var(--text-secondary); font-size: 1.1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--brand-purple);
  transition: all var(--transition);
}
.card:hover .card-icon { background: var(--brand-purple); color: var(--paper); }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.card-link::after { content: '→'; transition: transform var(--transition); }
.card-link:hover { color: var(--brand-purple); }
.card-link:hover::after { transform: translateX(3px); }

/* Variant: dark card */
.card-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.card-dark h3 { color: var(--paper); }
.card-dark p { color: var(--gray-400); }
.card-dark .card-icon { background: rgba(255, 255, 255, 0.1); color: var(--paper); }

/* =========================================================
   Feature row (alternating)
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row .feature-visual {
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse { direction: ltr; }
}

/* =========================================================
   Process steps
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--gray-300) 0,
    var(--gray-300) 6px,
    transparent 6px,
    transparent 12px
  );
}
.step {
  position: relative;
  text-align: left;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.step h4 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* =========================================================
   Testimonial
   ========================================================= */
.testimonial {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--border);
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}
.testimonial blockquote::before { content: '"'; color: var(--brand-purple); margin-right: 4px; }
.testimonial blockquote::after { content: '"'; color: var(--brand-purple); margin-left: 2px; }
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar-mono {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
}
.testimonial-name { font-weight: 600; }
.testimonial-role { color: var(--text-secondary); font-size: 0.9rem; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.price-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
}
.price-card.featured::after {
  content: 'Most popular';
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--brand-purple);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.price-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.price-card .price-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 32px; min-height: 3em; }
.price-card.featured .price-desc { color: var(--gray-400); }
.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
}
.price-amount .currency { font-size: 1.5rem; color: var(--text-secondary); }
.price-amount .period { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.price-card.featured .price-amount .currency,
.price-card.featured .price-amount .period { color: var(--gray-400); }
.price-features { flex: 1; margin-bottom: 32px; }
.price-features li {
  padding: 10px 0;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.price-card.featured .price-features li { border-bottom-color: rgba(255, 255, 255, 0.1); }
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236B2BD9' stroke-width='2'><path d='M3 8.5l3 3 7-7'/></svg>") no-repeat center / contain;
}
.price-card.featured .price-features li::before {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238F5BE8' stroke-width='2'><path d='M3 8.5l3 3 7-7'/></svg>") no-repeat center / contain;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand-purple);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 0 28px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 50%, rgba(107, 43, 217, 0.35), transparent 60%),
    radial-gradient(400px 200px at 10% 90%, rgba(107, 43, 217, 0.18), transparent 60%);
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-banner h2 { color: var(--paper); margin-bottom: 16px; }
.cta-banner p { color: var(--gray-400); font-size: 1.1rem; margin-bottom: 32px; max-width: 56ch; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--gray-400);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; margin-bottom: 24px; filter: brightness(0) invert(1); }
.footer-brand p { color: var(--gray-400); font-size: 0.95rem; max-width: 32ch; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul li { padding: 6px 0; }
.footer-col a {
  color: var(--gray-300);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* =========================================================
   Page header (interior pages)
   ========================================================= */
.page-header {
  padding: clamp(48px, 6vw, 88px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 250px at 80% 20%, rgba(107, 43, 217, 0.06), transparent 60%);
  z-index: -1;
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { margin-bottom: 16px; max-width: 16ch; }
.page-header .lead { font-size: 1.2rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--gray-300); }

/* =========================================================
   Forms
   ========================================================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--gray-700);
  letter-spacing: -0.005em;
}
.field label .req { color: var(--brand-purple); }
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(107, 43, 217, 0.1);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2371717A' stroke-width='2'><path d='M5 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}

.form-message {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: none;
}
.form-message.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.form-message.error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.form-message.visible { display: block; }

/* =========================================================
   Booking calendar
   ========================================================= */
.booking-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }

.calendar-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 96px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.calendar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.cal-nav {
  display: flex;
  gap: 6px;
}
.cal-nav button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all var(--transition);
}
.cal-nav button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.cal-weekdays div {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  border: 1px solid transparent;
  position: relative;
}
.cal-day.empty { cursor: default; }
.cal-day.disabled {
  color: var(--gray-300);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--gray-200);
}
.cal-day.today { color: var(--brand-purple); font-weight: 700; }
.cal-day.available:hover {
  background: var(--brand-purple-50);
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}
.cal-day.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cal-day.selected:hover { background: var(--ink-soft); }
.cal-legend {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.cal-legend-item { display: flex; align-items: center; gap: 8px; }
.cal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand-purple-50);
  border: 1px solid var(--brand-purple);
}
.cal-legend-dot.unavailable { background: transparent; border-color: var(--gray-200); }
.cal-legend-dot.selected { background: var(--ink); border-color: var(--ink); }

.timeslot-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.timeslot-section h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.timeslot {
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.timeslot:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  background: var(--brand-purple-50);
}
.timeslot.selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.no-date-msg {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
}

/* =========================================================
   Stats strip
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 32px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
@media (max-width: 900px) {
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}
.stat .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.stat .num .accent { color: var(--brand-purple); }
.stat .label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Page-load entrance for hero */
.fade-up {
  animation: fadeUp 1s var(--ease-out) both;
}
.fade-up.d1 { animation-delay: 0.05s; }
.fade-up.d2 { animation-delay: 0.15s; }
.fade-up.d3 { animation-delay: 0.25s; }
.fade-up.d4 { animation-delay: 0.35s; }
.fade-up.d5 { animation-delay: 0.45s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Decorative visuals (no stock photos)
   ========================================================= */
.viz-card {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.viz-card.purple {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-dark) 100%);
}
.viz-card .viz-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.viz-card .viz-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--paper);
}
.viz-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.viz-big {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Hide scrollbar on mobile menu */
@media (max-width: 980px) {
  body.menu-open { overflow: hidden; }
}

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

/* =========================================================
   RICH VISUAL COMPONENTS — v2 redesign
   ========================================================= */

/* Mesh gradient backgrounds */
.mesh-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.mesh-bg::before, .mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.mesh-bg::before {
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--brand-purple) 0%, transparent 70%);
}
.mesh-bg::after {
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, #FF6B9D 0%, transparent 70%);
  opacity: 0.3;
}

/* Hero v2 — split layout with mockup */
.hero-v2 {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 7vw, 120px);
  overflow: hidden;
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-v2-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Browser window mockup */
.browser {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 60px -20px rgba(10, 10, 10, 0.25),
    0 18px 36px -18px rgba(107, 43, 217, 0.2);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.browser-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}
.browser-dots span:nth-child(1) { background: #FF6058; }
.browser-dots span:nth-child(2) { background: #FFBD2E; }
.browser-dots span:nth-child(3) { background: #28C941; }
.browser-url {
  flex: 1;
  background: var(--paper);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-500);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-url::before {
  content: '🔒';
  font-size: 0.65rem;
  opacity: 0.6;
}
.browser-body { padding: 24px; }

/* Dashboard mockup */
.dashboard {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(10, 10, 10, 0.25);
  overflow: hidden;
}
.dashboard-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dashboard-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dashboard-title::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-purple);
  display: inline-block;
}
.dashboard-badge {
  background: #D1FAE5;
  color: #065F46;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.dashboard-body { padding: 20px; }
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 12px;
}
.kpi-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.kpi-delta {
  font-size: 0.7rem;
  font-weight: 600;
  color: #10B981;
  margin-top: 2px;
}
.kpi-delta.down { color: #EF4444; }
.kpi-delta::before { content: '↑ '; }
.kpi-delta.down::before { content: '↓ '; }

/* SVG line chart styling */
.chart-svg { width: 100%; height: 140px; }
.chart-area {
  fill: url(#purpleGradient);
}
.chart-line {
  fill: none;
  stroke: var(--brand-purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-dot {
  fill: var(--paper);
  stroke: var(--brand-purple);
  stroke-width: 2;
}

/* Floating purple card / badge */
.float-card {
  position: absolute;
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px -10px rgba(10, 10, 10, 0.25);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-card .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-purple-50);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.float-card .ico.green { background: #D1FAE5; color: #059669; }
.float-card .ico.dark { background: var(--ink); color: var(--paper); }
.float-card .ico.purple-solid { background: var(--brand-purple); color: var(--paper); }
.float-card .lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.float-card .val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.1;
}

/* Stat block with gradient background */
.stat-rich {
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a2e 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
}
.stat-rich::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--brand-purple) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(20px);
}
.stat-rich .num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  background: linear-gradient(135deg, var(--paper) 0%, var(--brand-purple-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-rich .lbl {
  position: relative;
  margin-top: 8px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* SERP / ranking visual */
.serp-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.serp-card.featured {
  background: linear-gradient(135deg, var(--brand-purple-50), var(--paper));
  border-color: var(--brand-purple-100);
  position: relative;
}
.serp-card.featured::before {
  content: '#1';
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--brand-purple);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.serp-url {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.serp-title {
  color: var(--brand-purple);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.serp-desc {
  font-size: 0.72rem;
  color: var(--gray-500);
  line-height: 1.4;
}

/* Service card with gradient top accent */
.service-card-v2 {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.service-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-purple-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.service-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--brand-purple-100);
  box-shadow: 0 24px 48px -16px rgba(107, 43, 217, 0.18);
}
.service-card-v2:hover::before { transform: scaleX(1); }
.service-card-v2 .ico-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-purple-50), var(--paper));
  border: 1px solid var(--brand-purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
  margin-bottom: 24px;
  transition: all var(--transition);
}
.service-card-v2:hover .ico-lg {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  color: var(--paper);
  border-color: var(--brand-purple);
  transform: rotate(-4deg) scale(1.05);
}
.service-tag {
  display: inline-block;
  background: var(--brand-purple-50);
  color: var(--brand-purple);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Trust bar v2 — proper "logos" */
.trust-bar-v2 {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.trust-bar-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 80% 50%, rgba(107, 43, 217, 0.18), transparent 60%);
}
.trust-bar-v2 .container { position: relative; z-index: 1; }
.trust-bar-v2 .trust-bar-label {
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 24px;
}
.trust-bar-v2 .trust-logos { justify-content: center; gap: 56px; }
.trust-bar-v2 .trust-logo {
  color: var(--gray-500);
  opacity: 0.7;
  transition: all var(--transition);
}
.trust-bar-v2 .trust-logo:hover { color: var(--paper); opacity: 1; }

/* Big visual section background */
.section-dark {
  background: linear-gradient(180deg, var(--ink) 0%, #1a1a2e 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(107, 43, 217, 0.25), transparent 60%);
  pointer-events: none;
}
.section-dark h2 { color: var(--paper); }
.section-dark .section-head p { color: var(--gray-400); }

/* Process v2 - numbered with connector visuals */
.process-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 900px) { .process-v2 { grid-template-columns: 1fr; } }
.process-step-v2 {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px;
  border-radius: 0;
  position: relative;
  transition: all var(--transition);
}
.process-step-v2:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.process-step-v2:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
@media (max-width: 900px) {
  .process-step-v2 { border-radius: 0 !important; }
  .process-step-v2:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
  .process-step-v2:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; }
}
.process-step-v2:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(107, 43, 217, 0.5);
}
.process-step-v2 .num-big {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--brand-purple-light), var(--brand-purple-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 24px;
}
.process-step-v2 h4 { color: var(--paper); margin-bottom: 8px; }
.process-step-v2 p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.5; }

/* Big result card */
.result-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 48px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 60%, #B66BFF 100%);
  color: var(--paper);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><circle cx='50' cy='50' r='1' fill='white' opacity='0.1'/></svg>");
  background-size: 24px 24px;
}
.result-card-content { position: relative; z-index: 1; }
.result-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 16px 0 8px;
}
.result-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Device frame (laptop / browser) */
.laptop-frame {
  position: relative;
  background: var(--ink);
  border-radius: 14px 14px 4px 4px;
  padding: 14px 14px 8px;
  box-shadow: 0 30px 60px -20px rgba(10, 10, 10, 0.4);
}
.laptop-frame::after {
  content: '';
  display: block;
  height: 12px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  margin: 8px -30px 0;
  border-radius: 0 0 14px 14px;
  position: relative;
}
.laptop-screen {
  background: var(--paper);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

/* Phone frame */
.phone-frame {
  width: 240px;
  background: var(--ink);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 30px 60px -20px rgba(10, 10, 10, 0.4);
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: var(--ink);
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19;
  position: relative;
}

/* Testimonial v2 */
.testimonial-v2 {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: 56px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -20px rgba(10, 10, 10, 0.1);
}
.testimonial-v2::before {
  content: '"';
  position: absolute;
  top: 24px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--brand-purple-50);
  line-height: 1;
  font-weight: 700;
}
.testimonial-v2 .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
}
.testimonial-v2 .stars svg { color: #F59E0B; }
.testimonial-v2 blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.5vw + 0.8rem, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* Pattern background section */
.pattern-section {
  position: relative;
  background: var(--gray-50);
  overflow: hidden;
}
.pattern-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gray-300) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
}
.pattern-section > * { position: relative; z-index: 1; }

/* Marquee */
.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  padding: 16px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 64px;
  animation: scroll 30s linear infinite;
  flex-shrink: 0;
  min-width: 100%;
}
.marquee-track .trust-logo {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-block;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* Glow text */
.glow {
  text-shadow: 0 0 60px rgba(107, 43, 217, 0.4);
}


/* =========================================================
   BOOKING MODAL v3 — 2-step popup style (360digitalvision-inspired)
   ========================================================= */

/* Page background for the booking page — blurred, atmospheric */
.book-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 50%, #2d1b4e 100%);
  overflow: hidden;
}
.book-page-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, var(--brand-purple) 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.5;
}
.book-page-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, #FF6B9D 0%, transparent 60%);
  filter: blur(100px);
  opacity: 0.3;
}

/* Blurred dashboard preview behind modal (decoration) */
.book-page-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter: blur(6px) brightness(0.4);
  opacity: 0.5;
}
.book-page-decor .dashboard {
  width: 600px;
  transform: rotate(-3deg);
}

/* Modal card (the popup itself) */
.booking-modal {
  background: var(--paper);
  border-radius: 24px;
  box-shadow:
    0 60px 120px -20px rgba(0, 0, 0, 0.6),
    0 30px 60px -15px rgba(107, 43, 217, 0.3);
  width: 100%;
  max-width: 720px;
  margin: 60px auto;
  overflow: hidden;
  position: relative;
}
@media (max-width: 768px) {
  .booking-modal { margin: 20px 16px; border-radius: 16px; }
}

/* Step indicator (top bar) */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.3s;
}
.step-pill .step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid var(--paper);
  outline: 1px solid var(--gray-300);
  transition: all 0.3s;
}
.step-pill.active {
  color: var(--brand-purple);
}
.step-pill.active .step-dot {
  background: var(--brand-purple);
  outline-color: var(--brand-purple);
  box-shadow: 0 0 0 4px var(--brand-purple-50);
}
.step-pill.complete .step-dot {
  background: var(--brand-purple);
  outline-color: var(--brand-purple);
}
.step-connector {
  width: 60px;
  height: 1px;
  background: var(--gray-300);
}
.step-connector.complete { background: var(--brand-purple); }

/* Modal body */
.modal-body {
  padding: 40px 48px 48px;
}
@media (max-width: 640px) { .modal-body { padding: 28px 24px 32px; } }

/* Step views */
.step-view { display: none; }
.step-view.active { display: block; animation: fadeStep 0.4s var(--ease-out); }
@keyframes fadeStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Modal logo */
.modal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}
.modal-logo img { height: 40px; }

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: center;
}
.modal-subheading {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 32px;
}

/* Improved form fields for modal */
.modal-body .field { margin-bottom: 18px; }
.modal-body .field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.modal-body .input,
.modal-body .select,
.modal-body .textarea {
  background: var(--brand-purple-50);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.modal-body .input::placeholder,
.modal-body .textarea::placeholder {
  color: #A8A2C0;
}
.modal-body .input:focus,
.modal-body .select:focus,
.modal-body .textarea:focus {
  background: var(--paper);
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(107, 43, 217, 0.1);
}

/* Phone with country code */
.phone-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
}
.country-select {
  background: var(--brand-purple-50);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 12px;
  font-size: 0.95rem;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B2BD9' stroke-width='2'><path d='M5 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
  font-weight: 500;
  cursor: pointer;
}
.country-select:focus {
  background-color: var(--paper);
  border-color: var(--brand-purple);
  outline: none;
}

/* Continue / submit button — gradient like 360digitalvision */
.btn-gradient {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-dark) 100%);
  color: var(--paper);
  padding: 16px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.btn-gradient:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--brand-purple-dark) 0%, var(--brand-purple) 100%);
  box-shadow: 0 18px 36px -10px rgba(107, 43, 217, 0.4);
  transform: translateY(-2px);
}
.btn-gradient:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gradient::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform var(--transition);
}
.btn-gradient:hover:not(:disabled)::after { transform: translateX(4px); }

.consent-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.consent-text a { color: var(--brand-purple); text-decoration: underline; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}
.back-link:hover { color: var(--brand-purple); }
.back-link::before { content: '←'; }

.step2-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  text-align: left;
}

/* Calendar v2 — bigger, friendlier dates */
.cal-v2 .calendar-header {
  margin-bottom: 16px;
}
.cal-v2 .calendar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.cal-v2 .cal-nav button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.cal-v2 .cal-weekdays {
  margin-bottom: 12px;
}
.cal-v2 .cal-weekdays div {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.cal-v2 .cal-grid {
  gap: 8px;
}
.cal-v2 .cal-day {
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-display);
  min-height: 56px;
  border: none;
}
.cal-v2 .cal-day.empty { background: transparent; }
.cal-v2 .cal-day.disabled {
  color: #D4D4D8;
  background: transparent;
  text-decoration: none;
  cursor: not-allowed;
}
.cal-v2 .cal-day.available {
  background: var(--brand-purple-50);
  color: var(--ink);
}
.cal-v2 .cal-day.available:hover {
  background: var(--brand-purple-100);
  color: var(--brand-purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(107, 43, 217, 0.25);
}
.cal-v2 .cal-day.today {
  font-weight: 700;
}
.cal-v2 .cal-day.today::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--brand-purple);
  border-radius: 50%;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.cal-v2 .cal-day.selected {
  background: var(--brand-purple);
  color: var(--paper);
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(107, 43, 217, 0.5);
}
.cal-v2 .cal-day.selected:hover {
  background: var(--brand-purple-dark);
  color: var(--paper);
}

/* Time slot grid v2 */
.cal-v2 .timeslot-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.cal-v2 .timeslot-section h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 14px;
}
.cal-v2 .timeslot-grid { gap: 10px; }
.cal-v2 .timeslot {
  padding: 14px;
  border-radius: 10px;
  background: var(--brand-purple-50);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
}
.cal-v2 .timeslot:hover {
  background: var(--brand-purple-100);
  border-color: var(--brand-purple);
  color: var(--brand-purple-dark);
}
.cal-v2 .timeslot.selected {
  background: var(--brand-purple);
  color: var(--paper);
  border-color: var(--brand-purple);
  box-shadow: 0 6px 16px -4px rgba(107, 43, 217, 0.4);
}

.cal-v2 .no-date-msg {
  background: var(--gray-50);
  color: var(--text-muted);
  border: 1px dashed var(--gray-300);
  padding: 18px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.timezone-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-purple-50);
  color: var(--brand-purple-dark);
  font-size: 0.85rem;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.timezone-note svg { flex-shrink: 0; }

/* Final summary card */
.final-summary {
  background: linear-gradient(135deg, var(--brand-purple-50), var(--paper));
  border: 1px solid var(--brand-purple-100);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0;
}
.final-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.final-summary-row:last-child { margin-bottom: 0; }
.final-summary-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-purple-dark);
}

/* Success state */
.success-state {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--paper);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.4);
  animation: popIn 0.5s var(--ease-out);
}
@keyframes popIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.success-state h2 { margin-bottom: 12px; }
.success-state p {
  color: var(--text-secondary);
  max-width: 36ch;
  margin: 0 auto 24px;
}

