/**
 * ===================================================
 * LAND MANAGEMENT TECH REFINED
 * ===================================================
 *
 * Design Philosophy: "Executive Land Management Technology"
 * - Deep charcoal base with warm copper/amber accents
 * - Authoritative serif display + refined sans body
 * - Subtle document textures and surveyor aesthetics
 * - Aerial imagery with elegant deed plot overlays
 * - Purposeful, refined motion
 *
 * Aesthetic: Where surveying precision meets modern technology
 * Multi-brand support for LSOET.net and LandmanAssistant.com
 * ===================================================
 */

/* ============================================
   CUSTOM FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Base Colors - Deep Sophisticated Palette */
  --color-slate-950: #0a0d12;
  --color-slate-900: #151821;
  --color-slate-800: #1f242e;
  --color-slate-700: #2d3442;
  --color-slate-600: #3d4554;
  --color-slate-500: #5d6575;
  --color-slate-400: #8790a2;
  --color-slate-300: #b0b8c7;
  --color-slate-200: #d6dce5;
  --color-slate-100: #ebeef3;
  --color-slate-50: #f7f9fb;

  /* Accent - Warm Copper/Amber (Mineral/Oil/Legal Documents) */
  --color-copper-700: #92400e;
  --color-copper-600: #b45309;
  --color-copper-500: #d97706;
  --color-copper-400: #f59e0b;
  --color-copper-300: #fbbf24;
  --color-copper-200: #fcd34d;
  --color-copper-100: #fef3c7;
  --color-copper-50: #fffbeb;

  /* Secondary - Refined Teal */
  --color-teal-600: #0f766e;
  --color-teal-500: #14b8a6;
  --color-teal-400: #2dd4bf;

  /* Success/Error */
  --color-emerald-600: #059669;
  --color-emerald-500: #10b981;
  --color-red-600: #dc2626;
  --color-red-500: #ef4444;

  /* Warm Neutrals */
  --color-cream: #fdfcfa;
  --color-paper: #f9f7f4;
  --color-linen: #f2efe9;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Shadows - Refined & Layered */
  --shadow-sm: 0 1px 2px rgba(10, 13, 18, 0.06), 0 1px 3px rgba(10, 13, 18, 0.1);
  --shadow-md: 0 4px 6px rgba(10, 13, 18, 0.07), 0 2px 4px rgba(10, 13, 18, 0.06);
  --shadow-lg: 0 10px 15px rgba(10, 13, 18, 0.1), 0 4px 6px rgba(10, 13, 18, 0.05);
  --shadow-xl: 0 20px 25px rgba(10, 13, 18, 0.15), 0 10px 10px rgba(10, 13, 18, 0.04);
  --shadow-2xl: 0 25px 50px rgba(10, 13, 18, 0.25);
  --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.3);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-slate-800);
  background: var(--color-cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle document texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.75rem; font-weight: 600; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1.125rem; font-weight: 600; }

p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

a {
  color: var(--color-copper-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-copper-500);
}

/* ============================================
   HEADER & NAVIGATION - REFINED DARK
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-slate-900);
  box-shadow: 0 4px 20px rgba(10, 13, 18, 0.4);
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.company-banner {
  background: linear-gradient(90deg, var(--color-slate-800), var(--color-slate-700));
  color: var(--color-slate-200);
  text-align: center;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--color-slate-700);
}

.company-banner i {
  color: var(--color-copper-400);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-slate-50);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}

.logo-img {
  height: 48px;
  width: auto;
  margin-right: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.logo-fallback {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-copper-500), var(--color-copper-600));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
  margin-right: 1rem;
  box-shadow: var(--shadow-md);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu a {
  color: var(--color-slate-300);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-copper-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.nav-menu a:hover {
  color: var(--color-copper-400);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.welcome-text {
  color: var(--color-slate-300);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-right: 0.5rem;
}

/* ============================================
   BUTTONS - REFINED & AUTHORITATIVE
   ============================================ */
.btn {
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--color-copper-600);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-copper-500);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: white;
}

.btn-secondary {
  background: var(--color-slate-700);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-slate-600);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-copper-600);
  border: 2px solid var(--color-copper-600);
}

.btn-outline:hover {
  background: var(--color-copper-600);
  color: white;
}

.btn-white {
  background: white;
  color: var(--color-slate-900);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  background: var(--color-cream);
  box-shadow: var(--shadow-xl);
  color: var(--color-slate-900);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--color-slate-900);
}

.btn-danger {
  background: var(--color-red-600);
  color: white;
}

.btn-danger:hover {
  background: var(--color-red-500);
  color: white;
}

.btn-info {
  background: var(--color-teal-600);
  color: white;
}

.btn-info:hover {
  background: var(--color-teal-500);
  color: white;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  margin-top: 98px;
  min-height: calc(100vh - 98px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  width: 100%;
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 3.5rem;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-copper-500), var(--color-copper-600));
  border-radius: 2px;
}

/* ============================================
   HERO SECTION - SIMPLE FALLBACK (for static hero)
   ============================================ */
.hero-section {
  padding: 9rem 0 7rem;
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-slate-800));
  position: relative;
  overflow: hidden;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  color: white;
  animation: hero-fade-in 0.8s ease-out;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--color-copper-400), var(--color-copper-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-slate-300);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: hero-fade-in 0.8s 0.2s ease-out backwards;
}

/* Hero visual/map placeholder */
.hero-visual {
  max-width: 600px;
  margin: 0 auto;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--color-slate-700), var(--color-slate-600));
  border-radius: 14px;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-slate-600);
}

.map-placeholder i {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: var(--color-copper-400);
}

.map-placeholder p {
  font-size: 1.1875rem;
  opacity: 0.95;
  margin: 0;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: 7rem 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-cream);
  border: 1px solid var(--color-linen);
  border-radius: 12px;
  transition: all var(--transition-base);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, transparent, var(--color-copper-50));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-copper-200);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(135deg, var(--color-copper-500), var(--color-copper-600));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(2deg);
}

.feature-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-slate-900);
  margin-bottom: 0.875rem;
}

.feature-card p {
  color: var(--color-slate-600);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================
   SERVICES OVERVIEW
   ============================================ */
.services-overview {
  padding: 7rem 0;
  background: var(--color-slate-900);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.services-overview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 0h60v60H0z' fill='none' stroke='rgba(217,119,6,0.06)' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.services-overview > * {
  position: relative;
  z-index: 1;
}

.services-overview .section-title {
  color: white;
  text-align: center;
}

.services-overview .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--color-slate-800);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-slate-700);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-copper-600);
}

.service-icon {
  font-size: 3rem;
  color: var(--color-copper-400);
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-slate-300);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--color-copper-400);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.service-link:hover {
  color: var(--color-copper-300);
  gap: 0.75rem;
}

/* ============================================
   TECHNOLOGY SECTION
   ============================================ */
.technology-section {
  padding: 7rem 0;
  background: white;
}

.tech-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.tech-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.tech-text p {
  font-size: 1.1875rem;
  color: var(--color-slate-600);
  margin-bottom: 2rem;
}

.tech-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-features li {
  padding: 0.875rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  font-size: 1.0625rem;
  color: var(--color-slate-700);
}

.tech-features i {
  color: var(--color-emerald-500);
  font-size: 1.375rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.ai-demo-card {
  background: var(--color-slate-900);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-slate-700);
}

.ai-demo-header {
  background: linear-gradient(135deg, var(--color-copper-600), var(--color-copper-500));
  color: white;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-demo-chat {
  padding: 2rem 1.75rem;
  background: var(--color-slate-800);
}

.demo-message {
  margin-bottom: 1.25rem;
  padding: 1rem 1.375rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  animation: message-in 0.4s ease-out backwards;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-message.user {
  background: var(--color-slate-700);
  color: white;
  margin-left: 2.5rem;
  border-bottom-right-radius: 4px;
  animation-delay: 0.2s;
}

.demo-message.ai {
  background: var(--color-slate-600);
  color: var(--color-slate-100);
  margin-right: 2.5rem;
  border: 1px solid var(--color-copper-600);
  border-bottom-left-radius: 4px;
  animation-delay: 0.5s;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--color-slate-900) 0%, var(--color-slate-800) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none' stroke='rgba(217,119,6,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.stats-section > * {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-copper-500);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--color-copper-300), var(--color-copper-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 1.0625rem;
  opacity: 0.9;
  color: var(--color-slate-200);
  font-weight: 500;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 7rem 0;
  background: linear-gradient(135deg, var(--color-copper-600) 0%, var(--color-copper-500) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h80v80H0z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='0.5'/%3E%3C/svg%3E");
  animation: pattern-shift 30s linear infinite;
}

@keyframes pattern-shift {
  from { transform: translateX(0) translateY(0); }
  to { transform: translateX(80px) translateY(80px); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.375rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER - REFINED DARK
   ============================================ */
.footer {
  background: var(--color-slate-950);
  color: var(--color-slate-300);
  padding: 4rem 0 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--color-slate-800);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.footer-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  color: white;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.footer-section a {
  color: var(--color-slate-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--color-copper-400);
}

.footer-section i {
  color: var(--color-copper-500);
  font-size: 1.125rem;
}

.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-slate-800);
  text-align: center;
  color: var(--color-slate-400);
  font-size: 0.9375rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-linen);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-copper-200);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-slate-700);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--color-slate-300);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-slate-800);
  background: white;
  transition: all var(--transition-fast);
}

.form-control:hover {
  border-color: var(--color-slate-400);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-copper-500);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ============================================
   ALERTS
   ============================================ */
.messages-container {
  margin-bottom: 2rem;
}

.alert {
  padding: 1.125rem 1.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--color-emerald-500);
  color: var(--color-emerald-600);
}

.alert-error,
.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-red-500);
  color: var(--color-red-600);
}

.alert-info {
  background: rgba(74, 144, 217, 0.1);
  border: 1px solid #4a90d9;
  color: #2563eb;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--color-copper-400);
  color: var(--color-copper-600);
}

.alert .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
  color: inherit;
}

.alert .close:hover {
  opacity: 1;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-slate-200);
  margin: 6px 0;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-muted { color: var(--color-slate-500); }

.bg-primary { background: var(--color-copper-600); }
.bg-secondary { background: var(--color-slate-700); }
.bg-light { background: var(--color-paper); }
.bg-white { background: white; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .tech-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-slate-800);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border-top: 1px solid var(--color-slate-700);
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-slate-700);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--color-slate-200);
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
  }

  .main-content {
    margin-top: 140px;
  }

  .hero-section {
    padding: 5rem 0 4rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .section-title {
    font-size: 2.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-number {
    font-size: 3rem;
  }

  .footer-sections {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .demo-message.user,
  .demo-message.ai {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  animation: fadeIn 0.7s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--color-copper-400);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .footer,
  .nav-menu,
  .nav-buttons,
  .mobile-menu-toggle,
  .btn {
    display: none !important;
  }

  .main-content {
    margin-top: 0;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }

  .section-title {
    color: black;
  }
}

/* ============================================
   AI TOOL INTEGRATION STYLES
   ============================================ */
.tool-indicator {
  padding: 10px 14px;
  background: var(--color-slate-100);
  border-radius: 6px;
  border: 1px solid var(--color-slate-200);
  font-size: 0.9375rem;
  color: var(--color-slate-600);
  margin: 6px 0;
}

.ai-sources {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-linen);
}

.source-link {
  display: block;
  font-size: 0.875rem;
  color: var(--color-copper-600);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.source-link:hover {
  color: var(--color-copper-500);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
