/* Soryk — Website styles aligned with PWA design system (monochrome) */

:root {
  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #f4f4f5;
  --hairline: #f1f2f3;
  --border: #e1e3e5;

  /* Text */
  --ink: #111827;
  --ink-muted: rgba(17, 24, 39, 0.6);

  /* Brand — monochrome black on white */
  --brand: #111111;
  --brand-rgb: 17, 17, 17;
  --on-brand: #ffffff;

  /* Topbar */
  --topbar-bg: #1a1a1a;

  /* Rounding — soft squares */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

/* ───── Legacy class overrides (kept solid monochrome) ───── */

.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  background-clip: initial;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.glow-cta {
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}
.glow-cta:hover {
  background: #000000 !important;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}

/* Hero — clean white with subtle radial accent */
.hero-bg {
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(17, 17, 17, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(17, 17, 17, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 17, 17, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 70%);
  pointer-events: none;
}

/* ───── PWA-style components ───── */

.pill-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 0 22px;
  min-height: 52px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 120ms ease, transform 80ms ease, box-shadow 120ms ease;
  text-decoration: none;
}
.pill-btn-primary:hover { background: #000000; transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(0,0,0,0.35); }
.pill-btn-primary:active { transform: scale(0.98); }

.pill-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 0 22px;
  min-height: 52px;
  border: none;
  cursor: pointer;
  transition: background 120ms ease;
  text-decoration: none;
}
.pill-btn-secondary:hover { background: rgba(0, 0, 0, 0.1); }

.soft-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.soft-card:hover {
  border-color: #111111;
  background: rgba(17, 17, 17, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.18);
}

.glass-bar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(48px);
  -webkit-backdrop-filter: saturate(180%) blur(48px);
  border-radius: var(--r-xl);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.16),
    0 3px 12px rgba(0, 0, 0, 0.08);
}

.chip-monochrome {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
}
.chip-monochrome.active {
  background: rgba(17, 17, 17, 0.9);
  color: #ffffff;
  border-color: #111111;
}

/* ───── Feature card (legacy) ───── */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(0, 0, 0, 0.18);
  border-color: #111111;
  background: rgba(17, 17, 17, 0.02);
}

/* ───── Pricing highlighted card ───── */
.pricing-popular {
  border: 2px solid #111111 !important;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.22);
  position: relative;
}
.pricing-popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #111111;
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ───── FAQ accordion ───── */
details[open] summary svg.chevron { transform: rotate(180deg); }
details summary svg.chevron { transition: transform 0.2s; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ───── Mobile menu ───── */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* ───── Mockup screen frame (PWA-style dark gray) ───── */
.mockup-frame {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.4);
}
.mockup-screen {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

/* ───── Animated badge dot ───── */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ───── Comparison check / cross ───── */
.check { color: #10b981; }
.cross { color: #ef4444; }
.partial { color: #f59e0b; }

/* ───── Stats hero ───── */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ───── Section dividers ───── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}

/* ───── Code/keyword pill (monochrome) ───── */
.keyword-pill {
  display: inline-block;
  background: var(--surface-2);
  color: var(--ink);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin: 2px;
}

/* ───── Blog card ───── */
.blog-card {
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.18);
  border-color: #111111;
}

/* ───── Trust bar ───── */
.trust-bar {
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all 0.25s;
}
.trust-bar:hover {
  filter: grayscale(100%);
  opacity: 1;
}

/* ───── Custom scrollbar (monochrome) ───── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb {
  background: #111111;
  border-radius: 10px;
  border: 2px solid var(--surface-2);
}

/* ───── Sticky header (PWA-aligned) ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.brand-logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Force the small header logo (Tailwind w-9 h-9 rounded-lg with inline black bg) into a perfect circle, PWA-style */
header a > div.w-9.h-9 {
  border-radius: 999px !important;
}

/* Make the primary CTAs rendered with `glow-cta` feel pill-shaped (PWA bottom-bar primary) */
a.glow-cta,
button.glow-cta {
  border-radius: 999px !important;
  letter-spacing: 0.01em;
}

/* Site footer (when used) — minimal dark mode */
footer.site-footer-dark {
  background: #0a0a0a;
  color: rgba(255, 255, 255, 0.85);
}
footer.site-footer-dark a { color: rgba(255, 255, 255, 0.85); }
footer.site-footer-dark a:hover { color: #ffffff; }

/* Trust bar grayscale tweak: keep monochrome dark grey */
.trust-bar { color: #475569; }

/* ───── Renovation: layout variation classes ───── */

/* Editorial / magazine spread (sales-rep-app) */
.editorial-spread { padding: 96px 0; }
.editorial-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 900px) {
  .editorial-row { grid-template-columns: 1.05fr 1fr; gap: 88px; }
  .editorial-row.flip { grid-template-columns: 1fr 1.05fr; }
  .editorial-row.flip .editorial-text { order: 2; }
}
.editorial-text .eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #111;
  margin-bottom: 18px;
  display: inline-block;
  border-bottom: 2px solid #111;
  padding-bottom: 6px;
}
.editorial-text h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 22px;
}
.editorial-text p.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 18px;
}
.editorial-text .pullquote {
  border-left: 3px solid #111;
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #111;
}
.editorial-illustration {
  width: 100%;
  background: #f4f4f5;
  border-radius: 18px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.editorial-illustration svg { width: 100%; max-width: 460px; height: auto; display: block; }

/* Big drop cap for narrative pages */
.drop-cap::first-letter {
  float: left;
  font-size: 4.5rem;
  line-height: 0.9;
  font-weight: 800;
  padding: 6px 12px 0 0;
  color: #111;
  letter-spacing: -0.04em;
}

/* Timeline / story (buyer-portal) */
.story-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 96px;
  padding: 0 24px;
  position: relative;
}
@media (min-width: 900px) {
  .story-step { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .story-step.flip { grid-template-columns: 1.1fr 0.9fr; }
  .story-step.flip .story-text { order: 2; }
}
.story-num {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: #111;
  display: block;
  margin-bottom: 12px;
}
.story-num small {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.2em;
}
.story-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.story-text p { color: #374151; line-height: 1.65; }
.story-illustration {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.story-illustration svg { width: 100%; max-width: 420px; height: auto; }

/* Vertical line connecting story steps */
.story-spine {
  position: relative;
}
.story-spine::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 60px;
  bottom: 60px;
  width: 1px;
  background: linear-gradient(180deg, transparent, #e1e3e5 10%, #e1e3e5 90%, transparent);
  transform: translateX(-0.5px);
  display: none;
}
@media (min-width: 900px) { .story-spine::before { display: block; } }

/* Data-dense compare layout (vs-* pages) */
.data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .data-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .data-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.data-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.data-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}
.data-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.data-bar {
  height: 8px;
  border-radius: 999px;
  background: #f4f4f5;
  overflow: hidden;
  margin-top: 6px;
}
.data-bar > span {
  display: block;
  height: 100%;
  background: #111;
  border-radius: 999px;
}
.data-bar.muted > span { background: #c7c9cc; }

/* Process flow (services) */
.process-flow {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .process-flow { grid-template-columns: repeat(5, 1fr); } }
.process-node {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  position: relative;
}
.process-node .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
@media (min-width: 900px) {
  .process-node:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -14px;
    top: 28px;
    font-size: 22px;
    color: #c7c9cc;
    z-index: 2;
  }
}

/* Case study card */
.case-study {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 28px;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .case-study { grid-template-columns: 1fr 1fr; padding: 56px; gap: 56px; align-items: center; }
}
.case-study .cs-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #111;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-study h3 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.case-study p { color: #374151; line-height: 1.65; margin-bottom: 12px; }
.case-study .metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0;
}
@media (min-width: 600px) { .case-study .metrics { grid-template-columns: repeat(4, 1fr); } }
.case-study .metric {
  background: #f4f4f5;
  border-radius: 12px;
  padding: 14px 12px;
}
.case-study .metric .v {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}
.case-study .metric .k {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 4px;
  display: block;
}
.case-study blockquote.cs-quote {
  border-left: 3px solid #111;
  padding-left: 18px;
  font-style: italic;
  color: #111;
  margin-top: 16px;
  font-size: 1.05rem;
}
.case-study .cs-illustration {
  background: #f4f4f5;
  border-radius: 14px;
  padding: 28px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-study .cs-illustration svg { width: 100%; max-width: 440px; height: auto; }

/* Industry rich card */
.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.industry-card:hover {
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.18);
}
.industry-card .ic-illu {
  background: #f4f4f5;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.industry-card .ic-illu svg { width: 100%; max-width: 320px; height: auto; }
.industry-card .ic-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.industry-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.industry-card .ic-metrics {
  display: flex;
  gap: 18px;
  margin: 14px 0;
  border-top: 1px solid #f1f2f3;
  border-bottom: 1px solid #f1f2f3;
  padding: 12px 0;
}
.industry-card .ic-metrics .m { flex: 1; }
.industry-card .ic-metrics .v {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
  display: block;
}
.industry-card .ic-metrics .k {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}
.industry-card .ic-quote {
  font-size: 13px;
  color: #374151;
  font-style: italic;
  line-height: 1.5;
  margin-top: auto;
}
.industry-card .ic-quote cite {
  font-style: normal;
  color: #6b7280;
  font-size: 11px;
  display: block;
  margin-top: 6px;
  font-weight: 600;
}

/* Wide illustration container */
.illustration-wide {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.illustration-wide svg { width: 100%; max-width: 900px; height: auto; }

/* Migration arrow svg accent */
.svg-emerald { stroke: #10b981; }
.svg-emerald-fill { fill: #10b981; }

/* Historical timeline (handshake) */
.history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.history-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e1e3e5;
}
.history-item {
  position: relative;
  padding: 0 0 56px 80px;
}
.history-item:last-child { padding-bottom: 0; }
.history-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px #e1e3e5;
}
.history-item h3 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.history-item p {
  color: #374151;
  line-height: 1.65;
  font-size: 1rem;
}
.history-item .epoch-quote {
  border-left: 3px solid #d4d4d8;
  padding-left: 16px;
  font-style: italic;
  color: #6b7280;
  margin-top: 14px;
  font-size: 0.95rem;
}

/* Asymmetric hero variation */
.hero-asym h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 800;
}


/* ═══════════════════════════════════════════════════════════════
   PWA COLOR ALIGNMENT — Override Tailwind slate (cooler/bluer)
   to match PWA tokens (warmer/neutral greys)
   ═══════════════════════════════════════════════════════════════ */

/* Text — slate scale → PWA ink scale */
.text-slate-900 { color: #111827 !important; }
.text-slate-800 { color: #1f2937 !important; }
.text-slate-700 { color: #374151 !important; }
.text-slate-600 { color: rgba(17, 24, 39, 0.7) !important; }
.text-slate-500 { color: rgba(17, 24, 39, 0.6) !important; }
.text-slate-400 { color: rgba(17, 24, 39, 0.45) !important; }
.text-slate-300 { color: rgba(17, 24, 39, 0.3) !important; }
.text-slate-200 { color: rgba(17, 24, 39, 0.18) !important; }

/* Backgrounds — slate scale → PWA surface scale */
.bg-slate-50 { background-color: #f4f4f5 !important; }   /* surface-2 */
.bg-slate-100 { background-color: #f1f2f3 !important; }  /* hairline */
.bg-slate-200 { background-color: #e1e3e5 !important; }  /* border */
.bg-slate-300 { background-color: #d4d4d8 !important; }
.bg-slate-700 { background-color: #2a2a2a !important; }
.bg-slate-800 { background-color: #1a1a1a !important; }  /* topbar-bg */
.bg-slate-900 { background-color: #111111 !important; }  /* brand */

/* Borders — slate scale → PWA border scale */
.border-slate-100 { border-color: #f1f2f3 !important; }  /* hairline */
.border-slate-200 { border-color: #e1e3e5 !important; }  /* border */
.border-slate-300 { border-color: #d4d4d8 !important; }
.border-slate-700 { border-color: #2a2a2a !important; }
.border-slate-800 { border-color: #1a1a1a !important; }
.border-slate-900 { border-color: #111111 !important; }

/* Hover variants */
.hover\:bg-slate-50:hover { background-color: #f4f4f5 !important; }
.hover\:bg-slate-100:hover { background-color: #f1f2f3 !important; }
.hover\:border-slate-900:hover { border-color: #111111 !important; }
.hover\:text-slate-900:hover { color: #111827 !important; }

/* Neutral fixes — typo + missing levels */
.bg-neutral-1000 { background-color: #0a0a0a !important; }  /* invalid Tailwind, fix to almost-black */

/* ═══════════════════════════════════════════════════════════════
   PWA BORDER-RADIUS scale alignment
   Tailwind defaults vs PWA tokens (--r-sm:6, --r-md:10, --r-lg:14, --r-xl:18)
   ═══════════════════════════════════════════════════════════════ */
.rounded { border-radius: 6px !important; }
.rounded-md { border-radius: 6px !important; }
.rounded-lg { border-radius: 10px !important; }
.rounded-xl { border-radius: 14px !important; }
.rounded-2xl { border-radius: 18px !important; }
.rounded-3xl { border-radius: 22px !important; }
/* rounded-full stays 999px (pills) — DO NOT override */
/* rounded-sm stays 2px / rounded-none stays 0 */

/* ═══════════════════════════════════════════════════════════════
   Soften vivid accent colors (mockup window dots, etc) to monochrome
   ═══════════════════════════════════════════════════════════════ */
.bg-yellow-400,
.bg-green-400,
.bg-red-400 {
  background-color: rgba(17, 24, 39, 0.18) !important;
}

/* Keep semantic emerald only for true success indicators (live dot, checkmark) */
.text-emerald-400 { color: #10b981 !important; }
.text-emerald-500 { color: #10b981 !important; }
.text-emerald-600 { color: #059669 !important; }
.bg-emerald-50 { background-color: #ecfdf5 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }
.bg-emerald-500 { background-color: #10b981 !important; }


/* ═══════════════════════════════════════════════════════════════
   PREMIUM ANIMATION LAYER — vanilla, monochrome, reduced-motion safe
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-magnetic: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast:   240ms;
  --duration-medium: 480ms;
  --duration-slow:   800ms;
}

/* Native scroll-behavior is overridden by Lenis when active; keep fallback */
html { scroll-behavior: smooth; }

/* ──────────────── KEYFRAMES ──────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes maskReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes textShine {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -8px, 0); }
}
@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.3333%, 0, 0); }
}

/* ──────────────── BASE REVEAL CLASSES ──────────────── */
.animate-on-scroll,
[data-animate] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}
.animate-on-scroll.in-view,
[data-animate].in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-animate="fade-in"] { transform: none; }

[data-animate="reveal-text"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--duration-slow) var(--ease-out);
  will-change: clip-path;
}
[data-animate="reveal-text"].in-view { clip-path: inset(0 0 0 0); }

[data-animate="mask-reveal"] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease-out);
  will-change: clip-path;
}
[data-animate="mask-reveal"].in-view { clip-path: inset(0 0 0 0); }

[data-animate="count-up"] { opacity: 0; transform: none; transition: opacity var(--duration-medium) var(--ease-out); }
[data-animate="count-up"].in-view { opacity: 1; }

/* ──────────────── STAGGER ──────────────── */
.stagger-children > * {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity var(--duration-medium) var(--ease-out),
    transform var(--duration-medium) var(--ease-out);
  transition-delay: calc(var(--stagger-i, 0) * 70ms);
  will-change: opacity, transform;
}
.stagger-children.in-view > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ──────────────── CUSTOM CURSOR ──────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: #111111;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  transition: opacity 200ms ease, background 200ms ease;
  will-change: transform;
  display: none;
}
body.has-cursor .cursor-dot { display: block; }
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [role="button"],
body.has-cursor summary,
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select { cursor: none; }

/* Disable on touch / no-hover */
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none !important; }
  body.has-cursor,
  body.has-cursor * { cursor: auto !important; }
}

/* ──────────────── MAGNETIC ──────────────── */
[data-magnetic] {
  display: inline-flex;
  transition: transform 350ms var(--ease-magnetic);
  will-change: transform;
}

/* ──────────────── MARQUEE ──────────────── */
.marquee-strip {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
  animation: marqueeScroll 38s linear infinite;
  will-change: transform;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * { flex-shrink: 0; }

/* ──────────────── SECTION INVERT (cinematic dark) ──────────────── */
.section-dark {
  background: #0e0e0e !important;
  color: #ffffff;
  transition: background 600ms var(--ease-in-out), color 600ms var(--ease-in-out);
}
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark span:not(.live-dot),
.section-dark a,
.section-dark li {
  color: inherit;
}
.section-dark .text-slate-900,
.section-dark .text-slate-700,
.section-dark .text-slate-600,
.section-dark .text-slate-500 { color: rgba(255,255,255,0.86) !important; }
.section-dark .text-slate-400 { color: rgba(255,255,255,0.6) !important; }
.section-dark .feature-card,
.section-dark .soft-card,
.section-dark .data-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-dark .feature-card h3,
.section-dark .soft-card h3,
.section-dark .data-card h3 { color: #ffffff; }
.section-dark .pill-btn-primary,
.section-dark .glow-cta {
  background: #ffffff !important;
  color: #111111 !important;
}

/* ──────────────── HOVER MICRO-INTERACTIONS ──────────────── */

/* Card 3D tilt is set inline by JS; provide GPU hint + smooth recovery */
.feature-card,
.soft-card,
.blog-card,
.industry-card,
.data-card {
  transition: transform 320ms var(--ease-out),
              border-color 240ms var(--ease-out),
              box-shadow 320ms var(--ease-out),
              background 240ms var(--ease-out);
  transform-style: preserve-3d;
}

/* CTA scale + shadow morph */
.glow-cta,
.pill-btn-primary {
  transition: transform 280ms var(--ease-out),
              background 200ms var(--ease-out),
              box-shadow 280ms var(--ease-out) !important;
}
.glow-cta:hover,
.pill-btn-primary:hover {
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.35) !important;
}

/* Nav links: underline grow from left */
header nav a {
  position: relative;
  padding-bottom: 3px;
}
header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-out);
}
header nav a:hover::after { transform: scaleX(1); }

/* ──────────────── PAGE LOAD ENTRANCE ──────────────── */
/* Disabled — was causing blank header / hidden logo issues.
   Animations.js still adds .loaded for any future use, but
   no CSS now hides content based on it. */
header,
.hero-bg > .max-w-7xl,
section.hero-bg > div:first-child {
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}

/* ──────────────── LENIS SMOOTH SCROLL CSS REQUIREMENTS ──────────────── */
/* Required by Lenis to function correctly without breaking native scroll. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ──────────────── HERO TYPOGRAPHY UPGRADE ──────────────── */
/* Class hook that pages opt into */
.hero-display {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 900;
  text-wrap: balance;
}
@media (min-width: 1280px) {
  .hero-display { font-size: clamp(3rem, 5.5vw, 5.5rem); }
}

/* Gentle "shine" sweep for hero accent words */
.text-shine {
  background: linear-gradient(90deg, #111 0%, #555 45%, #111 55%, #111 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 6s linear infinite;
}

/* ──────────────── REDUCED MOTION ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none !important; }
  .animate-on-scroll,
  [data-animate],
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .cursor-dot { display: none !important; }
  body.has-cursor, body.has-cursor * { cursor: auto !important; }
}



/* ═══════════════════════════════════════════════════════════════
   FEATURES V2 — dynamic grid with monochrome SVG icons
   ═══════════════════════════════════════════════════════════════ */

.features-v2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #e1e3e5;
  border-left: 1px solid #e1e3e5;
}
@media (min-width: 640px) { .features-v2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features-v2-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .features-v2-grid { grid-template-columns: repeat(6, 1fr); } }

.features-v2-card {
  position: relative;
  padding: 28px 22px 32px;
  background: #ffffff;
  border-right: 1px solid #e1e3e5;
  border-bottom: 1px solid #e1e3e5;
  transition: background 280ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms ease;
  cursor: default;
}
.features-v2-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: #111111;
  transition: height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.features-v2-card:hover {
  background: #fafafa;
}
.features-v2-card:hover::before {
  height: 3px;
}

.features-v2-icon {
  width: 26px;
  height: 26px;
  color: #111111;
  margin-bottom: 18px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.features-v2-card:hover .features-v2-icon {
  transform: translateY(-2px) scale(1.05);
}

.features-v2-title {
  font-size: 14px;
  font-weight: 800;
  color: #111111;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.features-v2-desc {
  font-size: 12.5px;
  color: rgba(17, 24, 39, 0.65);
  line-height: 1.5;
}

/* Underline animato che cresce sinistra→destra al hover */
.features-v2-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #111111;
  transition: width 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.features-v2-card:hover .features-v2-line {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE — reverse direction variant
   ═══════════════════════════════════════════════════════════════ */
@keyframes marqueeScrollReverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.marquee-reverse {
  animation-name: marqueeScrollReverse;
}

/* Marquee strip safety: overflow hidden e infinite scroll */
.marquee-strip {
  overflow: hidden;
  position: relative;
}
.marquee-track {
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
.marquee-strip:hover .marquee-track,
.marquee-strip:hover .marquee-reverse {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .marquee-reverse {
    animation: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE FLOATING PILL HEADER (< 1024px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  /* Header floating si sovrappone alle sezioni — no padding-top sul body
     così la prima sezione estende il suo bg fin sotto l'header */
  body {
    padding-top: 0;
    overflow-x: hidden;
  }
  html {
    overflow-x: hidden;
  }

  /* Header floating con bordi arrotondati (non pill) */
  header#header {
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 60;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 18px !important;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 0 0 0.5px rgba(0, 0, 0, 0.06),
      0 10px 32px -10px rgba(0, 0, 0, 0.16);
    transition: top 240ms ease;
  }

  /* Inner container padding sistemato */
  header#header > div {
    max-width: 100%;
    padding-left: 16px !important;
    padding-right: 8px !important;
  }
  header#header > div > div {
    height: 54px !important;
  }

  /* Logo mobile — visibilmente più grande */
  header#header img[alt="Soryk"] {
    height: 2.1em !important;
  }

  /* Hamburger button → solo icona nera, no sfondo */
  header#header #menu-toggle {
    background: transparent !important;
    color: #111111 !important;
    border: none;
    border-radius: 8px;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 120ms ease, transform 120ms ease;
  }
  header#header #menu-toggle:hover {
    opacity: 0.6;
  }
  header#header #menu-toggle:active {
    transform: scale(0.92);
  }
  header#header #menu-toggle svg {
    width: 26px;
    height: 26px;
    color: #111111 !important;
    stroke: #111111 !important;
  }
  
  /* Nascondi CTA "Start Free Trial" sul header mobile (già nel menu modal) */
  header#header a.glow-cta {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE POPUP MENU (modal-style box)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  /* Default: hidden */
  .mobile-menu {
    display: none !important;
  }
  
  /* Quando aperto: full-screen overlay con backdrop blur */
  .mobile-menu.open {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(15, 15, 15, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 !important;
    margin: 0 !important;
    overflow-y: auto;
    animation: mmFadeIn 200ms ease both;
  }
  
  /* Wrapper bianco centrato (white box popup) */
  .mobile-menu.open::before {
    content: '';
    display: block;
    height: 80px;
  }
  
  /* I link diretti diventano un white box pillole */
  .mobile-menu.open > a,
  .mobile-menu.open > .relative {
    display: block;
    background: transparent;
    color: #111111;
    font-size: 17px;
    font-weight: 600;
    padding: 0;
    margin: 0;
  }
  
  /* Wrapper dei link diventa il box bianco — usiamo first <a> come anchor visivo */
  .mobile-menu.open {
    /* L'overlay ha padding, ma il vero "box" lo creiamo con un wrapper trick */
  }
  
  /* Inner container creato via CSS — wrappa tutti i child link */
  .mobile-menu.open {
    position: fixed;
  }
  
  /* Reset per il menu container interno */
  .mobile-menu-inner {
    max-width: 420px;
    margin: 80px auto 16px;
    background: #ffffff;
    border-radius: 22px;
    padding: 16px;
    box-shadow:
      0 30px 80px -20px rgba(0, 0, 0, 0.4),
      0 8px 24px -8px rgba(0, 0, 0, 0.12);
    animation: mmScaleIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
    position: relative;
  }
  
  .mobile-menu-inner > a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 14px;
    color: #111111;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background 120ms ease;
    margin-bottom: 2px;
  }
  .mobile-menu-inner > a:hover,
  .mobile-menu-inner > a:active {
    background: #f4f4f5;
  }
  
  /* CTA primaria nel modal (Start Free Trial) */
  .mobile-menu-inner > a.menu-cta {
    background: #111111;
    color: #ffffff;
    justify-content: center;
    margin-top: 12px;
    font-weight: 700;
    padding: 16px 18px;
  }
  .mobile-menu-inner > a.menu-cta:hover {
    background: #000000;
  }
  
  /* Close button */
  .mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #f4f4f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 120ms ease;
  }
  .mobile-menu-close:hover {
    background: #e1e3e5;
  }
  .mobile-menu-close svg {
    width: 18px;
    height: 18px;
    stroke: #111111;
  }
  
  /* Section heading nel menu */
  .mobile-menu-inner .menu-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(17, 17, 17, 0.5);
    padding: 16px 18px 6px;
    margin-top: 8px;
  }
  .mobile-menu-inner .menu-section:first-child {
    margin-top: 0;
  }
  
  /* Lock body scroll quando menu aperto */
  body.menu-open {
    overflow: hidden;
  }
}

/* Animations */
@keyframes mmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mmScaleIn {
  from { transform: translateY(-12px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu.open,
  .mobile-menu-inner {
    animation: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION — compress, carouselize, reduce text density
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  /* Sezioni più compatte su mobile */
  .py-24 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  .py-20 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .py-16 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .py-12 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  .mb-20 { margin-bottom: 2.5rem !important; }
  .mb-16 { margin-bottom: 2rem !important; }
  .mb-12 { margin-bottom: 1.5rem !important; }
  .mb-10 { margin-bottom: 1.25rem !important; }
  .mt-20 { margin-top: 2.5rem !important; }
  .mt-16 { margin-top: 2rem !important; }
  .mt-12 { margin-top: 1.5rem !important; }
  .mt-10 { margin-top: 1.25rem !important; }
  .gap-8 { gap: 1rem !important; }
  .gap-6 { gap: 0.75rem !important; }
  .gap-4 { gap: 0.5rem !important; }

  /* Hero typography ridotta su mobile */
  .hero-display {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
  }
  h1 {
    font-size: clamp(1.6rem, 7vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }
  h2 {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
  }
  h3 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }
  .text-xl { font-size: 1rem !important; }
  .text-lg { font-size: 0.95rem !important; }
  
  /* Marquee meno alto su mobile */
  .marquee-strip {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  .marquee-track {
    font-size: 1.5rem !important;
    gap: 24px !important;
  }
  
  /* Hide elementi ripetitivi/decorativi su mobile */
  .mobile-hide,
  .lg-only {
    display: none !important;
  }

  /* ═══ CAROSELLI ORIZZONTALI ═══ */
  /* Trasforma le griglie principali in caroselli con scroll-snap */
  
  /* Features 18 grid → horizontal carousel */
  .features-v2-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    border: none !important;
    grid-template-columns: none !important;
    gap: 12px;
  }
  .features-v2-grid::-webkit-scrollbar { display: none; }
  .features-v2-grid > .features-v2-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border: 1px solid #e1e3e5 !important;
    border-radius: 14px !important;
    padding: 18px !important;
  }
  .features-v2-card::before {
    border-radius: 14px 14px 0 0;
  }

  /* Pricing tier grid → horizontal carousel */
  section .grid.lg\:grid-cols-5,
  section .grid.md\:grid-cols-5,
  section .grid.lg\:grid-cols-4 {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    grid-template-columns: none !important;
    gap: 12px !important;
  }
  section .grid.lg\:grid-cols-5::-webkit-scrollbar,
  section .grid.md\:grid-cols-5::-webkit-scrollbar,
  section .grid.lg\:grid-cols-4::-webkit-scrollbar { display: none; }
  section .grid.lg\:grid-cols-5 > *,
  section .grid.md\:grid-cols-5 > *,
  section .grid.lg\:grid-cols-4 > * {
    flex: 0 0 280px !important;
    scroll-snap-align: start;
    width: auto !important;
  }

  /* Industries grid → horizontal carousel */
  .industry-card,
  section .grid.md\:grid-cols-3:not(.features-v2-grid):not(.story-spine) {
    /* leave grid behavior on small content */
  }
  
  /* 3-col grids dei case study / use cases → horizontal scroll */
  section .grid.lg\:grid-cols-3,
  section .grid.md\:grid-cols-3 {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 12px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    grid-template-columns: none !important;
    gap: 12px !important;
  }
  section .grid.lg\:grid-cols-3::-webkit-scrollbar,
  section .grid.md\:grid-cols-3::-webkit-scrollbar { display: none; }
  section .grid.lg\:grid-cols-3 > *,
  section .grid.md\:grid-cols-3 > * {
    flex: 0 0 280px !important;
    scroll-snap-align: start;
    width: auto !important;
  }

  /* Testimonials grid → horizontal carousel */
  section .grid.md\:grid-cols-2 {
    /* 2-col stays single col on mobile, no carousel needed */
  }
  
  /* Visual indicator for scrollable sections */
  .features-v2-grid::after,
  section .grid.lg\:grid-cols-5::after {
    content: '';
    flex: 0 0 8px;
  }

  /* ═══ TEXT/IMAGE COMPRESSION ═══ */
  /* Reduce padding inside cards on mobile */
  .feature-card,
  .soft-card,
  .blog-card {
    padding: 14px !important;
  }
  
  /* Mockup frames più piccoli */
  .mockup-frame {
    transform: scale(0.85);
    transform-origin: top center;
  }
  
  /* Footer compact */
  footer {
    padding-top: 2.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  footer .grid {
    gap: 1.5rem !important;
  }
  
  /* Reduce comparison tables on mobile */
  table {
    font-size: 0.8rem !important;
  }
  table th, table td {
    padding: 8px 10px !important;
  }
  
  /* Hide some decorative SVG illustrations to save space */
  .illustration-wide {
    display: none !important;
  }
  
  /* Editorial spreads → simpler stack on mobile */
  .editorial-spread {
    padding: 32px 0 !important;
  }
  .editorial-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 16px !important;
  }
  .editorial-text {
    order: 1 !important;
  }
  .editorial-illustration {
    order: 2 !important;
    transform: scale(0.85);
  }
  
  /* Story spread */
  .story-step {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Container padding più stretto */
  .max-w-7xl {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ═══ Hint visivo per le sezioni con scroll orizzontale ═══ */
@media (max-width: 1023px) {
  .features-v2-grid,
  section .grid.lg\:grid-cols-5,
  section .grid.md\:grid-cols-3 {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
  /* Optional: aggiungere "swipe" hint */
  .features-v2-grid::before {
    content: '← swipe →';
    position: absolute;
    top: -28px;
    right: 16px;
    font-size: 11px;
    color: rgba(17,17,17,0.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   FIX: Hero section needs enough top padding to clear floating header
   Header floats at top:12 + height:54 = ~66px viewport
   First section needs MIN 80px top padding to avoid content overlap
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  /* Override the .py-20 reduction for HERO sections specifically */
  body > section.hero-bg,
  body > section:first-of-type {
    padding-top: 86px !important;
  }
  /* Same for sections with hero-display H1 */
  body > section:has(.hero-display) {
    padding-top: 86px !important;
  }
  /* Specific override: the NEW "B2B for All" banner section right after hero */
  body > section.hero-bg + section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU v2 — boxed con margini laterali + dropdown a livelli
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  /* Reset del precedente: rimuovi spacer ::before */
  .mobile-menu.open::before {
    display: none !important;
  }
  
  /* Menu modal: da 80px → da 76px (subito sotto header) */
  .mobile-menu.open {
    padding: 76px 12px 16px !important;
  }
  
  /* Inner box: full width entro padding del modal, no margin */
  .mobile-menu-inner {
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    border-radius: 18px !important;
    padding: 12px !important;
  }
  
  /* Link diretti (lvl 1) */
  .mobile-menu-inner > a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    color: #111111;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: background 120ms ease;
  }
  .mobile-menu-inner > a:active,
  .mobile-menu-inner > a:hover {
    background: #f4f4f5;
  }
  
  /* Group dropdown (Compare, Resources) */
  .mm-group {
    border-radius: 12px;
    overflow: hidden;
  }
  .mm-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    color: #111111;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    border-radius: 12px;
    transition: background 120ms ease;
  }
  .mm-group summary::-webkit-details-marker { display: none; }
  .mm-group summary:active,
  .mm-group summary:hover {
    background: #f4f4f5;
  }
  
  /* Chevron rotation */
  .mm-chevron {
    width: 16px;
    height: 16px;
    color: rgba(17, 17, 17, 0.5);
    transition: transform 200ms ease;
  }
  .mm-group[open] .mm-chevron {
    transform: rotate(90deg);
  }
  
  /* Submenu (livello 2) */
  .mm-submenu {
    padding: 4px 0 8px 16px;
    border-left: 2px solid #f1f2f3;
    margin-left: 16px;
    margin-bottom: 4px;
  }
  .mm-submenu a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(17, 17, 17, 0.75);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
  }
  .mm-submenu a:active,
  .mm-submenu a:hover {
    background: #f4f4f5;
    color: #111111;
  }
  
  /* CTA primaria */
  .mobile-menu-inner > a.menu-cta {
    background: #111111;
    color: #ffffff;
    justify-content: center;
    margin-top: 10px;
    font-weight: 700;
    padding: 16px 18px;
    border-radius: 14px;
  }
  .mobile-menu-inner > a.menu-cta:active,
  .mobile-menu-inner > a.menu-cta:hover {
    background: #000000;
  }
  
  /* Hide la vecchia menu-section (non più usata) */
  .mobile-menu-inner .menu-section {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PHONE MOCKUPS HERO — real screenshots, all same height
   ═══════════════════════════════════════════════════════════════ */

.phones-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 16px;
  align-items: end;
}
@media (min-width: 768px) {
  .phones-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.phone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Phone frame: device bezel + dynamic island */
.phone-frame {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 19.5;
  background: #1a1a1a;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 30px 80px -25px rgba(0, 0, 0, 0.45),
    0 12px 24px -10px rgba(0, 0, 0, 0.18);
  position: relative;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dynamic island simulato */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0a0a0a;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-caption {
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

/* Center phone slightly elevated and rotated 0 */
.phone-mockup-center .phone-frame {
  transform: translateY(-12px) scale(1.04);
  z-index: 5;
}
@media (min-width: 768px) {
  .phone-mockup:nth-child(1) .phone-frame {
    transform: rotate(-3deg) translateY(8px);
  }
  .phone-mockup:nth-child(3) .phone-frame {
    transform: rotate(3deg) translateY(8px);
  }
  .phone-mockup-center .phone-frame {
    transform: translateY(-16px) scale(1.06);
  }
  .phone-mockup .phone-frame:hover {
    transform: rotate(0) translateY(-4px) scale(1.02);
  }
}

/* Mobile: phones più piccoli, no rotation */
@media (max-width: 767px) {
  .phones-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px 16px;
    margin-top: 32px;
  }
  .phones-row::-webkit-scrollbar { display: none; }
  .phone-mockup {
    flex: 0 0 calc(60vw - 8px);
    max-width: 240px;
    scroll-snap-align: center;
  }
  .phone-mockup-center .phone-frame {
    transform: none;
  }
  .phone-frame {
    border-radius: 32px;
    padding: 6px;
  }
  .phone-screen {
    border-radius: 26px;
  }
  .phone-frame::before {
    width: 56px;
    height: 14px;
    top: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM v2 — strict typography scale, spacing tokens,
   normalized components, premium animations.
   This block intentionally lives at the END so it overrides the legacy
   declarations above without requiring deletions.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Typography scale (fluid, balanced) ─────────────────────────── */
  --fs-display:  clamp(2.5rem, 5.2vw, 4.75rem);   /* hero h1 */
  --fs-h1:       clamp(2rem, 3.6vw, 3.25rem);     /* section h2 (page sections) */
  --fs-h2:       clamp(1.625rem, 2.6vw, 2.25rem); /* sub-section h2/h3 */
  --fs-h3:       clamp(1.25rem, 1.6vw, 1.5rem);   /* card heading */
  --fs-h4:       1.125rem;                        /* small heading */
  --fs-body-lg:  1.125rem;                        /* lead */
  --fs-body:     1rem;                            /* base */
  --fs-body-sm:  0.9375rem;                       /* secondary text */
  --fs-caption:  0.8125rem;                       /* helper text */
  --fs-eyebrow:  0.75rem;                         /* uppercase label */

  /* ── Line heights ────────────────────────────────────────────────── */
  --lh-display:  1.04;
  --lh-heading:  1.15;
  --lh-snug:     1.35;
  --lh-body:     1.65;

  /* ── Letter spacing ──────────────────────────────────────────────── */
  --ls-display:  -0.03em;
  --ls-heading:  -0.022em;
  --ls-tight:    -0.01em;
  --ls-base:     0;
  --ls-eyebrow:  0.16em;

  /* ── Font weights ────────────────────────────────────────────────── */
  --fw-black:    900;
  --fw-extra:    800;
  --fw-bold:     700;
  --fw-semi:     600;
  --fw-medium:   500;
  --fw-regular:  400;

  /* ── Spacing scale (4px base) ────────────────────────────────────── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* ── Section vertical rhythm ─────────────────────────────────────── */
  --section-py-sm: clamp(56px, 6vw, 80px);
  --section-py-md: clamp(72px, 8vw, 112px);
  --section-py-lg: clamp(96px, 10vw, 144px);

  /* ── Card padding scale ──────────────────────────────────────────── */
  --card-p-sm: 24px;
  --card-p-md: 32px;
  --card-p-lg: 40px;

  /* ── Premium shadows (monochrome, layered) ───────────────────────── */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:  0 2px 6px -2px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 8px 24px -8px rgba(0,0,0,0.10), 0 2px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg:  0 22px 48px -16px rgba(0,0,0,0.18), 0 6px 14px -6px rgba(0,0,0,0.08);
  --shadow-xl:  0 36px 80px -28px rgba(0,0,0,0.28), 0 12px 24px -12px rgba(0,0,0,0.10);
  --shadow-glow: 0 0 0 1px rgba(17,17,17,0.04), 0 24px 60px -20px rgba(17,17,17,0.18);
}

/* ── Base element typography (gives every page consistent hierarchy) ─ */
h1, .h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-extra);
  text-wrap: balance;
}
h2, .h2 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-extra);
  text-wrap: balance;
}
h3, .h3 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-extra);
  text-wrap: balance;
}
h4, .h4 {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-extra);
}
h5, .h5 {
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
}
h6, .h6 {
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
}
.lead, .text-lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: rgba(17,24,39,0.72);
}
.eyebrow, .text-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(17,24,39,0.6);
  display: inline-block;
}

/* ── Tailwind heading classes → align with scale (override) ───────── */
.text-3xl  { font-size: var(--fs-h2) !important; line-height: var(--lh-heading) !important; }
.text-4xl  { font-size: var(--fs-h1) !important; line-height: var(--lh-heading) !important; }
.text-5xl  { font-size: clamp(2.25rem, 4vw, 3.5rem) !important; line-height: var(--lh-heading) !important; }
.sm\:text-4xl  { font-size: var(--fs-h1) !important; line-height: var(--lh-heading) !important; }
.lg\:text-5xl  { font-size: clamp(2.5rem, 4.4vw, 3.75rem) !important; line-height: var(--lh-heading) !important; }
.md\:text-2xl  { font-size: var(--fs-h3) !important; }

/* Lead paragraph helpers */
.text-lg   { font-size: var(--fs-body-lg) !important; line-height: var(--lh-body) !important; }
.sm\:text-xl { font-size: var(--fs-body-lg) !important; line-height: var(--lh-body) !important; }

/* ── Hero display — promote weight + tighten tracking ────────────── */
.hero-display {
  font-size: var(--fs-display) !important;
  line-height: var(--lh-display) !important;
  letter-spacing: var(--ls-display) !important;
  font-weight: var(--fw-black) !important;
  text-wrap: balance;
}
@media (min-width: 1280px) {
  .hero-display { font-size: clamp(3.25rem, 5.4vw, 5.5rem) !important; }
}
.hero-asym h1 {
  font-size: var(--fs-display) !important;
  line-height: var(--lh-display) !important;
  letter-spacing: var(--ls-display) !important;
  font-weight: var(--fw-black);
}

/* ── Editorial / story / case study / industry / history headings ──
   Re-spec all to use the unified scale. */
.editorial-text h2 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-extra);
  margin-bottom: var(--space-6);
}
.editorial-text .eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: var(--space-5);
}
.editorial-text p.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: rgba(17,24,39,0.72);
  margin-bottom: var(--space-5);
}
.editorial-text .pullquote {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin: var(--space-8) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
}

.story-text h3 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin-bottom: var(--space-4);
}
.story-text p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.story-num {
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.case-study {
  padding: var(--card-p-md);
  gap: var(--space-8);
}
@media (min-width: 900px) {
  .case-study { padding: var(--space-14); gap: var(--space-14); }
}
.case-study h3 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin-bottom: var(--space-5);
}
.case-study p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  margin-bottom: var(--space-3);
}
.case-study .metrics { gap: var(--space-4); margin: var(--space-6) 0; }
.case-study .metric { padding: var(--space-4); border-radius: var(--r-md); }
.case-study .metric .v {
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-tight);
}
.case-study .metric .k {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
}
.case-study .cs-illustration {
  padding: var(--card-p-md);
  border-radius: var(--r-lg);
}
.case-study blockquote.cs-quote {
  font-size: var(--fs-body-lg);
  padding-left: var(--space-5);
  margin-top: var(--space-5);
  line-height: var(--lh-snug);
}

.industry-card .ic-illu { padding: var(--card-p-sm); min-height: 220px; }
.industry-card .ic-body { padding: var(--card-p-sm); gap: var(--space-3); }
.industry-card h3 {
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-2);
}
.industry-card .ic-metrics {
  gap: var(--space-5);
  margin: var(--space-4) 0;
  padding: var(--space-4) 0;
}
.industry-card .ic-metrics .v {
  font-size: var(--fs-h4);
  letter-spacing: var(--ls-tight);
}
.industry-card .ic-metrics .k {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.06em;
}
.industry-card .ic-quote {
  font-size: var(--fs-caption);
  line-height: var(--lh-snug);
  margin-top: var(--space-4);
}

.history-item { padding: 0 0 var(--space-14) var(--space-20); }
.history-item h3 {
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-2);
}
.history-item p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.history-item .epoch-quote {
  font-size: var(--fs-caption);
  margin-top: var(--space-4);
  padding-left: var(--space-4);
}

.data-card { padding: var(--card-p-sm); border-radius: var(--r-lg); }
.data-card .label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}
.data-card h4 {
  font-size: var(--fs-h4);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--space-2);
}

.process-node { padding: var(--space-6); border-radius: var(--r-lg); }

.stat-number {
  font-size: clamp(2rem, 3.4vw, 2.875rem);
  font-weight: var(--fw-extra);
  letter-spacing: var(--ls-heading);
  line-height: 1.05;
}

/* ── Card padding upgrades — fix "troppo compatti" complaint ─────── */
.feature-card {
  padding: var(--card-p-sm) !important;
  border-radius: var(--r-lg) !important;
  background: #fff;
  border: 1px solid var(--border);
  position: relative;
  isolation: isolate;
}
@media (min-width: 768px) {
  .feature-card { padding: var(--card-p-md) !important; }
}
.feature-card.p-5,
.feature-card.p-6,
.feature-card.p-7 { padding: var(--card-p-md) !important; }
.feature-card h3, .feature-card h4 {
  font-size: var(--fs-h3) !important;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-2);
}
.feature-card p {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: rgba(17,24,39,0.72);
}

.soft-card {
  border-radius: var(--r-lg);
  padding: var(--card-p-sm);
}
@media (min-width: 768px) {
  .soft-card { padding: var(--card-p-md); }
}

/* ── Generic section padding (Tailwind py-* harmonization) ───────── */
section.py-12  { padding-top: var(--section-py-sm) !important; padding-bottom: var(--section-py-sm) !important; }
section.py-16  { padding-top: var(--section-py-md) !important; padding-bottom: var(--section-py-md) !important; }
section.py-20  { padding-top: var(--section-py-md) !important; padding-bottom: var(--section-py-md) !important; }
section.py-24  { padding-top: var(--section-py-lg) !important; padding-bottom: var(--section-py-lg) !important; }
section.py-32  { padding-top: var(--section-py-lg) !important; padding-bottom: var(--section-py-lg) !important; }

/* Editorial spread — adopt scale */
.editorial-spread { padding: var(--section-py-lg) 0; }
.story-step { margin: 0 auto var(--section-py-md); }

/* ── Section heading helper — eyebrow + h2 + lead with rhythm ────── */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-12);
  padding: 0 var(--space-4);
}
.section-head .eyebrow {
  margin-bottom: var(--space-3);
  color: var(--ink);
  letter-spacing: var(--ls-eyebrow);
}
.section-head h2 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-extra);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-3);
}
.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #111, transparent);
  transform: translateX(-50%);
  transition: width 900ms var(--ease-out) 200ms;
}
.section-head.in-view h2::after { width: 80px; }
.section-head .lead { margin-top: var(--space-5); }


/* ═══════════════════════════════════════════════════════════════════════
   PREMIUM ANIMATION LAYER v2
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ─────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #111, #444, #111);
  background-size: 200% 100%;
  animation: shimmerBar 4s linear infinite;
  z-index: 999;
  pointer-events: none;
  transition: width 80ms linear;
}
@keyframes shimmerBar {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ── Section heading underline (already wired via .section-head) ── */

/* ── Card hover v2: lift + shadow + subtle glow ──────────────────── */
.feature-card,
.soft-card,
.data-card,
.industry-card,
.blog-card {
  transition:
    transform 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out),
    border-color 240ms var(--ease-out),
    background 240ms var(--ease-out) !important;
}
.feature-card:hover,
.soft-card:hover,
.data-card:hover {
  border-color: rgba(17,17,17,0.55);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card::after,
.soft-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(17,17,17,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
  z-index: -1;
}
.feature-card:hover::after,
.soft-card:hover::after {
  opacity: 1;
}

/* ── Hero radial pulse glow behind h1 ────────────────────────────── */
.hero-bg::after {
  animation: bgDriftSlow 22s ease-in-out infinite alternate;
}
@keyframes bgDriftSlow {
  0%   { background-position: 0 0; }
  100% { background-position: 22px 22px; }
}
.hero-bg .hero-display {
  position: relative;
}
.hero-bg .hero-display::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse at center, rgba(17,17,17,0.05), transparent 60%);
  z-index: -1;
  filter: blur(20px);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.03); }
}

/* ── Phone mockups: gentle float + parallax ──────────────────────── */
.phones-row .phone-mockup {
  animation: phoneFloat 6s ease-in-out infinite;
  will-change: transform;
}
.phones-row .phone-mockup:nth-child(1) { animation-delay: 0s; }
.phones-row .phone-mockup:nth-child(2) { animation-delay: -2s; }
.phones-row .phone-mockup:nth-child(3) { animation-delay: -4s; }
@keyframes phoneFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
.phone-mockup-center {
  animation-name: phoneFloatCenter !important;
}
@keyframes phoneFloatCenter {
  0%, 100% { transform: translate3d(0, -8px, 0); }
  50%      { transform: translate3d(0, -20px, 0); }
}

/* ── Eyebrow indicator with animated dot ─────────────────────────── */
.eyebrow-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #111;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(17,17,17,0.4);
  animation: dotPulse 2.5s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0   rgba(17,17,17,0.35); }
  70%  { box-shadow: 0 0 0 10px rgba(17,17,17,0); }
  100% { box-shadow: 0 0 0 0   rgba(17,17,17,0); }
}

/* ── Stats row: refined card frame and entrance ──────────────────── */
.stagger-children > * {
  transition-duration: 700ms !important;
  transition-delay: calc(var(--stagger-i, 0) * 90ms) !important;
}

/* ── Animated underline for inline links ─────────────────────────── */
.link-underline {
  position: relative;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 320ms var(--ease-out);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 1.5px; }

/* ── Marquee speed + better gradient mask edges ──────────────────── */
.marquee-strip {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* ── Trust bar: subtle shimmer on hover row ──────────────────────── */
.trust-bar {
  transition: opacity 280ms var(--ease-out), filter 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.trust-bar:hover {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════
   SVG ICON SYSTEM
   Use:  <svg class="icon"><use href="assets/icons.svg#cart"></use></svg>
   ═══════════════════════════════════════════════════════════════════════ */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 40px; height: 40px; }

/* Icon tile — square badge with icon centered (replaces emoji blocks) */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(160deg, #111 0%, #2a2a2a 100%);
  color: #fff;
  margin-bottom: var(--space-5);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
.feature-card:hover .icon-tile,
.soft-card:hover .icon-tile {
  transform: translateY(-2px) rotate(-3deg) scale(1.05);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.10);
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: var(--space-3);
}
.icon-tile-sm .icon { width: 20px; height: 20px; }

/* Light icon tile (on dark sections, or for inline use) */
.icon-tile-soft {
  background: var(--surface-2);
  color: #111;
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Inline check icon (replaces ✓ entity) */
.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
  margin-right: 10px;
}
.icon-check svg { width: 11px; height: 11px; stroke-width: 2.5; }
.icon-check.icon-check-emerald { background: #10b981; }

/* Small inline-only check (no badge — just the glyph) */
.icon-check-mini {
  display: inline-flex;
  width: 14px;
  height: 14px;
  color: #10b981;
  margin-right: 6px;
  vertical-align: -0.18em;
}

/* ── Reduced motion — kill new animations ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .phones-row .phone-mockup,
  .phone-mockup-center,
  .hero-bg::after,
  .hero-bg .hero-display::before,
  .eyebrow-dot::before,
  .scroll-progress { animation: none !important; }
}


/* ═══════════════════════════════════════════════════════════════════════
   MOBILE HARDENING — fix horizontal scroll, badge clipping, breathing room
   ═══════════════════════════════════════════════════════════════════════ */

/* Global: never scroll horizontally. `clip` is more aggressive than
   `hidden` (no scroll container created, ancestors can't override). */
html, body {
  overflow-x: clip;
  max-width: 100%;
}

/* Defensive: any direct section/main child must respect viewport width */
section, main, footer {
  max-width: 100%;
}

/* Hero glow can't push beyond viewport */
.hero-bg .hero-display::before {
  inset: -10% 0 !important;   /* was -20% -10% — kept vertical, killed horizontal extension */
}

/* ── MOST POPULAR badge — give it room and ensure visibility ───────── */
.pricing-popular {
  /* Push the card down so the floating badge is visible above it */
  margin-top: 18px;
  /* Remove any clipping that would chop the absolute pseudo-element */
  overflow: visible !important;
}
.pricing-popular::before {
  /* Slightly larger, crisper, still elegant */
  top: -14px;
  padding: 5px 14px;
  font-size: 10.5px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.35);
}
/* Parent grid containing popular cards must allow the badge to overflow */
.pricing-grid,
.grid:has(> .pricing-popular) {
  overflow: visible !important;
}

/* ── DIRECT TIER (and similar 2-column-with-card sections) ─────────── */
@media (max-width: 767px) {
  /* Section padding tighter & contained */
  section.bg-\[\#f4f4f5\] > .max-w-6xl,
  section > [class*="max-w-"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Heading: don't let arbitrary letter-spacing push width */
  h1, h2, h3, .text-3xl, .text-4xl, .text-5xl,
  .sm\:text-4xl, .lg\:text-5xl, .hero-display {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  /* Tailwind arbitrary letter-spacing values — soften on mobile so headings
     don't push past the viewport */
  [class*="tracking-["] {
    letter-spacing: 0.12em !important;
  }

  /* Long inline keyword pills wrap nicely instead of overflowing */
  .keyword-pill {
    max-width: 100%;
    word-break: keep-all;
  }

  /* Feature cards & soft cards — never wider than screen */
  .feature-card, .soft-card, .data-card, .industry-card, .blog-card,
  .case-study, .editorial-illustration, .story-illustration, .illustration-wide {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Generic safety: any grid/flex parent in a section must respect viewport */
  section .grid, section .flex {
    min-width: 0;
  }
  section .grid > *, section .flex > * {
    min-width: 0;
    max-width: 100%;
  }

  /* Pricing-popular gets even more breathing room on mobile */
  .pricing-popular {
    margin-top: 22px;
  }

  /* Stats row: stack content sensibly */
  .stat-number {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

/* ── Header logo: tablet sweet-spot (1024 already handled) ─────────── */
@media (max-width: 480px) {
  header#header img[alt="Soryk"] {
    height: 1.85em !important;
  }
}
