/* ============================================
   v5: Cyber Tech — 双主题版 (暗色+亮色切换)
   应凯科技 - 智能制造解决方案
   ============================================ */

/* ===== DARK THEME (default) ===== */
:root {
  --clr-bg: #090d15;
  --clr-bg-elevated: #131a27;
  --clr-bg-card: rgba(19, 26, 39, 0.55);
  --clr-bg-card-solid: #131a27;
  --clr-bg-input: rgba(255, 255, 255, 0.03);
  --clr-border: rgba(255, 255, 255, 0.06);
  --clr-border-hover: rgba(255, 255, 255, 0.12);
  --clr-border-card: rgba(255, 255, 255, 0.06);
  --clr-text: #e8ecf1;
  --clr-text-dim: #8896a6;
  --clr-text-muted: #5a6677;
  --clr-heading: #ffffff;
  --clr-white: #ffffff;

  --clr-accent: #6366f1;
  --clr-accent2: #8b5cf6;
  --clr-cyan: #06b6d4;
  --clr-emerald: #10b981;
  --clr-amber: #f59e0b;

  --gradient-brand: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-accent: linear-gradient(135deg, #06b6d4, #10b981);
  --gradient-text: linear-gradient(135deg, #06b6d4 0%, #a78bfa 100%);
  --gradient-hero-highlight: linear-gradient(135deg, #06b6d4 0%, #a78bfa 100%);

  --badge-bg: rgba(6, 182, 212, 0.08);
  --badge-border: rgba(6, 182, 212, 0.12);
  --badge-color: #06b6d4;

  --service-card-bg: rgba(19, 26, 39, 0.55);
  --service-tag-bg: rgba(255, 255, 255, 0.04);
  --service-tag-border: rgba(255, 255, 255, 0.04);

  --case-card-bg: rgba(19, 26, 39, 0.55);
  --case-card-img-bg: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(6,182,212,0.06) 100%);
  --case-tab-bg: transparent;
  --case-tab-color: #8896a6;
  --case-tab-border: rgba(255,255,255,0.06);
  --case-tab-active-bg: linear-gradient(135deg, #6366f1, #8b5cf6);

  --contact-card-bg: rgba(19, 26, 39, 0.55);
  --contact-form-bg: rgba(19, 26, 39, 0.55);

  --footer-bg: #090d15;

  --header-bg: rgba(9, 13, 21, 0.85);
  --header-scrolled-border: rgba(255,255,255,0.06);

  --hero-orb1: rgba(99,102,241,0.08);
  --hero-orb2: rgba(6,182,212,0.06);
  --hero-card-bg: rgba(19, 26, 39, 0.55);
  --hero-card-border: rgba(255,255,255,0.06);
  --hero-card-icon: #06b6d4;

  --about-box-bg: linear-gradient(135deg, #6366f1, #8b5cf6);
  --about-placeholder-bg: rgba(19, 26, 39, 0.55);

  --btn-secondary-border: rgba(255,255,255,0.06);
  --btn-secondary-color: #e8ecf1;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);

  --nav-text: #8896a6;
  --nav-text-active: #ffffff;
  --logo-text: #ffffff;
}

/* ===== LIGHT THEME (V4色系) ===== */
[data-theme="light"] {
  --clr-bg: #fefcf9;
  --clr-bg-elevated: #f5f6f8;
  --clr-bg-card: rgba(255, 255, 255, 0.85);
  --clr-bg-card-solid: #ffffff;
  --clr-bg-input: #f5f6f8;
  --clr-border: #e5e7eb;
  --clr-border-hover: #d1d5db;
  --clr-border-card: #eef0f3;
  --clr-text: #2d2d2d;
  --clr-text-dim: #5a6677;
  --clr-text-muted: #8a94a3;
  --clr-heading: #0f2840;
  --clr-white: #ffffff;

  --clr-accent: #1a3a5c;
  --clr-accent2: #2a5580;
  --clr-cyan: #1a3a5c;
  --clr-emerald: #22c55e;
  --clr-amber: #c9a96e;

  --gradient-brand: linear-gradient(135deg, #1a3a5c, #2a5580);
  --gradient-accent: linear-gradient(135deg, #c9a96e, #e0c78a);
  --gradient-text: linear-gradient(135deg, #c9a96e, #b8933e);
  --gradient-hero-highlight: linear-gradient(135deg, #c9a96e, #b8933e);

  --badge-bg: rgba(201, 169, 110, 0.12);
  --badge-border: rgba(201, 169, 110, 0.2);
  --badge-color: #c9a96e;

  --service-card-bg: #ffffff;
  --service-tag-bg: #f5f6f8;
  --service-tag-border: transparent;

  --case-card-bg: #ffffff;
  --case-card-img-bg: linear-gradient(135deg, #e8edf2 0%, #f5efe0 100%);
  --case-tab-bg: #ffffff;
  --case-tab-color: #5a6677;
  --case-tab-border: #e5e7eb;
  --case-tab-active-bg: linear-gradient(135deg, #1a3a5c, #2a5580);

  --contact-card-bg: #ffffff;
  --contact-form-bg: #ffffff;

  --footer-bg: #0f2840;
  --footer-text: rgba(255,255,255,0.65);

  --header-bg: rgba(254, 252, 249, 0.9);
  --header-scrolled-border: #e5e7eb;

  --hero-orb1: rgba(26,58,92,0.05);
  --hero-orb2: rgba(201,169,110,0.05);
  --hero-card-bg: #ffffff;
  --hero-card-border: #eef0f3;
  --hero-card-icon: #c9a96e;

  --about-box-bg: linear-gradient(135deg, #1a3a5c, #2a5580);
  --about-placeholder-bg: #ffffff;

  --btn-secondary-border: #e5e7eb;
  --btn-secondary-color: #1a3a5c;

  --shadow-card: 0 2px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);

  --nav-text: #5a6677;
  --nav-text-active: #1a3a5c;
  --logo-text: #0f2840;
}

/* ===== GLOBAL ===== */
:root {
  --font-main: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-main);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Gradient text --- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section styles --- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--badge-color); background: var(--badge-bg);
  padding: 6px 18px; border-radius: 50px; margin-bottom: 14px;
  letter-spacing: 0.04em; border: 1px solid var(--badge-border);
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin-bottom: 12px; line-height: 1.3; color: var(--clr-heading); transition: color 0.5s ease; }
.section-desc { color: var(--clr-text-dim); font-size: 17px; max-width: 540px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 32px; border-radius: 50px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none; line-height: 1.5;
}
.btn-primary {
  background: var(--gradient-brand); color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}
[data-theme="light"] .btn-primary { box-shadow: 0 4px 16px rgba(26,58,92,0.2); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: var(--btn-secondary-color);
  border: 1px solid var(--btn-secondary-border);
  transition: var(--transition), background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.btn-secondary:hover { border-color: var(--clr-border-hover); background: rgba(128,128,128,0.08); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: var(--transition), background 0.5s ease;
  background: var(--header-bg);
}
.header.scrolled { backdrop-filter: blur(16px); border-bottom: 1px solid var(--header-scrolled-border); padding: 10px 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: var(--logo-text); transition: color 0.5s ease; }
.logo-accent { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-img { width: 28px; height: 28px; flex-shrink: 0; }

.nav { display: flex; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--nav-text); transition: var(--transition), color 0.5s ease; }
.nav-link:hover, .nav-link.active { color: var(--nav-text-active); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* --- Theme Toggle --- */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--clr-border);
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition), border-color 0.5s ease;
  position: relative; color: var(--clr-text);
}
.theme-toggle:hover { border-color: var(--clr-border-hover); }
.theme-toggle-icon { position: absolute; transition: opacity 0.3s ease, transform 0.4s ease; }
.theme-toggle-icon.sun { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle-icon.moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
/* Dark theme (default): show moon (dark mode icon) */
.theme-toggle .moon { opacity: 1; transform: rotate(0) scale(1); }
.theme-toggle .sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
/* Light theme: show sun */
.theme-toggle.light-mode .moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.theme-toggle.light-mode .sun { opacity: 1; transform: rotate(0) scale(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--clr-text); transition: var(--transition); border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 130px 0 90px; overflow: hidden; background: var(--clr-bg); transition: background 0.5s ease; }
.hero-bg-orb { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; transition: background 0.5s ease; }
.hero-orb-1 { top: -120px; right: -80px; width: 550px; height: 550px; background: radial-gradient(circle, var(--hero-orb1) 0%, transparent 60%); }
.hero-orb-2 { bottom: -60px; left: -40px; width: 400px; height: 400px; background: radial-gradient(circle, var(--hero-orb2) 0%, transparent 60%); }
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.03;
  background-image: linear-gradient(rgba(128,128,128,0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(128,128,128,0.1) 1px, transparent 1px);
  background-size: 60px 60px;
}
[data-theme="light"] .hero-grid-overlay { opacity: 0.04; background-image: linear-gradient(rgba(26,58,92,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(26,58,92,0.08) 1px, transparent 1px); }

.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--badge-color); font-weight: 600; margin-bottom: 24px;
  background: var(--badge-bg); padding: 8px 18px; border-radius: 50px;
  border: 1px solid var(--badge-border);
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.badge-dot { width: 6px; height: 6px; background: var(--badge-color); border-radius: 50%; animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(6,182,212,0.4)} 50%{box-shadow:0 0 0 10px rgba(6,182,212,0)} }

.hero-title { font-size: clamp(34px, 6vw, 52px); font-weight: 800; line-height: 1.18; margin-bottom: 20px; color: var(--clr-heading); letter-spacing: -0.01em; transition: color 0.5s ease; }
.hero-title-highlight {
  background: var(--gradient-hero-highlight);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: var(--clr-text-dim); font-size: 17px; line-height: 1.8; margin-bottom: 36px; max-width: 500px; transition: color 0.5s ease; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; align-items: center; gap: 14px; }
.hero-trust-avatars { display: flex; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--clr-border); margin-left: -10px; transition: border-color 0.5s ease; }
.avatar:first-child { margin-left: 0; }
.avatar:nth-child(1) { background: var(--clr-accent); }
.avatar:nth-child(2) { background: var(--clr-accent2); }
.avatar:nth-child(3) { background: var(--clr-cyan); }
.hero-trust span { font-size: 14px; color: var(--clr-text-muted); transition: color 0.5s ease; }

.hero-visual { position: relative; height: 340px; }
.hero-card {
  position: absolute; background: var(--hero-card-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--hero-card-border); border-radius: var(--radius-lg);
  padding: 22px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: float 6s ease-in-out infinite;
  transition: background 0.5s ease, border-color 0.5s ease;
}
.hero-card-1 { top: 0; left: 20px; animation-delay: 0s; }
.hero-card-2 { top: 60px; right: 0; animation-delay: -2s; }
.hero-card-3 { top: 200px; left: 40%; animation-delay: -4s; }
.hero-card-icon { color: var(--hero-card-icon); margin-bottom: 2px; transition: color 0.5s ease; }
.hero-card strong { font-size: 15px; color: var(--clr-text); }
.hero-card span { font-size: 12px; color: var(--clr-text-muted); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Services ===== */
.services { background: var(--clr-bg); border-top: 1px solid var(--clr-border); transition: background 0.5s ease, border-color 0.5s ease; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }

.service-card {
  position: relative; background: var(--service-card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border-card); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: var(--transition), background 0.5s ease, border-color 0.5s ease;
  overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--clr-border-hover); box-shadow: var(--shadow-card-hover); }
.service-card-glow {
  position: absolute; top: -20px; right: -20px; width: 80px; height: 80px;
  border-radius: 50%; opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.service-card:hover .service-card-glow { opacity: 1; }
.service-card-visual { margin-bottom: 20px; position: relative; z-index: 1; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--clr-heading); position: relative; z-index: 1; transition: color 0.5s ease; }
.service-card > p { color: var(--clr-text-dim); font-size: 14px; line-height: 1.8; margin-bottom: 18px; position: relative; z-index: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.service-tags span {
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--service-tag-bg); color: var(--clr-text-dim); font-weight: 500;
  border: 1px solid var(--service-tag-border);
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

/* ===== Stats ===== */
.stats { padding: 50px 0; background: var(--gradient-brand); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-number { font-size: 48px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-number span { font-size: 48px; }
.stat-label { color: rgba(255,255,255,0.7); font-size: 15px; margin-top: 8px; }

/* ===== About ===== */
.about { background: var(--clr-bg-elevated); transition: background 0.5s ease; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image-placeholder {
  background: var(--about-placeholder-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border-card); border-radius: var(--radius-xl);
  padding: 50px 40px; text-align: center;
  transition: background 0.5s ease, border-color 0.5s ease;
}
.about-illustration { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.illu-box {
  padding: 18px 24px; border-radius: var(--radius-md); font-weight: 700; font-size: 17px;
  color: #ffffff;
}
.illu-box-1 { background: var(--gradient-brand); }
.illu-box-2 { background: linear-gradient(135deg, var(--clr-accent2), var(--clr-cyan)); }
.illu-box-3 { background: var(--gradient-accent); }
.illu-arrow { font-size: 24px; color: var(--clr-text-muted); transition: color 0.5s ease; }
.about-image-placeholder > p { color: var(--clr-text-muted); font-size: 14px; }

.about-text { font-size: 16px; line-height: 1.8; margin-bottom: 14px; color: var(--clr-text); transition: color 0.5s ease; }
.about-text strong { color: var(--clr-heading); }
.about-features { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.about-feature { display: flex; gap: 14px; align-items: flex-start; }
.about-feature-check {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 185, 129, 0.1); color: var(--clr-emerald); border-radius: 50%;
  font-size: 14px; flex-shrink: 0; border: 1px solid rgba(16,185,129,0.2);
}
.about-feature strong { display: block; font-size: 15px; margin-bottom: 2px; color: var(--clr-heading); transition: color 0.5s ease; }
.about-feature p { font-size: 13px; color: var(--clr-text-dim); }

/* ===== Cases ===== */
.cases { background: var(--clr-bg); transition: background 0.5s ease; }
.cases-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.case-tab {
  padding: 10px 24px; border-radius: 50px; border: 1px solid var(--case-tab-border);
  background: var(--case-tab-bg); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: var(--transition), background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
  color: var(--case-tab-color);
}
.case-tab.active, .case-tab:hover { background: var(--case-tab-active-bg); color: white; border-color: transparent; }

.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }

.case-card {
  background: var(--case-card-bg); backdrop-filter: blur(12px);
  border: 1px solid var(--clr-border-card); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition), background 0.5s ease, border-color 0.5s ease;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--clr-border-hover); box-shadow: var(--shadow-card-hover); }
.case-card-img {
  height: 120px; background: var(--case-card-img-bg);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.5s ease;
}
.case-card-icon { font-size: 36px; opacity: 0.2; color: var(--clr-accent); }
.case-card-body { padding: 22px 24px; }
.case-category {
  font-size: 11px; font-weight: 600; color: var(--badge-color); background: var(--badge-bg);
  padding: 4px 10px; border-radius: 20px; display: inline-block; margin-bottom: 10px;
  transition: background 0.5s ease, color 0.5s ease;
}
.case-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--clr-heading); transition: color 0.5s ease; }
.case-card p { color: var(--clr-text-dim); font-size: 13px; line-height: 1.7; }

/* ===== Contact ===== */
.contact { background: var(--clr-bg-elevated); transition: background 0.5s ease; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-intro { color: var(--clr-text-dim); font-size: 16px; margin: 20px 0 32px; line-height: 1.8; }
.contact-info-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start; background: var(--contact-card-bg); backdrop-filter: blur(12px);
  padding: 18px 20px; border-radius: var(--radius-md); border: 1px solid var(--clr-border-card);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.cic-icon { color: var(--hero-card-icon); flex-shrink: 0; transition: color 0.5s ease; }
.contact-info-card strong { display: block; font-size: 15px; color: var(--clr-heading); transition: color 0.5s ease; }
.contact-info-card p { font-size: 14px; color: var(--clr-text-dim); }

.contact-form {
  background: var(--contact-form-bg); backdrop-filter: blur(12px);
  padding: 40px; border-radius: var(--radius-xl); border: 1px solid var(--clr-border-card);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.contact-form h3 { font-size: 22px; margin-bottom: 24px; color: var(--clr-heading); transition: color 0.5s ease; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 14px 16px; background: var(--clr-bg-input);
  border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
  color: var(--clr-text); font-size: 15px; font-family: var(--font-main);
  margin-bottom: 14px; transition: var(--transition), background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--clr-accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.contact-form select { color: var(--clr-text); }
.contact-form select option { background: var(--clr-bg-card-solid); color: var(--clr-text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form textarea { resize: vertical; }
.form-note { text-align: center; font-size: 13px; color: var(--clr-text-muted); margin-top: 14px; }

/* ===== Footer ===== */
.footer { background: var(--footer-bg); border-top: 1px solid var(--clr-border); padding: 60px 0 0; transition: background 0.5s ease, border-color 0.5s ease; }
[data-theme="light"] .footer { color: rgba(255,255,255,0.65); }
[data-theme="light"] .footer .footer-links a, [data-theme="light"] .footer .footer-brand p { color: rgba(255,255,255,0.6); }
[data-theme="light"] .footer .footer-links h4, [data-theme="light"] .footer .footer-qr h4 { color: #fff; }
[data-theme="light"] .footer-brand .logo .logo-text,
[data-theme="light"] .footer-brand .logo .logo-accent { color: rgba(255,255,255,0.9); -webkit-text-fill-color: rgba(255,255,255,0.9); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.8; color: var(--clr-text-dim); transition: color 0.5s ease; }
.footer-brand .logo .logo-text { color: var(--clr-heading); }
.footer-brand .logo .logo-accent { background: none; -webkit-text-fill-color: var(--clr-heading); color: var(--clr-heading); }
.footer-links h4, .footer-qr h4 { color: var(--clr-heading); font-size: 14px; margin-bottom: 14px; font-weight: 600; transition: color 0.5s ease; }
.footer-links a { display: block; font-size: 14px; color: var(--clr-text-dim); margin-bottom: 10px; transition: var(--transition), color 0.5s ease; }
.footer-links a:hover { color: var(--badge-color); }
.qr-wrap img { display: block; border-radius: 8px; }
.qr-placeholder {
  width: 130px; height: 130px; border: 2px dashed var(--clr-border);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; line-height: 1.6; color: var(--clr-text-muted);
  transition: border-color 0.5s ease, color 0.5s ease;
}
.footer-bottom { border-top: 1px solid var(--clr-border); padding: 20px 0; text-align: center; font-size: 13px; color: var(--clr-text-muted); transition: border-color 0.5s ease; }
.footer-bottom a { color: var(--badge-color); }
[data-theme="light"] .footer-bottom { color: rgba(255,255,255,0.5); }
[data-theme="light"] .footer-bottom a { color: #c9a96e; }

/* ===== Animations ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--clr-bg-card-solid); flex-direction: column; padding: 80px 30px 30px;
    transition: var(--transition); gap: 24px; border-left: 1px solid var(--clr-border); z-index: 999; }
  .nav.active { right: 0; }
  .nav-toggle { display: flex; position: relative; z-index: 1001; }
  .section { padding: 70px 0; }
  .stats-grid { gap: 20px; }
  .stat-number { font-size: 36px; }
  .stat-number span { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .cases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 100px 0 50px; }
}
