/**
 * Koot Landing Page - Elegant & Luxurious Design
 * Modern, clean, professional
 */

/* ==================== CSS RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Primary: Emerald Green (Premium feel) */
  --primary: #10b981;
  --primary-light: #34d399;
  --primary-dark: #059669;
  
  /* Neutrals: Clean & Professional (Light Mode) */
  --bg: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  
  /* Accent: Luxury Gold */
  --accent: #f59e0b;
  
  /* Spacing */
  --spacing-unit: 8px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  
  /* Adjust shadows for dark mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
  opacity: 0.95;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.logo-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.btn-nav-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-nav-secondary:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-nav-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-nav-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==================== HERO SECTION ==================== */
.hero {
  padding: 8rem 2rem 6rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hero-gradient {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-hero-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
  background: var(--bg);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-hero-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 500px;
}

.hero-card {
  position: absolute;
  background: var(--bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-8px);
}

.card-1 {
  top: 20px;
  right: 0;
  width: 340px;
  z-index: 1;
}

.card-2 {
  bottom: 60px;
  left: 20px;
  width: 300px;
  z-index: 2;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-dots {
  display: flex;
  gap: 0.5rem;
}

.card-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-tertiary);
}

.card-dots span:nth-child(1) { background: #ef4444; }
.card-dots span:nth-child(2) { background: #f59e0b; }
.card-dots span:nth-child(3) { background: #10b981; }

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.video-participant {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-md);
  animation: pulse 2s ease-in-out infinite;
}

.video-participant:nth-child(2) { animation-delay: 0.5s; }
.video-participant:nth-child(3) { animation-delay: 1s; }
.video-participant:nth-child(4) { animation-delay: 1.5s; }

.message-bubble {
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  animation: slideIn 0.5s ease forwards;
  opacity: 0;
}

.message-bubble:nth-child(1) { animation-delay: 0.2s; width: 80%; }
.message-bubble:nth-child(2) { animation-delay: 0.4s; width: 65%; margin-left: auto; background: var(--bg-tertiary); }
.message-bubble:nth-child(3) { animation-delay: 0.6s; width: 75%; }

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==================== SOLUTIONS SECTION ==================== */
.solutions {
  padding: 6rem 2rem;
  background: var(--bg);
}

.solutions-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 4rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.solution-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.factory-card {
  background: var(--bg);
  border-color: var(--accent);
}

[data-theme="light"] .factory-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.card-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.card-badge.premium {
  background: linear-gradient(135deg, var(--accent) 0%, #ea580c 100%);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.card-heading {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.card-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-check {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.card-use-cases {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.card-use-cases strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.use-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.use-case-tags span {
  padding: 0.375rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.card-pricing {
  text-align: center;
  margin-bottom: 2rem;
}

.price {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price-note {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-arrow {
  width: 18px;
  height: 18px;
}

/* ==================== FEATURES SECTION ==================== */
.features {
  padding: 6rem 2rem;
  background: var(--bg-secondary);
}

.features-container {
  max-width: 1280px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.feature-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.feature-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #0f172a;
  color: #f1f5f9;
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-badges span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  
  .hero-visual {
    display: none;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link,
  .btn-nav-primary,
  .btn-nav-secondary {
    display: none !important;
  }
  
  .hero {
    padding: 6rem 1.5rem 4rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .solutions,
  .features {
    padding: 4rem 1.5rem;
  }
  
  .solution-card {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==================== APP OPTIONS (EXPANDABLE) ==================== */
.app-options {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.app-option-card:hover:not(.disabled) {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  transform: translateX(4px);
}

.app-option-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  flex-shrink: 0;
}

.app-option-card.disabled .app-icon {
  color: var(--text-muted);
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-info strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.app-info span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.solution-card.expanded {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   2026-09 landing rewrite — repositioned from "free, no signup" to
   invite-only for factories/offices/research, plus the AI story and
   a real contact section. Reuses the existing tokens, nav, hero,
   feature-card and footer styles above; everything below is the
   new sections only.
   ═══════════════════════════════════════════════════════════════ */

.nav-link-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-link-cta:hover { background: var(--primary-dark); }

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.hero-note a { color: var(--primary); font-weight: 600; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* Hero mock conversation */
.mock-line { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.mock-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-tertiary); color: var(--text-secondary);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mock-avatar-ai { background: var(--primary); color: #fff; }
.mock-bubble {
  background: var(--bg-tertiary); color: var(--text-secondary);
  border-radius: 10px; padding: 7px 10px; font-size: 12px; line-height: 1.45;
}
.mock-bubble-ai {
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
/* Line icons (inline SVG sprite at the top of the page) — they take the colour of the text around them. */
.ico {
  width: 1.1em; height: 1.1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.badge .ico { margin-right: 0.45rem; color: var(--primary-dark); }
.mock-doc .ico { width: 14px; height: 14px; color: var(--primary-dark); }
.footer-badges .ico { margin-right: 0.4rem; vertical-align: -0.15em; }

.mock-doc {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; margin-bottom: 8px;
  background: var(--bg-tertiary); border-radius: 8px;
  font-size: 12px; color: var(--text-secondary);
}

/* "Built for" strip */
.strip { padding: 2.5rem 1.5rem; background: var(--bg-secondary); border-block: 1px solid var(--border); }
.strip-container { max-width: 1100px; margin: 0 auto; text-align: center; }
.strip-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin: 0 0 1rem; font-weight: 700;
}
.strip-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.strip-tags span {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-secondary);
}

/* AI section */
.ai-section { padding: 5rem 1.5rem; background: var(--bg); }

.ai-modes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem; margin: 2.5rem 0 3rem;
}
.ai-mode {
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--bg-secondary); border: 1px solid var(--border);
}
.ai-mode-local { border-color: var(--primary); }
.ai-mode-head { margin-bottom: 0.75rem; }
.ai-mode-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); margin-bottom: 0.4rem;
}
.ai-mode h3 { margin: 0; font-size: 1.15rem; color: var(--text-primary); }
.ai-mode p { margin: 0; color: var(--text-secondary); line-height: 1.65; font-size: 0.95rem; }

.ai-capabilities-label {
  text-align: center; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin: 0 0 1.5rem;
}
.ai-capabilities {
  /* 340px min so this lands on THREE columns at desktop width, not four —
     at four the descriptions wrap to six or seven very short lines each. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem 2rem;
}
.ai-cap { display: flex; gap: 0.9rem; align-items: flex-start; }
.ai-cap-icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--primary-dark); margin-top: 0.1rem; }
.ai-cap-icon .ico { width: 100%; height: 100%; }
.ai-cap strong { display: block; color: var(--text-primary); margin-bottom: 0.25rem; font-size: 0.98rem; }
.ai-cap p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.ai-cap code {
  background: var(--bg-tertiary); padding: 1px 5px;
  border-radius: 4px; font-size: 0.85em; color: var(--primary);
}

/* How-it-works mechanism explainer (server signals only, no database, LAN-direct) */
.mechanism {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.mechanism-diagram { position: relative; z-index: 1; }
.mechanism-diagram svg { width: 100%; height: auto; color: var(--text-secondary); }
.mechanism-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.mechanism-point h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--text-primary); }
.mechanism-point p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }
.mechanism-subheading {
  text-align: center; font-size: 1.3rem; font-weight: 600;
  color: var(--text-primary); margin: 0 0 2.5rem;
}
.features-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Documents section, with Koot Draw nested inside — reuses .features-container/.features-grid/.feature-card */
.documents-section { padding: 5rem 1.5rem; background: var(--bg-secondary); }

.documents-draw {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.documents-draw-head { text-align: center; margin-bottom: 2.5rem; }
.documents-draw-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--primary); margin-bottom: 0.6rem;
}
.documents-draw-head h3 { margin: 0 0 0.75rem; font-size: 1.6rem; color: var(--text-primary); }
.documents-draw-head .section-subtitle { margin-bottom: 0; }

.draw-carousel {
  position: relative;
  margin: 2.5rem auto 0;
  max-width: 980px;
}
.draw-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.draw-track::-webkit-scrollbar { display: none; }
.draw-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 1911 / 1004;
}
.draw-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.draw-shot-footer {
  max-width: 980px;
  margin: 0 auto 3rem;
}
.draw-caption {
  text-align: center;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.draw-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.draw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
}
.draw-dot.active { background: var(--primary); }
.draw-dots[hidden] { display: none; }
.draw-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.draw-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.draw-nav-prev { left: -20px; }
.draw-nav-next { right: -20px; }
.draw-nav[hidden] { display: none; }
@media (max-width: 640px) {
  .draw-nav { display: none; }
}

.usecase-heading {
  text-align: center; font-size: 0.95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin: 3rem 0 1.75rem;
}
.usecase-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.usecase {
  padding: 1.5rem; border-radius: var(--radius-md);
  background: var(--bg-secondary); border-left: 3px solid var(--primary);
}
.usecase h5 { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text-primary); }
.usecase p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

.org-section { padding: 5rem 1.5rem; background: var(--bg-secondary); }
.org-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.org-item {
  padding: 1.5rem; border-radius: var(--radius-md);
  background: var(--bg); border: 1px solid var(--border);
}
.org-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--text-primary); }
.org-item p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* Security section */
.security-section { padding: 5rem 1.5rem; background: var(--bg); }
.sec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.sec-item {
  padding: 1.5rem; border-radius: var(--radius-md);
  background: var(--bg-secondary); border-left: 3px solid var(--primary);
}
.sec-item strong { display: block; color: var(--text-primary); margin-bottom: 0.45rem; font-size: 1rem; }
.sec-item p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* Contact */
.contact-section { padding: 5rem 1.5rem; background: var(--bg-secondary); border-top: 1px solid var(--border); }
.contact-container { max-width: 1100px; margin: 0 auto; text-align: center; }

.contact-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem; margin: 2.5rem 0 2rem; text-align: left;
}
.contact-card {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--border);
  text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.contact-icon { width: 2rem; height: 2rem; color: var(--primary-dark); margin-bottom: 0.25rem; }
.contact-icon .ico { width: 100%; height: 100%; }
.contact-card strong { color: var(--text-primary); font-size: 1.02rem; }
.contact-sub { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; }
/* margin-top:auto pins this to the bottom of the card, so the three cards'
   "Email us →" links line up even though their descriptions differ in length. */
.contact-action { color: var(--primary); font-weight: 600; font-size: 0.88rem; margin-top: auto; padding-top: 0.6rem; }

.contact-direct {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 0.5rem;
}
.contact-wa {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.4rem; border-radius: var(--radius-md);
  background: #25D366; color: #fff; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-wa:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-wa strong { display: block; font-size: 0.95rem; }
.contact-wa small { display: block; opacity: 0.9; font-size: 0.82rem; }
.contact-wa span { text-align: left; }
.contact-mail { background: var(--primary); }
.contact-mail:hover { background: var(--primary-dark); }

@media (max-width: 640px) {
  .ai-section, .documents-section, .org-section, .security-section, .contact-section { padding: 3.5rem 1rem; }
  .contact-direct { flex-direction: column; }
  .contact-wa { justify-content: center; }
  .nav-links { gap: 0.5rem; }
  .nav-links .nav-link:not(.nav-link-cta) { display: none; }
  .mechanism { padding: 1.25rem; }
  .documents-draw { padding: 1.5rem; }
}

/* .mechanism and .features-grid-3 are defined further up as unconditional
   rules, so their mobile override has to come after those definitions here —
   an earlier copy of this override sitting above them in the cascade was
   being silently beaten by the later unconditional rule at equal specificity. */
@media (max-width: 1024px) {
  .mechanism {
    grid-template-columns: 1fr;
  }
  .features-grid-3 {
    grid-template-columns: 1fr;
  }
}
