/* ============================================================
   华云高科 · 具身底盘官网  style.css
   原创样式，深蓝科技风，响应式布局
   ============================================================ */

:root {
  --navy-900: #06234a;
  --navy-800: #0a2f5f;
  --navy-700: #0d3a75;
  --navy-600: #124a8f;
  --accent: #00c2ff;
  --accent-soft: #7fdcff;
  --ink: #1c2b3a;
  --muted: #5a6b7d;
  --bg: #ffffff;
  --bg-gray: #f4f7fb;
  --line: #e3eaf3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 35, 74, 0.12);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .cn { font-size: 18px; font-weight: 700; letter-spacing: 2px; }
.logo-text .en { font-size: 10px; letter-spacing: 3px; color: var(--accent-soft); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

.main-nav a.active {
  color: #fff;
  font-weight: 600;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 42px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* ---------------- Hero Slider ---------------- */

.hero { position: relative; overflow: hidden; background: var(--navy-900); }

.slides { position: relative; height: 560px; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
}

.slide.active { opacity: 1; }

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(0, 194, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(43, 108, 255, 0.22), transparent 60%);
}

.slide-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 40%, transparent 100%);
}

.slide-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  color: #fff;
}

.slide .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent-soft);
  border: 1px solid rgba(0, 194, 255, 0.45);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.slide h1 { font-size: 46px; letter-spacing: 1px; margin-bottom: 14px; }
.slide h2 { font-size: 30px; font-weight: 600; margin-bottom: 16px; }
.slide p { font-size: 17px; color: rgba(255, 255, 255, 0.78); max-width: 640px; }

.slide .slide-cta { margin-top: 28px; display: flex; gap: 14px; }

.slide-1 { background: linear-gradient(120deg, #041d3d 0%, #0a3a72 55%, #0d4f96 100%); }
.slide-2 { background: linear-gradient(120deg, #041d3d 0%, #123a6b 55%, #1a5fa8 100%); }
.slide-3 {
  background:
    linear-gradient(90deg, rgba(3, 26, 56, 0.94) 0%, rgba(3, 26, 56, 0.6) 45%, rgba(3, 26, 56, 0.1) 100%),
    url("../images/hero/hero-heavy.png") center right / cover no-repeat;
}

.slide-4 {
  background:
    linear-gradient(90deg, rgba(5, 30, 63, 0.94) 0%, rgba(5, 30, 63, 0.6) 45%, rgba(5, 30, 63, 0.1) 100%),
    url("../images/hero/hero-education.png") center right / cover no-repeat;
}

/* slider dots */
.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots button.active { background: var(--accent); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2b6cff);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 150, 255, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 150, 255, 0.45); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); transform: translateY(-2px); }

/* ---------------- Section base ---------------- */

.section { padding: 84px 0; }
.section.gray { background: var(--bg-gray); }

.section-head { text-align: center; margin-bottom: 52px; }

.section-head .kicker {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

.section-head h2 {
  font-size: 34px;
  color: var(--navy-900);
  margin-top: 8px;
  letter-spacing: 1px;
}

.section-head .sub {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
}

.section-head.left { text-align: left; }
.section-head.left h2 { font-size: 28px; }

/* ---------------- Feature / advantage cards ---------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.14), rgba(43, 108, 255, 0.14));
  color: var(--navy-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 { font-size: 19px; color: var(--navy-900); margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ---------------- Product rows (product / solutions pages) ---------------- */

.item-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 44px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 34px;
  transition: box-shadow 0.3s ease;
}

.item-row:hover { box-shadow: var(--shadow); }

.item-row:nth-child(even) { direction: rtl; }
.item-row:nth-child(even) > * { direction: ltr; }

.item-visual {
  border-radius: 12px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.item-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.visual-1 { background: linear-gradient(135deg, #0a2f5f, #1a5fa8); }
.visual-2 { background: linear-gradient(135deg, #06234a, #0d6a8f); }
.visual-3 { background: linear-gradient(135deg, #0d3a75, #2b6cff); }
.visual-4 { background: linear-gradient(135deg, #0a2f5f, #35a0c9); }
.visual-5 { background: linear-gradient(135deg, #06285a, #7a3cff); }
.visual-6 { background: linear-gradient(135deg, #123a5f, #00a896); }

.item-visual .visual-label {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  padding: 10px 22px;
  border-radius: 8px;
  text-align: center;
}

.item-body h3 { font-size: 24px; color: var(--navy-900); margin-bottom: 6px; }
.item-body .model { font-size: 13px; color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-weight: 600; }
.item-body p { color: var(--muted); font-size: 15px; text-align: justify; }

.spec-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }

.spec-tags span {
  background: var(--bg-gray);
  border: 1px solid var(--line);
  color: var(--navy-700);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
}

/* ---------------- Stats strip ---------------- */

.stats-strip { background: var(--navy-900); padding: 56px 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }

.stat .num {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  font-family: "DIN Alternate", "Segoe UI", sans-serif;
}

.stat .num small { font-size: 18px; margin-left: 2px; }
.stat .label { color: rgba(255, 255, 255, 0.7); margin-top: 6px; font-size: 14px; letter-spacing: 1px; }

/* ---------------- Team / About ---------------- */

.about-block { max-width: 880px; margin: 0 auto; text-align: justify; }
.about-block p { margin-bottom: 18px; color: var(--ink); font-size: 16px; }

.milestone {
  border-left: 3px solid var(--line);
  margin: 40px 0 0 8px;
  padding-left: 28px;
}

.milestone li { position: relative; margin-bottom: 26px; }
.milestone li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.milestone .year { font-weight: 700; color: var(--navy-900); font-size: 17px; }
.milestone p { color: var(--muted); font-size: 14.5px; }

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.partner-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb0c2;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.partner-cell:hover { color: var(--navy-700); border-color: var(--accent); box-shadow: var(--shadow); }

/* ---------------- Blog ---------------- */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

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

.blog-thumb {
  height: 150px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.blog-thumb .tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

.blog-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.blog-body h3 { font-size: 17.5px; color: var(--navy-900); line-height: 1.5; margin-bottom: 10px; }
.blog-body h3 a:hover { color: var(--accent); }
.blog-body .excerpt { font-size: 14px; color: var(--muted); flex: 1; }

.blog-meta { display: flex; gap: 16px; margin-top: 18px; font-size: 12.5px; color: #93a5b8; }

/* blog article */
.article { max-width: 820px; margin: 0 auto; }
.article .back { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 26px; }
.article .back:hover { color: var(--accent); }

.article h1 { font-size: 30px; color: var(--navy-900); line-height: 1.45; margin-bottom: 14px; }
.article .article-meta { color: #93a5b8; font-size: 13.5px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 21px; color: var(--navy-900); margin: 34px 0 14px; }
.article p { margin-bottom: 16px; color: var(--ink); font-size: 15.5px; text-align: justify; }
.article ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.article li { margin-bottom: 8px; color: var(--ink); font-size: 15.5px; }

.article .callout {
  background: var(--bg-gray);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 22px 0;
  font-size: 14.5px;
  color: var(--navy-700);
}

/* ---------------- Product detail / specs pages ---------------- */

.subnav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 68px;
  z-index: 90;
}

.subnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 54px;
  overflow-x: auto;
}

.subnav-inner a {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  padding: 4px 0;
}

.subnav-inner a:hover,
.subnav-inner a.active { color: var(--navy-700); font-weight: 600; }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.gallery-item img { width: 100%; height: 230px; object-fit: cover; }

.gallery-item figcaption { padding: 14px 18px 16px; }

.gallery-item .cap-title { font-weight: 600; color: var(--navy-900); font-size: 15px; }
.gallery-item .cap-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

.gallery-item.wide { grid-column: span 2; }
.gallery-item.wide img { height: 300px; }

/* video placeholder */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.video-card {
  border-radius: var(--radius);
  background: var(--navy-900);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.video-card .play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(0, 194, 255, 0.18);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  position: relative;
}

.video-card .v-title { position: relative; font-weight: 600; color: #fff; font-size: 16px; }
.video-card .v-sub { position: relative; font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* bilibili embed */
.video-embed {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  position: relative;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed .embed-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 12px;
  background: linear-gradient(transparent, rgba(4, 20, 40, 0.85));
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  pointer-events: none;
}

/* spec tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(6, 35, 74, 0.06);
  margin-bottom: 40px;
}

.spec-table caption {
  text-align: left;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-900);
  padding: 0 0 14px;
}

.spec-table th,
.spec-table td {
  padding: 13px 20px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table thead th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
}

.spec-table tbody th {
  width: 180px;
  color: var(--navy-700);
  font-weight: 600;
  background: var(--bg-gray);
  white-space: nowrap;
}

.spec-table tbody tr:hover td { background: #f8fbff; }
.spec-table td .note { color: #93a5b8; font-size: 12.5px; margin-left: 8px; }

.spec-blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }

.spec-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}

.spec-block .k { font-size: 13px; color: var(--muted); }
.spec-block .v { font-size: 30px; font-weight: 700; color: var(--navy-900); margin: 6px 0 2px; }
.spec-block .u { font-size: 12.5px; color: #93a5b8; }

/* action button row on product cards */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn-outline {
  background: #fff;
  color: var(--navy-700);
  border: 1.5px solid var(--navy-700);
}

.btn-outline:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .spec-blocks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item img { height: 200px; }
  .video-grid { grid-template-columns: 1fr; }
  .spec-blocks { grid-template-columns: 1fr; }
  .spec-table tbody th { width: 120px; }
}

/* ---------------- Downloads page ---------------- */

.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.dl-card .dl-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.14), rgba(43, 108, 255, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.dl-card .dl-body { flex: 1; }

.dl-card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 6px; }
.dl-card .dl-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.dl-card .dl-meta { font-size: 12.5px; color: var(--accent); letter-spacing: 0.5px; }

.dl-card .btn { flex: 0 0 auto; white-space: nowrap; }
.dl-card .btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-600));
  padding: 70px 0;
  text-align: center;
  color: #fff;
}

.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.75); margin-bottom: 30px; }

/* ---------------- Footer ---------------- */

.site-footer { background: #041a38; color: rgba(255, 255, 255, 0.72); padding: 60px 0 30px; font-size: 14px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }

.qr-row { display: flex; gap: 18px; }

.qr-item { text-align: center; }

.qr-item .qr-box {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-item .qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }

.qr-item .qr-box.qr-placeholder {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.qr-item .qr-name { margin-top: 8px; font-size: 12.5px; color: rgba(255, 255, 255, 0.65); letter-spacing: 1px; }

.footer-bottom { padding-top: 24px; text-align: center; color: rgba(255, 255, 255, 0.45); font-size: 13px; }

.footer-bottom a { color: rgba(255, 255, 255, 0.65); text-decoration: underline; text-underline-offset: 3px; transition: color 0.25s ease; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------------- Contact modal ---------------- */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 40, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-mask.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 38px 40px;
  width: min(440px, 90vw);
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.modal h3 { color: var(--navy-900); font-size: 20px; margin-bottom: 18px; }
.modal p { margin-bottom: 10px; font-size: 15px; color: var(--ink); }
.modal .close-x {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  color: #9aa9b8;
  cursor: pointer;
  line-height: 1;
}
.modal .close-x:hover { color: var(--ink); }

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
  .grid-3, .grid-4, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .item-row { grid-template-columns: 1fr; padding: 26px; }
  .dl-grid { grid-template-columns: 1fr; }
  .slide h1 { font-size: 34px; }
  .slide h2 { font-size: 24px; }
  .slides { height: 500px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; }

  .grid-3, .grid-4, .blog-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .slide h1 { font-size: 27px; }
  .slide h2 { font-size: 20px; }
  .slide p { font-size: 15px; }
  .slides { height: 460px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }
}
