/* ==========================================================================
   FARMORA — DESIGN SYSTEM & CORE STYLESHEET
   Replicating Rulebase (rulebase.co) Architecture & High-End Aesthetic
   Precision Agritech & Field Intelligence for Commercial Agriculture
   ========================================================================== */

:root {
  --color-bg: #F4F2EC;
  --color-dark: #121412;
  --color-dark-surface: #1A1D1A;
  --color-dark-card: #202420;
  --color-text: #171A17;
  --color-cream: #FAF8F5;
  --color-card: #EBE8E0;
  --color-card-white: #FFFFFF;
  --color-border: #DCD8D0;
  --color-border-subtle: rgba(23, 26, 23, 0.08);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --color-muted: rgba(23, 26, 23, 0.62);
  --color-subtle: rgba(23, 26, 23, 0.42);
  --color-forest: #183A2B;
  --color-crop: #2E7D32;
  --color-crop-bright: #22C55E;
  --color-crop-light: #EBF5ED;
  --color-amber: #D97706;
  --color-amber-light: #FEF3C7;
  --color-crit: #E11D48;
  --color-crit-light: #FFE4E6;
  --shadow-card: 0 0 0 1px rgba(23, 26, 23, 0.06), 0 2px 4px rgba(23, 26, 23, 0.04), 0 8px 16px rgba(23, 26, 23, 0.04);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.15);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.5;
  background-color: var(--color-bg);
}

img, svg, video {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   NAVIGATION BAR (Rulebase Floating / Clean Top Architecture)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  max-width: 1440px;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
}

.nav-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-cta {
  background: #272A26;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: var(--transition);
}

.nav-cta:hover {
  background: #363B34;
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 14px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION (50/50 Split Rulebase Blueprint)
   ========================================================================== */
.hero {
  background: var(--color-dark);
  min-height: 820px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  position: relative;
  padding-top: 100px;
}

.hero-content {
  width: 50%;
  padding: 60px 48px 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #88C598;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px #22C55E;
}

.hero-h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.reveal-word {
  display: inline-block;
}

.hero-body {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
}

.btn-demo-light {
  background: #FFFFFF;
  color: var(--color-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: 1px solid #FFFFFF;
}

.btn-demo-light:hover {
  background: #E8E8E8;
  transform: translateY(-1px);
}

.btn-demo-outline {
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: var(--transition);
}

.btn-demo-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Bottom Left Customer Video Teaser (Rulebase Hero-Mini) */
.hero-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  max-width: 480px;
  backdrop-filter: blur(8px);
}

.hero-mini-thumb {
  width: 96px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-mini-text p {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.hero-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #88C598;
  cursor: pointer;
}

.hero-mini-link svg {
  width: 12px;
  height: 12px;
}

/* Right Panel: Tactile Relief Texture + Floating Real-Time Card */
.hero-right-panel {
  position: absolute;
  inset: 0 0 0 50%;
  overflow: hidden;
}

.hero-right-panel .stone-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.92) contrast(1.05);
}

.hero-right-panel .panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-dark) 0%, rgba(18, 20, 18, 0.4) 15%, transparent 40%);
  pointer-events: none;
}

.hero-chat-card {
  width: 420px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FFFFFF;
}

.chat-messages {
  padding: 18px 22px;
  background: #FFFFFF;
}

.chat-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-typing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px dashed #DCD8D0;
  font-size: 13px;
  color: var(--color-forest);
  font-weight: 500;
}

.chat-caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--color-forest);
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.chat-analyzing {
  background: #171A17;
  color: #FFFFFF;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
}

.chat-analyzing-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #2E7D32;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-analyzing-icon svg {
  width: 12px;
  height: 12px;
  fill: #FFFFFF;
}

/* ==========================================================================
   TRUST BAR / MARQUEE (Rulebase Architecture)
   ========================================================================== */
.trust-bar {
  background: var(--color-bg);
  padding: 36px 24px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.trust-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.trust-logo-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ECE8DF;
  border: 1px solid var(--color-border);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #2F332E;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.trust-logo-pill svg, .trust-logo-pill img {
  height: 20px;
  width: auto;
  opacity: 0.85;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION 1: THE PRECISION OPERATING SYSTEM (Rulebase Features Section)
   ========================================================================== */
.features-section {
  padding: 100px 36px;
  max-width: 1440px;
  margin: 0 auto;
}

.features-head {
  margin-bottom: 60px;
}

.features-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-text);
  max-width: 800px;
}

.features-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}

.features-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.feat-tab {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.feat-tab-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.feat-tab-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-muted);
}

.feat-tab.dim {
  opacity: 0.5;
}

.feat-tab.dim .feat-tab-desc {
  display: none;
}

.feat-tab.active-feat-tab {
  opacity: 1;
  border-bottom-color: var(--color-forest);
}

.feat-tab.active-feat-tab .feat-tab-title {
  color: var(--color-forest);
}

/* 3-Column Live Cards Grid */
.features-panels {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.feature-card-preview {
  padding: 24px;
  min-height: auto;
  background: #E4E0D7;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Card 1 Internal: Score Lists */
.score-group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
  font-size: 13px;
}

.score-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #FFFFFF;
}

.score-badge.red {
  background: var(--color-crit);
}

.score-badge.green {
  background: var(--color-crop);
}

.score-entity {
  font-weight: 500;
  color: var(--color-text);
  margin-left: 8px;
  flex-grow: 1;
}

.score-time {
  font-size: 11px;
  color: var(--color-subtle);
  font-family: var(--font-mono);
}

/* Card 2 Internal: Coaching / Action Card */
.task-mini-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-user-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.task-user-header img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.task-body-title {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.task-body-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-muted);
}

.btn-task-action {
  background: #4E251A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  transition: var(--transition);
}

.btn-task-action:hover {
  background: #6B3324;
}

/* Card 3 Internal: Alert Card */
.alert-mini-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--color-border);
}

.alert-header-red {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-crit);
  margin-bottom: 12px;
}

.alert-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.alert-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text);
}

.alert-item-time {
  font-size: 11px;
  color: var(--color-subtle);
  font-family: var(--font-mono);
}

.alert-response-box {
  background: #171A17;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  gap: 8px;
}

.feature-card-info {
  padding: 24px;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-muted);
}

/* Workflow Supporting Nodes */
.workflow-nodes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12px;
}

.workflow-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}

.wf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--color-crop);
  flex-shrink: 0;
}

.wf-dot.amber {
  background: var(--color-amber);
}

.wf-step-content b {
  display: block;
  font-size: 13px;
  color: var(--color-text);
}

.wf-step-content span {
  font-size: 11px;
  color: var(--color-muted);
}

/* ==========================================================================
   SECTION 2: PROOF & SOCIAL METRICS STRIP (Rulebase Social Section)
   ========================================================================== */
.social-section {
  padding: 100px 36px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.social-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.social-left h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 40px;
}

.social-stats {
  display: flex;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-muted);
  max-width: 160px;
}

.social-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.social-quote {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.social-attributor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.social-who b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.social-who span {
  font-size: 12px;
  color: var(--color-muted);
}

/* ==========================================================================
   SECTION 3: WORKFORCE DEEP-DIVE SYSTEM (Rulebase Workforce Section)
   ========================================================================== */
.workforce-section {
  padding: 100px 36px;
  max-width: 1440px;
  margin: 0 auto;
}

.wf-header {
  margin-bottom: 48px;
}

.wf-header h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: 16px;
  max-width: 860px;
}

.wf-header p {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 620px;
}

.wf-outer-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.wf-outer-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
  background: transparent;
  transition: var(--transition);
}

.wf-outer-tab-btn.active {
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.wf-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* Accordion list on left */
.wf-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wf-accordion-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wf-accordion-item.active {
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  border-color: var(--color-forest);
}

.wf-acc-info h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 6px;
}

.wf-acc-info p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-muted);
}

.wf-acc-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E8E5DF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.wf-accordion-item.active .wf-acc-btn {
  background: var(--color-forest);
  color: #FFFFFF;
}

/* Right Diagnostic Card */
.wf-diagnostic-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.diag-score-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.diag-score-donut {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 6px solid #22C55E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text);
  flex-shrink: 0;
}

.diag-score-info b {
  display: block;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.diag-score-info p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.4;
}

.diag-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diag-check-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F0ECE4;
}

.diag-check-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.diag-check-label {
  font-weight: 500;
  color: var(--color-text);
  max-width: 320px;
}

.diag-check-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: #DCFCE7;
  color: #16A34A;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   SECTION 4: DARK IMPACT STATEMENT (Rulebase Problem Section)
   ========================================================================== */
.problem-scroll {
  background: var(--color-dark);
  color: #FFFFFF;
  padding: 100px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-statement-wrap {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problem-statement-text {
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 36px;
  width: 100%;
}

.problem-floating-card {
  position: relative;
  margin: 0 auto;
  background: #FFFFFF;
  color: #171A17;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  text-align: left;
  box-shadow: var(--shadow-float);
  width: 100%;
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

.problem-floating-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.problem-floating-header img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.problem-floating-desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.problem-floating-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-subtle);
}

/* ==========================================================================
   SECTION 5: INTEGRATION MATRIX (Rulebase 3-Row Grid with Glowing Center)
   ========================================================================== */
.integrations-section {
  padding: 100px 36px;
  background: var(--color-bg);
  text-align: center;
  overflow: hidden;
}

.int-header {
  max-width: 640px;
  margin: 0 auto 60px;
}

.int-header h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.int-header p {
  font-size: 15px;
  color: var(--color-muted);
}

.integrations-grid-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.integrations-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.int-tile {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-muted);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  padding: 12px;
}

.int-tile:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
}

.int-tile img, .int-tile svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.int-tile.center-highlight {
  background: var(--color-forest);
  border-color: #2E7D32;
  box-shadow: 0 0 30px rgba(46, 125, 50, 0.4);
}

.int-tile.center-highlight img {
  filter: brightness(10);
}

/* ==========================================================================
   SECTION 6: INTERACTIVE AGRONOMIC CONSOLE (Rulebase Catch Section)
   ========================================================================== */
.catch-section {
  padding: 100px 36px;
  max-width: 1440px;
  margin: 0 auto;
}

.catch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.catch-header h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-text);
  max-width: 600px;
}

.catch-right {
  max-width: 440px;
}

.catch-right p {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Application Frame Window */
.console-window {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.console-titlebar {
  background: #F8F6F0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D9D5CC;
}

.window-dots span:nth-child(1) { background: #FF5F56; }
.window-dots span:nth-child(2) { background: #FFBD2E; }
.window-dots span:nth-child(3) { background: #27C93F; }

.console-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-muted);
}

.console-body {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  min-height: 600px;
}

/* Console Left Rail */
.console-rail {
  background: #FAF8F5;
  border-right: 1px solid var(--color-border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.console-estate-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.console-nav-group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-subtle);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.console-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition);
}

.console-nav-item.active {
  background: #FFFFFF;
  color: var(--color-forest);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Console Map Area */
.console-map-viewport {
  position: relative;
  overflow: hidden;
  background: #1B211B;
  display: flex;
  align-items: center;
  justify-content: center;
}

.console-satellite-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.console-map-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  background: rgba(18, 20, 18, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.map-layer-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  transition: var(--transition);
}

.map-layer-btn.active {
  background: var(--color-crop);
  color: #FFFFFF;
}

.console-map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(18, 20, 18, 0.85);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 10px;
  color: #FFFFFF;
  z-index: 10;
}

.legend-bar {
  width: 140px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #DC2626 0%, #F59E0B 40%, #22C55E 100%);
  margin-top: 6px;
}

/* Console Right Inspector */
.console-inspector {
  background: #FFFFFF;
  border-left: 1px solid var(--color-border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inspector-header b {
  display: block;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 2px;
}

.inspector-header span {
  font-size: 12px;
  color: var(--color-muted);
}

.inspector-vigor-meter {
  background: #F7F5F0;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.meter-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 5px solid #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  flex-shrink: 0;
}

.meter-text b {
  display: block;
  font-size: 13px;
  color: var(--color-text);
}

.meter-text span {
  font-size: 11px;
  color: var(--color-muted);
}

.inspector-probes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.probe-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.probe-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
}

.probe-progress {
  width: 100%;
  height: 6px;
  background: #EBE8E0;
  border-radius: 3px;
  overflow: hidden;
}

.probe-bar {
  height: 100%;
  background: var(--color-forest);
  border-radius: 3px;
}

.btn-export-shapefile {
  margin-top: auto;
  background: var(--color-forest);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
}

.btn-export-shapefile:hover {
  background: #23543F;
}

/* ==========================================================================
   SECTION 7: AUTHENTIC NIGERIAN LEADERSHIP TEAM (Mandatory Rule)
   ========================================================================== */
.team-section {
  padding: 100px 36px 40px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.team-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.team-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.team-header h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.team-header p {
  font-size: 15px;
  color: var(--color-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #DCD8D0;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.03);
}

.team-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.team-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-crop);
  margin-bottom: 10px;
}

.team-bio {
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.team-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.team-social-link {
  color: var(--color-subtle);
  transition: var(--transition);
}

.team-social-link:hover {
  color: var(--color-text);
}

.team-social-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   SECTION 8: BOTTOM CTA BANNER
   ========================================================================== */
.bottom-cta-section {
  padding: 100px 36px;
  background: var(--color-dark);
  color: #FFFFFF;
  text-align: center;
}

.bottom-cta-inner {
  max-width: 760px;
  margin: 0 auto;
}

.bottom-cta-inner h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.bottom-cta-inner p {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 36px;
}

.bottom-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   SECTION 9: REGULATORY FOOTER (Mandatory Rule)
   ========================================================================== */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 80px 36px 40px;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 320px repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand b {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(23, 26, 23, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-badge svg {
  color: var(--color-forest);
  flex-shrink: 0;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 13px;
  color: var(--color-muted);
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12px;
  color: var(--color-subtle);
}

.footer-legal-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
}

.footer-social-icons a {
  color: var(--color-muted);
  transition: var(--transition);
}

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

/* ==========================================================================
   ENTERPRISE SSO & PROVISIONING MODAL (AGENTS.md Rule 3)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 18, 0.7);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #F0ECE4;
}

.modal-title-group h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.modal-title-group p {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 4px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F4F2EC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #E8E5DF;
  color: var(--color-text);
}

.modal-body {
  padding: 24px 28px;
}

.sso-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: #FFFFFF;
  transition: var(--transition);
}

.btn-sso:hover {
  background: #F8F6F0;
  border-color: #C8C4BC;
}

.btn-sso svg {
  width: 18px;
  height: 18px;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-subtle);
  text-transform: uppercase;
}

.modal-divider::before, .modal-divider::after {
  content: "";
  height: 1px;
  background: #E8E5DF;
  flex-grow: 1;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #FAF8F5;
  color: var(--color-text);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--color-forest);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(24, 58, 43, 0.1);
}

.pwd-toggle-btn {
  position: absolute;
  right: 12px;
  color: var(--color-subtle);
  cursor: pointer;
}

/* 4-State Password Strength Meter */
.pwd-strength-container {
  margin-top: 8px;
}

.pwd-meter-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.pwd-meter-bar {
  height: 3px;
  border-radius: 2px;
  background: #E8E5DF;
  transition: background 0.25s ease;
}

.pwd-strength-text {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-subtle);
}

.btn-submit-provision {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--color-forest);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-submit-provision:hover {
  background: #23543F;
}

/* Azure 3-Step Sandbox Provisioning Display */
.provision-progress-wrap {
  display: none;
  padding: 20px;
  background: #F8F6F0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-top: 16px;
}

.provision-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-muted);
  margin-bottom: 10px;
}

.provision-step:last-child {
  margin-bottom: 0;
}

.prov-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #DCD8D0;
  border-top-color: var(--color-forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.prov-done-icon {
  color: #16A34A;
  font-weight: bold;
}

/* Mobile Slide-Out Panel */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(18, 20, 18, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #171A17;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-drawer-links a {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */
/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.workflow-autopilot-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero {
    padding: 110px 24px 50px;
  }
  .features-body {
    grid-template-columns: 1fr;
  }
  .features-tabs {
    flex-direction: row;
    position: static;
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .features-cards-grid {
    grid-template-columns: 1fr;
  }
  .social-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .wf-content-grid {
    grid-template-columns: 1fr;
  }
  .console-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .console-rail, .console-inspector {
    display: none;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Navigation on mobile: hide Get Started, keep logo & burger */
  .nav {
    padding: 14px 18px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none !important;
  }
  .nav-burger {
    display: flex;
  }

  /* Hero Section on Mobile */
  .hero {
    padding: 0;
    position: relative;
    background: var(--color-dark);
    min-height: auto;
    display: flex;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    padding: 110px 18px 36px;
    width: 100%;
  }
  .hero-content {
    display: contents;
  }
  .hero-h1 {
    order: 1;
    font-size: clamp(28px, 7.6vw, 38px);
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 10;
  }
  .hero-body {
    order: 2;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
  }
  .hero-actions {
    order: 3;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
  }
  .hero-actions .btn-demo-light,
  .hero-actions .btn-demo-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-right-panel {
    display: contents;
  }
  .hero-chat-card {
    order: 4;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 16px auto 32px;
    width: 100%;
    max-width: 400px;
    z-index: 10;
  }
  .hero-mini {
    order: 5;
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    gap: 12px;
    position: relative;
    z-index: 10;
  }
  .hero-mini-thumb {
    width: 64px;
    height: 48px;
  }
  .hero-mini-text p {
    font-size: 11px;
    line-height: 1.35;
  }
  .hero-right-panel .stone-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  .hero-right-panel .panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 20, 18, 0.75);
    z-index: 1;
  }

  /* Trust Marquee on Mobile */
  .trust-bar {
    padding: 24px 16px;
  }
  .trust-label {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  /* Video Demo Section on Mobile */
  .video-demo-section {
    padding: 0 16px 48px;
  }
  .video-demo-frame {
    min-height: 280px;
    max-height: 380px;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
  }
  .video-demo-placeholder-badge {
    top: 12px;
    left: 12px;
    font-size: 9px;
    padding: 5px 10px;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .video-demo-play-btn {
    width: 56px;
    height: 56px;
  }
  .video-demo-play-btn svg {
    width: 20px;
    height: 20px;
  }
  .video-demo-status-bar {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 8px 12px;
    gap: 8px;
  }
  .demo-status-icon {
    width: 24px;
    height: 24px;
  }
  .demo-status-text {
    font-size: 11px;
  }
  .demo-resolution-badge {
    display: none;
  }

  /* Section 1: Features on Mobile */
  .features-section {
    padding: 48px 18px;
  }
  .features-head h2 {
    font-size: 26px;
    line-height: 1.18;
    width: 100%;
  }
  .features-tabs {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: visible;
  }
  .feat-tab {
    min-width: 100%;
    width: 100%;
    padding: 14px 16px;
  }
  .feat-tab.dim .feat-tab-desc {
    display: none;
  }

  /* Section 2: Social & Stats on Mobile (Two on top, one below centered) */
  .social-section {
    padding: 48px 18px;
  }
  .social-left h2 {
    font-size: 24px;
    line-height: 1.2;
    width: 100%;
  }
  .social-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px 14px !important;
    width: 100% !important;
    margin-top: 36px !important;
    text-align: center !important;
  }
  .social-stats .stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .social-stats .stat-item:nth-child(3) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    max-width: 260px !important;
  }
  
  .workflow-autopilot-badges {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .workflow-autopilot-badges .trust-logo-pill {
    width: 100%;
    justify-content: center;
  }
  .workflow-autopilot-badges span:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 200px;
  }
  .social-quote {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Section 3: Workforce on Mobile */
  .workforce-section {
    padding: 48px 18px;
  }
  .wf-header h2 {
    font-size: 24px;
    line-height: 1.2;
    width: 100%;
  }
  .wf-header p {
    font-size: 14px;
    max-width: 100%;
  }
  .wf-outer-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .wf-outer-tab-btn {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Section 4: Problem Statement on Mobile (Never blocked by card) */
  .problem-scroll {
    padding: 56px 18px;
  }
  .problem-statement-text {
    font-size: 24px;
    line-height: 1.25;
    text-align: left;
    width: 100%;
  }
  .problem-floating-card {
    position: static !important;
    margin: 28px 0 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Section 5: Integrations Matrix on Mobile (Prevent 656px blowout) */
  .integrations-section {
    padding: 48px 18px;
  }
  .int-header h2 {
    font-size: 24px;
    line-height: 1.2;
    width: 100%;
  }
  .int-header p {
    font-size: 14px;
    max-width: 100%;
  }
  .integrations-grid-container {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 12px !important;
    width: 100% !important;
  }
  .integrations-row {
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: max-content !important;
    margin-bottom: 8px !important;
  }
  .int-tile {
    width: 68px !important;
    height: 68px !important;
    font-size: 10px !important;
    padding: 4px !important;
  }

  /* Section 6: Console on Mobile */
  .catch-section {
    padding: 48px 18px;
  }
  .catch-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .catch-header h2 {
    font-size: 24px;
    line-height: 1.2;
    width: 100%;
  }
  .catch-right {
    width: 100%;
  }
  .catch-right p {
    max-width: 100%;
    font-size: 14px;
  }
  .console-titlebar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .console-breadcrumb {
    font-size: 10px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .console-map-viewport {
    height: 340px;
  }
  .console-map-toolbar {
    position: static !important;
    display: flex !important;
    overflow-x: auto !important;
    width: 100% !important;
    padding: 6px !important;
    gap: 6px !important;
    background: #171A17 !important;
    border-radius: 0 !important;
  }
  .map-layer-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
  }

  /* Section 7: Team on Mobile — Horizontal Scroll */
  .team-section {
    padding: 48px 18px;
  }
  .team-header h2 {
    font-size: 24px;
    line-height: 1.2;
    width: 100%;
  }
  .team-header p {
    max-width: 100%;
    font-size: 14px;
  }
  .team-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding: 8px 18px 20px !important;
    margin: 0 !important;
    scrollbar-width: thin !important;
  }
  .team-grid::after {
    content: '';
    flex: 0 0 1px;
  }
  .team-card {
    flex: 0 0 270px !important;
    width: 270px !important;
    min-width: 270px !important;
    scroll-snap-align: center !important;
  }

  /* Section 8: Bottom CTA on Mobile */
  .bottom-cta-section {
    padding: 56px 18px;
  }
  .bottom-cta-inner h2 {
    font-size: 24px;
    line-height: 1.2;
    width: 100%;
  }
  .bottom-cta-inner p {
    max-width: 100%;
    font-size: 14px;
  }
  .bottom-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .bottom-cta-actions .btn-demo-light,
  .bottom-cta-actions .btn-demo-outline {
    width: 100%;
    justify-content: center;
  }

  /* Footer on Mobile */
  .footer {
    padding: 44px 18px 28px;
  }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 36px !important;
  }
  .footer-legal-line {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .workflow-nodes-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   AUTHENTICATION PAGES (Login / Signup)
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  background-color: var(--color-bg);
}

.auth-aside {
  width: 42%;
  min-height: 100vh;
  background: #121412 url('hero_field_relief.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px;
  color: #FFFFFF;
}

.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18, 20, 18, 0.94) 0%, rgba(24, 58, 43, 0.88) 100%);
  z-index: 1;
}

.auth-aside > * {
  position: relative;
  z-index: 2;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
}

.auth-brand img {
  width: 32px;
  height: 32px;
}

.auth-aside-content {
  max-width: 440px;
}

.auth-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
  color: #86EFAC;
  margin-bottom: 24px;
}

.auth-quote-text {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: #FAF8F5;
  margin-bottom: 24px;
}

.auth-quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.auth-quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-quote-meta b {
  display: block;
  font-size: 14px;
  color: #FFFFFF;
}

.auth-quote-meta span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.auth-feature-item svg {
  flex-shrink: 0;
  color: #22C55E;
}

.auth-aside-footer {
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.45);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.auth-card-wrap {
  width: 100%;
  max-width: 460px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 32px;
  transition: var(--transition);
}

.auth-back-link:hover {
  color: var(--color-text);
  transform: translateX(-3px);
}

.auth-h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--color-muted);
}

.auth-switch a {
  font-weight: 600;
  color: var(--color-forest);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .auth-page {
    flex-direction: column;
  }
  .auth-aside {
    width: 100%;
    min-height: auto;
    padding: 36px 24px;
  }
  .auth-main {
    padding: 36px 20px;
  }
}

/* ==========================================================================
   LEGAL PAGES (Privacy / Terms)
   ========================================================================== */
.legal-header-static {
  position: static;
  background: #171A17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-header-static .nav-logo span,
.legal-header-static .nav-links a {
  color: #FFFFFF;
}

.legal-hero {
  background: #171A17;
  color: #FFFFFF;
  padding: 64px 36px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #86EFAC;
  margin-bottom: 16px;
}

.legal-hero-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.legal-meta {
  font-size: 13px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.6);
}

.legal-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 36px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
}

.legal-toc {
  position: sticky;
  top: 40px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--color-border);
}

.legal-toc-title {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-subtle);
  margin-bottom: 8px;
}

.legal-toc a {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.4;
  transition: var(--transition);
}

.legal-toc a:hover {
  color: var(--color-forest);
  font-weight: 600;
  transform: translateX(3px);
}

.legal-content {
  color: var(--color-text);
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 18px;
  color: var(--color-text);
  font-size: 15px;
}

.legal-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 15px;
}

.legal-callout {
  background: var(--color-crop-light);
  border-left: 4px solid var(--color-crop);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 28px 0;
}

.legal-callout b {
  display: block;
  font-size: 15px;
  color: var(--color-forest);
  margin-bottom: 6px;
}

.legal-callout p {
  margin: 0;
  font-size: 14px;
  color: var(--color-forest);
}

@media (max-width: 900px) {
  .legal-body {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 20px;
  }
  .legal-toc {
    display: none;
  }
  .legal-hero-title {
    font-size: 32px;
  }
}



/* Global Mobile Section Padding Adjustments */
@media (max-width: 900px) {
  section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}


/* Scrolled Nav State */
.nav-scrolled {
  background: rgba(18, 20, 18, 0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Nav Dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; background: rgba(18, 20, 18, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 12px 0; min-width: 180px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s ease; z-index: 1000; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 8px 20px; color: #FAF8F5; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.05); }

