/* ==========================================================================
   Birbal AI: design tokens (v2, "Blueprint", engineered, modern, professional)
   ========================================================================== */

:root {
  --ink: #14171F;
  --ink-soft: #454A57;
  --graphite: #F5F6F8;
  --panel: #FFFFFF;
  --line: #DEE1E6;
  --line-strong: #C4C9D1;

  --amber: #FF7A00;
  --amber-deep: #DB6800;
  --cobalt: #2A4B8D;
  --cobalt-deep: #1E3766;
  --teal: #0E7C86;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max-w: 1760px;
  --gutter: clamp(1.25rem, 3.5vw, 4.5rem);
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--graphite);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
a { color: var(--cobalt); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.01em; }

/* ---------- Pre-header ---------- */
.pre-header {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}
.pre-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem var(--gutter);
  flex-wrap: wrap;
}
.pre-header a.pre-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pre-header .pre-note { color: rgba(255,255,255,0.6); font-size: 0.8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245,246,248,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nav-center { display: flex; justify-content: center; }
.header-actions { display: flex; align-items: center; gap: 1rem; justify-self: end; }
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--amber); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li.mobile-cta { display: none; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--amber); }

.nav-cta {
  display: inline-block;
  background: var(--ink);
  color: #fff !important;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--cobalt-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .header-actions .nav-cta { display: none; }
  .nav-center { position: static; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--panel);
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 520px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li.mobile-cta { display: block; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem var(--gutter); }
  .nav-links li.mobile-cta .nav-cta { margin: 1rem var(--gutter); text-align: center; display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background-image:
    linear-gradient(var(--graphite) 0%, var(--graphite) 100%),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 48px);
  background-blend-mode: normal;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
  background: rgba(14,124,134,0.08);
  border: 1px solid rgba(14,124,134,0.25);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: inline-block; }

.hero p.lead { font-size: 1.15rem; max-width: 50ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--amber); color: #17110a; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--cobalt-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* Schematic panel (hero visual) */
.schema-panel {
  background: var(--panel);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
}
.schema-panel .corner {
  position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--ink);
}
.schema-panel .corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.schema-panel .corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.schema-panel .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.schema-panel .head span:last-child { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); }
.schema-row { display: flex; justify-content: space-between; padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.schema-row:first-of-type { border-top: none; }
.schema-row .k { color: var(--ink-soft); }
.schema-row .v { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); }
.schema-row .v.ok { color: var(--teal); }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.75rem; }
.section-head .eyebrow-text {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--cobalt); display: block; margin-bottom: 0.6rem;
}

/* Panel grid (services / industries): flat bordered panels, not soft-shadow cards */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
@media (max-width: 900px) { .panel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .panel-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  padding: 1.9rem;
  border-top: 3px solid var(--cobalt);
}
.panel.accent-amber { border-top-color: var(--amber); }
.panel.accent-teal { border-top-color: var(--teal); }
.panel h3 { margin-bottom: 0.5rem; }
.panel p { font-size: 0.94rem; margin-bottom: 0.75rem; }
.panel a.detail-link {
  font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid var(--amber);
}
.panel-tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 0.6rem;
}

/* Industries strip */
.industry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
@media (max-width: 900px) { .industry-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .industry-strip { grid-template-columns: 1fr; } }
.industry-cell {
  background: var(--panel);
  padding: 1.5rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.industry-cell h4 { font-size: 1rem; margin-bottom: 0.4rem; font-family: var(--font-display); }
.industry-cell p { font-size: 0.85rem; margin-bottom: 0; }
.industry-cell a { font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--cobalt); margin-top: 0.75rem; display: inline-block; }

/* Process steps */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }
.process-list li { border-top: 3px solid var(--amber); padding-top: 1rem; }
.process-num { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cobalt); display: block; margin-bottom: 0.5rem; }

/* Two column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split ul { padding-left: 1.1rem; }
.split li { margin-bottom: 0.6rem; color: var(--ink-soft); }

/* Stat band */
.stat-band { background: var(--ink); color: #fff; }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.5rem var(--gutter); }
@media (max-width: 760px) { .stat-band .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat-band dd { font-family: var(--font-display); font-size: 2rem; margin: 0; color: var(--amber); }
.stat-band dt { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 0.25rem; }

/* Lead magnet band */
.lead-magnet {
  background: var(--panel);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 780px) { .lead-magnet { grid-template-columns: 1fr; } }
.lead-magnet .mono { color: var(--cobalt); display: block; margin-bottom: 0.5rem; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq-item summary {
  font-family: var(--font-display); font-size: 1.05rem; cursor: pointer; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--amber); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 0.75rem; }

/* CTA band */
.cta-band { background: var(--cobalt); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* Forms */
.lead-form { background: var(--panel); border: 1.5px solid var(--line-strong); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 110px; }

/* Phone number with country-code selector */
.phone-input-group { display: flex; gap: 0.5rem; }
.phone-input-group select { flex: 0 0 auto; width: 128px; }
.phone-input-group input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {
  .phone-input-group { flex-direction: column; }
  .phone-input-group select { width: 100%; }
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.5rem; }
#form-status { margin-top: 1rem; font-weight: 600; }
#form-status.success { color: var(--teal); }
fieldset { border: none; padding: 0; margin: 0 0 1.5rem; }
fieldset legend { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.9rem; padding: 0; color: var(--ink); }

/* Footer (v5: left-to-right layout, two-column nav, justified disclaimer) */
.site-footer { border-top: 1.5px solid var(--line-strong); background: var(--ink); color: rgba(255,255,255,0.85); padding: 3.5rem 0 2rem; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}
.footer-brand { max-width: 36ch; }
.footer-brand .logo { color: #ffffff !important; display: inline-block; }
.footer-brand .logo span { color: var(--amber); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0.6rem 0 0; }
.footer-nav-columns {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.footer-nav-col h4 {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.footer-nav-col ul { list-style: none; margin: 0; padding: 0; }
.footer-nav-col li { margin-bottom: 0.65rem; }
.footer-nav-col a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.92rem; }
.footer-nav-col a:hover { color: var(--amber); }

/* Location badges under the footer brand description */
.footer-locations { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem; }
.location-badge {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.location-badge:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255,122,0,0.08);
  transform: translateY(-2px);
}

.footer-legal {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  width: 100%;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
  text-align-last: left;
}
.footer-legal::first-line { color: rgba(255,255,255,0.75); }

/* Trust / chip strip */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: var(--panel);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.chip:hover { border-color: var(--cobalt); background: rgba(42,75,141,0.05); transform: translateY(-2px); }

/* Marquee: keeps a long chip list on a single scrolling line */
.chip-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.chip-marquee .chip-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 0.55rem;
  animation: chipScroll 32s linear infinite;
}
.chip-marquee:hover .chip-track { animation-play-state: paused; }
.chip-marquee .chip { white-space: nowrap; }
@keyframes chipScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .chip-marquee .chip-track { animation: none; }
  .chip-marquee { overflow-x: auto; }
}

/* Engagement models */
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
@media (max-width: 900px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .model-grid { grid-template-columns: 1fr; } }
.model-cell {
  background: var(--panel);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.model-cell h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.model-cell p { font-size: 0.9rem; flex-grow: 1; }
.model-cell .mono { color: var(--cobalt); margin-top: 0.75rem; }

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  font-size: 0.92rem;
}
.compare-table th, .compare-table td {
  border: 1px solid var(--line-strong);
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.compare-table tbody th {
  font-weight: 600;
  background: var(--graphite);
  white-space: nowrap;
}
.compare-table-wrap { overflow-x: auto; }

/* Tech stack chips */
.stack-group { margin-bottom: 1.75rem; }
.stack-group h4 { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 0.7rem; }

/* Milestones / timeline */
.timeline { border-left: 2px solid var(--line-strong); margin-left: 0.5rem; }
.timeline-item { position: relative; padding: 0 0 2rem 1.75rem; }
.timeline-item::before {
  content: "";
  position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--panel);
}
.timeline-item .mono { color: var(--cobalt); display: block; margin-bottom: 0.3rem; }
.timeline-item:last-child { padding-bottom: 0; }

/* Industry index (quick jump grid) */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) { .index-grid { grid-template-columns: repeat(2, 1fr); } }
.index-grid a {
  display: block;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.index-grid a:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ==========================================================================
   Motion: reveal-on-scroll, hover states, lightning accents
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lightningSweep {
  0% { transform: translateX(-120%) skewX(-20deg); opacity: 0; }
  8% { opacity: 1; }
  35% { opacity: 1; }
  50% { transform: translateX(220%) skewX(-20deg); opacity: 0; }
  100% { transform: translateX(220%) skewX(-20deg); opacity: 0; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,0,0.0); }
  50% { box-shadow: 0 0 0 6px rgba(255,122,0,0.08); }
}
@keyframes dashTravel {
  to { stroke-dashoffset: -400; }
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Lightning sweep accent, used on hero border and primary buttons */
.lightning-edge { position: relative; overflow: hidden; }
.lightning-edge::after {
  content: "";
  position: absolute; top: 0; left: 0; height: 100%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,122,0,0.35), rgba(42,75,141,0.35), transparent);
  animation: lightningSweep 5s ease-in-out infinite;
  animation-delay: 1.2s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .lightning-edge::after { animation: none; display: none; }
}

/* Hover lift for interactive panels */
.panel, .industry-cell, .model-cell, .chip, .schema-panel, .index-grid a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.panel:hover, .industry-cell:hover, .model-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgba(20,23,31,0.35);
  position: relative;
  z-index: 1;
}
.schema-panel:hover { box-shadow: 0 14px 30px -16px rgba(20,23,31,0.4); }
.index-grid a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(20,23,31,0.3); }

.btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 10px 22px -10px rgba(255,122,0,0.55); }
.btn-dark:hover { box-shadow: 0 10px 22px -10px rgba(20,23,31,0.5); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::after { left: 130%; }

.nav-links a, .footer-nav-horizontal a, a.detail-link { transition: color 0.15s ease, border-color 0.15s ease; }

/* Animated schema-row check pulse (subtle, draws eye to "ok" states) */
.schema-row .v.ok { position: relative; }
.v.ok::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
  animation: glowPulse 2.4s ease-in-out infinite;
}

/* ==========================================================================
   Responsiveness pass: explicit tablet band + wide-screen comfort
   ========================================================================== */

@media (min-width: 1601px) {
  .wrap { padding-left: clamp(2rem, 6vw, 6rem); padding-right: clamp(2rem, 6vw, 6rem); }
}

@media (max-width: 1024px) {
  .panel-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .industry-strip { grid-template-columns: repeat(2, 1fr) !important; }
  .model-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 780px) {
  .footer-top { flex-direction: column; }
  .footer-nav-columns { width: 100%; justify-content: space-between; gap: 2rem; }
}

@media (max-width: 680px) {
  .panel-grid, .industry-strip, .model-grid { grid-template-columns: 1fr !important; }
  .compare-table { font-size: 0.82rem; }
  .compare-table th, .compare-table td { padding: 0.65rem 0.7rem; }
  .footer-legal { text-align: left; }
  .footer-nav-columns { flex-direction: column; gap: 1.5rem; }
  .counters-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 400px) {
  h1 { font-size: 2.1rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* Auto-rotating carousel (used inside schema-panel "screens") */
.carousel-panel { min-height: 232px; }
.carousel-panel .carousel-slide {
  display: none;
  animation: fadeInUp 0.5s ease;
}
.carousel-panel .carousel-slide.is-active { display: block; }
.carousel-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.1rem;
  justify-content: center;
}
.carousel-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: var(--line-strong);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dots button.is-active { background: var(--amber); transform: scale(1.25); }
.carousel-dots button:hover { background: var(--cobalt); }
@media (prefers-reduced-motion: reduce) {
  .carousel-panel .carousel-slide { animation: none; }
}

/* Utility */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--amber); color: #17110a; padding: 0.75rem 1.25rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero p.lead { font-size: 1.1rem; max-width: 65ch; }

.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--cobalt); }

/* Honeypot (spam trap, hidden from real users) */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Privacy / data disclosure note near forms */
.privacy-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--graphite);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
}
.privacy-note a { color: var(--cobalt); }

/* Expanded counter grid (results / assurance band, light theme, bold two-row layout) */
.counters-band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
@media (max-width: 900px) { .counters-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .counters-grid { grid-template-columns: repeat(2, 1fr); } }
.counter-cell {
  background: var(--panel);
  padding: clamp(1.75rem, 3vw, 2.5rem) 1.1rem;
  text-align: center;
}
.counter-cell .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--amber-deep);
  display: block;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.counter-cell .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Values grid (about page) */
.value-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.6rem; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Badge row (compliance / practice badges, factual and generic) */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.6rem 0.9rem; background: var(--panel);
}
.badge .dot-teal { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; }
