/* Hebbia-inspired Block Design System */
:root {
  /* Colors */
  --color-bg: #F4F2ED; /* Light warm beige */
  --color-surface: #FFFFFF;
  --color-text-primary: #111111;
  --color-text-secondary: #555555;
  --color-accent: #2563EB; /* Royal Blue */
  --color-accent-hover: #1D4ED8;
  --color-border: #D4D4D4; /* Visible grid lines */
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans); /* Keeping Space Grotesk for modern feel */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Layout Dimensions */
  --content-width: 1200px;
  
  /* Layout */
  --grid-gap: 1px; /* Gap for grid lines */
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-border); /* Background is border color to create grid lines via gap */
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--color-text-secondary);
  font-size: 1.125rem;
  max-width: 60ch;
}

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

/* --- LAYOUT GRID SYSTEM --- */
/* This class creates the full-width 3-column layout (Left Gutter | Content | Right Gutter) */
.layout-grid {
  display: grid;
  grid-template-columns: 1fr minmax(auto, var(--content-width)) 1fr;
  width: 100%;
  background-color: var(--color-border); /* The color of the "lines" (gaps) */
  column-gap: 1px; /* Creates the vertical lines */
  position: relative;
}

/* Pseudo-elements create the background for the side gutters */
.layout-grid::before,
.layout-grid::after {
  content: '';
  background-color: var(--color-bg);
  width: 100%;
  height: 100%;
}

.layout-grid::before {
  grid-column: 1;
}

.layout-grid::after {
  grid-column: 3;
}

/* The center content */
.layout-grid-content {
  grid-column: 2;
  background-color: var(--color-bg);
  min-width: 0; /* Prevent overflow issues */
  position: relative;
}

/* Helper to ensure sections have bottom borders/lines */
.section-border-bottom {
  border-bottom: 1px solid var(--color-border);
}

/* Container utility - mainly for internal padding now */
.container {
  padding: 0 var(--space-lg);
  width: 100%;
}

/* Block Section overrides */
.block-section {
  background: transparent; /* Let grid handle bg */
  width: 100%;
}


/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 70px;
  /* Inherit grid properties from .layout-grid */
  border-bottom: 1px solid var(--color-border);
}

/* Adjust nav container to fit in the center slot */
.nav .layout-grid-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-lg);
  height: 100%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  gap: 0.5rem;
  border-radius: 4px;
}

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

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

.btn-arrow {
  display: inline-block;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.btn-primary:hover .btn-arrow {
  transform: rotate(0deg);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  padding-top: 70px; /* Offset for fixed nav */
  align-items: stretch; /* Stretch to fill height */
}

.hero-content {
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  height: 100%;
}

.hero-title {
  font-size: 3rem;
  line-height: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.hero-visual {
  background: transparent;
  border: none;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
}

.fluid-height {
  min-height: unset !important;
}

/* Bento Grid Section (The "Block" Look) */
/* The outer section is .layout-grid, inner is .bento-grid-inner */
.bento-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--color-border);
}

.grid-item {
  background-color: var(--color-bg);
  padding: var(--space-lg);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-item.full-width {
  grid-column: 1 / -1;
  text-align: center;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
}

.grid-item.dark {
  background-color: var(--color-text-primary);
  color: white;
}

.grid-item.dark p {
  color: #AAAAAA;
}

.grid-item.accent {
  background-color: var(--color-accent);
  color: white;
}

.grid-item.accent p {
  color: rgba(255,255,255,0.9);
}

/* Features / Use Cases */
.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.title-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Tabs Section */
.examples-section {
  /* Wrapper logic - styles applied via child elements */
  display: block;
}

.examples-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  min-height: 600px;
  border-top: 1px solid var(--color-border); /* If needed */
}

.examples-tabs {
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}

.example-tab {
  padding: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: background 0.2s;
}

.example-tab:hover {
  background-color: #F9F9F9;
}

.example-tab.active {
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-accent);
}

.examples-view {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.video-card {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* Footer */
.footer-inner {
  padding: 0.75rem var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

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

/* Shared Components for Subpages */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.step-header {
  margin-bottom: var(--space-sm);
}

.step-number {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.step-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* Industries Section */
.industries-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
  overflow-x: auto;
  padding-bottom: 10px;
}

.industries-tabs {
  display: flex;
  gap: 0.5rem;
  background: #E5E5E5;
  padding: 0.25rem;
  border-radius: 4px;
}

.ind-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: all 0.2s;
}

.ind-tab:hover {
  background: rgba(255,255,255,0.5);
  color: var(--color-text-primary);
}

.ind-tab.active {
  background: var(--color-accent);
  color: white;
}

.industry-content-area {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  padding: var(--space-md);
}

/* New Industries Styles */
.industry-content {
  display: block;
}

.industry-content.hidden {
  display: none;
}

.industry-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.industry-title svg {
  color: var(--color-accent);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.use-case-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.use-case-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.use-case-text {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* Why Choose Comparison Table */
.comparison-container {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  margin-top: var(--space-lg);
  box-shadow: none;
}

.comparison-header {
  background: #F9FAFB;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 2rem;
}

.comparison-col-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.text-center { text-align: center; }
.text-primary { color: var(--color-accent); }
.text-gray-700 { color: #374151; }

.comparison-row {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f3f4f6;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 2rem;
  align-items: flex-start;
  transition: background-color 0.2s;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row:hover {
  background-color: #F9FAFB;
}

.comparison-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
}

.comparison-row > div:first-child {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.check-icon,
.x-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.check-icon {
  width: 24px;
  height: 24px;
  color: #22c55e;
}

.x-icon {
  width: 20px;
  height: 20px;
  color: #ef4444;
}

.comparison-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-align: left;
}

/* Responsive for new sections */
@media (max-width: 768px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-grid, .comparison-row {
    grid-template-columns: 1fr 1.5fr 1.5fr; 
    gap: 0.5rem;
    padding: 1rem;
  }
  
  .comparison-col-title {
    font-size: 0.8rem;
  }
  
  .comparison-desc {
    font-size: 0.7rem;
  }
}

/* Responsive */
@media (max-width: 1250px) {
  /* When screen is smaller than content width, margins disappear naturally or we enforce padding */
  .layout-grid {
    grid-template-columns: 1fr;
    border-left: none;
    border-right: none;
  }
  
  .layout-grid::before, .layout-grid::after {
    display: none;
  }
  
  .layout-grid-content {
    grid-column: 1;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 900px) {
  .hero-content {
    padding-top: var(--space-lg);
  }
  
  .bento-grid-inner {
    grid-template-columns: 1fr;
  }
  
  .examples-container {
    grid-template-columns: 1fr;
  }
  
  .examples-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--color-border);
    border-right: none;
  }
  
  .example-tab {
    min-width: 200px;
    border-right: 1px solid var(--color-border);
    border-bottom: none;
  }
  
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Animation Styles (Restored) */
.anim-container {
  position: relative;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
}

/* Browser Window */
.browser-window {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
}

.browser-bar {
  height: 24px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #ccc;
}

.dots {
  display: flex;
  gap: 4px;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.website-content {
  padding: 20px;
  color: #333;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Terminal Window */
.terminal-window {
  background: #0d0d12;
  color: #00ff9d;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.split-view {
  display: flex;
  height: 100%;
}

.split-view .browser-window {
  flex: 1;
  border-right: 1px solid #444;
}

.split-view .terminal-window {
  flex: 0.8;
}

/* Elements */
.login-form {
  width: 100%;
  max-width: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 3px;
  font-weight: bold;
  font-size: 10px;
}

.form-group input {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 10px;
}

.btn-submit {
  width: 100%;
  padding: 6px;
  background: #333;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
}

.btn-submit.active {
  background: #555;
}

/* Chat Interface (Teach Step) */
.chat-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f5f5f5;
}

.chat-messages {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.message {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
  font-size: 11px;
}

.message.agent {
  background: #e0e0e0;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: #333;
}

.message.user {
  background: var(--color-accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-area {
  padding: 10px;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 5px;
}

.chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 5px 10px;
  font-size: 11px;
}

.send-btn {
  background: var(--color-accent);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* AI Cursor */
.ai-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid var(--color-accent);
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 100;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
  transition: transform 0.1s linear; 
}

/* Vision Box */
.vision-box {
  position: absolute;
  border: 2px dashed #ff3e3e;
  background: rgba(255, 62, 62, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 90;
  border-radius: 2px;
}

/* Code Highlighting */
.code-content {
  white-space: pre-wrap;
  line-height: 1.4;
}
.comment { color: #6c7b96; }
.function { color: #dcdcaa; }
.string { color: #ce9178; }

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.status-running { background: #ffbd2e; color: black; }
.status-success { background: #27c93f; color: black; }

/* --- NEW ANIMATION STYLES FOR 'HOW IT LEARNS' SECTION --- */
.anim-box {
    background: #FAFAFA;
    border: 1px solid var(--color-border);
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

/* --- SHARED CURSOR (For Show Animation Only) --- */
.cursor-arrow {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 18px solid #111;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(200px, 200px);
    /* Off-screen start */
    z-index: 999;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

/* --- 01 SHOW ASSETS --- */
.browser-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 110px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.ui-bar {
    height: 14px;
    background: #F3F4F6;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}

.ui-dot {
    width: 4px;
    height: 4px;
    background: #D1D5DB;
    border-radius: 50%;
}

.ui-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-line {
    height: 6px;
    background: #F3F4F6;
    width: 100%;
    border-radius: 2px;
    transition: background 0.3s;
}

.ui-btn {
    width: 50px;
    height: 20px;
    background: #E5E7EB;
    border-radius: 3px;
    margin-top: auto;
    align-self: flex-end;
    transition: 0.2s;
}

.ui-btn.active {
    background: var(--color-accent);
    transform: scale(0.95);
}

.rec-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}

.rec-circle {
    width: 5px;
    height: 5px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    50% { opacity: 0.5; }
}

/* --- 02 TEACH ASSETS --- */
.flow-grid {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 40px;
    align-items: center;
}

.node {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #9CA3AF;
    z-index: 20;
    position: relative;
    transition: 0.3s;
}

.node:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -42px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: #E5E7EB;
}

.node.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: #EFF6FF;
}

.connector-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.elbow-path {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 2;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke-dashoffset 0.8s ease;
}

.node-4-wrap {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
}

.node-4-inner {
    width: 100%;
    height: 100%;
    background: white;
    border: 2px dashed #E5E7EB;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-weight: 600;
}

.cond-badge {
    position: absolute;
    background: #1F2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-5px);
    transition: 0.3s;
    z-index: 30;
}

/* --- 03 SCALE ASSETS --- */
.scale-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-task {
    width: 40px;
    height: 28px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
}

.mini-task.pop {
    animation: popIn 0.3s forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.prog-bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    transition: width 0.4s;
}

.count-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: 0 0 20px white, 0 0 10px white;
    z-index: 10;
}

/* Scroll-triggered animations */
.hero-visual {
    position: relative;
}

.hero-visual video {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 1s ease-out, transform 1s ease-out !important;
    will-change: opacity, transform;
}

.hero-visual video.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Word-by-word blur animation */
.word-blur {
    display: inline-block;
    filter: blur(8px);
    opacity: 0;
    transition: filter 0.6s ease-out, opacity 0.6s ease-out;
}

.word-blur.animate-in {
    filter: blur(0);
    opacity: 1;
}

/* Scroll-triggered fade-in animations for all elements */
.scroll-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-fade-in.animate-in {
    opacity: 1;
}

/* Buttons start hidden - only opacity change */
.hero-text .btn {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.hero-text .btn.animate-in {
    opacity: 1;
}
