:root {
  --page-max: 1440px;
  --soft-surface: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  --soft-border: color-mix(in srgb, var(--border) 75%, transparent);
}

/* View Toggle Pill */
.view-toggle-pill {
  display: flex;
  background: color-mix(in srgb, var(--bg-surface-2) 60%, transparent);
  border: 1px solid var(--soft-border);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.view-toggle-pill button {
  border: none;
  background: transparent;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.view-toggle-pill button.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Mode Visibility Logic */
[data-view-mode="product"] .view-dev,
[data-view-mode="dev"] .view-product {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

[data-view-mode="product"] .view-product,
[data-view-mode="dev"] .view-dev {
  animation: modeEnter 0.6s var(--ease) forwards;
}

@keyframes modeEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-page {
  background: var(--bg-body);
  color: var(--text-main);
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
}

.product-page .container {
  max-width: var(--page-max);
}

body.modal-open {
  overflow: hidden;
}

/* .section-padding {
  padding: 0;
} */

.hero-shell {
  padding-top: 170px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 34px;
}

.hero-copy {
  max-width: 940px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
}

.hero-shell h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 4.45vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  white-space: nowrap;
  margin-bottom: 18px;
}

.hero-shell p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.68;
  margin: 0 auto;
  max-width: 640px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-actions .btn {
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
}

.brand-accent {
  color: var(--primary);
  font-weight: 700;
}

.hero-visual {
  width: 100%;
  max-width: 1200px;
  margin: 60px auto 0;
  transition: all 0.6s var(--ease);
  position: relative;
  z-index: 2;
}

.hero-visual:hover {
  transform: translateY(-10px) scale(1.02);
}

.hero-visuals {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-visuals:hover {
  transform: scale(1);
}

[data-view-mode="dev"] #devHero {
  background:
    radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--primary) 5%, transparent),
      transparent 70%
    ),
    linear-gradient(var(--soft-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--soft-border) 1px, transparent 1px);
  background-size:
    100% 100%,
    40px 40px,
    40px 40px;
  background-position: center;
}

[data-view-mode="dev"] .hero-kicker {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 30%, transparent);
}

.screen-card {
  border: 1px solid var(--soft-border);
  border-radius: 20px;
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 97, 41, 0.08);
}

.screen-head {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--soft-border);
  background: color-mix(in srgb, var(--bg-surface-2) 70%, transparent);
}

.screen-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-dim) 70%, transparent);
}

.screen-head p {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.project-screenshot {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease;
}

/* Proof Ribbon - Premium Style */
.proof-ribbon {
  margin-top: 80px;
  margin-bottom: 20px;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--soft-border);
  border-bottom: 1px solid var(--soft-border);
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--primary) 5%, transparent),
    transparent 70%
  );
}

.proof-ribbon-title {
  margin: 0 0 20px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
}

.proof-ribbon-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.proof-ribbon-tags span {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--soft-border);
  background: var(--soft-surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.3s var(--ease);
}

.proof-ribbon-tags span:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Proof Stats - Elevated Dashboards */
.proof-stats {
  padding: 120px 24px 80px;
  text-align: center;
}

.proof-stats-kicker {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0 0 24px;
}

.proof-stats h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}

.proof-stats > p {
  max-width: 720px;
  margin: 0 auto 64px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.proof-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.proof-stats-grid article {
  padding: 60px 40px;
  background: var(--soft-surface);
  border: 1px solid var(--soft-border);
  border-radius: 32px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.proof-stats-grid article:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.2);
}

.proof-stats-grid article strong {
  display: block;
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.05em;
}

.proof-stats-grid article span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Technical Stack Map */
.tech-stack-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 40px;
}

.stack-category {
  background: color-mix(in srgb, var(--bg-surface-2) 40%, transparent);
  border: 1px solid var(--soft-border);
  padding: 32px;
  border-radius: 20px;
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.stack-category:hover {
  background: color-mix(in srgb, var(--bg-surface-2) 60%, transparent);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.stack-category h5 {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.stack-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-category li {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.stack-category li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.6;
}

.stack-category::after {
  content: "verified_protocol";
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.03;
  font-family: monospace;
}

/* Macro Architecture Blueprint (V4.0) */
/* Global Server Architecture (V7.0) */
.server-architecture-blueprint {
  position: relative;
  font-family: inherit;
}

/* Server Architecture Frame matched perfectly to Desktop App */
.server-frame-outline {
  border: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 30px;
  padding: 60px 40px;
  margin-top: 60px;
  background: color-mix(in srgb, var(--bg-surface-2) 40%, transparent);
  position: relative;
}

.server-frame-outline::before {
  content: "Server Architecture";
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  opacity: 0.8;
}

.server-nodes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 60px 80px; /* matches desktop */
  position: relative;
  z-index: 2;
  align-items: stretch; /* forces identical desktop interior-box stretching */
  padding-top: 20px;
}

/* Gateway Bridge Layout */
.bridge-architecture-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1200px) {
  .server-stack-display {
    grid-template-columns: 1fr;
  }
}

/* Connectors */
.macro-connector {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.connector-h {
  height: 2px;
  background: var(--soft-border);
}

.connector-v {
  width: 2px;
  background: var(--soft-border);
}

@media (max-width: 1200px) {
  .blueprint-base,
  .global-tier,
  .dispatcher-tier {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .macro-architecture-blueprint {
    padding: 40px 20px;
  }
}

/* Desktop Internal Architecture (V5.0) */
.desktop-architecture-blueprint {
  background: color-mix(in srgb, var(--bg-surface) 20%, transparent);
  border: 1px solid var(--soft-border);
  border-radius: 40px;
  padding: 60px 40px;
  margin: 60px auto;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
  font-family: "JetBrains Mono", monospace;
}

.tauri-wrapper-frame {
  border: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 30px;
  padding: 60px 40px;
  background: color-mix(in srgb, var(--bg-surface-2) 40%, transparent);
  position: relative;
}

.tauri-wrapper-frame::before {
  content: "Rust(Tauri) Wrapper - PhysioEZ desktop app";
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  opacity: 0.8;
}

.tauri-nodes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 60px 80px;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

/* Interior Boxes */
.interior-box {
  background: var(--bg-body);
  border: 1px solid var(--soft-border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 2;
}

.interior-box:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.interior-box h5 {
  color: var(--primary);
  font-size: 0.75rem;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.interior-box p,
.interior-box li {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  list-style: none;
  padding: 0;
}

.interior-box li {
  margin-bottom: 8px;
}

.box-highlight {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 12px;
  padding: 12px;
  margin-top: 15px;
}

/* Specific Node Positioning inside Grid */
.node-react {
  grid-area: 1 / 1 / 2 / 2;
}
.node-nodejs {
  grid-area: 1 / 2 / 2 / 3;
}
.node-sync {
  grid-area: 1 / 3 / 3 / 4;
} /* Spans both rows for 4 cards */
.node-mongo {
  grid-area: 2 / 1 / 3 / 2;
}
.node-sqlite {
  grid-area: 2 / 2 / 3 / 3;
}

/* Sync Engine Wrapper Layout */
.node-sync-wrapper {
  background: color-mix(in srgb, var(--bg-surface-2) 30%, transparent);
  border: 1px dashed var(--primary);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.sync-engine-title {
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
}

.sync-steps-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.sync-card {
  background: var(--bg-body);
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.3s var(--ease);
}

.sync-card:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.sync-card h6 {
  color: var(--text-main);
  font-size: 0.75rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.sync-card p {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

/* Sequential Sync Animations */
.sync-card:nth-child(1) {
  animation: syncPulse1 4s infinite;
}
.sync-card:nth-child(2) {
  animation: syncPulse2 4s infinite;
}
.sync-card:nth-child(3) {
  animation: syncPulse3 4s infinite;
}
.sync-card:nth-child(4) {
  animation: syncPulse4 4s infinite;
}

@keyframes syncPulse1 {
  0%,
  100% {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 0 15px color-mix(in srgb, var(--primary) 30%, transparent);
  }
  16%,
  83% {
    border-color: var(--soft-border);
    transform: translateX(0);
    box-shadow: none;
  }
}
@keyframes syncPulse2 {
  0%,
  33%,
  66%,
  100% {
    border-color: var(--soft-border);
    transform: translateX(0);
    box-shadow: none;
  }
  16%,
  83% {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 0 15px color-mix(in srgb, var(--primary) 30%, transparent);
  }
}
@keyframes syncPulse3 {
  0%,
  16%,
  50%,
  83%,
  100% {
    border-color: var(--soft-border);
    transform: translateX(0);
    box-shadow: none;
  }
  33%,
  66% {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 0 15px color-mix(in srgb, var(--primary) 30%, transparent);
  }
}
@keyframes syncPulse4 {
  0%,
  33%,
  66%,
  100% {
    border-color: var(--soft-border);
    transform: translateX(0);
    box-shadow: none;
  }
  50% {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 0 15px color-mix(in srgb, var(--primary) 30%, transparent);
  }
}

/* Flow Lines Specific Positioning */
.flow-lines-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.arch-line {
  position: absolute;
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.arch-line-h {
  height: 2px;
}
.arch-line-v {
  width: 2px;
}

.arch-line-h .packet {
  top: -3px;
}
.arch-line-v .packet {
  left: -3px;
}

/* 8px Animated Dot globally applied */
.packet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  border-radius: 50%;
  opacity: 1;
}

/* Animations bounds */
.pack-up {
  animation: internalFlowUp 0.8s linear infinite;
}
.pack-down {
  animation: internalFlowY 0.8s linear infinite;
}
.pack-right {
  animation: internalFlowX 0.8s linear infinite;
}
.pack-left {
  animation: internalFlowLeft 0.8s linear infinite;
}

@keyframes internalFlowX {
  0% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}
@keyframes internalFlowLeft {
  0% {
    right: 0%;
    left: auto;
  }
  100% {
    right: 100%;
    left: auto;
  }
}
@keyframes internalFlowY {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}
@keyframes internalFlowUp {
  0% {
    bottom: 0%;
    top: auto;
  }
  100% {
    bottom: 100%;
    top: auto;
  }
}

/* Line Absolute Constraints */
.l-mongo-react {
  left: 16.66%;
  top: 25%;
  bottom: 25%;
}
.l-react-node-fwd {
  left: 16.66%;
  top: 20%;
  width: 33.33%;
}
.l-react-node-rev {
  left: 16.66%;
  top: 30%;
  width: 33.33%;
}
.l-node-sqlite-fwd {
  left: 45%;
  top: 25%;
  bottom: 25%;
}
.l-node-sqlite-rev {
  left: 55%;
  top: 25%;
  bottom: 25%;
}
.l-node-sync-fwd {
  left: 50%;
  top: 20%;
  width: 33.33%;
}
.l-node-sync-rev {
  left: 50%;
  top: 30%;
  width: 33.33%;
}

@media (max-width: 1100px) {
  .tauri-nodes-grid {
    grid-template-columns: 1fr;
  }
  .flow-lines-layer {
    display: none;
  }
  .node-react {
    grid-area: auto;
  }
  .node-nodejs {
    grid-area: auto;
  }
  .node-sync {
    grid-area: auto;
  }
  .node-mongo {
    grid-area: auto;
  }
  .node-sqlite {
    grid-area: auto;
  }
}

/* Server Nodes Formatting */
.s-node {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
}

.s-node-mongo {
  grid-area: 1 / 1 / 2 / 2;
}
.s-node-settings {
  grid-area: 2 / 1 / 3 / 2;
}
.s-node-api {
  grid-area: 1 / 2 / 2 / 3;
}
.s-node-payload {
  grid-area: 1 / 3 / 2 / 4;
}
.s-node-mysql {
  grid-area: 2 / 2 / 3 / 3;
}

/* Server specific width tweaks if needed */
.s-node-payload .box-highlight {
  font-size: 0.75rem;
}

/* Server Flow Layer */
.server-flow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Specific Line Positions for Server Grid */

/* Mongo <-> API (Row 1 span) */
.l-smongo-api-1 {
  left: 16%;
  top: 12%;
  width: 34%;
}
.l-smongo-api-2 {
  left: 16%;
  top: 16%;
  width: 34%;
}

/* API <-> Payload (Row 1 span) */
.l-sapi-pay-1 {
  left: 50%;
  top: 12%;
  width: 34%;
}
.l-sapi-pay-2 {
  left: 50%;
  top: 16%;
  width: 34%;
}

/* Mongo <-> User Settings (Col 1 span) */
.l-smongo-set-1 {
  left: 14%;
  top: 22%;
  height: 50%;
}
.l-smongo-set-2 {
  left: 18%;
  top: 22%;
  height: 50%;
}

/* API <-> MySQL (Col 2 span) */
.l-sapi-mysql-1 {
  left: 47%;
  top: 22%;
  height: 50%;
}
.l-sapi-mysql-2 {
  left: 53%;
  top: 22%;
  height: 50%;
}

/* Bridge Flow Lines */
.bridge-flow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1200px) {
  .data-flow-line {
    display: none;
  }
}

/* Detailed Flow Blueprint */

.flow-stage {
  flex: 0 0 280px;
  text-align: center;
  z-index: 2;
}

.stage-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.stage-label {
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.stage-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--soft-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.box-layer {
  padding: 12px;
  background: var(--bg-body);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--soft-border);
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.box-layer::after {
  content: "ACTIVE";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  color: var(--primary);
  opacity: 0.4;
}

.box-layer.accent {
  border-color: var(--primary);
  color: var(--primary);
}

.box-layer.storage {
  background: color-mix(in srgb, var(--primary) 10%, var(--bg-body));
}

.arrow-down {
  margin: 4px 0;
  color: var(--text-dim);
  font-weight: 900;
}

.stage-footer {
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* Connector Logic */
.flow-connector {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.sync-engine-label {
  font-size: 0.65rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
  background: var(--bg-surface-2);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--soft-border);
}

.connector-path {
  width: 100%;
  height: 4px;
  background: var(--soft-border);
  position: relative;
  border-radius: 2px;
}

.data-packet {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
}

.data-packet.forward {
  animation: dataForward 2.5s infinite linear;
}

.data-packet.backward {
  animation: dataBackward 2.5s infinite linear;
  animation-delay: 1.25s;
}

@keyframes dataForward {
  0% {
    left: 0%;
    opacity: 0;
    scale: 0.5;
  }
  20% {
    opacity: 1;
    scale: 1.2;
  }
  80% {
    opacity: 1;
    scale: 1.2;
  }
  100% {
    left: 100%;
    opacity: 0;
    scale: 0.5;
  }
}

@keyframes dataBackward {
  0% {
    left: 100%;
    opacity: 0;
    scale: 0.5;
  }
  20% {
    opacity: 1;
    scale: 1.2;
  }
  80% {
    opacity: 1;
    scale: 1.2;
  }
  100% {
    left: 0%;
    opacity: 0;
    scale: 0.5;
  }
}

.sync-metrics {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  color: var(--primary);
  font-weight: 700;
}

/* Anatomy Section */
.anatomy-section {
  margin-top: 100px;
  background: var(--soft-surface);
  border: 1px solid var(--soft-border);
  border-radius: 40px;
  padding: 60px;
  text-align: left;
}

.anatomy-section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.anatomy-intro {
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.folder-tree {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.tree-root {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.tree-branch {
  margin-left: 20px;
  border-left: 1px solid var(--soft-border);
  padding-left: 20px;
  margin-bottom: 24px;
  position: relative;
}

.tree-branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 15px;
  height: 1px;
  background: var(--soft-border);
}

.tree-branch strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 10px;
}

.tree-branch ul {
  list-style: none;
  padding: 0;
  margin-left: 20px;
}

.tree-branch li {
  margin-bottom: 8px;
  position: relative;
}

.tree-branch li span {
  color: var(--primary);
  opacity: 0.8;
  margin-right: 8px;
}

/* Modules Deep Dive */
/* Expanded Anatomy */
.anatomy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.path-badge {
  font-family: "JetBrains Mono", monospace;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

.anatomy-browser {
  display: flex;
  background: var(--bg-surface-2);
  border: 1px solid var(--soft-border);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 40px;
  min-height: 500px;
}

.anatomy-sidebar {
  width: 300px;
  border-right: 1px solid var(--soft-border);
  background: color-mix(in srgb, var(--bg-body) 60%, transparent);
  padding: 20px 0;
  font-family: inherit;
  font-size: 0.85rem;
}

.file-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-tree li {
  list-style: none;
}

.folder-label {
  display: block;
  padding: 8px 30px;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s var(--ease);
  font-weight: 700;
  user-select: none;
}

.folder-label:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.tree-nested {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}

.tree-file {
  padding: 8px 30px 8px 56px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  position: relative;
}

.tree-file:hover {
  color: var(--text-main);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.tree-file.active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.tree-file.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.anatomy-viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-body);
}

.anatomy-viewer-header {
  padding: 20px 30px;
  border-bottom: 1px solid var(--soft-border);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.anatomy-viewer-content {
  padding: 40px;
  flex: 1;
  overflow-y: auto;
}

.viewer-pane-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.viewer-pane-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 30px;
}

.viewer-pane-desc ul {
  margin-top: 15px;
  padding-left: 20px;
  list-style-type: none;
}

.viewer-pane-desc ul li {
  position: relative;
  margin-bottom: 8px;
  color: var(--text-main);
  opacity: 0.85;
}

.viewer-pane-desc ul li::before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: -20px;
  font-size: 1.2rem;
  top: -2px;
}

.viewer-pane-desc strong {
  color: var(--primary);
  font-weight: 600;
}

.viewer-module-map {
  margin: 25px 0;
  padding: 15px 20px;
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.map-node {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-arrow {
  color: var(--text-dim);
  font-size: 0.8rem;
  padding-left: 8px;
}

.viewer-code-block {
  background: color-mix(in srgb, var(--bg-surface-2) 60%, transparent);
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  padding: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-main);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Data Integrity Section */
.data-integrity-section {
  margin-top: 80px;
  background: color-mix(in srgb, var(--bg-surface-2) 40%, transparent);
  border: 1px solid var(--soft-border);
  border-radius: 40px;
  padding: 60px;
  text-align: left;
}

.integrity-header {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.integrity-icon {
  font-size: 3.5rem;
  opacity: 0.8;
}

.integrity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.integrity-card {
  background: var(--bg-body);
  border: 1px solid var(--soft-border);
  padding: 30px;
  border-radius: 20px;
}

.integrity-card h5 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.integrity-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .anatomy-browser {
    flex-direction: column;
  }
  .anatomy-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--soft-border);
    max-height: 300px;
    overflow-y: auto;
  }
  .integrity-grid {
    grid-template-columns: 1fr;
  }
}

.modules-deep-dive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.module-column {
  background: var(--bg-surface-2);
  border: 1px solid var(--soft-border);
  border-radius: 30px;
  padding: 40px;
  text-align: left;
  transition: all 0.3s var(--ease);
}

.module-column:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.module-icon {
  font-size: 1.8rem;
  padding: 12px;
  background: var(--bg-body);
  border-radius: 12px;
}

.module-column h4 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.module-column p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.module-features {
  list-style: none;
  padding: 0;
}

.module-features li {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-left: 24px;
  position: relative;
}

.module-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

.module-features strong {
  color: var(--text-main);
  display: block;
}

/* Security Baseline */
.security-baseline {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--bg-surface-2), var(--bg-body));
  border: 1px solid var(--primary);
  border-radius: 40px;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.security-baseline::after {
  content: "ENCRYPTED";
  position: absolute;
  top: 20px;
  right: -20px;
  font-size: 6rem;
  font-weight: 950;
  color: var(--primary);
  opacity: 0.03;
  transform: rotate(-10deg);
}

.security-lock {
  font-size: 5rem;
  filter: drop-shadow(
    0 0 20px color-mix(in srgb, var(--primary) 30%, transparent)
  );
}

.security-content h4 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.security-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.security-tags span {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 999px;
}

.security-content p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 700px;
}

@media (max-width: 1100px) {
  .modules-deep-dive {
    grid-template-columns: 1fr;
  }
  .security-baseline {
    flex-direction: column;
    text-align: center;
    padding: 60px 40px;
  }
}

.architecture-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.arch-card {
  background: var(--soft-surface);
  border: 1px solid var(--soft-border);
  padding: 32px;
  border-radius: 24px;
  transition: all 0.3s var(--ease);
}

.arch-card:hover {
  background: var(--bg-surface-2);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.arch-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: color-mix(in srgb, var(--primary) 15%, transparent);
  line-height: 1;
  margin-bottom: 20px;
}

.arch-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.arch-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  .detailed-flow-blueprint {
    flex-direction: column;
    padding: 40px 20px;
    gap: 40px;
  }
  .flow-connector {
    height: 100px;
    width: 2px;
  }
  .connector-path {
    width: 4px;
    height: 100%;
  }
  .architecture-breakdown-grid {
    grid-template-columns: 1fr 1fr;
  }
  .engine-dashboard {
    grid-template-columns: 1fr;
  }
}

.role-shell {
  padding-top: 92px;
  padding-bottom: 92px;
}

.container {
  /* padding: 0; */
  width: 100%;
  min-width: 90%;
  /* margin: 0; */
}

.role-shell .container {
  margin: 0 auto;
  max-width: 100vw;
  min-width: 100vw;
}

.role-shell .section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 34px;
}

.role-shell .section-desc {
  margin: 0 auto;
}

.role-flow-box {
  border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
  border-radius: 40px;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(var(--primary-rgb), 0.15) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 20% 30%,
      rgba(var(--primary-rgb), 0.05) 0%,
      transparent 50%
    ),
    var(--bg-body);
  box-shadow:
    0 0 100px -20px color-mix(in srgb, var(--primary) 10%, transparent),
    inset 0 0 60px color-mix(in srgb, var(--primary) 5%, transparent);
}

.role-flow-box::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  opacity: 0.3;
  pointer-events: none;
}

.role-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 3;
}

.role-toggle {
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  padding: 5px;
  display: inline-flex;
  gap: 6px;
  background: color-mix(in srgb, var(--bg-surface-2) 62%, transparent);
  margin: 0 auto;
}

.role-toggle button {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 124px;
}

.role-toggle .active {
  background: #fff;
  color: #171717;
}

.role-stage {
  position: relative;
  min-height: 1200px;
  z-index: 1;
}

.role-lines {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  width: 80%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.role-lines marker path {
  fill: color-mix(in srgb, var(--primary) 78%, #ffffff 22%);
}

.role-line {
  stroke: rgba(255, 97, 41, 0.4);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  animation: lineFlow 30s linear infinite;
  marker-end: url(#roleArrowHead);
}

@keyframes lineFlow {
  from {
    stroke-dashoffset: 500;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.role-layout {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.22s ease;
}

.role-layout.is-active {
  opacity: 1;
  pointer-events: auto;
}

.role-card {
  position: absolute;
  width: 420px;
  border-radius: 32px;
  border: 1px solid color-mix(in srgb, var(--text-main) 10%, transparent);
  background: color-mix(in srgb, var(--bg-surface) 60%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.4),
    inset 0 0 20px color-mix(in srgb, var(--text-main) 2%, transparent);
  padding: 36px;
  transition: all 0.4s var(--ease);
}

:root:not(.dark) .role-card {
  background: color-mix(in srgb, var(--bg-surface) 80%, transparent);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: color-mix(in srgb, var(--primary) 15%, var(--border));
}

.role-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 97, 41, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 30px 60px -15px rgba(255, 97, 41, 0.15),
    0 0 30px rgba(255, 97, 41, 0.1);
}

.role-card h4 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.role-card p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.role-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card li {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-card li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
}

.role-layout .card-top-center {
  top: 5%;
  left: 50%;
  width: 520px;
  transform: translateX(-50%);
}

.role-layout .card-mid-left {
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.role-layout .card-mid-right {
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
}

.role-layout .card-bottom-center {
  left: 50%;
  bottom: 5%;
  width: 520px;
  transform: translateX(-50%);
}

.core-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 97, 41, 0.1);
  border: 1px solid rgba(255, 97, 41, 0.3);
  color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 97, 41, 0.1);
  z-index: 1;
}

.core-node-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.core-node-inner svg {
  width: 24px;
  height: 24px;
}

/* Card Button Footer */
.role-card-footer {
  display: flex;
  gap: 12px;
}

.role-card-footer .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.role-card-footer .btn-primary {
  background: var(--primary);
  border: none;
}

.role-card-footer .btn-outline {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--text-main) 20%, transparent);
  color: var(--text-main);
}

.role-card-footer .btn-outline:hover {
  background: color-mix(in srgb, var(--text-main) 5%, transparent);
  border-color: color-mix(in srgb, var(--text-main) 40%, transparent);
}

.role-card-footer .btn-full {
  width: 100%;
  background: var(--text-main);
  color: var(--bg-body);
  border: none;
  font-weight: 700;
}

.role-card-footer .btn-full:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

.vision-shell {
  padding-top: 100px;
  padding-bottom: 140px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 97, 41, 0.03) 50%,
    transparent
  );
}

.vision-content {
  max-width: 1200px;
  margin: 0 auto;
}

.vision-main-header {
  margin-bottom: 80px;
  text-align: center;
}

.vision-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-top: 20px;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: flex-start;
}

.vision-intro p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.vision-intro strong {
  color: var(--primary);
  font-weight: 700;
}

.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.pillar-item {
  position: relative;
  padding-left: 80px;
}

.pillar-num {
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
}

.pillar-item h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pillar-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.page-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-chips span {
  border: 1px solid var(--soft-border);
  background: var(--bg-surface);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.module-badge {
  margin-top: 12px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--soft-border));
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--text-main);
  font-size: 0.78rem;
}

.credibility-line {
  margin-top: 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--soft-border);
  margin-top: 20px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text-main);
}

.demo-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1500;
}

.demo-modal.is-open {
  display: block;
}

.demo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 16, 0.75);
  backdrop-filter: blur(5px);
}

.demo-modal-panel {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 30px));
  margin: 10vh auto 0;
  border-radius: 18px;
  border: 1px solid var(--soft-border);
  background: var(--bg-surface);
  padding: 26px;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.7);
}

.demo-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: color-mix(in srgb, var(--bg-surface-2) 85%, transparent);
  color: var(--text-main);
  font-size: 1.35rem;
  line-height: 1;
}

.demo-label {
  margin-bottom: 6px;
}

.demo-modal-panel h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.demo-modal-panel p {
  color: var(--text-muted);
  line-height: 1.6;
}

.demo-credentials {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.demo-credentials div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--bg-surface-2) 78%, transparent);
}

.demo-credentials span {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.demo-credentials code {
  font-family: "JetBrains Mono", monospace;
  color: var(--text-main);
  font-size: 0.9rem;
}

.demo-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

@media (max-width: 1180px) {
  .hero-shell h1 {
    white-space: normal;
  }

  .hero-visual {
    width: 90vw;
  }

  .proof-stats-grid {
    grid-template-columns: 1fr;
  }

  .role-stage {
    min-height: 620px;
  }

  .role-card {
    width: 286px;
  }

  .role-layout .card-top-center,
  .role-layout .card-bottom-center {
    width: 380px;
  }

  .role-layout .card-mid-left {
    left: 10px;
  }

  .role-layout .card-mid-right {
    right: 10px;
  }
}

@media (max-width: 960px) {
  .hero-shell {
    padding-top: 150px;
    gap: 26px;
  }

  .insight-strip {
    grid-template-columns: 1fr;
  }

  .proof-ribbon-tags {
    flex-direction: column;
    align-items: center;
  }

  .role-stage {
    min-height: auto;
  }

  .role-lines,
  .core-node,
  .role-flow-box::before {
    display: none;
  }

  .role-toggle button {
    min-width: 124px;
  }

  .role-layout {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }

  .role-layout.is-active {
    display: grid;
    gap: 10px;
  }

  .role-card {
    position: static;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero-actions,
  .demo-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .demo-actions .btn {
    width: 100%;
  }

  .hero-shell p,
  .vision-quote p {
    font-size: 0.96rem;
  }
}
