/* ============================================================
   扬州立丹科技有限公司 - 官网主样式
   ============================================================ */

/* ============ CSS VARIABLES ============ */
:root {
  --bg-primary: #0f1623;
  --bg-secondary: #0d1117;
  --bg-panel: rgba(30,41,59,0.3);

  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --sky: #38bdf8;
  --green: #22c55e;
  --purple: #8b5cf6;
  --red: #ef4444;
  --amber: #f59e0b;
  --orange: #f97316;
  --cyan: #06b6d4;

  --text-heading: #f1f5f9;
  --text-body: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-faint: #475569;

  --border-subtle: rgba(20,184,166,0.06);
  --border-light: rgba(20,184,166,0.1);
  --border-hover: rgba(20,184,166,0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cn: 'Noto Sans SC', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--sky); text-decoration: none; transition: color 0.3s; }
a:hover { color: #67e8f9; }
.mono { font-family: var(--font-mono); }

/* ============ GRID BACKGROUND ============ */
.grid-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.grid-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 800px 600px at 20% 20%, rgba(20,184,166,0.08), transparent),
    radial-gradient(ellipse 600px 400px at 80% 60%, rgba(56,189,248,0.06), transparent),
    radial-gradient(ellipse 500px 300px at 50% 90%, rgba(34,197,94,0.05), transparent);
}

/* ============ PARTICLES ============ */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(20,184,166,0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
.particle:nth-child(1)  { left: 10%; top: 20%; animation-duration: 18s; width: 3px; height: 3px; background: rgba(20,184,166,0.5); }
.particle:nth-child(2)  { left: 25%; top: 70%; animation-duration: 22s; animation-delay: -3s; background: rgba(56,189,248,0.35); }
.particle:nth-child(3)  { left: 40%; top: 40%; animation-duration: 16s; animation-delay: -6s; width: 3px; height: 3px; background: rgba(34,197,94,0.35); }
.particle:nth-child(4)  { left: 55%; top: 80%; animation-duration: 20s; animation-delay: -2s; background: rgba(34,197,94,0.4); }
.particle:nth-child(5)  { left: 70%; top: 30%; animation-duration: 24s; animation-delay: -8s; background: rgba(20,184,166,0.35); }
.particle:nth-child(6)  { left: 85%; top: 60%; animation-duration: 19s; animation-delay: -4s; background: rgba(56,189,248,0.4); }
.particle:nth-child(7)  { left: 15%; top: 90%; animation-duration: 21s; animation-delay: -10s; width: 4px; height: 4px; background: rgba(20,184,166,0.3); }
.particle:nth-child(8)  { left: 60%; top: 10%; animation-duration: 17s; animation-delay: -1s; background: rgba(34,197,94,0.3); }
.particle:nth-child(9)  { left: 90%; top: 50%; animation-duration: 23s; animation-delay: -5s; width: 3px; height: 3px; background: rgba(34,197,94,0.3); }
.particle:nth-child(10) { left: 35%; top: 15%; animation-duration: 25s; animation-delay: -7s; background: rgba(56,189,248,0.3); }
.particle:nth-child(11) { left: 5%;  top: 55%; animation-duration: 20s; animation-delay: -9s; background: rgba(20,184,166,0.3); }
.particle:nth-child(12) { left: 78%; top: 85%; animation-duration: 18s; animation-delay: -11s; background: rgba(34,197,94,0.25); }

/* ============ LAYOUT ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,22,35,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 28px;
}
nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.nav-active { color: var(--teal); font-weight: 600; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: #5eead4;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}
.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 20px;
  font-family: var(--font-cn);
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--sky), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.9;
}
.hero-buttons {
  display: flex;
  gap: 16px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(20,184,166,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20,184,166,0.4);
  color: white;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(20,184,166,0.05);
}

/* ============ TERMINAL DASHBOARD ============ */
.terminal {
  background: rgba(13,17,23,0.9);
  border: 1px solid rgba(20,184,166,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 100%;
  box-shadow:
    0 0 40px rgba(20,184,166,0.06),
    0 20px 60px rgba(0,0,0,0.25);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(30,41,59,0.5);
  border-bottom: 1px solid rgba(20,184,166,0.08);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: var(--green); }
.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.terminal-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
}
.terminal-line {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.terminal-prompt { color: var(--green); }
.terminal-cmd { color: var(--text-body); }
.terminal-comment { color: var(--text-dim); }
.terminal-output { color: var(--teal); }
.terminal-warn { color: #eab308; }
.terminal-success { color: var(--green); }

/* Dashboard mini panels */
.dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.dash-panel {
  background: rgba(30,41,59,0.4);
  border: 1px solid rgba(20,184,166,0.08);
  border-radius: 12px;
  padding: 14px;
}
.dash-panel-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.dash-panel-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.dash-panel-value.blue { color: var(--sky); }
.dash-panel-value.cyan { color: var(--teal); }
.dash-panel-value.green { color: var(--green); }
.dash-panel-value.yellow { color: #eab308; }
.dash-panel-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Mini chart bar */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 30px;
  margin-top: 8px;
}
.mini-bar {
  flex: 1;
  background: rgba(20,184,166,0.3);
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
}
.mini-bar:nth-child(1) { height: 40%; }
.mini-bar:nth-child(2) { height: 65%; }
.mini-bar:nth-child(3) { height: 45%; }
.mini-bar:nth-child(4) { height: 80%; background: rgba(56,189,248,0.35); }
.mini-bar:nth-child(5) { height: 55%; }
.mini-bar:nth-child(6) { height: 90%; background: rgba(34,197,94,0.35); }
.mini-bar:nth-child(7) { height: 70%; }
.mini-bar:nth-child(8) { height: 100%; background: rgba(20,184,166,0.45); }

/* ============ SECTION HEADERS ============ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.section-tag::before,
.section-tag::after {
  content: '';
  width: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal));
}
.section-tag::after {
  background: linear-gradient(90deg, var(--teal), transparent);
}
.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  font-family: var(--font-cn);
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============ CAPABILITIES CARDS ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  background: rgba(15,22,35,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-color, var(--teal)), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.cap-card:hover {
  border-color: var(--card-color, var(--border-hover));
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 30px rgba(20,184,166,0.04);
}
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.cap-card:nth-child(1) { --card-color: #38bdf8; }
.cap-card:nth-child(1) .cap-icon { background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.15); }
.cap-card:nth-child(2) { --card-color: #8b5cf6; }
.cap-card:nth-child(2) .cap-icon { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.15); }
.cap-card:nth-child(3) { --card-color: #f97316; }
.cap-card:nth-child(3) .cap-icon { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.15); }
.cap-card:nth-child(4) { --card-color: #14b8a6; }
.cap-card:nth-child(4) .cap-icon { background: rgba(20,184,166,0.08); border: 1px solid rgba(20,184,166,0.15); }
.cap-card:nth-child(5) { --card-color: #22c55e; }
.cap-card:nth-child(5) .cap-icon { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.15); }
.cap-card:nth-child(6) { --card-color: #f59e0b; }
.cap-card:nth-child(6) .cap-icon { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.15); }

.cap-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.cap-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.cap-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  background: rgba(20,184,166,0.05);
  border: 1px solid rgba(20,184,166,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
}

/* ============ SERVICE FLOW ============ */
.flow-section {
  background: rgba(15,22,35,0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.flow-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--sky), var(--green), transparent);
  opacity: 0.3;
  z-index: 0;
}
.flow-card {
  background: rgba(30,41,59,0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  z-index: 1;
}
.flow-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.flow-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--flow-color), transparent);
  opacity: 0.7;
}
.flow-card:nth-child(1) { --flow-color: var(--sky); }
.flow-card:nth-child(2) { --flow-color: var(--purple); }
.flow-card:nth-child(3) { --flow-color: var(--teal); }
.flow-card:nth-child(4) { --flow-color: var(--green); }

.flow-step {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--flow-color);
  background: rgba(20,184,166,0.06);
  border: 2px solid var(--flow-color);
  position: relative;
  z-index: 2;
}
.flow-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}
.flow-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============ APPLICATION SCENARIOS ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: rgba(15,22,35,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s;
}
.case-card:hover {
  border-color: rgba(20,184,166,0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.case-visual {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.case-card:nth-child(1) .case-visual {
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(20,184,166,0.08));
}
.case-card:nth-child(2) .case-visual {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(245,158,11,0.08));
}
.case-card:nth-child(3) .case-visual {
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(34,197,94,0.08));
}

/* Wave animation */
.wave-container {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 60%;
}
.wave {
  position: absolute;
  bottom: 0; left: -50%;
  width: 200%; height: 100%;
  border-radius: 40%;
}
.wave-1 { background: rgba(56,189,248,0.12); }
.wave-2 { background: rgba(20,184,166,0.08); bottom: -10px; }

/* Soil dots */
.soil-dots {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}
.soil-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.soil-dot:nth-child(odd) { background: rgba(34,197,94,0.4); }
.soil-dot:nth-child(even) { background: rgba(245,158,11,0.35); }
.soil-dot:nth-child(3n) { background: rgba(239,68,68,0.35); }
.soil-dot:nth-child(5n) { width: 12px; height: 12px; }

/* Agriculture chart */
.agri-chart {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.agri-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
}

/* Case data overlay */
.case-data-overlay {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 5px 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  color: var(--teal);
  border: 1px solid rgba(20,184,166,0.15);
}

.case-body { padding: 28px; }
.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.case-tag.water {
  background: rgba(56,189,248,0.08);
  color: var(--sky);
  border: 1px solid rgba(56,189,248,0.15);
}
.case-tag.soil {
  background: rgba(34,197,94,0.08);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.15);
}
.case-tag.agri {
  background: rgba(20,184,166,0.08);
  color: var(--teal);
  border: 1px solid rgba(20,184,166,0.15);
}
.case-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.case-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.case-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.case-highlight {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  background: rgba(20,184,166,0.05);
  border: 1px solid rgba(20,184,166,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* ============ TECH STACK ============ */
.tech-section {
  background: rgba(15,22,35,0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.tech-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tech-category {
  background: rgba(30,41,59,0.15);
  border: 1px solid rgba(20,184,166,0.05);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.tech-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.tech-cat-header .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.tech-cat-header .dot.blue   { background: var(--sky); }
.tech-cat-header .dot.purple { background: var(--purple); }
.tech-cat-header .dot.cyan   { background: var(--teal); }
.tech-cat-header .dot.green  { background: var(--green); }
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 16px;
  background: rgba(20,184,166,0.04);
  border: 1px solid rgba(20,184,166,0.08);
  border-radius: 10px;
  color: var(--text-muted);
  transition: all 0.3s;
}
.tech-tag:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(20,184,166,0.08);
  transform: translateY(-2px);
}

/* ============ ABOUT US ============ */
.about-section {
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15,22,35,0.3), rgba(20,184,166,0.03), rgba(15,22,35,0.3));
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
  font-family: var(--font-cn);
}
.about-content h2 .gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 20px;
}
.about-content p.highlight {
  color: #cbd5e1;
  font-size: 1.1rem;
  border-left: 3px solid var(--teal);
  padding-left: 20px;
  margin: 28px 0;
  line-height: 1.9;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-value-card {
  background: rgba(15,22,35,0.5);
  border: 1px solid rgba(20,184,166,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
}
.about-value-card:hover {
  border-color: rgba(20,184,166,0.2);
  transform: translateY(-2px);
}
.about-value-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.about-value-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}
.about-value-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============ CTA SECTION ============ */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-inner {
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(56,189,248,0.08), rgba(34,197,94,0.06));
  border: 1px solid rgba(20,184,166,0.12);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(20,184,166,0.06), transparent 60%);
}
.cta-inner h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  font-family: var(--font-cn);
}
.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  line-height: 1.9;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.cta-contact {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 36px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.cta-contact-item svg {
  width: 18px; height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  font-family: var(--font-cn);
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  padding: 4px 12px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.12);
  border-radius: 100px;
}
.footer-status-badge .status-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a,
.footer-col span {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(20,184,166,0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.footer-icp {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-icp:hover {
  color: var(--teal);
}
.footer-sys-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
}
.footer-sys-status .status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
}

/* ============ SVG ICONS ============ */
.icon-svg {
  width: 24px; height: 24px;
}

/* ============ PAGE HEADER (for sub-pages) ============ */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  text-align: center;
}
.page-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font-cn);
  margin-bottom: 16px;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============ CASES PAGE ============ */
.case-detail-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 60px;
}
.case-detail-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: rgba(15,22,35,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s;
}
.case-detail-card:hover {
  border-color: rgba(20,184,166,0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.case-detail-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.case-detail-card:nth-child(1) .case-detail-visual {
  background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(20,184,166,0.08));
}
.case-detail-card:nth-child(2) .case-detail-visual {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(245,158,11,0.08));
}
.case-detail-card:nth-child(3) .case-detail-visual {
  background: linear-gradient(135deg, rgba(20,184,166,0.12), rgba(34,197,94,0.08));
}
.case-detail-decor {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
}
.case-detail-card:nth-child(1) .case-detail-decor {
  background: radial-gradient(circle, rgba(56,189,248,0.25), rgba(20,184,166,0.1));
  box-shadow: 0 0 60px rgba(56,189,248,0.15);
}
.case-detail-card:nth-child(1) .case-detail-decor::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 160px; height: 160px;
  border: 2px solid rgba(56,189,248,0.12);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}
.case-detail-card:nth-child(2) .case-detail-decor {
  background: radial-gradient(circle, rgba(34,197,94,0.25), rgba(245,158,11,0.1));
  box-shadow: 0 0 60px rgba(34,197,94,0.15);
  border-radius: 30%;
}
.case-detail-card:nth-child(3) .case-detail-decor {
  background: radial-gradient(circle, rgba(20,184,166,0.25), rgba(34,197,94,0.1));
  box-shadow: 0 0 60px rgba(20,184,166,0.15);
  border-radius: 20% 50% 50% 20%;
}
.case-detail-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-detail-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  font-family: var(--font-cn);
}
.case-detail-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 12px;
}
.case-detail-body .case-tech-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  margin-top: 8px;
}
.case-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-detail-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 14px;
  background: rgba(20,184,166,0.05);
  border: 1px solid rgba(20,184,166,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}
/* Case Category Headers */
.case-category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  margin-top: 64px;
}
.case-category-header:first-child {
  margin-top: 0;
}
.case-category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,184,166,0.06);
  border: 1px solid var(--cat-color, var(--teal));
  flex-shrink: 0;
}
.case-category-icon svg {
  width: 22px;
  height: 22px;
  color: var(--cat-color, var(--teal));
  stroke: var(--cat-color, var(--teal));
}
.case-category-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
  font-family: var(--font-cn);
}
.case-category-header p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Category Separator */
.case-category-separator {
  width: 100%;
  height: 1px;
  margin: 48px 0 16px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  opacity: 0.5;
}

/* Case Card Grid (3-col) */
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}
.case-card-grid.case-card-grid-2 {
  grid-template-columns: repeat(3, 1fr);
}

/* Case Card V2 */
.case-card-v2 {
  background: rgba(15,22,35,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case-card-v2-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.case-card-v2-body p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 0 auto;
}
.case-card-v2-body .case-tech-label {
  flex: 0 0 auto;
}
.case-card-v2-body .case-detail-tags {
  flex: 0 0 auto;
  max-height: 64px;
  overflow: hidden;
}
.case-card-v2-body .case-live-btn {
  margin-top: auto;
}
.case-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.case-card-v2:hover {
  border-color: rgba(20,184,166,0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.case-card-v2:hover::before {
  opacity: 1;
}
.case-card-v2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.case-card-v2-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
}
.case-card-v2-status .status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.case-card-v2 h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
  font-family: var(--font-cn);
}
.case-card-v2 p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 16px;
}
.case-card-v2 .case-tech-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.case-card-v2 .case-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-card-v2 .case-detail-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  background: rgba(20,184,166,0.05);
  border: 1px solid rgba(20,184,166,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Case Card V2 — Image */
.case-card-v2-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: -32px -28px 0 -28px;
  width: calc(100% + 56px);
}
.case-card-v2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.case-card-v2:hover .case-card-v2-img img {
  transform: scale(1.05);
}

/* Case Card V2 — Body (content below image) */
.case-card-v2-body {
  padding-top: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Category Badge */
.case-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-cn);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}
.badge-weather {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.3);
}
.badge-education {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}
.badge-solution {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
}

/* Case Live Button */
.case-live-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 20px;
  font-family: var(--font-cn);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  border: 1px solid rgba(20,184,166,0.35);
  border-radius: 20px;
  background: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}
.case-live-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(20,184,166,0.25);
}

/* Responsive — case card image */
@media (max-width: 768px) {
  .case-card-v2-img {
    height: 160px;
  }
}

.cases-cta {
  text-align: center;
  padding: 60px 0;
}
.cases-cta p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: rgba(15,22,35,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.contact-info-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 28px;
  font-family: var(--font-cn);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-item:last-child {
  margin-bottom: 0;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(20,184,166,0.08);
  border: 1px solid rgba(20,184,166,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  stroke: var(--teal);
}
.contact-info-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.contact-info-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-form-card {
  background: rgba(15,22,35,0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.contact-form-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 28px;
  font-family: var(--font-cn);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(30,41,59,0.4);
  border: 1px solid rgba(20,184,166,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(20,184,166,0.3);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20,184,166,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.6rem; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid::before { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-card-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card-grid.case-card-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-desc { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-outline { justify-content: center; width: 100%; }
  .cap-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .tech-categories { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .section-header h2 { font-size: 1.8rem; }
  .about-content h2 { font-size: 1.8rem; }
  .about-values { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(15,22,35,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border-light);
  }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-inner { padding: 48px 24px; }
  .cta-inner h2 { font-size: 1.8rem; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline { justify-content: center; }
  .cta-contact { flex-direction: column; align-items: center; gap: 16px; }
  .page-header { padding-top: 110px; padding-bottom: 40px; }
  .page-header h1 { font-size: 2rem; }
  .case-detail-card { grid-template-columns: 1fr; }
  .case-detail-visual { min-height: 180px; }
  .case-detail-body { padding: 28px; }
  .case-card-grid { grid-template-columns: 1fr; }
  .case-card-grid.case-card-grid-2 { grid-template-columns: 1fr; }
  .case-category-header h2 { font-size: 1.3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  nav { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
  .flow-grid { grid-template-columns: 1fr; }
  .terminal-body { font-size: 0.7rem; padding: 12px; }
  .dash-panels { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.7rem; }
  .case-detail-body h3 { font-size: 1.2rem; }
  .contact-info-card, .contact-form-card { padding: 24px; }
  .cta-inner h2 { font-size: 1.5rem; }
  .section-header h2 { font-size: 1.5rem; }
  .about-content h2 { font-size: 1.5rem; }
}

/* ============ AI CHAT WIDGET ============ */

/* Float button */
.chat-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: rgba(255,255,255,0.6);
}
.chat-float-btn:hover {
  background: linear-gradient(135deg, rgba(20,184,166,0.7), rgba(56,189,248,0.7));
  border-color: transparent;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(20,184,166,0.4);
}
.chat-float-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Chat window */
.chat-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--bg-secondary);
  border: 1px solid rgba(20,184,166,0.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(20,184,166,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-window.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(20,184,166,0.1);
  background: rgba(30,41,59,0.3);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  flex-direction: column;
}
.chat-header-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}
.chat-header-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
}
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.chat-action-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s;
}
.chat-action-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

/* Chat messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(20,184,166,0.2);
  border-radius: 4px;
}

/* Message row */
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-msg-user {
  flex-direction: row-reverse;
}
.chat-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-avatar-user {
  background: rgba(20,184,166,0.15);
  color: var(--teal);
}

/* Message bubble */
.chat-msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.7;
}
.chat-bubble-user {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border-top-right-radius: 4px;
}
.chat-bubble-bot {
  background: rgba(30,41,59,0.5);
  color: var(--text-body);
  border: 1px solid rgba(20,184,166,0.06);
  border-top-left-radius: 4px;
}
.chat-msg-text {
  word-break: break-word;
}

/* Message actions (copy/retry) */
.chat-msg-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-copy-btn,
.chat-retry-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s;
}
.chat-copy-btn:hover,
.chat-retry-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}

/* Loading animation */
.chat-loading {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}
.chat-loading span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: chatBounce 1.4s ease-in-out infinite;
}
.chat-loading span:nth-child(2) { animation-delay: 0.16s; }
.chat-loading span:nth-child(3) { animation-delay: 0.32s; }

@keyframes chatBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Chat input area */
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(20,184,166,0.1);
}
.chat-input-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(30,41,59,0.5);
  border: 1px solid rgba(20,184,166,0.1);
  border-radius: 10px;
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s;
}
.chat-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(20,184,166,0.1);
}
.chat-input::placeholder {
  color: var(--text-faint);
}
.chat-send-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat-send-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Chat widget responsive */
@media (max-width: 768px) {
  .chat-window {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .chat-float-btn {
    bottom: 16px;
    right: 16px;
  }
}

/* ============ CONTACT FORM STATUS ============ */
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--green);
}
.form-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--red);
}
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============ FEATURED CASES (Homepage) ============ */
.featured-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.featured-case-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.featured-case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25), 0 0 32px rgba(20,184,166,0.06);
}

.featured-case-img-link {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-secondary);
}
.featured-case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-case-card:hover .featured-case-img {
  transform: scale(1.05);
}

.featured-case-body {
  padding: 24px 28px 28px;
}

.featured-case-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.featured-case-badge.education {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}
.featured-case-badge.solution {
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.2);
}
.featured-case-badge.weather {
  background: rgba(56,189,248,0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56,189,248,0.2);
}

.featured-case-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.4;
}

.featured-case-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-case-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  transition: color 0.3s, gap 0.3s;
}
.featured-case-btn:hover {
  color: #2dd4bf;
  gap: 10px;
}

.featured-case-more {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 1024px) {
  .featured-case-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .featured-case-grid {
    grid-template-columns: 1fr;
  }
  .featured-case-img-link {
    height: 200px;
  }
}
