/* ==========================================================
   DG Nanotech — v2 additions (loaded after style.css)
   ========================================================== */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

/* ---------- Header ---------- */
header .logo { color: var(--white); text-decoration: none; }
.nav-brand { gap: 0.6rem; }
.nav-brand img { height: 30px; width: auto; display: block; }
.nav-brand span {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-left: 0.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  line-height: 1;
}
.nav-links { gap: 0.25rem; margin-left: auto; }
.nav-links a { padding: 0.5rem 0.8rem; font-size: 0.95rem; }

.nav-actions {
  margin-left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.dropdown-content a { cursor: pointer; }

/* Discreet language selector: no pill, same size as the menu, slightly dimmer */
.dropdown-btn {
  background: none;
  border: 0;
  padding: 0.5rem 0.4rem;
  gap: 0.4rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}
.dropdown-btn i { font-size: 0.9rem; }
.dropdown-btn:hover {
  background: none;
  color: var(--white);
  transform: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
}

/* ---------- Hero ---------- */
header { padding: 0.8rem 0; }
:root {
  /* H1 size, shared so the solutions H2 can be exactly 85% of it */
  --hero-fs: clamp(1.6rem, calc((100vw - 60px) / 18.5), 3.6rem);
}
/* Hero: height comes from its content; the bottom padding includes the strip covered by the sheet */
.hero { padding: 18vh 0 120px; }
/* Dark, high-contrast hero */
header {
  background: rgba(6, 11, 28, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero {
  isolation: isolate;
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(37, 99, 235, 0.55), transparent 65%),
    radial-gradient(760px 480px at 92% 100%, rgba(6, 182, 212, 0.38), transparent 65%),
    #060b1c;
}
.hero::before {
  opacity: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 30%, transparent 100%);
}
.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  /* sized so the longest line fits in one row: max 2 lines */
  font-size: var(--hero-fs);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 1160px;
  margin: 0 auto;
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #f8fafc;
}
.hero h1 .hero-line { display: block; white-space: nowrap; }
.hero h1 em,
.finder-header h2 em,
.about-head h2 em,
.products-head h2 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a78bfa, #22d3ee);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-shimmer 6s linear infinite;
  padding-bottom: 0.06em;
}
.hero h1 em::after,
.finder-header h2 em::after,
.about-head h2 em::after,
.products-head h2 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;
  height: 0.07em;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-underline 4.5s cubic-bezier(.65,0,.35,1) infinite;
}
.hero h1 .hero-line + .hero-line em::after { animation-delay: 0.6s; }
@keyframes hero-shimmer {
  to { background-position: 300% 0; }
}
@keyframes hero-underline {
  0% { transform: scaleX(0); transform-origin: left; }
  30%, 62% { transform: scaleX(1); transform-origin: left; }
  63% { transform: scaleX(1); transform-origin: right; }
  90%, 100% { transform: scaleX(0); transform-origin: right; }
}

@media (max-width: 600px) {
  :root { --hero-fs: 2.15rem; }
  .hero h1 { line-height: 1.12; text-wrap: balance; }
  .hero h1 .hero-line { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 em, .hero h1 em::after, .finder-header h2 em, .finder-header h2 em::after, .about-head h2 em, .about-head h2 em::after, .products-head h2 em, .products-head h2 em::after { animation: none; }
  .hero h1 em::after, .finder-header h2 em::after, .about-head h2 em::after, .products-head h2 em::after { transform: scaleX(1); }
}
.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  color: #cbd5e1;
}
@keyframes suite-flash {
  0%, 100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); }
  30% { box-shadow: 0 0 0 4px var(--c), 0 18px 40px rgba(0, 0, 0, 0.12); }
}
.suite-card.highlight { animation: suite-flash 1.8s ease 0.4s; }
.product-card { --c: var(--primary-blue); }
.product-card.highlight { animation: suite-flash 1.8s ease 0.4s; }

/* ---------- Finder ("¿Cómo quieres buscar?") ---------- */
.finder {
  --navy: #0f1b3d;
  --finder-blue: #2b4bd1;
  background: #f5f6f9;
  padding: 56px 0 70px;
  /* "overlapping sheet": rises over the hero, dark background shows behind its top corners */
  position: relative;
  z-index: 2;
  margin-top: -48px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}
.finder-header { text-align: center; margin-bottom: 1.75rem; }
.finder-header h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: calc(var(--hero-fs) * 0.85);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.finder-lead {
  margin-top: 24px;
  color: #475569;
  font-size: 18px;
  font-weight: 400;
}
.finder-tabs {
  /* title + "[A] or [B]" read as one sentence */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0 auto 0.9rem;
}
.finder-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  color: #334155;
  background: #fff;
  border: 1.5px dashed #94a3b8;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.finder-tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.finder-tab:hover {
  background: #eef1fd;
  border-style: solid;
  border-color: var(--primary-blue);
}
.finder-tab.active,
.finder-tab.active:hover {
  background: var(--primary-blue);
  border: 1.5px solid var(--primary-blue);
  color: var(--white);
  cursor: default;
}
.finder-tab:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
.finder-or { color: #64748b; font-size: 16px; }
.finder-comma { color: #64748b; font-size: 16px; margin-left: -0.6rem; }
.tab-short { display: none; }
/* "Your AI project": violet dashed border + spark, AI gradient when active (white text AA on every stop) */
.finder-tab-ia { border-color: #7c3aed; }
.finder-tab-ia .tab-spark { color: #7c3aed; }
.finder-tab-ia:hover { background: #f3effe; border-color: #7c3aed; }
.finder-tab-ia.active,
.finder-tab-ia.active:hover {
  background: linear-gradient(90deg, #0e7490, #4f46e5, #7c3aed);
  border-color: transparent;
}
.finder-tab-ia.active .tab-spark { color: #fff; }
.finder-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 2.5rem;
  color: #64748b;
  font-size: 12px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.finder-hint svg { width: 14px; height: 14px; }
/* hidden after the first interaction; keeps its space so the grid does not jump */
.finder-hint.is-hidden { opacity: 0; visibility: hidden; }
.finder-grid {
  display: grid;
  /* 6 tracks, each card spans 2 -> 3 per row; an odd last card is centered */
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
  gap: 1.1rem;
  transition: opacity 0.2s ease;
}
.finder-grid.is-fading { opacity: 0; }
/* Hybrid style: neutral white card, industry color only on the icon */
.finder-card {
  --ic: #1d4ed8;          /* dark industry tone, WCAG AA on white */
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.1rem;
  height: 100%;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
  /* backwards: once finished, the animation releases transform so the hover lift works */
  animation: finder-in 0.55s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.finder-card:hover,
.finder-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ic);
  box-shadow: 0 6px 18px -10px rgba(15, 27, 61, 0.18);
  outline: none;
}
@keyframes finder-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.finder-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.finder-card .finder-icon {
  align-self: flex-start;
  background: color-mix(in srgb, var(--ic) 11%, #fff);
  color: var(--ic);
}
.finder-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.finder-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.finder-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; line-height: 1.3; }
.finder-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.15rem 0 0.95rem;
}
.finder-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #2b3650;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}
.finder-benefits svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.12rem;
  stroke-width: 2.6;
  color: #64748b;          /* neutral check, same on every card */
}
.finder-card .finder-who { color: #64748b; font-size: 0.85rem; line-height: 1.4; margin: 0 0 0.55rem; }
.sol-opt {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}
.finder-card p { color: #3d4a63; font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.85rem; }
/* Text link CTA, same brand blue on every card, pinned to the card bottom */
.finder-btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s ease;
}
.finder-btn svg { width: 17px; height: 17px; stroke-width: 2.2; transition: transform 0.25s ease; }
.finder-card:hover .finder-btn,
.finder-card:focus-visible .finder-btn { text-decoration-color: currentColor; }
.finder-card:hover .finder-btn svg,
.finder-card:focus-visible .finder-btn svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .finder-tab, .finder-hint, .finder-grid, .finder-card, .finder-btn svg { animation: none; transition: none; }
}
.finder-note { text-align: center; color: #3d4a63; margin-top: 1.75rem; font-size: 0.95rem; }

.finder-card { grid-column: span 2; }
.finder-card:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
.finder-card:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
@media (max-width: 960px) {
  .finder-grid { grid-template-columns: repeat(4, 1fr); }
  .finder-card:last-child:nth-child(3n+1),
  .finder-card:nth-last-child(2):nth-child(3n+1) { grid-column: span 2; }
  .finder-card:last-child:nth-child(2n+1) { grid-column: 2 / span 2; }
}
@media (max-width: 768px) {
  .hero { padding: max(18vh, 100px) 0 120px; }
  .finder { padding: 56px 0 50px; border-radius: 24px 24px 0 0; }
}
@media (max-width: 600px) {
  /* "[A] or [B]" stays on one row on phones */
  /* "[A] or [B]" stays on one row on phones */
  .finder-tabs { flex-wrap: nowrap; gap: 0.5rem; }
  .finder-tab {
    min-width: 0;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
  .finder-tab svg { width: 16px; height: 16px; }
  .finder-or { flex-shrink: 0; font-size: 15px; }
  .finder-comma { margin-left: -0.4rem; font-size: 15px; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .finder-grid { grid-template-columns: 1fr; padding: 0 10px; }
  .finder-card, .finder-card:last-child:nth-child(n), .finder-card:nth-last-child(2):nth-child(n) { grid-column: auto; }
  .finder-card { padding: 1.1rem; gap: 0.9rem; }
  .finder-icon { width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .finder-tab svg { display: none; }
  .finder-tab .tab-spark { display: block; }
  .finder-tab { padding: 0.55rem 0.8rem; }
}

/* ---------- About ("Nosotros", with the custom services inside) ---------- */
.about-v2 { padding: 110px 0; background: #fff; }
.about-head { text-align: center; max-width: 860px; margin: 0 auto 64px; }
.about-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--primary-blue);
  margin-bottom: 16px;
}
.about-head h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: calc(var(--hero-fs) * 0.68);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy > p { font-size: 1.1rem; line-height: 1.75; color: #475569; margin: 0; }
.about-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-left: 3px solid var(--primary-blue);
  border-radius: 0;
}
.about-highlight svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--primary-blue); }
.about-highlight p { margin: 0; font-weight: 500; color: #0f172a; line-height: 1.6; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
.about-stat {
  display: flex;
  flex-direction: column-reverse; /* number on top, label below; dt stays first for screen readers */
  justify-content: flex-end; /* with column-reverse this keeps the content at the top */
  gap: 6px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
}
.about-stat dd {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.about-stat dt { font-size: 0.95rem; color: #64748b; }
.about-services { margin-top: 48px; }
.about-services-title { font-size: 1.1rem; font-weight: 500; color: #0f172a; margin-bottom: 20px; }
.about-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-service {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.about-service:hover { border-color: var(--ic); transform: translateY(-2px); }
.about-service:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
.about-service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--ic);
  background: color-mix(in srgb, var(--ic) 11%, #fff);
}
.about-service-icon svg { width: 24px; height: 24px; }
.about-service-body { display: flex; flex-direction: column; gap: 8px; }
.about-service h4 { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 0; }
.about-service p { margin: 0; color: #475569; line-height: 1.6; }
.about-service .finder-btn { margin-top: 6px; }
.about-service:hover .finder-btn,
.about-service:focus-visible .finder-btn { text-decoration-color: currentColor; }
.about-service:hover .finder-btn svg,
.about-service:focus-visible .finder-btn svg { transform: translateX(4px); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about-v2 { padding: 80px 0; }
  .about-head { margin-bottom: 40px; }
  .about-head h2 { font-size: 1.75rem; }
  .about-stat { padding: 22px 18px; }
  .about-stat dd { font-size: 2.1rem; }
  .about-service { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .about-service { transition: none; } }

/* ---------- Products ---------- */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem; }
.product-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
}
.product-card[hidden] { display: none; }

.product-logo-box {
  position: relative;
  aspect-ratio: 333 / 186;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e2e8f0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-logo-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wordmark {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.1;
}
.wordmark i { font-style: normal; }
.kpi-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: var(--accent-orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}
.ai-tag {
  position: absolute;
  top: 1.9rem;
  right: 1.9rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.product-card h3 { margin-bottom: 0.5rem; }
/* the logo already shows the name: keep it for screen readers and search engines only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.product-card p { margin-bottom: 0.75rem; }
.product-card .sectors { font-size: 0.85rem; color: var(--dark-gray); }
.product-card .sectors b { color: var(--primary-blue); }
.product-actions {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  transition: all 0.2s ease;
}
.btn-sm:hover { background: var(--primary-blue); color: var(--white); }
.btn-sm.solid { background: var(--primary-blue); color: var(--white); }
.btn-sm.solid:hover { background: #1d4ed8; }
.noscript { text-align: center; color: var(--text-gray); }

/* Products: title like "About us", filters above the grid, benefit-first cards */
.products-head { margin-bottom: 40px; }
.product-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 2rem;
}
.pf-field { display: flex; flex-direction: column; gap: 6px; min-width: 220px; flex: 0 1 260px; }
.pf-field span { font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: #64748b; }
.pf-field select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 2.4rem 0.65rem 0.9rem;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.pf-field select:hover { border-color: var(--primary-blue); }
.pf-field select:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 2px; }
.pf-status { display: flex; align-items: center; gap: 14px; margin-left: auto; min-height: 44px; }
.pf-count { margin: 0; font-size: 0.9rem; color: #64748b; }
.pf-clear { font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--primary-blue); background: none; border: 0; padding: 0.4rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pf-clear[hidden] { display: none; }
.products-empty { grid-column: 1 / -1; text-align: center; color: #64748b; padding: 2.5rem 1rem; margin: 0; }
.products-empty[hidden] { display: none; }
.products-empty a { color: var(--primary-blue); font-weight: 600; margin-left: 0.25rem; }
a.product-logo-box { text-decoration: none; cursor: pointer; }
.product-card .product-benefit { font-size: 1.02rem; font-weight: 500; color: var(--navy); line-height: 1.5; }
.product-actions .btn-sm svg { width: 15px; height: 15px; }
/* both buttons on one row, sharing the width */
.product-actions { flex-wrap: nowrap; gap: 0.5rem; }
.product-actions .btn-sm { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; padding: 0.5rem 0.6rem; font-size: 0.82rem; }
@media (max-width: 600px) {
  .pf-field { flex: 1 1 100%; min-width: 0; }
  .pf-status { margin-left: 0; }
}

/* ---------- Product page (#/producto/...) ---------- */
.prod-head { align-items: center; }
.prod-hero-logo {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 333 / 186;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.prod-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.prod-hero-logo .wordmark { font-size: 1.6rem; }
.detail-hero .prod-sectors { font-size: 0.95rem; margin-top: 0.6rem; }
.detail-hero .prod-sectors b { color: #e2e8f0; font-weight: 600; }
.prod-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.prod-hero-actions .btn-sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; cursor: pointer; font-family: inherit; }
.prod-hero-actions .btn-sm.solid { background: #fff; color: #0b1430; border-color: #fff; }
.prod-hero-actions .btn-sm.solid:hover { background: color-mix(in srgb, var(--c1) 22%, #fff); }
.prod-hero-actions .btn-sm:not(.solid) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.prod-hero-actions .btn-sm:not(.solid):hover { background: rgba(255, 255, 255, 0.12); }
.prod-hero-actions .prod-wa i { font-size: 1.1rem; color: #25d366; }
.prod-hero-actions .sol-play { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c1); color: #fff; }
.prod-hero-actions .sol-play svg { width: 10px; height: 10px; }
.prod-lead { font-size: 1.08rem; line-height: 1.65; color: #334155; max-width: 820px; margin: -0.75rem 0 1.5rem; }
.prod-diff { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.prod-diff li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
  animation: finder-in 0.5s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.prod-diff-n { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--c1); }
.prod-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.prod-file { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e8ee; border-radius: 20px; overflow: hidden; }
.prod-file-preview {
  display: grid;
  place-items: center;
  height: 320px;
  background: color-mix(in srgb, var(--c1) 8%, #f8fafc);
  border-bottom: 1px solid #e6e8ee;
  overflow: hidden;
}
.prod-file-preview img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.prod-file-preview:hover img { transform: scale(1.03); }
.prod-file-preview.is-pdf i { font-size: 4.5rem; color: var(--c1); transition: transform 0.3s ease; }
.prod-file-preview.is-pdf:hover i { transform: translateY(-4px); }
.prod-file-preview:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: -2px; }
.prod-file-body { padding: 20px 22px 22px; }
.prod-file-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.prod-file-body p { margin: 0 0 14px; color: #64748b; font-size: 0.93rem; }
.prod-file-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.prod-inds { display: flex; flex-wrap: wrap; gap: 12px; }
.prod-inds a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.prod-inds a svg { width: 20px; height: 20px; color: var(--ic); }
.prod-inds a svg:last-child { width: 16px; height: 16px; color: #94a3b8; transition: transform 0.2s ease; }
.prod-inds a:hover { border-color: var(--ic); transform: translateY(-2px); }
.prod-inds a:hover svg:last-child { transform: translateX(3px); }
.prod-inds a:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 2px; }
@media (max-width: 960px) {
  .prod-diff { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .prod-files { grid-template-columns: 1fr; }
  .prod-file-preview { height: 260px; }
  .prod-hero-logo { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .prod-diff li { animation: none; }
  .prod-file-preview img, .prod-file-preview.is-pdf i, .prod-inds a, .prod-inds a svg { transition: none; }
}

/* ---------- Suites ---------- */
.suites {
  padding: 100px 0;
  background: var(--white);
}
.suite-concept {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}
.suite-def p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 1.5rem; }
.suite-benefits { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.suite-benefits li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-gray); font-weight: 500; }
.suite-benefits i { color: var(--accent-green); margin-top: 0.3rem; }
.suite-formula { display: flex; flex-direction: column; gap: 0.5rem; }
.f-box {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  background: var(--light-gray);
}
.f-box b { font-size: 1.05rem; }
.f-box span { color: var(--text-gray); font-size: 0.92rem; }
.f-box.anchor { border-left: 5px solid var(--primary-blue); }
.f-box.core { border-left: 5px solid var(--secondary-blue); }
.f-box.result { background: var(--gradient-primary); color: var(--white); border: none; }
.f-box.result span { color: rgba(255, 255, 255, 0.9); }
.f-op { text-align: center; font-size: 1.5rem; font-weight: 800; color: var(--text-gray); line-height: 1; }

.suites-grid {
  display: grid;
  /* 9 suites -> 3 x 3 on desktop */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.suite-card {
  --c: var(--primary-blue);
  background: var(--white);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-top: 5px solid var(--c);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.suite-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1); }
.suite-card h3 { font-size: 1.2rem; color: var(--c); margin-bottom: 0.25rem; }
.suite-card .who { font-size: 0.85rem; font-weight: 600; color: var(--dark-gray); margin-bottom: 0.75rem; }
.suite-card .pain { font-size: 0.92rem; color: var(--text-gray); line-height: 1.55; margin-bottom: 1rem; }
.suite-prods { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.suite-prods span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed #94a3b8;
  color: var(--text-gray);
}
.suite-prods span.core { border: 1px solid var(--c); background: var(--c); color: var(--white); }
.suite-card .btn-sm { margin-top: auto; align-self: flex-start; border-color: var(--c); color: var(--c); }
.suite-card .btn-sm:hover { background: var(--c); color: var(--white); }
.suite-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-gray);
}
.suite-legend > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.chip-core, .chip-opt { display: inline-block; width: 22px; height: 12px; border-radius: 999px; }
.chip-core { background: var(--primary-blue); }
.chip-opt { border: 1px dashed #94a3b8; }

/* ---------- Contact ---------- */
.contact { background: var(--light-gray); }
.cta-band {
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}
.cta-band h2 { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.4rem; }
.cta-band p { opacity: 0.95; }
.cta-band .cta-button { flex-shrink: 0; }
/* contact block under the CTA: same office cards as the contact modal */
.contact-page { max-width: 900px; margin: 0 auto; }
.contact-page .contact-offices { align-items: stretch; }
.contact-page-head { text-align: center; margin-bottom: 1.5rem; }
.contact-page-head h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.contact-page-head p { color: #64748b; margin-top: 0.3rem; }
@media (max-width: 600px) { .contact-page .contact-offices { grid-template-columns: 1fr; } }

/* ---------- Intro video ---------- */
.video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.video-trigger:hover { color: var(--primary-blue); border-color: var(--primary-blue); background: rgba(37, 99, 235, 0.04); }
.video-trigger:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
.video-trigger-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
}
.video-trigger-icon svg { width: 12px; height: 12px; margin-left: 2px; }
.video-modal {
  width: min(1100px, calc(100% - 32px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px -20px rgba(6, 11, 28, 0.6);
}
.video-modal::backdrop { background: rgba(6, 11, 28, 0.8); backdrop-filter: blur(6px); }
.video-modal[open] { animation: contact-in 0.28s cubic-bezier(.2,.8,.2,1); }
.video-modal video { display: block; width: 100%; max-height: calc(100vh - 32px); background: #000; }
.video-modal-close { z-index: 1; background: rgba(0, 0, 0, 0.45); }

/* ---------- Contact modal ---------- */
.contact-modal {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: auto;
  background: #f5f6f9;
  color: #0f1b3d;
  box-shadow: 0 40px 100px -20px rgba(6, 11, 28, 0.6);
}
.contact-modal::backdrop { background: rgba(6, 11, 28, 0.62); backdrop-filter: blur(6px); }
.contact-modal[open] { animation: contact-in 0.28s cubic-bezier(.2,.8,.2,1); }
@keyframes contact-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
/* dark header, same look as the hero */
.contact-modal-head {
  position: relative;
  padding: 2.5rem 2.5rem 2.25rem;
  color: #f8fafc;
  background:
    radial-gradient(420px 220px at 0% 0%, rgba(37, 99, 235, 0.55), transparent 70%),
    radial-gradient(380px 220px at 100% 100%, rgba(6, 182, 212, 0.35), transparent 70%),
    #060b1c;
}
.contact-modal-head img { height: 30px; width: auto; display: block; margin-bottom: 1.25rem; opacity: 0.9; }
.contact-modal-head h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.contact-modal-sub { color: rgba(248, 250, 252, 0.72); margin-top: 0.5rem; }
.contact-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.2s ease;
}
.contact-modal-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.contact-modal-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.contact-modal-close svg { width: 18px; height: 18px; }
.contact-modal-body { padding: 1.75rem 2.5rem 2.5rem; }
.contact-offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
.contact-office {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 18px;
  padding: 1.35rem 1.1rem 1.1rem;
}
.contact-office-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 0.4rem 1.1rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid #eef0f4;
}
.contact-flags { display: flex; gap: 6px; flex-shrink: 0; }
.flag {
  width: 30px;
  height: 20px;
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 27, 61, 0.12), 0 2px 6px -2px rgba(15, 27, 61, 0.25);
}
.flag-globe { display: grid; place-items: center; background: #eef1fd; color: #1d4ed8; }
.flag-globe svg { width: 14px; height: 14px; }
.contact-office h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.contact-office-name { color: #64748b; font-size: 0.85rem; margin-top: 0.1rem; }
.contact-rows { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}
a.contact-row:hover { background: #f3f5fb; }
a.contact-row:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 1px; }
.contact-row-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef1fd;
  color: #1d4ed8;
}
.contact-row-icon svg { width: 18px; height: 18px; }
.contact-row-wa .contact-row-icon { color: #25d366; background: #e9fbf0; }
.contact-row-wa .contact-row-icon i { font-size: 1.2rem; }
.contact-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-row-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.contact-row-value { font-size: 0.95rem; font-weight: 500; color: #0f1b3d; overflow-wrap: anywhere; }
.contact-row-go { width: 16px; height: 16px; flex-shrink: 0; color: #94a3b8; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.2s ease, transform 0.2s ease; }
a.contact-row:hover .contact-row-go,
a.contact-row:focus-visible .contact-row-go { opacity: 1; transform: none; color: var(--primary-blue); }
@media (max-width: 600px) {
  .contact-modal-head { padding: 2rem 1.5rem 1.75rem; }
  .contact-modal-head h2 { font-size: 1.6rem; }
  .contact-modal-body { padding: 1.25rem 1rem 1.25rem; }
  .contact-offices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .contact-modal[open] { animation: none; } }

/* ---------- Footer ---------- */
.footer-content { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer-more { color: var(--secondary-blue) !important; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding: 0.5rem 0.55rem; font-size: 0.9rem; }
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: #060b1c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links { margin-left: 0; }
  .nav-actions { margin-left: auto; }
  .nav-links a { display: block; padding: 0.8rem 1rem; }
  .suite-concept { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .ai-panels { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 2rem; }
  .cta-band h2 { font-size: 1.5rem; }
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .suite-benefits { grid-template-columns: 1fr; }
  .suites { padding: 70px 0; }
  .ai-panels, .platforms, .suites-grid, .suite-concept { padding: 0 10px; }
  .ai-tag { top: 1.9rem; right: 1.9rem; }
}

/* Services: 4 cards in one row on desktop, 2x2 on tablets */

/* ==========================================================
   Industry / area detail view
   ========================================================== */
.finder-detail { --c1: #3b82f6; --c2: #1d4ed8; }
.finder-detail.enter { animation: detail-in 0.5s cubic-bezier(.2,.8,.2,1); }
@keyframes detail-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
/* ---------- Detail page header: dark band in place of the home hero ---------- */
body.is-detail #about,
body.is-detail #products,
body.is-detail #contact { display: none; }
.detail-hero { padding: 120px 0 104px; text-align: left; } /* bottom includes the strip covered by the sheet */
.detail-hero .hero-content { max-width: 1160px; }

.detail-head { display: flex; gap: 1.5rem; align-items: flex-start; }
.detail-head-main { flex: 1; min-width: 0; }
/* title on the left, way back home on the right of the same row */
.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.detail-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.detail-home-btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.detail-home-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.detail-home-btn:hover svg { transform: translateX(-3px); }
.detail-home-btn:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .detail-home-btn, .detail-home-btn svg { transition: none; } }
.detail-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; }
.detail-icon svg { width: 30px; height: 30px; }
/* hybrid style on the dark header: industry tint (~18%) and a light tone of the same color, no gradient or shadow */
.detail-hero .detail-icon { background: color-mix(in srgb, var(--c2) 18%, transparent); color: var(--c1); }
.detail-hero .detail-head h1 {
  max-width: none;
  padding: 0;
  text-align: left;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #f8fafc;
  margin: 0;
}
.detail-hero .detail-head p { color: #94a3b8; font-size: 1.125rem; line-height: 1.6; max-width: 760px; margin: 0.75rem 0 0; padding: 0; opacity: 1; }
.detail-benefits { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.detail-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  border-radius: 999px;
}
.detail-benefits svg { width: 15px; height: 15px; stroke-width: 3; color: var(--c1); }
.detail-subtitle {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.1rem;
}
.sol-card {
  --sc: #2563eb;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e3e8f1;
  border-radius: 18px;
  padding: 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 27, 61, 0.05);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: finder-in 0.5s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.sol-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sc) 45%, #e3e8f1);
  box-shadow: 0 18px 38px -14px color-mix(in srgb, var(--sc) 45%, transparent);
}
.sol-logo {
  flex-shrink: 0;
  width: 150px;
  aspect-ratio: 333 / 186;
  border-radius: 12px;
  border: 1px solid #edf0f6;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sol-logo img { width: 100%; height: 100%; object-fit: contain; }
.sol-logo .wordmark { font-size: 0.98rem; padding: 0 0.5rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sol-logo .kpi-badge { font-size: 0.6rem; right: 4px; bottom: 4px; padding: 0.1rem 0.35rem; }
.sol-body { min-width: 0; display: flex; flex-direction: column; }
.sol-body h4 { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.sol-body p { font-size: 0.9rem; color: #3d4a63; line-height: 1.5; margin-bottom: 0.8rem; }
.sol-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--sc);
  background: color-mix(in srgb, var(--sc) 10%, #fff);
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.95rem 0.3rem 0.3rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.sol-play {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sc);
  color: #fff;
}
.sol-play svg { width: 12px; height: 12px; margin-left: 2px; }
.sol-more:hover { background: var(--sc); color: #fff; }
.sol-more:hover .sol-play { background: #fff; color: var(--sc); }
.detail-cta {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(500px 200px at 100% 0%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%),
    #0b1430;
}
.detail-cta strong { display: block; font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: 1.35rem; letter-spacing: -0.02em; }
.detail-cta span { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.detail-cta .btn-sm { flex-shrink: 0; background: #fff; color: #0b1430; border-color: #fff; padding: 0.65rem 1.2rem; font-size: 0.95rem; }
.detail-cta .btn-sm svg { width: 17px; height: 17px; }
.detail-cta .btn-sm:hover { background: color-mix(in srgb, var(--c1) 25%, #fff); }
.detail-cta-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; flex-shrink: 0; }
.detail-cta .btn-sm i { font-size: 1.15rem; color: #25d366; }
.detail-cta .detail-mail { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.detail-cta .detail-mail:hover { background: rgba(255, 255, 255, 0.12); }
/* solution card: "See more" + WhatsApp "Ask" */
.sol-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
/* brochure / flyer: view (new tab) + download */
.sol-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f5; }
.sol-file { display: inline-flex; align-items: center; border: 1px solid #e6e8ee; border-radius: 99px; overflow: hidden; }
.sol-file a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 500; color: #475569; text-decoration: none; padding: 5px 10px; transition: background 0.2s ease, color 0.2s ease; }
.sol-file a i { font-size: 0.85rem; color: #94a3b8; }
.sol-file a:hover { background: #f5f7fb; color: #0f172a; }
.sol-file .sol-dl { border-left: 1px solid #e6e8ee; padding: 5px 9px; }
.sol-file a:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: -2px; }
.ia-refs .sol-files { display: none; }
.sol-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.87rem;
  color: #15803d; /* AA on white */
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.sol-wa i { font-size: 1.1rem; color: #25d366; }
.sol-wa:hover, .sol-wa:focus-visible { text-decoration-color: currentColor; }
.sol-wa:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 2px; border-radius: 4px; }
.v-btn i { font-size: 1.2rem; color: #25d366; }
/* Industry/area detail: what we solve (cards) on top, every solution below, closing card */
.detail-block { scroll-margin-top: 96px; }
.detail-block + .detail-block { margin-top: 64px; }
.detail-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 8px;
}
.detail-block .detail-subtitle { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 1.75rem; }
.res-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.res-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  transition: border-color 0.2s ease;
  animation: finder-in 0.5s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.res-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--ic);
  background: color-mix(in srgb, var(--c2) 12%, #fff);
}
.res-check svg { width: 17px; height: 17px; stroke-width: 2.6; }
.res-title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.res-item h3 { font-size: 1.05rem; font-weight: 500; color: #0f172a; margin: 0; line-height: 1.35; }
.res-item p { margin: 0; color: #64748b; font-size: 0.93rem; line-height: 1.55; }
/* the rest of the problems: collapsed until "see more" (height + fade, 250ms) */
.res-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.25s ease, opacity 0.25s ease; }
.res-more.is-open { grid-template-rows: 1fr; opacity: 1; }
.res-more-inner { min-height: 0; overflow: hidden; }
.res-more-inner .res-list { padding-top: 16px; }
.res-more .res-item { animation: none; }
.res-toggle-row { display: flex; justify-content: center; margin-top: 24px; }
.res-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--primary-blue);
  background: #fff;
  border: 1px solid #c7cfe0;
  border-radius: 99px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.res-toggle svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.res-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.res-toggle:hover { border-color: var(--primary-blue); background: #f5f7ff; }
.res-toggle:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
/* solutions: 2 columns, larger cards than the problems (logo, product color, video and WhatsApp) */
.sol-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sol-grid-2 .sol-card { padding: 1.5rem; gap: 1.5rem; border-radius: 20px; scroll-margin-top: 110px; }
.sol-grid-2 .sol-logo { width: 180px; }
.sol-grid-2 .sol-logo .wordmark { overflow-wrap: normal; }
.sol-grid-2 .sol-body h4 { font-size: 1.2rem; }
.sol-grid-2 .sol-body p { font-size: 0.98rem; margin-bottom: 0.9rem; }
.sol-grid-2 .sol-card.is-linked { border-color: var(--sc); }
/* closing card */
.detail-close {
  max-width: 760px;
  margin: 72px auto 0;
  padding: 48px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 24px;
}
.detail-close h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 24px; }
.detail-close .cta-button { padding: 0.9rem 1.9rem; font-size: 1rem; color: #fff; background: var(--primary-blue); box-shadow: none; }
.detail-close .cta-button:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: none; }
.detail-close .cta-button:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
.detail-close .cta-button svg { width: 18px; height: 18px; }
.detail-close-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.detail-close .detail-close-wa { display: inline-flex; align-items: center; gap: 10px; background: #15803d; color: #fff; }
.detail-close .detail-close-wa:hover { background: #166534; }
.detail-close .detail-close-wa i { font-size: 1.3rem; }
.detail-close-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary-blue); text-decoration: none; padding: 0.5rem 0.25rem; }
.detail-close-more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.detail-close-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-close-more:hover svg { transform: translateX(3px); }
.detail-close-more:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .detail-close-more svg { transition: none; } }
@media (max-width: 960px) {
  .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .detail-block + .detail-block { margin-top: 48px; }
  .res-list { grid-template-columns: 1fr; }
  .sol-grid-2 .sol-card { flex-direction: column; padding: 1.25rem; }
  .detail-close { margin-top: 56px; padding: 36px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .res-item { animation: none; transition: none; }
  .res-more, .res-toggle svg { transition: none; }
}
/* "Your AI project" detail: use cases, steps and our products as references */
.uc-head { margin-bottom: 1.1rem; }
.uc-head .detail-subtitle { margin-bottom: 0.3rem; }
.uc-head p { color: #64748b; }
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; }
.uc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  animation: finder-in 0.5s cubic-bezier(.2,.8,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.uc-card:hover { border-color: var(--c2); transform: translateY(-2px); }
.uc-area {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c2);
  background: color-mix(in srgb, var(--c1) 12%, #fff);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 4px;
}
.uc-card h4 { font-size: 1.05rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.uc-card p { color: #475569; font-size: 0.93rem; line-height: 1.55; margin-bottom: 8px; }
.uc-card .sol-wa { margin-top: auto; }
.ia-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 56px;
  padding: 0;
  counter-reset: none;
}
.ia-steps li { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 2px solid #e6e8ee; }
.ia-step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  margin-bottom: 6px;
}
.ia-steps strong { color: #0f172a; font-size: 1rem; }
.custom-steps { margin: 0; }
.ia-steps li > span:last-child { color: #475569; font-size: 0.92rem; line-height: 1.5; }
.ia-refs > p { color: #64748b; margin: -0.8rem 0 1.1rem; }
.ia-refs .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* references are secondary: logo, name and "See more" only */
.ia-refs .sol-card { flex-direction: row; align-items: center; padding: 0.8rem; box-shadow: none; border-color: #e6e8ee; }
.ia-refs .sol-logo { width: 96px; max-width: none; }
.ia-refs .sol-body h4 { font-size: 0.98rem; }
.ia-refs .sol-body p, .ia-refs .sol-wa { display: none; }
@media (max-width: 960px) {
  .uc-grid, .ia-refs .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ia-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .uc-grid, .ia-refs .detail-grid, .ia-steps { grid-template-columns: 1fr; }
  .ia-refs .sol-card { flex-direction: row; }
  .ia-refs .sol-logo { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .uc-card { animation: none; transition: none; } }
@media (max-width: 600px) {
  .finder-detail { padding: 0 10px; }
  .detail-head { flex-direction: column; gap: 1rem; }
  .detail-hero { padding: 100px 0 88px; }
  .detail-hero .container { padding: 0 20px; } /* same left edge as the detail content below */
  .detail-title-row { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .sol-card { flex-direction: column; }
  .sol-logo { width: 100%; max-width: 240px; }
  .detail-cta { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   Solution "video" modal
   ========================================================== */
body.story-open { overflow: hidden; }
.story-modal { --vc: #2563eb; position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.story-modal[hidden] { display: none; }
.story-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 20, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.story-dialog {
  position: relative;
  width: min(920px, 100%);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.story-modal.open .story-backdrop { opacity: 1; }
.story-modal.open .story-dialog { opacity: 1; transform: none; }
.story-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 340px at 10% 0%, color-mix(in srgb, var(--vc) 45%, transparent), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(99, 102, 241, 0.35), transparent 70%),
    #070d1f;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}
.story-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 20%, transparent 100%);
}
.story-glow {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  background: var(--vc);
  animation: glow-drift 9s ease-in-out infinite alternate;
}
.story-glow.g1 { top: -80px; right: 10%; }
.story-glow.g2 { bottom: -100px; left: 5%; background: #6366f1; animation-delay: -4s; }
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 30px) scale(1.2); }
}
.story-modal.paused .story-glow { animation-play-state: paused; }
.story-progress { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; gap: 6px; z-index: 3; }
.story-progress span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.story-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: #fff; }
.story-scenes { position: absolute; inset: 0; }
.vscene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 3.5rem 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.vscene.active { opacity: 1; visibility: visible; }
.v-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--vc) 55%, #fff);
  margin-bottom: 1.25rem;
}
/* scene entrance animations (re-run every time the scene becomes active) */
.vscene.active > * { animation: v-up 0.7s cubic-bezier(.2,.8,.2,1) both; }
.vscene.active > *:nth-child(2) { animation-delay: 0.15s; }
.vscene.active > *:nth-child(3) { animation-delay: 0.35s; }
.vscene.active > *:nth-child(4) { animation-delay: 0.55s; }
@keyframes v-up {
  from { opacity: 0; transform: translateY(22px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.v-logo {
  width: min(260px, 55%);
  aspect-ratio: 333 / 186;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--vc) 70%, transparent);
  margin-bottom: 1.4rem;
}
.vscene.active .v-logo { animation: v-pop 0.8s cubic-bezier(.2,1.4,.4,1) 0.15s both; }
@keyframes v-pop {
  from { opacity: 0; transform: scale(0.6) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}
.v-logo img { width: 100%; height: 100%; object-fit: contain; }
.v-logo .wordmark { font-size: 1.8rem; }
.vscene-intro h2 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.vscene-intro p { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.8); max-width: 560px; margin-top: 0.4rem; }
.v-diff { position: relative; display: flex; flex-direction: column; align-items: center; }
.v-num {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff, var(--vc));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v-ring {
  position: absolute;
  top: clamp(2rem, 6vw, 3.75rem);
  left: 50%;
  width: clamp(140px, 22vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--vc) 70%, transparent);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  z-index: -1;
}
.vscene.active .v-ring { animation: v-ring 2.4s ease-out 0.2s infinite; }
@keyframes v-ring {
  0% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}
.vscene.active .v-num { animation: v-pop 0.7s cubic-bezier(.2,1.4,.4,1) both; }
.v-diff h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.4rem, 3.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 640px;
  margin-top: 1rem;
}
.vscene.active .v-diff h3 { animation: v-up 0.7s cubic-bezier(.2,.8,.2,1) 0.3s both; }
.vscene-gain ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; width: min(520px, 100%); }
.vscene-gain li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  font-weight: 600;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.vscene-gain li svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  stroke-width: 3;
  background: var(--vc);
  color: #fff;
}
.vscene.active.vscene-gain li { animation: v-slide 0.6s cubic-bezier(.2,.8,.2,1) both; }
.vscene.active.vscene-gain li:nth-child(1) { animation-delay: 0.3s; }
.vscene.active.vscene-gain li:nth-child(2) { animation-delay: 0.9s; }
.vscene.active.vscene-gain li:nth-child(3) { animation-delay: 1.5s; }
@keyframes v-slide {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: none; }
}
.vscene-cta h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; max-width: 620px; }
.v-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.75rem; }
.v-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.v-btn svg { width: 18px; height: 18px; }
.v-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.v-btn.primary { background: #fff; color: #0b1430; border-color: #fff; }
.v-btn.primary:hover { background: color-mix(in srgb, var(--vc) 20%, #fff); }
.story-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  color: #fff;
}
.story-title { margin-right: auto; font-weight: 700; font-size: 1rem; opacity: 0.9; }
.story-ctl {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.story-ctl svg { width: 18px; height: 18px; }
.story-ctl.main { width: 48px; height: 48px; background: #fff; color: #0b1430; border-color: #fff; }
.story-ctl:hover { background: rgba(255, 255, 255, 0.2); }
.story-ctl.main:hover { background: color-mix(in srgb, var(--vc) 25%, #fff); }
.story-ctl:focus-visible, .v-btn:focus-visible, .sol-more:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
@media (max-width: 640px) {
  .story-screen { aspect-ratio: 4 / 5; }
  .vscene { padding: 2.5rem 1.4rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .vscene.active > *, .vscene.active .v-logo, .vscene.active .v-num, .vscene.active .v-ring,
  .vscene.active .v-diff h3, .vscene.active.vscene-gain li, .story-glow, .finder-detail.enter, .sol-card { animation: none; }
}
