@font-face {
  font-family: 'Roobert';
  src: url('assets/fonts/Roobert/RoobertTRIAL-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Roobert';
  src: url('assets/fonts/Roobert/RoobertTRIAL-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roobert';
  src: url('assets/fonts/Roobert/RoobertTRIAL-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Roobert';
  src: url('assets/fonts/Roobert/RoobertTRIAL-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Roobert';
  src: url('assets/fonts/Roobert/RoobertTRIAL-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Roobert';
  src: url('assets/fonts/Roobert/RoobertTRIAL-Heavy.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}


:root {
  --color-primary: black;
  --color-secondary: black;
  --color-background: white;
  --color-text: #222;
  --color-accent: black;

  --font-family-base: 'Roobert', sans-serif;
  --font-size-base: 16px;
  --font-size-lg: 2rem;
  --font-size-md: 1.25rem;
  --font-size-sm: 0.875rem;

  --font-weight-normal: 300;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Breakpoints */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1rem;
}

h5 {
  font-size: .8rem;
}

h6 {
  font-size: .5rem;
}

/* Custom Styles */
.container {
  max-width: clamp(300px, 100%, 1425px);
  margin: 0 auto;
  padding: var(--space-md);
}

.button {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all 0.1s ease;
}

.button-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.button-primary:hover {
  opacity: 0.8;
}

.top-bar {
  position: sticky;
  top: 0;
  left: 0;
  background: white;
  height: 60px;
  width: 100%;
  border-bottom: 1px solid #eee;
  z-index: 10;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
}

.navbar {
  padding: var(--space-sm) var(--space-md);
  display: none;
}

.navbar ul {
  display: flex;
  list-style: none;
  padding: 0;
}

.navbar-item {
  display: inline-block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.navbar-item-link span {
  position: relative;
  display: inline-block;
}

.navbar-item-link span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.navbar-item-link:hover span::after {
  width: 100%;
}

.navbar-item-dropdown {
  position: relative;
}

.navbar-item-dropdown::after {
  content: '';
  display: inline-block;
  margin-left: 10px;
  margin-top: -6px;
  vertical-align: middle;
  border: solid var(--color-primary);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}


.dropdown-menu {
  position: relative;
  display: none;
  background: #fff;
  border-radius: var(--radius-md);
  flex-direction: column;
  gap: var(--space-lg);
  z-index: 10;
  overflow: hidden;
  border: 1px solid #eee;
  width: 100%;
}

.navbar--mobile {
  background: white;
  width: 100%;
  overflow: auto;
  height: calc(100vh - 60px);
  position: fixed;
  top: 60px;
  left: 0;
  z-index: 10;
  display: none;
  ;
}

.navbar--mobile li:hover .dropdown-menu {
  display: block;
}

.navbar--mobile li:hover .navbar-item-dropdown::after {
  transform: rotate(-135deg);
  margin-top: 0px;
}

.dropdown-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dropdown-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.dropdown-header {
  background: #f8f8f8;
  padding: var(--space-sm) var(--space-md);
  font-weight: var(--font-weight-bold);
  font-size: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  opacity: 0.7;
}

.dropdown-cell {
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.dropdown-cell:last-child {
  border-right: none;
}

.top-bar .features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #eee;
  align-items: start;
}

.top-bar .feature-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  border: 1px solid #eee;
  height: 100%;
}

.top-bar .feature-item:hover {
  background: #e8e8e8;
}

.top-bar .feature-item .feature-icon {
  background: linear-gradient(45deg, black, #4a4a4a);
  font-size: 16px;
  color: #e8e8e8;
  margin: 11px auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 50px;
  border-radius: 6px;
}

.top-bar .feature-text {
  padding: var(--space-sm);
  border-left: 1px solid #eee;
}

.top-bar .feature-title {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.top-bar .feature-desc {
  font-size: 0.75rem;
  color: #555;
  margin-top: 2px;
}

.top-bar .additional {
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
}

.top-bar .additional a {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding: var(--space-xs) 0;
  transition: color 0.2s ease;
}

.top-bar .additional a:hover {
  color: var(--color-secondary);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 1px solid #eee;
}

.dropdown-link:hover {
  background-color: var(--color-secondary);
  color: #fff;
}

.dropdown-link img {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
}

.hero-content {
  margin: auto;
  width: clamp(300px, 100%, 1000px);
  text-align: center;
  margin-block: var(--space-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-title {
  font-weight: var(--font-weight-bold);
}

.hero-content p {
  font-size: 20px;
  color: #4e4e4e;
  margin-block: 23px;
}

.flow-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  overflow: hidden;
  border: 1px solid;
}

.feature-section .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-block: var(--space-xl);
}

.feature-section .feature-preview {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-section .feature-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.feature-section .feature-list {
  list-style: circle;
  display: flex;
  flex-direction: column;
  margin-block: var(--space-lg);
  gap: var(--space-lg);
  margin-left: var(--space-md);
}

.footer .container {
  background: #ffffff;
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid #e7e7e7;
}

.footer-header {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
  padding: 10px 0;
  text-align: center;
}

.footer-header img {
  display: none;
}

.footer-copyright {
  text-align: center;
  width: 100%;
  margin-top: var(--space-md);
}

/* How it works component */
.how-it-works {
  /* margin-block: var(--space-xl); */
  /* background: #fafafa; */
  /* border: 1px solid #eee; */
  border-radius: var(--radius-lg);
  /* padding: var(--space-lg); */
}

.how-it-works h2 {
  margin: 0 !important;
}

.how-steps {
  counter-reset: step-counter;
  display: grid;
  gap: var(--space-lg);
  padding-left: 0 !important;
}

.how-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  justify-content: start;
  gap: var(--space-md);
  position: relative;
  padding: var(--space-md);
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  /* flex-direction: column; */
}

.how-step-index {
  width: 80px;
  height: 80px;
  border-radius: 7px;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  /* border: 1px solid #000000; */
  margin: 11px auto;
}

.how-step-title {
  margin: 0 !important;
}

.how-step-desc {
  margin: 0;
  color: #444;
}

@media (min-width: 768px) {
  .how-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* Accordion (FAQ) */
.accordion {
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: var(--space-md) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.accordion-title {
  font-weight: var(--font-weight-bold);
  font-size: 1.5rem;
}

.accordion-icon {
  transition: transform 0.2s ease;
  font-size: var(--font-size-lg);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  color: #444;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;

  font-size: var(--font-size-md);
}

.accordion-panel.open {
  max-height: 1000px;
  /* large enough for content */
  opacity: 1;
}

/* Focus and accessibility */
.accordion-header:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- IMPORTED SECTIONS --- */
/* Utilities from source */
.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-accent {
  color: var(--color-accent);
}

.bg-black {
  background-color: var(--color-primary);
  color: white;
}

.bg-light {
  background-color: #f4f4f6;
}

.divider {
  height: 1px;
  background: #e0e0e0;
  width: 100%;
  margin: 2rem 0;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.badge.blue {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

/* --- HERO SECTION (CSS GRAPHICS) --- */
.hero {
  padding-top: 100px;
  /* Adjusted from 180px for integration */
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

/* Abstract Background Grid */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(#e0e0e0 1px, transparent 1px),
    linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

/* CSS Graphic: The "Flow" Visualizer */
.flow-graphic {
  position: relative;
  height: 500px;
  background: white;
  border: 1px solid #e0e0e0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.flow-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.flow-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
}

.dot.active {
  background: var(--color-accent);
}

.node-simulation {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  height: 100%;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
}

.sim-card {
  border: 1px solid #e0e0e0;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  transition: 0.3s;
}

.sim-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.15);
}

.sim-card::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  color: #e0e0e0;
}

.sim-card:last-child::after {
  content: '';
}

.sim-icon {
  width: 30px;
  height: 30px;
  background: #f4f4f6;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  font-weight: bold;
  color: var(--color-accent);
}

/* --- WORKFLOW CANVAS --- */
.section-canvas {
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.canvas-ui-container {
  margin-top: 4rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
  height: 600px;
  position: relative;
  display: flex;
  overflow: hidden;
}

/* Sidebar Fake */
.ui-sidebar {
  width: 240px;
  background: #f8f9fa;
  border-right: 1px solid #e5e5e5;
  padding: 20px;
}

.ui-node-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
}

.ui-node-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Main Canvas Area */
.ui-canvas {
  flex: 1;
  background-image: radial-gradient(#e5e5e5 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

/* The Nodes on Canvas */
.canvas-node {
  position: absolute;
  width: 180px;
  background: var(--color-primary);
  color: white;
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.cn-header {
  padding: 10px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.cn-body {
  padding: 15px;
  font-size: 0.8rem;
  color: #ccc;
}

/* Connections (SVG) */
.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.conn-path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-dasharray: 10;
  animation: flow 20s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Positioning Nodes */
#node-1 {
  top: 100px;
  left: 50px;
}

#node-2 {
  top: 200px;
  left: 350px;
}

#node-3 {
  top: 100px;
  left: 650px;
}

#node-4 {
  top: 300px;
  left: 650px;
}


/* --- ARCHITECTURE (Dark Section) --- */
.architecture-section {
  background-color: #ffffff;
  color: var(--color-accent);
  padding: 60px 0;
}

.arch-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem auto;
}

.arch-intro h2 {
  margin-bottom: 1.5rem;
  color: black;
}

.arch-intro p {
  color: #999;
}

/* The Node Grid System */
.node-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background-color: #f2f2f2;
  /* Lines between cards */
  border: 1px solid #dcdcdc;
}

.node-card {
  background-color: #fff;
  padding: 2.5rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.node-card:hover {
  background-color: #f4f4f4;
}

.node-type {
  font-family: 'Courier New', monospace;
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: block;
}

.node-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: black;
}

.node-card ul {
  list-style: none;
  margin-top: 1.5rem;
}

.node-card li {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
  border-left: 1px solid #333;
}

.node-card li::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 6px;
  width: 5px;
  height: 1px;
  background: var(--color-accent);
}

/* --- ANALYTICS PULSE (ROI) --- */
.section-pulse {
  padding: 60px 0;
  background: white;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pulse-card {
  border: 1px solid #e5e5e5;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated Rings */
.ring-inner {
  width: 70px;
  height: 70px;
  background: black;
  color: white;
  padding: 5px;
  margin: auto;
  border-radius: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
}


/* --- PRICING / DIFFERENTIATORS --- */
.diff-section {
  padding: 140px 0;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.feature-list-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.check-box {
  min-width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Pricing Box Graphic */
.pricing-graphic {
  background: #f4f4f6;
  padding: 3rem;
  border: 1px solid #e0e0e0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.price-total {
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: right;
  color: var(--color-accent);
}

/* --- CTA --- */
.cta-section {
  background: var(--color-accent);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  color: white;
}

.cta-btn {
  background: white;
  color: var(--color-accent);
  padding: 20px 40px;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* --- MISSING COMPONENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #888;
  color: var(--color-primary);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: white;
}

.hero-sub {
  font-size: 1.25rem;
  color: #888;
  margin-bottom: 2.5rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .flow-graphic {
    display: none;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .pulse-grid {
    grid-template-columns: 1fr;
  }

  .canvas-ui-container {
    height: 400px;
  }

  .ui-sidebar {
    display: none;
  }
}

/* Horizontal Sticky Index Navigation */
.article-index {
  position: sticky;
  top: 70px;
  background: #f7f7f7;
  z-index: 9;
  margin-bottom: var(--space-xl);
}

.reading-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-left: var(--space-md);
  border-left: 1px solid #e5e5e5;
  white-space: nowrap;
}

.progress-bar {
  width: 80px;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-secondary);
  border-radius: 2px;
  width: 0;
  transition: width 0.2s ease;
}

.progress-text {
  font-size: var(--font-size-xs);
  color: #666;
  font-weight: var(--font-weight-medium);
}

.index-sticky {
  max-width: 1425px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  overflow-x: auto;
  scrollbar-width: thin;
}

.index-sticky::-webkit-scrollbar {
  height: 4px;
}

.index-sticky::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.index-sticky::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 2px;
}

.index-title {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: #333;
  white-space: nowrap;
  margin: 0;
  padding-right: var(--space-md);
  border-right: 1px solid #e5e5e5;
}

.index-nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.index-nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--space-md);
  flex-wrap: nowrap;
}

.index-nav li {
  margin: 0;
  white-space: nowrap;
}

.index-link {
  color: #666;
  font-size: var(--font-size-xs);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  position: relative;
}

.index-link:hover {
  color: var(--color-secondary);
}

.index-link.active {
  color: var(--color-secondary);
  font-weight: var(--font-weight-bold);
}

.index-link.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .article-index {
    top: 60px;
  }

  .index-sticky {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-md);
  }

  .index-title {
    font-size: var(--font-size-xs);
    padding-right: var(--space-sm);
  }

  .index-nav ol {
    gap: var(--space-sm);
  }

  .index-link {
    font-size: var(--font-size-xs);
    padding: var(--space-xs) var(--space-sm);
  }

  .reading-progress {
    display: none;
    /* Hide on mobile to save space */
  }
}

@media (max-width: 900px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-prev {
    left: -20px;
  }

  .carousel-next {
    right: -20px;
  }
}

/* --- NODE CAROUSEL STYLES --- */
.node-carousel-container {
  position: relative;
  width: 100%;
}

.node-carousel-pages {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-page {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-page.active {
  display: grid;
  opacity: 1;
}

/* Navigation Arrows */
.carousel-nav-arrows {
  display: flex;
  justify-content: space-between;
  width: fit-content;
  gap: 16px;
  margin-top: var(--space-lg);
  margin-inline: auto;
}

.carousel-nav {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgb(0 0 0);
  color: #000000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 2rem;
  font-weight: 300;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

/* Pagination Dots */
.carousel-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 3rem;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(110, 110, 110, 0.3);
  border: 1px solid rgba(110, 110, 110, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pagination-dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.pagination-dot.active {
  background: black;
  width: 32px;
  border-radius: 6px;
}

/* Responsive adjustments for carousel */
@media (max-width: 900px) {
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-prev {
    left: -20px;
  }

  .carousel-next {
    right: -20px;
  }
}

@media (max-width: 640px) {
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }
}

/* --- SPECIALIZED MODELS SECTION --- */
.specialized-models-section {
  padding: var(--space-xl) 0;
  background: #fcfcfc;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.spec-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.spec-icon {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
}

.spec-card h3 {
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.spec-card ul {
  list-style: none;
  padding: 0;
}

.spec-card ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  font-size: 0.95rem;
}

.spec-card ul li::before {
  content: "→";
  color: var(--color-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.feature-block-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  padding: 0;
  border: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .feature-block-split {
    grid-template-columns: 1fr 1fr;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
    background: white;
  }
}


.feature-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-text p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* UI Mockup Styles (Federated Archival) */
.ui-mockup-window {
  width: 100%;
  max-width: 450px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  overflow: hidden;
  margin: 0 auto;
  font-family: var(--font-family-base);
}

.window-header {
  background: #f8f8f8;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  gap: 8px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
  transform: translateX(-22px);
}

.window-body {
  padding: 20px;
}

.mock-search-bar {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.mock-search-bar:hover {
  background: #fff;
  border-color: #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.mock-search-icon {
  color: #999;
}

.mock-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: default;
}

.mock-result-item:hover {
  background: #f9f9f9;
}

.file-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
}

.file-icon.pdf {
  background: #ff4757;
}

.file-icon.docx {
  background: #2e86de;
}

.file-icon.img {
  background: #1dd1a1;
}

.file-info {
  flex: 1;
}

.file-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.file-meta {
  font-size: 0.7rem;
  color: #888;
  display: flex;
  justify-content: space-between;
}

.meta-tag {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: #666;
}

/* --- 5. GRAPHICAL SECTION 3: THE 3D STACK (Federated) --- */
.section-stack {
  padding: var(--pad-sec) 0;
  background: var(--bg-off);
  perspective: 1000px;
}

.stack-container {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transform: rotateX(20deg) rotateY(0deg);
}

.stack-layer {
  width: 600px;
  height: 120px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  position: absolute;
  border-radius: 12px;
  border: 1px solid rgb(182, 182, 182);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.5s;
  backdrop-filter: blur(5px);
}

.stack-layer:hover {
  transform: translateZ(30px);
  border-color: var(--accent);
}

.layer-bottom {
  transform: translateY(140px) translateZ(-50px);
  z-index: 1;
  background: #fff;
}

.layer-mid {
  transform: translateY(0px) translateZ(0px);
  z-index: 2;
  background: #fff;
}

.layer-top {
  transform: translateY(-140px) translateZ(50px);
  z-index: 3;
  background: #fff;
}

.workflow-image {
  border: 1px solid #d4d4d4;
}

/* --- NODE GRID WITH SEE MORE --- */
.node-grid-container {
  position: relative;
  width: 100%;
}

.node-card-hidden {
  display: none;
}

.see-more-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.see-more-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.see-more-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.see-more-btn i {
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .see-more-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}





@media (min-width: 1280px) {}

@media (min-width: 1024px) {}

@media (min-width: 768px) {
  .top-bar {
    height: auto;
  }

  .feature-section .container {
    flex-direction: row;
  }

  .navbar {
    display: flex;
  }

  .navbar--mobile {
    display: none !important;
  }

  .mobile-menu-button {
    display: none;
  }

  .dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dropdown-menu {
    position: absolute;
    display: none;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: var(--space-lg);
    min-width: 500px;
    z-index: 10;
    overflow: hidden;
    border: 1px solid #eee;
    width: clamp(700px, 100%, 1200px);
  }

  .navbar li:hover .dropdown-menu {
    display: block;
  }

  .navbar li:hover .navbar-item-dropdown::after {
    transform: rotate(-135deg);
    margin-top: 0px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.25rem;
  }

  h6 {
    font-size: 1rem;
  }

  .footer .container {
    margin-block: var(--space-xl);
    border-radius: var(--radius-lg);
  }

  .footer-header {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-header img {
    display: block;
  }

  .hero-text {
    text-align: center;
    align-items: center;
  }
}

@media (min-width: 640px) {}

@media (max-width: 480px) {}

/* ========================================
   VIDEO SECTION & MODAL STYLES
   ======================================== */

/* Video Section */

.video-placeholder {
  max-width: 900px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.video-placeholder:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  background: linear-gradient(135deg, #b6b6b6 0%, #7b7b7b 100%);
  overflow: hidden;
}

.video-thumbnail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: black;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.play-button i {
  font-size: 32px;
  color: white;
  margin-left: 4px;
  transition: all 0.3s ease;
}

.video-placeholder:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgb(0, 0, 0);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 2;
  transition: all 0.3s ease;
}

.video-overlay span {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-placeholder:hover .video-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 10000;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-section {
    padding: 60px 0;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  .play-button i {
    font-size: 24px;
  }

  .video-overlay span {
    font-size: 16px;
  }

  .video-modal-content {
    width: 95%;
  }

  .video-modal-close {
    top: -45px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .video-section {
    padding: 40px 0;
  }

  .play-button {
    width: 50px;
    height: 50px;
  }
}