/* ================================================
   ARQUITECTURA V4 STACKING — STYLES
   Diseño Enterprise Premium (Portal InsighAI)
   ================================================ */

/* ---- VARIABLES ---- */
:root {
  --color-navy: #02183d;
  --color-navy-deep: #01102b;
  --color-fuchsia: #f21651;
  --color-orange: #ff6b35;
  --color-purple: #9333ea;
  --color-cyan: #39d2c0;
  --color-gold: #f8c453;

  --color-bg-light: #f8f9fa;
  --color-bg-white: #ffffff;
  --color-text-primary: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-border: #e2e8f0;

  --color-success: #00c853;
  --color-warning: #ff9800;
  --color-danger: #f44336;

  --font-display: "Outfit", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ---- RESET & BASE ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.arq-page {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--color-bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

/* ---- CONTENEDORES ---- */
.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-tight {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section-block {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

/* ---- NAVEGACIÓN ---- */
.arq-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(2, 24, 61, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.arq-nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 4px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand-logo {
  height: 65px;
  transition: opacity 0.3s ease;
}

.nav-brand-logo:hover {
  opacity: 0.85;
}

.nav-right-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-links a:hover {
  color: var(--color-cyan);
}

.btn-insightai-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #ff4d7a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-insightai-nav:hover {
  color: #ff7da3;
  text-shadow: 0 0 12px rgba(255, 77, 122, 0.5);
}

.btn-home-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #22c55e;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.4px;
  border: none;
  box-shadow: none;
}

.btn-home-nav:hover {
  color: #4ade80;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.btn-pilot-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #9b6dff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-pilot-nav:hover {
  color: #b794ff;
  text-shadow: 0 0 12px rgba(111, 61, 244, 0.5);
}

.btn-ecosystem-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #f9921c;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-ecosystem-nav:hover {
  color: #ffb347;
  text-shadow: 0 0 12px rgba(249, 146, 28, 0.5);
}

.btn-dashboard-nav {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #3b82f6;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-dashboard-nav:hover {
  color: #60a5fa;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.btn-login-nav,
.btn-nav-cta {
  display: inline-block;
  padding: 8px 14px;
  background: none;
  color: #f21651;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: none;
}

.btn-login-nav:hover,
.btn-nav-cta:hover {
  color: #ff4d7a;
  text-shadow: 0 0 12px rgba(242, 22, 81, 0.5);
}

/* ---- HERO SECTION ---- */
.arq-hero {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #02183d 0%,
    #0a2351 40%,
    #061a3e 70%,
    #02183d 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.arq-hero::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 20% 40%,
      rgba(57, 210, 192, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(147, 51, 234, 0.1) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(242, 22, 81, 0.08) 0%,
      transparent 40%
    );
  animation: heroPulse 18s ease-in-out infinite;
}

@keyframes heroPulse {
  0%,
  100% {
    transform: translate(-5%, -5%) scale(1);
  }
  50% {
    transform: translate(5%, 5%) scale(1.08);
  }
}

.arq-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--spacing-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.4rem;
  background: rgba(57, 210, 192, 0.1);
  border: 1px solid rgba(57, 210, 192, 0.3);
  border-radius: 50px;
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
}

.arq-hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.arq-hero h1 .gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-cyan),
    #a78bfa,
    var(--color-fuchsia)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGradient 5s ease-in-out infinite;
}

@keyframes shimmerGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: white;
  font-weight: 600;
}

.hero-version-info {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  backdrop-filter: blur(6px);
}

.version-pill .pill-icon {
  font-size: 1rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounceDown 2.5s ease-in-out infinite;
  z-index: 10;
}

.mouse-icon {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  position: relative;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheel 2s ease-in-out infinite;
}

@keyframes mouseWheel {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.3;
  }
}

@keyframes bounceDown {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 1;
  }
}

.hero-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-light));
  pointer-events: none;
  z-index: 5;
}

/* ---- SECCIONES ---- */
.section-white {
  background: var(--color-bg-white);
}
.section-light {
  background: var(--color-bg-light);
}
.section-navy {
  background: var(--color-navy);
  color: white;
}
.section-gradient {
  background: linear-gradient(135deg, var(--color-navy) 0%, #0a2351 100%);
  color: white;
}
.section-dark {
  background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  color: #e6edf3;
}

.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-header.centered {
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(242, 22, 81, 0.1);
  color: var(--color-fuchsia);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.section-tag.cyan {
  background: rgba(57, 210, 192, 0.12);
  color: var(--color-cyan);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.section-title.text-white {
  color: white;
}

.section-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 750px;
}

.section-header.centered .section-description {
  margin: 0 auto;
}

.section-navy .section-description,
.section-gradient .section-description,
.section-dark .section-description {
  color: rgba(255, 255, 255, 0.7);
}

.section-navy .section-description strong,
.section-gradient .section-description strong,
.section-dark .section-description strong {
  color: white;
}

/* ---- OVERVIEW CARDS (3 preguntas clave) ---- */
.overview-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.overview-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--card-accent, var(--color-fuchsia)),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.overview-card:hover::before {
  transform: scaleX(1);
}

.overview-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.overview-card h3 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.8rem;
}

.overview-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.overview-card .card-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.9rem;
  background: rgba(57, 210, 192, 0.15);
  color: var(--color-cyan);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---- PIPELINE STEPS CARDS ---- */
.pipeline-step-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pipeline-step-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--step-color, var(--color-fuchsia)),
    transparent
  );
}

.pipeline-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--color-fuchsia),
    var(--color-purple)
  );
  color: white;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
}

.step-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- MERMAID DIAGRAMS ---- */
.mermaid-wrapper {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border: 1px solid rgba(57, 210, 192, 0.15);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  margin: 2rem 0;
  text-align: center;
  overflow-x: auto;
  position: relative;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(57, 210, 192, 0.04);
}

.mermaid-wrapper::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-cyan),
    transparent
  );
  opacity: 0.5;
  border-radius: 2px;
}

.mermaid-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  background: rgba(57, 210, 192, 0.1);
  border: 1px solid rgba(57, 210, 192, 0.2);
  border-radius: 20px;
  color: var(--color-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- TABLES ENTERPRISE ---- */
.table-enterprise {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.section-navy .table-enterprise,
.section-gradient .table-enterprise,
.section-dark .table-enterprise {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-enterprise thead th {
  background: var(--color-navy);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid var(--color-fuchsia);
}

.section-navy .table-enterprise thead th,
.section-dark .table-enterprise thead th {
  background: rgba(255, 255, 255, 0.06);
}

.table-enterprise tbody td {
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.section-navy .table-enterprise tbody td,
.section-dark .table-enterprise tbody td {
  border-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.table-enterprise tbody tr:last-child td {
  border-bottom: none;
}

.table-enterprise tbody tr:hover td {
  background: rgba(242, 22, 81, 0.04);
}

.section-dark .table-enterprise tbody tr:hover td {
  background: rgba(57, 210, 192, 0.06);
}

.table-enterprise tbody td:first-child {
  font-weight: 600;
}

.table-enterprise tbody td code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(147, 51, 234, 0.1);
  color: var(--color-purple);
  padding: 2px 8px;
  border-radius: 4px;
}

.section-navy .table-enterprise tbody td code,
.section-dark .table-enterprise tbody td code {
  background: rgba(57, 210, 192, 0.12);
  color: var(--color-cyan);
}

/* ---- CODE BLOCKS ---- */
.code-block {
  background: #0d1117;
  border: 1px solid rgba(57, 210, 192, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e6edf3;
  position: relative;
}

.code-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-cyan),
    var(--color-purple),
    var(--color-fuchsia)
  );
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.code-block .terminal-header {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-block .dot.red {
  background: #ff5f56;
}
.code-block .dot.yellow {
  background: #ffbd2e;
}
.code-block .dot.green {
  background: #27c93f;
}

.code-block code {
  background: none;
  padding: 0;
  color: inherit;
}

.code-block .cmd {
  color: var(--color-cyan);
}
.code-block .flag {
  color: #8b949e;
}
.code-block .comment {
  color: #6e7681;
}
.code-block .value {
  color: var(--color-gold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(147, 51, 234, 0.08);
  color: var(--color-purple);
  padding: 2px 8px;
  border-radius: 4px;
}

.section-navy code,
.section-dark code {
  background: rgba(57, 210, 192, 0.1);
  color: var(--color-cyan);
}

/* ---- CALLOUT BOXES ---- */
.callout {
  padding: 1.3rem 1.8rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 4px solid;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
}

.callout-info {
  background: rgba(57, 210, 192, 0.06);
  border-color: var(--color-cyan);
}

.callout-warning {
  background: rgba(255, 152, 0, 0.06);
  border-color: var(--color-warning);
}

.callout-success {
  background: rgba(0, 200, 83, 0.06);
  border-color: var(--color-success);
}

.section-navy .callout,
.section-dark .callout {
  background: rgba(255, 255, 255, 0.04);
}

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.badge-new {
  background: rgba(0, 200, 83, 0.15);
  color: var(--color-success);
}

.badge-higgs {
  background: rgba(147, 51, 234, 0.15);
  color: var(--color-purple);
}

.badge-lines {
  background: rgba(57, 210, 192, 0.12);
  color: var(--color-cyan);
}

.section-navy .badge-new {
  color: #6ee7b7;
}
.section-navy .badge-higgs {
  color: #c4b5fd;
}

/* ---- STACKING DIAGRAM ---- */
.stacking-diagram {
  max-width: 700px;
  margin: 2rem auto;
}

.stacking-level {
  border: 1px solid;
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.stacking-level:hover {
  transform: scale(1.02);
}

.stacking-level-1 {
  background: rgba(57, 210, 192, 0.05);
  border-color: rgba(57, 210, 192, 0.25);
}

.stacking-level-2 {
  background: rgba(242, 22, 81, 0.05);
  border-color: rgba(242, 22, 81, 0.25);
}

.level-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.level-1-title {
  color: var(--color-cyan);
}
.level-2-title {
  color: var(--color-fuchsia);
}

.models-row {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.model-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  min-width: 200px;
  text-align: left;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.model-box:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.model-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
  margin-bottom: 0.5rem;
}

.model-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.arrow-down {
  text-align: center;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 1rem 0;
  letter-spacing: 4px;
}

/* ---- FILE TREE ---- */
.file-tree {
  background: #0d1117;
  border: 1px solid rgba(57, 210, 192, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
  margin: 1.5rem 0;
  overflow-x: auto;
  color: #e6edf3;
}

.file-tree .dir {
  color: var(--color-cyan);
  font-weight: 700;
}

.file-tree .file {
  color: #e6edf3;
}

.file-tree .comment {
  color: #6e7681;
  font-style: italic;
}

/* ---- FORMULA BOXES ---- */
.formula {
  background: rgba(57, 210, 192, 0.06);
  border: 1px solid rgba(57, 210, 192, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.2rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-cyan);
  margin: 1.2rem 0;
  transition: all 0.3s ease;
}

.formula:hover {
  background: rgba(57, 210, 192, 0.1);
  box-shadow: 0 0 20px rgba(57, 210, 192, 0.1);
}

/* ---- COMPARISON TABLE ---- */
.comparison-highlight-new td:nth-child(3) {
  color: var(--color-success);
  font-weight: 600;
}

/* ---- FEATURE GRID (inline cards) ---- */
.feature-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.section-navy .feature-card,
.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h4 {
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-dark .feature-card h4 {
  color: white;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-dark .feature-card p {
  color: rgba(255, 255, 255, 0.65);
}

/* ---- FOOTER ---- */
.arq-footer {
  background: var(--color-navy);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 30px;
  opacity: 0.8;
}

.footer-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-cyan);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ---- SUBSECTION TITLES ---- */
.subsection-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subsection-title-dark {
  color: white;
}

/* ---- SCROLL REVEAL CLASSES ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ---- UL / OL ---- */
.content-list {
  padding-left: 1.5rem;
  margin: 0.8rem 0;
}

.content-list li {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-navy .content-list li,
.section-dark .content-list li {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- DIVIDER ---- */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

.section-navy .section-divider,
.section-dark .section-divider {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .overview-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-grid-2 {
    grid-template-columns: 1fr;
  }

  .models-row {
    flex-direction: column;
    align-items: center;
  }

  .model-box {
    min-width: unset;
    width: 100%;
    max-width: 320px;
  }
}

.custom-mermaid-tooltip {
  position: absolute;
  background: var(--color-navy);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  max-width: 280px;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(57, 210, 192, 0.3);
  line-height: 1.5;
  font-weight: 500;
}
.custom-mermaid-tooltip.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .arq-hero h1 {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .arq-nav-inner {
    padding: 0.8rem 1.2rem;
  }

  .nav-right-actions {
    gap: 0.45rem;
    max-width: 72vw;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-right-actions::-webkit-scrollbar {
    display: none;
  }

  .btn-login-nav,
  .btn-home-nav,
  .btn-pilot-nav,
  .btn-ecosystem-nav,
  .btn-dashboard-nav {
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .nav-links {
    display: none;
  }

  .section-block {
    padding: var(--spacing-xl) 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-version-info {
    flex-direction: column;
    align-items: center;
  }

  .container-narrow,
  .container-tight {
    padding: 0 1.2rem;
  }

  .table-enterprise {
    font-size: 0.85rem;
  }

  .table-enterprise thead th,
  .table-enterprise tbody td {
    padding: 0.7rem 0.8rem;
  }

  .stacking-level {
    padding: 1.3rem 1rem;
  }

  .code-block {
    padding: 1rem 1.2rem;
    font-size: 0.8rem;
  }

  .file-tree {
    padding: 1.2rem 1rem;
    font-size: 0.78rem;
  }
}

/* ---- PRINT STYLES ---- */
@media print {
  body.arq-page {
    background: white;
    color: #1a1a1a;
  }

  .arq-nav,
  .hero-scroll-hint,
  .hero-gradient-overlay {
    display: none !important;
  }

  .arq-hero {
    min-height: auto;
    padding: 3rem 2rem;
    background: white;
  }

  .arq-hero h1 {
    color: var(--color-navy);
    -webkit-text-fill-color: var(--color-navy);
    font-size: 2.5rem;
  }

  .section-navy,
  .section-gradient,
  .section-dark {
    background: white;
    color: #1a1a1a;
  }

  .section-block {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  .overview-card,
  .feature-card {
    background: #f9fafb;
    border: 1px solid #d1d5db;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
