:root {
  --brand: #c8102e;
  --brand-dark: #8f0a20;
  --brand-light: #ffe8ec;
  --text: #1f2329;
  --text-sub: #5b6470;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --border: #e6e8eb;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --gradient-1: linear-gradient(135deg, #c8102e 0%, #8f0a20 55%, #5b0a18 100%);
  --gradient-2: linear-gradient(120deg, #ffe8ec 0%, #ffffff 45%, #f7f8fa 100%);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --brand: #ff4d6a;
  --brand-dark: #ff7a90;
  --brand-light: #3a1520;
  --text: #e8eaed;
  --text-sub: #a8b0ba;
  --bg: #121417;
  --bg-soft: #1a1d21;
  --border: #2a2f36;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
  --glass: rgba(26, 29, 33, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-2: linear-gradient(120deg, #1c1216 0%, #121417 45%, #1a1d21 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 9999;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.35);
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-8deg) scale(1.06);
}

.logo-text small {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--text-sub);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 130px;
  padding: 4px 0;
}

.search-box button {
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.search-box button:hover {
  background: var(--brand-dark);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
}

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--border);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--brand);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-2);
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 60px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); }
}

.hero h1 {
  font-size: 40px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.hero-lead {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200, 16, 46, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(200, 16, 46, 0.42);
  text-decoration: none;
}

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.3;
}

.stat-label {
  font-size: 13px;
  color: var(--text-sub);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cover-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cover-card svg {
  width: 100%;
  height: auto;
}

.cover-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cover-mini {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cover-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Sections */
section {
  padding: 64px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--brand-light);
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.section-head p {
  color: var(--text-sub);
  font-size: 16px;
}

.alt-bg {
  background: var(--bg-soft);
}

/* Cards */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  transition: transform 0.3s var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-6deg);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-sub);
  font-size: 14.5px;
}

/* Products */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-thumb svg {
  transform: scale(1.06);
}

.product-body {
  padding: 20px;
}

.product-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-body p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.product-card:hover .tag {
  background: var(--brand);
  color: #fff;
}

/* Features list */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.feature-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}

.feature-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.feature-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-sub);
}

/* Scenarios */
.scenario-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.scenario-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-sub);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.scenario-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.scenario-tab.active {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
}

.scenario-panel {
  display: none;
}

.scenario-panel.active {
  display: block;
  animation: fadeIn 0.45s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Cases */
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.case-head {
  padding: 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.case-head h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.case-head span {
  font-size: 13px;
  color: var(--text-sub);
}

.case-body {
  padding: 22px;
}

.case-body p {
  font-size: 14.5px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.case-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.case-metric {
  font-size: 13px;
  color: var(--text-sub);
}

.case-metric strong {
  display: block;
  font-size: 22px;
  color: var(--brand);
  font-weight: 900;
}

/* Testimonials */
.quote-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.quote-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

.quote-mark {
  font-size: 48px;
  color: var(--brand-light);
  line-height: 1;
  font-weight: 900;
  margin-bottom: 6px;
}

.quote-card p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 18px;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.quote-author strong {
  font-size: 14px;
  display: block;
}

.quote-author span {
  font-size: 12px;
  color: var(--text-sub);
}

/* News / Articles */
.article-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.article-cat {
  background: var(--brand-light);
  color: var(--brand);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.45;
}

.article-card p {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 16px;
  flex: 1;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s var(--ease);
}

.read-more:hover {
  gap: 9px;
  text-decoration: none;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item:hover {
  border-color: var(--brand);
}

.faq-item.open {
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
  transition: color 0.2s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
}

.faq-toggle {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  font-weight: 700;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--brand);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-a-inner {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-sub);
}

/* HowTo */
.howto-steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.howto-step {
  display: flex;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--border);
  position: relative;
}

.howto-step:last-child {
  border-bottom: none;
}

.howto-step::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.howto-step h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.howto-step p {
  font-size: 14.5px;
  color: var(--text-sub);
}

/* Team */
.team-card {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease);
}

.team-card:hover .team-avatar {
  transform: scale(1.08);
}

.team-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.team-card span {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 13.5px;
  color: var(--text-sub);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-item:hover {
  border-color: var(--brand);
  transform: translateX(4px);
}

.contact-item .ci-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 14px;
  color: var(--text-sub);
}

.contact-form {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.site-footer {
  background: #111418;
  color: #c9d1d9;
  padding: 56px 0 0;
}

[data-theme="dark"] .site-footer {
  background: #0a0c0e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2f36;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13.5px;
  color: #8b949e;
  line-height: 1.8;
  margin-bottom: 14px;
}

.footer-col h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: #8b949e;
  font-size: 13.5px;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 4px;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #6e7681;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #8b949e;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 900;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.55);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide svg {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease), width 0.2s var(--ease);
}

.dot.active {
  background: #fff;
  width: 24px;
  border-radius: 999px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

/* Misc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notice {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  color: var(--text);
  margin: 20px 0;
}

.notice strong {
  color: var(--brand);
}

.prose p {
  margin-bottom: 16px;
  color: var(--text-sub);
  font-size: 15.5px;
}

.prose h3 {
  font-size: 20px;
  margin: 28px 0 12px;
  font-weight: 700;
}

.prose h4 {
  font-size: 16.5px;
  margin: 20px 0 8px;
  font-weight: 700;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 22px;
  color: var(--text-sub);
  font-size: 15px;
}

.prose li {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th, td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--bg-soft);
  font-weight: 700;
}

td {
  color: var(--text-sub);
}

.anchor-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.anchor-nav a {
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-sub);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.anchor-nav a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 960px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
    animation: fadeIn 0.3s var(--ease);
  }

  .search-box {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 36px 0 44px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  section {
    padding: 44px 0;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .cover-row {
    grid-template-columns: 1fr;
  }

  .logo-text small {
    display: none;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}