/* ===== SIGHTTECH DARK THEME 2.0 ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:           #050a0f;
  --bg-alt:       #030709;
  --surface:      #0d1420;
  --surface-2:    #0f1d2e;
  --border:       #1a2535;
  --border-glow:  rgba(14, 165, 233, 0.35);

  --accent:       #0ea5e9;
  --accent-2:     #06b6d4;
  --accent-glow:  rgba(14, 165, 233, 0.15);
  --accent-glow2: rgba(14, 165, 233, 0.08);

  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #475569;

  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;

  --radius-sm:    0.375rem;
  --radius:       0.5rem;
  --radius-md:    0.75rem;
  --radius-lg:    1rem;
  --radius-xl:    1.5rem;
  --radius-2xl:   2rem;
  --radius-full:  9999px;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-glow:  0 0 20px rgba(14, 165, 233, 0.10);
  --shadow-glow-lg: 0 0 40px rgba(14, 165, 233, 0.15);
  --shadow-dark:  0 4px 24px rgba(0, 0, 0, 0.4);

  /* spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

/* ===== UTILITIES ===== */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-6); }
.container-wide  { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-6); }
.text-center     { text-align: center; }
.text-left       { text-align: left; }
.text-right      { text-align: right; }
.me-2 { margin-right: var(--space-2); }
.ms-2 { margin-left: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.header.scrolled {
  background: rgba(5, 10, 15, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.logo:hover { transform: scale(1.04); }
.logo img { height: 38px; margin-right: var(--space-3); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text); background: var(--accent-glow2); }
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow2);
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.25s ease;
  flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--accent); }
.lang-opt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-full);
  transition: color 0.25s ease;
  letter-spacing: 0.05em;
}
.lang-opt.active { color: var(--accent); }
.lang-sep {
  color: var(--border);
  font-size: 0.75rem;
  padding: 0 0.1rem;
  user-select: none;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow2);
  border: 1px solid rgba(14,165,233,0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.7;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ===== HERO STATS BAR ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: var(--space-8) var(--space-6);
  margin-top: var(--space-12);
  border-top: 1px solid rgba(14,165,233,0.15);
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(14,165,233,0.3);
}
.btn-primary:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14,165,233,0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section { padding: var(--space-24) 0; }
.section-header { text-align: center; margin-bottom: var(--space-16); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== GRID ===== */
.grid { display: grid; gap: var(--space-8); }
.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: rgba(14,165,233,0.4);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.card-image {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  position: relative;
}
.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface) 0%, transparent 60%);
  pointer-events: none;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease;
  filter: brightness(0.85) saturate(0.8);
}
.card:hover .card-image img { transform: scale(1.04); }
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--accent-glow);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  color: var(--accent);
  font-size: 1.75rem;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
  text-align: center;
}
.card-text {
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
  font-size: 0.95rem;
}

/* ===== FEATURES SECTION ===== */
.features { background: var(--bg-alt); }
.feature-card {
  text-align: center;
  padding: var(--space-8);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: var(--accent-glow);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-6);
  color: var(--accent);
  font-size: 2.2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover .feature-icon {
  background: rgba(14,165,233,0.2);
  box-shadow: 0 0 24px rgba(14,165,233,0.2);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.feature-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== ABOUT / STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.stat {
  text-align: center;
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}
.stat:hover { border-color: rgba(14,165,233,0.3); }
.stat h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}
.stat p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--bg) 0%, #071525 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.cta-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text);
}
.footer-section p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  font-size: 0.9rem;
}
.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
  font-size: 0.9rem;
}
.footer-section a:hover { color: var(--accent); }
.social-links { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
}
.social-link:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ===== CHATBOT ===== */
.chatbot-toggle {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  width: 60px; height: 60px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.chatbot-toggle:hover {
  background: #38bdf8;
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(14,165,233,0.5);
}
.chatbot-window {
  position: fixed;
  right: var(--space-6);
  bottom: 90px;
  width: 340px;
  height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dark);
  display: none;
  flex-direction: column;
  z-index: 999;
}
.chatbot-header {
  background: linear-gradient(135deg, #0c2a42 0%, #071525 100%);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: var(--space-4);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-title { font-weight: 600; font-size: 1rem; color: var(--accent); }
.chatbot-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: var(--space-1);
  border-radius: var(--radius);
  transition: color 0.25s ease;
}
.chatbot-close:hover { color: var(--text); }
.chatbot-messages {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 85%;
}
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-message.bot  { align-self: flex-start; }
.chat-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
}
.chat-message.user .chat-bubble {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.chat-avatar {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.chatbot-form {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
}
.chatbot-input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease;
}
.chatbot-input::placeholder { color: var(--text-dim); }
.chatbot-input:focus { border-color: var(--accent); }
.chatbot-send {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.25s ease;
  font-size: 0.875rem;
}
.chatbot-send:hover { background: #38bdf8; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.animate-fade-in-up   { animation: fadeInUp 0.6s ease-out; }
.animate-slide-in-left  { animation: slideInLeft 0.6s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.6s ease-out; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ===== NOTIFICATION ===== */
.notification {
  position: fixed;
  top: 20px; right: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 500;
  z-index: 10000;
  transform: translateX(420px);
  transition: transform 0.3s ease;
  max-width: 340px;
  box-shadow: var(--shadow-dark);
  font-size: 0.9rem;
}
.notification.show { transform: translateX(0); }
.notification.error   { background: #7f1d1d; border: 1px solid var(--danger); }
.notification.success { background: #064e3b; border: 1px solid var(--success); }
.notification.warning { background: #78350f; border: 1px solid var(--warning); }
.notification-content { display: flex; align-items: center; gap: 10px; }
.notification-icon    { font-size: 18px; flex-shrink: 0; }
.notification-message { flex: 1; line-height: 1.4; }
.notification-close   { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: 0.7; transition: opacity 0.25s; }
.notification-close:hover { opacity: 1; }

/* ===== SEVERITY ===== */
.emergency-alert {
  animation: pulse-border 2s infinite;
  border: 1px solid var(--danger);
  background: rgba(239,68,68,0.08);
}
@keyframes pulse-border {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.severity-1 { background: var(--success); }
.severity-2 { background: var(--warning); }
.severity-3 { background: #f97316; }
.severity-4 { background: var(--danger); }
.severity-5 { background: #991b1b; }
.severity-meter { background: var(--surface-2); border-radius: var(--radius-lg); padding: 18px; margin: 16px 0; border: 1px solid var(--border); }
.severity-labels { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.severity-bar { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; }
.severity-fill { height: 100%; border-radius: 5px; transition: width 0.8s ease; }
.severity-fill.severity-1 { background: linear-gradient(90deg, #10b981, #059669); }
.severity-fill.severity-2 { background: linear-gradient(90deg, #f59e0b, #d97706); }
.severity-fill.severity-3 { background: linear-gradient(90deg, #f97316, #ea580c); }
.severity-fill.severity-4 { background: linear-gradient(90deg, #ef4444, #dc2626); }
.severity-fill.severity-5 { background: linear-gradient(90deg, #7c2d12, #991b1b); }

/* ===== NEXT STEPS ===== */
.next-steps { background: var(--surface); border-radius: var(--radius-lg); padding: 18px; border: 1px solid var(--border); }
.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border);
  transition: all 0.25s ease;
}
.step-item:hover { border-left-color: var(--accent); }
.step-item.step-urgent { border-left-color: var(--danger); background: rgba(239,68,68,0.05); }
.step-number {
  background: var(--accent);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  margin-right: 12px;
  flex-shrink: 0;
}
.step-item.step-urgent .step-number { background: var(--danger); }
.step-content h6 { margin: 0 0 4px; color: var(--text); font-size: 0.9rem; }

/* ===== CONFIDENCE CHART ===== */
.confidence-chart { background: var(--surface); border-radius: var(--radius-lg); padding: 18px; border: 1px solid var(--border); }
.confidence-bar-item { margin-bottom: 14px; }
.confidence-bar-label { display: flex; justify-content: space-between; margin-bottom: 4px; font-weight: 500; color: var(--text-muted); font-size: 0.875rem; }
.confidence-bar-bg { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.confidence-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width 0.8s ease; }
.confidence-bar-value { text-align: right; font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ===== MEDICAL SUMMARY ===== */
.medical-summary { background: var(--surface); border-radius: var(--radius-lg); padding: 18px; border: 1px solid var(--border); }
.summary-item { margin-bottom: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.summary-item:last-child { border-bottom: none; }
.summary-item strong { color: var(--text-muted); min-width: 120px; display: inline-block; font-size: 0.875rem; }

/* ===== CONFIDENCE BAR (old) ===== */
.confidence-bar { height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; margin: 8px 0; }
.confidence-fill { height: 100%; background: linear-gradient(90deg, var(--success), var(--warning), var(--danger)); transition: width 1s ease; }
.severity-indicator { width: 18px; height: 18px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.severity-indicator-mobile { text-align: center; margin-top: 8px; }

/* form utils */
.form-control, .form-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text);
  transition: border-color 0.25s ease;
  font-size: 0.9rem;
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

/* upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text-muted);
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-glow2);
  color: var(--text);
}

/* spinner */
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading { display: none; }
.loading.show { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  .header-content { flex-direction: column; gap: var(--space-3); padding: var(--space-3) 0; }
  .nav { position: static; transform: none; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
  .nav-link { font-size: 0.85rem; padding: var(--space-1) var(--space-2); }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  .hero-stats { gap: 1.5rem; margin-top: var(--space-8); }
  .hero-stat h3 { font-size: 1.8rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .chatbot-window { width: calc(100vw - 2rem); right: 1rem; left: 1rem; }
  .chatbot-toggle { right: var(--space-4); bottom: var(--space-4); }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .stats { grid-template-columns: 1fr; }
  .nav { gap: var(--space-2); }
  .hero-stats { flex-direction: column; gap: 1rem; border-top: none; margin-top: var(--space-6); padding: 0; }
}

/* ===== APP SECTION ===== */
.app-section { background: var(--bg-alt); padding: 4rem 0; }
.app-container { max-width: 800px; margin: 0 auto; }
.image-preview { max-width: 200px; max-height: 200px; object-fit: cover; border-radius: var(--radius-md); margin: 5px; border: 1px solid var(--border); }
