:root {
  --bg: #F5F7FA;
  --bg-soft: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-dark-soft: #16213A;
  --text-main: #17202A;
  --text-body: #1F2937;
  --text-soft: #334155;
  --text-muted: #475569;
  --text-invert: #F8FAFC;
  --text-invert-soft: #E2E8F0;
  --brand: #1D4ED8;
  --brand-deep: #1E3A8A;
  --brand-soft: #DBEAFE;
  --accent: #0F766E;
  --accent-soft: #CCFBF1;
  --border: #CBD5E1;
  --border-soft: #E2E8F0;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-soft: 0 4px 14px rgba(15, 23, 42, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --glass-bg: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .45);
  --glass-blur: 14px;
  --hero-grad: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 48%, #0F766E 100%);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

html[data-theme="dark"] {
  --bg: #0B1220;
  --bg-soft: #111A2E;
  --bg-card: #141F38;
  --bg-dark: #0B1220;
  --bg-dark-soft: #111A2E;
  --text-main: #FFFFFF;
  --text-body: #E5E7EB;
  --text-soft: #E2E8F0;
  --text-muted: #CBD5E1;
  --text-invert: #F8FAFC;
  --text-invert-soft: #E2E8F0;
  --brand: #93C5FD;
  --brand-deep: #BFDBFE;
  --brand-soft: #1E3A8A;
  --accent: #5EEAD4;
  --accent-soft: #134E4A;
  --border: #334155;
  --border-soft: #243447;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, .35);
  --glass-bg: rgba(17, 26, 46, .68);
  --glass-border: rgba(148, 163, 184, .22);
  --hero-grad: linear-gradient(135deg, #0B1220 0%, #1E3A8A 52%, #134E4A 100%);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--text-main);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.22rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  color: var(--text-body);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: background .3s ease, border-color .3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.12rem;
}

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

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  transition: transform .4s var(--ease-out);
}

.brand:hover .brand-logo {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text small {
  display: block;
  font-weight: 500;
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .5px;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: .94rem;
  font-weight: 600;
  position: relative;
  transition: background .25s var(--ease-soft), color .25s var(--ease-soft), transform .25s var(--ease-out);
}

.nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

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

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

.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text-body);
  font-size: .9rem;
  width: 140px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .25s var(--ease-soft), transform .2s var(--ease-out);
}

.search-box button:hover {
  background: var(--brand-deep);
  transform: scale(1.03);
}

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

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

.menu-toggle {
  display: none;
}

/* ============ HERO ============ */
.hero {
  background: var(--hero-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(94, 234, 212, .28), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  animation: heroFloat 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(255, 255, 255, .18), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

@keyframes heroFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-40px, 30px, 0) scale(1.12);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 56px 20px 60px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 18px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: badgeIn .7s var(--ease-out) both;
}

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

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
  font-size: 2.25rem;
  margin-bottom: 16px;
  animation: heroTextIn .8s .08s var(--ease-out) both;
}

.hero p {
  color: #F1F5F9;
  font-size: 1.02rem;
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  animation: heroTextIn .8s .16s var(--ease-out) both;
}

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

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: heroTextIn .8s .24s var(--ease-out) both;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-out), background .3s var(--ease-soft), color .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease-out);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary {
  background: #FFFFFF;
  color: #1E3A8A;
  box-shadow: 0 8px 22px rgba(2, 6, 23, .25);
}

.btn-primary:hover {
  background: #E0E7FF;
  color: #1E3A8A;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .32);
}

.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 32px;
  flex-wrap: wrap;
  animation: heroTextIn .8s .32s var(--ease-out) both;
}

.hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hero-stats div span {
  font-size: .84rem;
  color: #E2E8F0;
}

.hero-art {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  padding: 18px;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 18px 50px rgba(2, 6, 23, .28);
  animation: heroTextIn .9s .2s var(--ease-out) both;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}

.hero-art:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(2, 6, 23, .36);
}

.slider {
  position: relative;
  min-height: 250px;
}

.slide {
  display: none;
  animation: fade .6s var(--ease-out);
}

.slide.active {
  display: block;
}

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

.slide h3 {
  color: #fff;
  margin-bottom: 8px;
}

.slide p {
  color: #E2E8F0;
  font-size: .94rem;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .45);
  transition: background .3s var(--ease-soft), width .3s var(--ease-out);
}

.slider-dots button.active {
  background: #fff;
  width: 26px;
  border-radius: 999px;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: .86rem;
  color: var(--text-muted);
}

.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-muted);
}

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

.breadcrumb a {
  color: var(--brand);
  font-weight: 600;
}

/* ============ SECTIONS ============ */
section {
  padding: 56px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head .kicker {
  display: inline-block;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-size: .8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: .3px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-soft);
}

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

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-soft);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  font-size: .95rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.num-card strong {
  display: block;
  font-size: 1.9rem;
  color: var(--brand-deep);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.num-card span {
  color: var(--text-muted);
  font-size: .9rem;
}

.list-check {
  margin-top: 12px;
}

.list-check li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: var(--text-soft);
  font-size: .95rem;
  transition: color .25s var(--ease-soft), transform .25s var(--ease-out);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  transition: transform .3s var(--ease-out), background .3s var(--ease-soft);
}

.list-check li:hover {
  color: var(--text-main);
  transform: translateX(3px);
}

.list-check li:hover::before {
  transform: scale(1.15);
  background: var(--accent);
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: .35;
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
  transition: transform .35s var(--ease-out);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--brand-soft);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-soft);
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.timeline-item h4 {
  margin-bottom: 6px;
}

.timeline-item time {
  font-size: .82rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.timeline-item p {
  color: var(--text-soft);
  font-size: .94rem;
  margin-top: 6px;
}

/* ============ ARTICLE ============ */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.article-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.article-card p {
  flex: 1;
}

.read-more {
  font-weight: 700;
  font-size: .9rem;
  margin-top: 14px;
  display: inline-block;
  transition: transform .3s var(--ease-out), color .3s var(--ease-soft);
}

.read-more:hover {
  transform: translateX(5px);
  text-decoration: none;
}

/* ============ CASE ============ */
.case-card {
  border-left: 4px solid var(--brand);
}

.case-card .case-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: #0F766E;
  font-size: .76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

html[data-theme="dark"] .case-card .case-tag {
  color: #5EEAD4;
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .3s var(--ease-soft), box-shadow .3s var(--ease-soft), transform .3s var(--ease-out);
}

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

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

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  font-family: inherit;
  transition: background .25s var(--ease-soft), color .25s var(--ease-soft);
}

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

.faq-q .arrow {
  transition: transform .35s var(--ease-out);
  color: var(--brand);
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

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

.faq-a p {
  padding: 0 20px 20px;
  color: var(--text-soft);
  font-size: .95rem;
}

/* ============ STEPS ============ */
.steps {
  counter-reset: step;
  margin-top: 16px;
}

.step {
  position: relative;
  padding-left: 64px;
  margin-bottom: 26px;
  transition: transform .35s var(--ease-out);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(29, 78, 216, .28);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-soft);
}

.step:hover {
  transform: translateX(4px);
}

.step:hover::before {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 24px rgba(29, 78, 216, .4);
}

.step h4 {
  margin-bottom: 6px;
}

.step p {
  color: var(--text-soft);
  font-size: .95rem;
}

/* ============ TABLE ============ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  font-size: .93rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
}

th {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}

tbody tr {
  transition: background .25s var(--ease-soft);
}

tbody tr:hover {
  background: var(--bg);
}

tr:last-child td {
  border-bottom: 0;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: padding-left .3s var(--ease-out);
}

.contact-list li:hover {
  padding-left: 6px;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list strong {
  color: var(--text-main);
  min-width: 96px;
  display: inline-block;
}

.contact-list span {
  color: var(--text-soft);
}

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

.form-row label {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  font-size: .92rem;
}

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

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: .82rem;
  color: var(--text-muted);
}

.submit-btn {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: .96rem;
  box-shadow: 0 8px 22px rgba(29, 78, 216, .28);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-soft), filter .3s var(--ease-soft);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(29, 78, 216, .38);
  filter: brightness(1.06);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-invert-soft);
  padding: 52px 0 24px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
  background-size: 200% 100%;
  animation: footerLine 6s linear infinite;
}

@keyframes footerLine {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

.site-footer h4 {
  color: #FFFFFF;
  margin-bottom: 14px;
  font-size: 1rem;
}

.site-footer p {
  color: #CBD5E1;
  font-size: .9rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #E2E8F0;
  font-size: .9rem;
  transition: color .25s var(--ease-soft), padding-left .25s var(--ease-out);
}

.site-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 34px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: #CBD5E1;
}

.footer-bottom a {
  color: #E2E8F0;
}

/* ============ BACK TO TOP ============ */
#backTop {
  position: fixed;
  right: 22px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-soft), filter .3s var(--ease-soft);
}

#backTop.show {
  display: flex;
  animation: backTopIn .4s var(--ease-out);
}

@keyframes backTopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#backTop:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 34px rgba(29, 78, 216, .4);
  filter: brightness(1.08);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}

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

/* ============ MISC ============ */
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-soft);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.note-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: #0F766E;
  font-size: .94rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-soft);
}

.note-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.note-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .note-box {
  color: #5EEAD4;
}

.anchor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.anchor-nav a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background .25s var(--ease-soft), color .25s var(--ease-soft), transform .25s var(--ease-out), border-color .25s var(--ease-soft);
}

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

.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;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 20px 48px;
  }

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

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

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

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

  .hero h1 {
    font-size: 1.95rem;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    width: 100%;
    order: 5;
    margin-left: 0;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-sm);
    padding: 6px;
  }

  .nav.open {
    display: block;
    animation: navIn .35s var(--ease-out);
  }

  @keyframes navIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .nav a {
    padding: 12px;
  }

  .header-tools {
    margin-left: auto;
  }

  .search-box input {
    width: 100px;
  }

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

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

  .hero h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stats div strong {
    font-size: 1.3rem;
  }

  section {
    padding: 40px 0;
  }

  .card {
    padding: 20px;
  }

  .step {
    padding-left: 56px;
  }

  .step::before {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  #backTop {
    right: 16px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-text small {
    display: none;
  }

  .search-box {
    padding-left: 10px;
  }

  .search-box input {
    width: 76px;
    font-size: .84rem;
  }

  .search-box button {
    padding: 6px 10px;
    font-size: .8rem;
  }

  .hero h1 {
    font-size: 1.42rem;
  }

  .btn {
    padding: 11px 20px;
    font-size: .9rem;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

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

/* ============ PRINT ============ */
@media print {
  .site-header,
  .site-footer,
  #backTop,
  .hero-art,
  .slider-dots,
  .anchor-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .faq-item,
  .table-wrap {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .faq-a {
    max-height: none !important;
    overflow: visible !important;
  }
}