/* Merv Website - Colors match Merv-UI (Login, CreateAccount, Dashboard, TestCaseManagement) */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Merv-UI brand (Login, CreateAccount, Dashboard primary red) */
  --merv-primary: #e90101;
  --merv-primary-dark: #c20000;
  --merv-primary-darker: #a00000;
  /* Merv-UI secondary blue (buttons, links, hierarchy) */
  --merv-primary-blue: #007bff;
  --merv-primary-blue-dark: #0056b3;
  /* Merv-UI status colors (TestCaseManagement, Dashboard) */
  --merv-success: #28a745;
  --merv-success-dark: #1e7e34;
  --merv-warning: #ffc107;
  --merv-warning-dark: #e0a800;
  --merv-info: #17a2b8;
  --merv-info-dark: #138496;
  --merv-danger: #dc3545;
  --merv-danger-dark: #c82333;
  /* Merv-UI grays */
  --merv-dark-gray: #2c3e50;
  --merv-medium-gray: #495057;
  --merv-light-gray: #6c757d;
  --merv-lighter-gray: #adb5bd;
  --merv-lightest-gray: #e9ecef;
  --merv-off-white: #f8f9fa;
  --merv-border: #dee2e6;
  --merv-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --merv-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --merv-shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
  --merv-glass: rgba(255, 255, 255, 0.9);
  --merv-glass-border: rgba(222, 226, 230, 0.6);
  --radius: 12px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
  line-height: 33px;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets clear sticky header (doc pages + in-page TOC) */
  scroll-padding-top: 5.75rem;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--merv-dark-gray);
  margin: 0;
  background: linear-gradient(180deg, var(--merv-off-white) 0%, #fff 12rem);
  min-height: 100vh;
}

/* Header - Merv-UI red gradient (Login, CreateAccount) */
.site-header {
  background: linear-gradient(135deg, var(--merv-primary) 0%, #750e0e 100%);
  color: #fff;
  padding: 0.875rem 0;
  box-shadow: var(--merv-shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.site-header .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.site-logo:hover {
  color: #fff;
  opacity: 0.92;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* Mobile hamburger navigation */
.site-header .container {
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-backdrop {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-header.is-nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1001;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    border-radius: 12px;
    background: linear-gradient(165deg, #9a1212 0%, var(--merv-primary-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    transition: max-height 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-header.is-nav-open .site-nav-panel {
    max-height: min(70vh, 420px);
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }

  .site-nav {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem 0.85rem;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Main */
main {
  max-width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  min-height: 65vh;
}

main h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--merv-dark-gray);
  letter-spacing: -0.03em;
}

main .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--merv-medium-gray);
  margin-bottom: 1.5rem;
  max-width: 58rem;
}

main .doc-inline-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  max-width: 58rem;
  border: 1px solid var(--merv-border);
  border-radius: var(--radius);
  background: #f8fafc;
}

main .doc-inline-toc-heading {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--merv-dark-gray);
}

main .doc-inline-toc .feature-list {
  margin-bottom: 0;
}

main h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--merv-primary);
  letter-spacing: -0.02em;
}

main h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--merv-dark-gray);
}

.doc-selector {
  border: 1px solid var(--merv-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--merv-shadow);
  padding: 1rem 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.doc-selector-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.9rem;
}

.doc-selector-field label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.35rem;
  color: var(--merv-dark-gray);
}

.doc-selector-field select {
  width: 100%;
  border: 1px solid var(--merv-border);
  border-radius: 8px;
  background: #fff;
  color: var(--merv-dark-gray);
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
}

.doc-selection-result {
  margin-top: 0.9rem;
  border: 1px dashed var(--merv-border);
  border-radius: 10px;
  padding: 0.9rem;
  background: var(--merv-off-white);
}

.doc-selection-result h3 {
  margin: 0 0 0.35rem;
  color: var(--merv-primary);
}

.doc-selection-result p {
  margin: 0;
}

.doc-selection-active {
  border-style: solid;
  background: #fff;
}

/* Long-form doc pages (e.g. Playwright + merv-client) */
.doc-toc {
  background: linear-gradient(165deg, #fff 0%, var(--merv-off-white) 100%);
  border: 1px solid var(--merv-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem 1.15rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--merv-shadow);
}
.doc-toc .doc-toc-heading,
.doc-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--merv-light-gray);
}
.doc-toc ol,
.doc-toc-root {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-toc ol ol,
.doc-toc-root .doc-toc-sub {
  margin: 0.4rem 0 0.6rem;
}
.doc-toc li {
  margin: 0.5rem 0;
  line-height: 1.4;
}
.doc-toc-root > li > a:not(.doc-toc-branch-label) {
  font-weight: 600;
  color: var(--merv-dark-gray);
}
.doc-toc a {
  color: var(--merv-primary-blue);
  text-decoration: none;
  font-weight: 500;
}
.doc-toc a:hover {
  text-decoration: underline;
}

/* Nested sidebar: section header + indented sub-links */
.doc-toc-branch {
  margin-top: 0.65rem;
}

.doc-toc-root > .doc-toc-branch + .doc-toc-branch {
  margin-top: 1rem;
}
.doc-toc-branch-label {
  display: block;
  font-weight: 600 !important;
  color: var(--merv-dark-gray) !important;
  margin-bottom: 0.35rem;
}
.doc-toc-sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.85rem;
  border-left: 3px solid rgba(233, 1, 1, 0.25);
}
.doc-toc-sub li {
  margin: 0.35rem 0;
}
.doc-toc-sub a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--merv-medium-gray);
}
.doc-toc-sub a:hover {
  color: var(--merv-primary-blue);
}

/* Sidebar layout: left TOC, right article (merv-local-playwright-js.html) */
main.doc-with-sidebar {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  max-height: calc(100vh - 5.75rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
}

.doc-sidebar .doc-toc {
  margin: 0;
}

.doc-main {
  min-width: 0;
}

.doc-main h2[id],
.doc-main h3[id],
.doc-main h4[id] {
  scroll-margin-top: 5.75rem;
}

.doc-main [id].scenario-block {
  scroll-margin-top: 5.75rem;
}

@media (max-width: 960px) {
  main.doc-with-sidebar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .doc-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .doc-sidebar .doc-toc {
    margin: 0 0 0.5rem;
  }
}
.scenario-block {
  border: 1px solid var(--merv-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1.1rem;
  margin: 1.25rem 0 1.75rem;
  background: #fff;
  box-shadow: var(--merv-shadow);
}
.scenario-block h3 {
  margin-top: 0;
  color: var(--merv-primary);
  font-size: 1.15rem;
}
.scenario-when {
  font-size: 0.95rem;
  color: var(--merv-medium-gray);
  margin: 0.35rem 0 0.75rem;
}
.step-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--merv-primary) 0%, var(--merv-primary-dark) 100%);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.doc-link-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.doc-link-btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}

p {
  margin: 0 0 1rem;
  color: var(--merv-medium-gray);
}

.term-highlight {
  color: #b30000;
  background: rgba(233, 1, 1, 0.12);
  border: 1px solid rgba(233, 1, 1, 0.25);
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  font-weight: 700;
}

/* Hero - Merv-UI red gradient */
.hero {
  background: linear-gradient(135deg, var(--merv-primary) 0%, #750e0e 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  margin-top: 2rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,0.12), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero .hero-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* M, E, R, V letter boxes */
.hero-letters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  min-height: 4.5rem;
}

.hero-letter-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-letter-box.visible {
  opacity: 1;
  transform: scale(1);
}

/* Typing effect lines */
.hero-typing {
  max-width: 640px;
  margin: 0 auto;
  color: #fff;
}

.hero-typing p,
.hero-typing span {
  color: #fff;
}

.hero-typing p {
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0 0 0.5rem;
  min-height: 1.85em;
}

.hero-typing-line2 {
  margin-bottom: 0 !important;
}

.typing-cursor {
  display: inline-block;
  font-weight: 300;
  animation: typing-blink 0.9s step-end infinite;
  margin-left: 1px;
  visibility: hidden;
}

@keyframes typing-blink {
  50% { opacity: 0; }
}

/* Cards */
.card-grid-kpi {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.home-kpi-heading {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--merv-dark-gray);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  width: 100%;
  background: var(--merv-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--merv-glass-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--merv-shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--merv-shadow-lg);
}

.card h3 {
  margin-top: 0;
  color: var(--merv-primary);
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 1rem;
  color: var(--merv-medium-gray);
}

.merv-ui-content {
  width: 100%;
}

.merv-ui-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.merv-ui-mode-body {
  flex: 1 1 55%;
  min-width: 0;
}

.merv-ui-mode-slider {
  flex: 1 1 40%;
  min-width: 0;
}

.merv-ui-mode-slider .merv-ui-carousel img {
  height: 168px;
}

.merv-ui-intro {
  margin-bottom: 1rem;
  color: var(--merv-medium-gray);
  font-size: 0.98rem;
  line-height: 1.55;
}

.merv-ui-mode-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.merv-ui-mode-section {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--merv-border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.merv-ui-mode-section h4 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--merv-primary-dark);
  letter-spacing: -0.02em;
}

.merv-ui-mode-section p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--merv-medium-gray);
}

.merv-ui-mode-section .feature-list {
  margin-bottom: 0.65rem;
}

.merv-ui-mode-section .feature-list li {
  font-size: 0.9rem;
}

.merv-ui-mode-local {
  border-left: 3px solid #f57f17;
}

/* Merv-Server promo block on index: disabled in HTML — keep styles for easy re-enable */
.merv-ui-mode-server {
  border-left: 3px solid var(--merv-primary);
}

.merv-ui-mode-link {
  margin: 0 !important;
  font-size: 0.92rem;
}

.merv-ui-mode-link a {
  color: var(--merv-primary-blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 123, 255, 0.35);
}

.merv-ui-mode-link a:hover {
  color: var(--merv-primary-blue-dark);
  border-bottom-color: var(--merv-primary-blue-dark);
}

.merv-ui-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.merv-ui-carousel {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--merv-border);
  background: #fff;
  box-shadow: var(--merv-shadow);
  position: relative;
}

.merv-ui-carousel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
  line-height: 30px;
  text-align: center;
  padding: 0;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.carousel-indicator {
  border: none;
  background: rgba(255, 255, 255, 0.8);
  color: #444;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.carousel-indicator.active {
  background: var(--merv-primary);
  color: #fff;
}

@media (max-width: 900px) {
  .doc-selector-controls {
    grid-template-columns: 1fr;
  }

  .merv-ui-mode-row {
    flex-direction: column;
    align-items: stretch;
  }

  .merv-ui-mode-body,
  .merv-ui-mode-slider {
    flex: 1 1 100%;
    width: 100%;
  }

  .merv-ui-mode-slider .merv-ui-carousel img,
  .merv-ui-carousel img {
    height: 220px;
  }
}

/* Lists */
ul.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

ul.feature-list li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
  color: var(--merv-medium-gray);
}

ul.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--merv-success);
  font-weight: 700;
  font-size: 1rem;
}

/* Buttons - Merv-UI red primary */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--merv-primary) 0%, var(--merv-primary-dark) 100%);
  color: #fff !important;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(233, 1, 1, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff0a0a 0%, var(--merv-primary-dark) 100%);
  box-shadow: 0 4px 16px rgba(233, 1, 1, 0.35);
}

/* Forms */
.form-group {
  margin-bottom: 1.35rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--merv-dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  border: 1px solid var(--merv-border);
  border-radius: 10px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--merv-primary);
  box-shadow: 0 0 0 3px rgba(233, 1, 1, 0.15);
}

.form-required::after {
  content: " *";
  color: var(--merv-danger);
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--merv-primary) 0%, var(--merv-primary-dark) 100%);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(233, 1, 1, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff0a0a 0%, var(--merv-primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(233, 1, 1, 0.35);
}

/* API Doc */
.api-section {
  margin-bottom: 2.5rem;
}

.api-section h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--merv-border);
}

.endpoint-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.endpoint-list li {
  border: 1px solid var(--merv-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--merv-shadow);
}

.endpoint-list li:hover {
  border-color: var(--merv-primary-blue);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.endpoint-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.25rem;
}

.endpoint-method {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 3.2rem;
  text-align: center;
}

.endpoint-method.get { background: #cce5ff; color: var(--merv-primary-blue-dark); }
.endpoint-method.post { background: #d4edda; color: var(--merv-success-dark); }
.endpoint-method.put { background: #fff3cd; color: #856404; }
.endpoint-method.patch { background: #d1ecf1; color: var(--merv-info-dark); }
.endpoint-method.delete { background: #f8d7da; color: var(--merv-danger-dark); }

.endpoint-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--merv-dark-gray);
  font-weight: 500;
}

.endpoint-desc {
  color: var(--merv-light-gray);
  font-size: 0.9rem;
  margin-left: auto;
}

/* Code / pre */
code {
  font-family: 'JetBrains Mono', monospace;
  background: #e6e9ec;
  color: #0c3b6b;
  border-radius: 10px;
  padding: 0.25em 0.5em;
  font-size: 0.9em;
}

pre {
  font-family: 'JetBrains Mono', monospace;
  background: #f9fbfc;
  color: #0c3b6b;
  border-radius: 10px;
  font-size: 0.9em;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--merv-medium-gray);
}

pre code {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
}

/* Code block with top-right copy */
.code-block-copy {
  position: relative;
}

.code-block-copy > pre {
  padding-top: 2.5rem;
  padding-right: 4.5rem;
}

.code-copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 1;
  margin: 0;
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  color: var(--merv-dark-gray);
  background: #fff;
  border: 1px solid var(--merv-medium-gray);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(12, 59, 107, 0.06);
}

.code-copy-btn:hover {
  background: #f4f6f8;
  border-color: var(--merv-border);
}

.code-copy-btn:focus-visible {
  outline: 2px solid var(--merv-blue, #0c3b6b);
  outline-offset: 2px;
}

/* Playwright-style doc blocks */
.doc-you-will-learn {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem 1.1rem;
  max-width: 58rem;
  border-left: 4px solid var(--merv-red, #e2433a);
  background: #f8fafc;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.doc-you-will-learn strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--merv-dark-gray);
}

.doc-you-will-learn ul {
  margin: 0;
  padding-left: 1.25rem;
}

.doc-you-will-learn li {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.doc-callout-tip {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem;
  max-width: 58rem;
  border: 1px solid #c5d9f0;
  border-radius: var(--radius);
  background: #eef6ff;
  font-size: 0.95rem;
  line-height: 1.55;
}

.doc-callout-tip strong {
  color: var(--merv-dark-gray);
}

.doc-file-tree {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  max-width: 42rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #f9fbfc;
  border: 1px solid var(--merv-border);
  border-radius: var(--radius);
  color: #24292f;
  white-space: pre;
}

.doc-steps {
  margin: 1rem 0 1.5rem;
  padding-left: 1.35rem;
  max-width: 58rem;
}

.doc-steps li {
  margin: 0.65rem 0;
  line-height: 1.6;
}

.doc-whats-next {
  margin: 2.5rem 0 1rem;
  padding: 1.25rem 1.35rem;
  max-width: 58rem;
  border: 1px solid var(--merv-border);
  border-radius: var(--radius);
  background: #fafbfc;
}

.doc-whats-next h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.doc-whats-next ul {
  margin-bottom: 0;
}

.doc-subsection-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--merv-dark-gray);
}

/* Doc language tabs (e.g. Option A JS / TS) */
.doc-tabs {
  margin: 1.25rem 0 1.75rem;
  max-width: 58rem;
}

.doc-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--merv-border);
}

.doc-tab {
  margin: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #57606a;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.doc-tab:hover {
  color: var(--merv-dark-gray);
  background: #f6f8fa;
}

.doc-tab.is-active,
.doc-tab[aria-selected="true"] {
  color: var(--merv-primary);
  border-bottom-color: var(--merv-primary);
  background: #fff;
}

.doc-tab-panel {
  display: none;
  padding-top: 1.25rem;
}

.doc-tab-panel.is-active {
  display: block;
}

.doc-tab-panel .doc-steps {
  margin-top: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--merv-shadow);
}

th, td {
  border: 1px solid var(--merv-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

th {
  background: var(--merv-off-white);
  font-weight: 600;
  color: var(--merv-dark-gray);
}

/* Alerts */
.alert {
  padding: 1.1rem 1.35rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.alert-info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
  color: var(--merv-info-dark);
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: var(--merv-success-dark);
}

.alert-warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

/* Footer - Merv-UI dark gray */
/* Footer - same red theme as header/hero */
.site-footer {
  background: linear-gradient(135deg, var(--merv-primary) 0%, var(--merv-primary-dark) 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-powered {
  margin: 0;
  color: #fff;
  font-weight: 500;
}

.footer-subtitle {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 700px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    width: 100%;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }
}

/* Defect list */
.defect-list { list-style: none; padding: 0; margin: 0; }
.defect-list li {
  border: 1px solid var(--merv-border);
  border-radius: 10px;
  padding: 1.1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: var(--merv-shadow);
}
.defect-list .meta { font-size: 0.875rem; color: var(--merv-light-gray); margin-top: 0.5rem; }

/* Swagger link block - Merv-UI dark gray + blue link */
.swagger-link-box {
  background: linear-gradient(135deg, var(--merv-dark-gray) 0%, #1a252f 100%);
  color: #e9ecef;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--merv-medium-gray);
}

.swagger-link-box a {
  color: var(--merv-primary-blue);
  font-weight: 600;
}

.swagger-link-box a:hover {
  text-decoration: underline;
}

/* ——— Home page (index.html) ——— */
.page-home main {
  max-width: 1180px;
  padding-top: 0;
}

.page-home .hero {
  margin: 0 -1.5rem 3rem;
  padding: 4rem 1.5rem 0;
  text-align: left;
  background: linear-gradient(145deg, #1a0505 0%, var(--merv-primary) 42%, #8b1010 100%);
}

.page-home .hero::before {
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(255, 255, 255, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 255, 255, 0.08), transparent);
}

.page-home .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem 3rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 3.5rem;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.page-home .hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dffb3;
  box-shadow: 0 0 10px rgba(125, 255, 179, 0.8);
  animation: hero-pulse 2s ease-in-out infinite;
}

@keyframes hero-pulse {
  50% { opacity: 0.55; transform: scale(0.85); }
}

.page-home .hero-letters {
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.page-home .hero-typing {
  margin: 0;
  max-width: none;
}

.page-home .hero-typing p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.page-home .hero-typing-line1 {
  font-size: 1.35rem !important;
  font-weight: 600;
  min-height: 2em;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.page-home .btn-hero-outline {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.page-home .btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.page-home .hero-visual {
  position: relative;
  min-width: 0;
}

.page-home .hero-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  background: #1e1e1e;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.45s ease;
}

.page-home .hero-frame:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.page-home .hero-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .hero-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.page-home .hero-frame-dot:nth-child(1) { background: #ff5f57; }
.page-home .hero-frame-dot:nth-child(2) { background: #febc2e; }
.page-home .hero-frame-dot:nth-child(3) { background: #28c840; }

.page-home .hero-frame-title {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.page-home .hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.page-home .hero-float-card {
  position: absolute;
  right: -0.5rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  color: var(--merv-dark-gray);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 11rem;
}

.page-home .hero-float-card img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: -1.75rem 0 3rem;
  position: relative;
  z-index: 2;
}

.page-home .hero-stat {
  background: #fff;
  border: 1px solid var(--merv-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--merv-shadow-md);
  text-align: center;
}

.page-home .hero-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--merv-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.page-home .hero-stat span {
  font-size: 0.88rem;
  color: var(--merv-light-gray);
  line-height: 1.35;
}

.page-home .section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #fff 0%, var(--merv-off-white) 100%);
  border: 1px solid var(--merv-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--merv-shadow-md);
}

.page-home .section-intro h1 {
  margin-top: 0;
  font-size: 2rem;
}

.page-home .section-intro-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--merv-border);
  box-shadow: var(--merv-shadow-lg);
}

.page-home .section-intro-media img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .framework-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .framework-strip li {
  padding: 0.4rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--merv-dark-gray);
  background: #fff;
  border: 1px solid var(--merv-border);
  border-radius: 999px;
  box-shadow: var(--merv-shadow);
}

.page-home .feature-showcase {
  margin: 3rem 0;
}

.page-home .feature-showcase h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.75rem;
}

.page-home .feature-showcase > p {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.page-home .bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.page-home .bento-item {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--merv-border);
  background: #fff;
  box-shadow: var(--merv-shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--merv-shadow-lg);
}

.page-home .bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 160px;
}

.page-home .bento-item-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.88));
  color: #fff;
}

.page-home .bento-item-overlay h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #fff;
}

.page-home .bento-item-overlay p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.page-home .bento-large {
  grid-column: span 7;
  min-height: 280px;
}

.page-home .bento-medium {
  grid-column: span 5;
  min-height: 280px;
}

.page-home .bento-small {
  grid-column: span 4;
  min-height: 200px;
}

.page-home .view-section {
  margin: 3.5rem 0;
  padding-top: 0.5rem;
}

.page-home .view-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--merv-lightest-gray);
}

.page-home .view-section-header h2 {
  margin: 0;
}

.page-home .view-section-header p {
  margin: 0;
  max-width: 36rem;
  flex: 1 1 280px;
}

.page-home .view-with-image {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.page-home .view-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--merv-border);
  box-shadow: var(--merv-shadow-lg);
  background: #fff;
}

.page-home .view-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .view-shot figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--merv-light-gray);
  background: var(--merv-off-white);
  border-top: 1px solid var(--merv-border);
  margin: 0;
}

.page-home .card-grid-visual .card {
  display: flex;
  flex-direction: column;
}

.page-home .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(233, 1, 1, 0.12) 0%, rgba(233, 1, 1, 0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.page-home .merv-ui-card {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.page-home .merv-ui-card > h3 {
  margin: 0;
  padding: 1.5rem 1.75rem 0;
}

.page-home .merv-ui-card .merv-ui-content {
  padding: 0 1.75rem 1.75rem;
}

.page-home .merv-ui-mode-slider .merv-ui-carousel img {
  height: 320px;
  object-fit: cover;
  object-position: top center;
}

.page-home .merv-ui-carousel {
  border-radius: 12px;
}

.page-home .kpi-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.page-home .kpi-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--merv-border);
  box-shadow: var(--merv-shadow-md);
  background: #fff;
}

.page-home .kpi-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .kpi-gallery figcaption {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--merv-medium-gray);
  background: var(--merv-off-white);
  border-top: 1px solid var(--merv-border);
}

.page-home .cta-band {
  margin: 4rem 0 2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--merv-dark-gray) 0%, #1a252f 100%);
  color: #fff;
  box-shadow: var(--merv-shadow-lg);
}

.page-home .cta-band h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.65rem;
}

.page-home .cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.page-home .cta-band .btn-primary {
  margin: 0 0.35rem;
}

.page-home .cta-band .btn-hero-outline {
  margin: 0 0.35rem;
}

.page-home .hero .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-home .home-actions {
  margin: 2rem 0;
}

@media (max-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-home .hero-letters {
    justify-content: center;
  }

  .page-home .hero-actions {
    justify-content: center;
  }

  .page-home .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .page-home .hero-frame {
    transform: none;
  }

  .page-home .hero-float-card {
    right: 0.5rem;
  }

  .page-home .section-intro,
  .page-home .view-with-image {
    grid-template-columns: 1fr;
  }

  .page-home .bento-large,
  .page-home .bento-medium,
  .page-home .bento-small {
    grid-column: span 12;
  }

  .page-home .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .page-home .kpi-gallery {
    grid-template-columns: 1fr;
  }
}
