/* ============================================
   汉梵数字科技 Hanfan Digital — 官方网站样式
   车未来风格 · 蓝色设计系统
   ============================================ */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
  /* ── 主色调（蓝色系） ── */
  --gold:          #2563eb;
  --gold-dark:     #1d4ed8;
  --orange:        #2563eb;
  --orange-dark:   #1d4ed8;
  --orange-light:  rgba(37, 99, 235, 0.12);

  /* ── 深色背景 ── */
  --navy:          #05073b;
  --navy-light:    #0a0f5c;
  --slate-900:     #0f172a;
  --slate-800:     #1e293b;
  --slate-700:     #334155;

  /* ── 表面色 ── */
  --white:         #ffffff;
  --page-bg:       #f5f6fa;
  --card-bg:       #ffffff;

  /* ── 文本 ── */
  --text-primary:  #1a1a2e;
  --text-body:     #4a4a6a;
  --text-muted:    #62627a;
  --text-light:    rgba(255, 255, 255, 0.7);
  --text-white:    rgba(255, 255, 255, 0.9);

  /* ── 线条 ── */
  --border:        #e8e8ee;
  --border-strong: #d0d0da;

  /* ── 阴影 ── */
  --shadow-card:      0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover:0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-btn:       0 4px 14px rgba(37, 99, 235, 0.35);
  --shadow-lg:        0 20px 60px rgba(0, 0, 0, 0.10);

  /* ── 圆角 ── */
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  50%;

  /* ── 字体 ── */
  --font:          "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  /* ── 字阶 ── */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   18px;
  --fs-lg:   24px;
  --fs-xl:   32px;
  --fs-2xl:  42px;
  --fs-3xl:  52px;

  /* ── 间距 ── */
  --space-section: 100px;
  --space-module:  60px;
  --container-max: 1200px;
  --container-pad: 24px;

  /* ── 过渡 ── */
  --ease:      280ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-slow: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* ── Banner ── */
  --banner-height: 680px;
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--text-body);
  background: var(--page-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
}

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

/* ============================================
   3. NAVIGATION
   ============================================ */
.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  transition: opacity var(--ease);
  flex-shrink: 0;
}

.logo:hover { opacity: 0.8; }

.logo-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: #2563eb;
  color: white;
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: 24px;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li + li::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border-strong);
  margin: 0 18px;
}

.nav-links a {
  padding: 6px 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--ease);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-dark);
}

.nav-links a.active {
  font-weight: 700;
}

/* ============================================
   4. BANNER (Hero)
   ============================================ */
.banner {
  position: relative;
  width: 100%;
  height: var(--banner-height);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 59, 0.92) 0%, rgba(5, 7, 59, 0.76) 42%, rgba(5, 7, 59, 0.24) 78%, rgba(5, 7, 59, 0.1) 100%);
  z-index: 1;
}

.banner-shell {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
}

.banner-body {
  text-align: left;
  color: white;
  max-width: 700px;
}

.banner-kicker {
  display: inline-flex;
  align-items: center;
  padding-left: 13px;
  border-left: 3px solid #8bb4ff;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.8); }
}

.banner h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.banner .banner-lead {
  margin: 0 0 16px;
  color: #9bc0ff;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.45;
}

.banner .banner-copy {
  max-width: 610px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-base);
  line-height: 1.9;
}

.banner h1 .highlight {
  color: var(--gold);
}

.banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ============================================
   5. SECTION PRIMITIVES
   ============================================ */
.section {
  padding: var(--space-section) 0;
  scroll-margin-top: 88px;
}

.section-dark {
  background: var(--navy);
  color: white;
}

.section-white {
  background: var(--white);
}

.section-page {
  background: var(--page-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-dark .section-title { color: white; }

.section-sub {
  max-width: 580px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.8;
}

.section-dark .section-sub { color: rgba(255, 255, 255, 0.6); }

/* Section title accent line */
.section-title-accent {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ============================================
   6. SERVICES GRID (核心业务)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px 32px;
  transition: all var(--ease-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity var(--ease-slow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.06));
  color: var(--orange);
  font-size: 28px;
  transition: all var(--ease-slow);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: white;
}

.service-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card .tagline {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 14px;
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  flex: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.service-features li {
  font-size: var(--fs-sm);
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.service-features li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ============================================
   8. ADVANTAGES GRID (我们的优势)
   ============================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.advantage-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 88px;
  align-items: start;
}

.advantage-intro {
  padding-top: 4px;
}

.advantage-intro .section-title,
.advantage-intro .section-sub {
  text-align: left;
}

.advantage-intro .section-sub {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.62);
}

.text-link {
  display: inline-flex;
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: color var(--ease);
}

.section-dark .text-link {
  color: #9bc0ff;
}

.text-link:hover {
  color: white;
}

.advantage-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 23px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: padding-left var(--ease);
}

.advantage-item:hover {
  padding-left: 6px;
}

.advantage-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
}

.advantage-text h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.advantage-text p {
  max-width: 640px;
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ============================================
   9. SOLUTIONS GRID
   ============================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border-strong);
}

.solution-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 48px;
  text-align: left;
}

.solution-heading .section-sub {
  margin: 0;
}

.solution-card {
  display: grid;
  grid-template-columns: 72px minmax(210px, 0.72fr) minmax(0, 1fr) 28px;
  align-items: center;
  gap: 24px;
  min-height: 118px;
  padding: 22px 0;
  text-align: left;
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--ease), padding var(--ease), background var(--ease);
  cursor: pointer;
}

.solution-card::after {
  content: '↗';
  color: var(--orange);
  font-size: 20px;
  justify-self: end;
}

.solution-card:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: #f7f9ff;
}

.solution-icon {
  width: 52px;
  height: 52px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
  color: var(--orange);
  font-size: 32px;
  transition: all var(--ease-slow);
}

.solution-card:hover .solution-icon {
  background: var(--orange-light);
  color: var(--orange-dark);
  box-shadow: none;
}

.solution-card h4 {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.solution-card p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   10. CASE STUDIES
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
  grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 20px;
}

.case-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
}

.case-heading .section-sub {
  max-width: 500px;
  margin: 0;
}

.case-heading .text-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.case-card {
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.case-card-featured {
  grid-row: 1 / 3;
  min-height: 520px;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.case-card:hover img {
  transform: scale(1.025);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(5, 7, 59, 0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px;
  transition: background var(--ease-slow);
}

.case-card:hover .case-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 7, 59, 0.3) 0%,
    rgba(5, 7, 59, 0.9) 100%
  );
}

.case-overlay h3 {
  color: white;
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.case-card-featured .case-overlay {
  padding: 42px 40px;
}

.case-card-featured .case-overlay h3 {
  max-width: 620px;
  font-size: var(--fs-xl);
}

.case-overlay p {
  max-width: 620px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.case-category {
  display: block;
  margin-bottom: 8px;
  color: #a9c8ff;
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ============================================
   11. FAQ
   ============================================ */
.faq-section { background: var(--white); }
.faq-layout { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: 72px; align-items: start; }
.faq-intro { position: sticky; top: 112px; }
.faq-intro .section-title { margin-bottom: 16px; }
.faq-intro .section-sub { margin: 0; max-width: 360px; text-align: left; }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 22px 0; color: var(--text-primary); font-size: var(--fs-md); font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--orange); font-size: 22px; font-weight: 400; text-align: right; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list summary span { color: var(--orange); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; }
.faq-answer { padding: 0 34px 22px 52px; color: var(--text-muted); font-size: var(--fs-base); line-height: 1.85; }
.faq-answer p { max-width: 650px; }

/* ============================================
   12. CASE LIBRARY PAGE
   ============================================ */
.cases-page-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; background: url('../images/04-geo-data-network.webp') center / cover no-repeat; }
.cases-page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(5, 7, 59, .72); }
.cases-page-hero .container { position: relative; z-index: 1; width: 100%; padding-top: 100px; padding-bottom: 74px; color: white; }
.cases-page-hero .section-label { color: #a9c8ff; }
.cases-page-hero h1 { max-width: 700px; margin-bottom: 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.12; letter-spacing: -.02em; }
.cases-page-hero p { max-width: 600px; color: rgba(255, 255, 255, .74); font-size: var(--fs-md); line-height: 1.8; }
.case-library-section { padding-top: 86px; }
.case-library-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.case-library-intro .section-header { margin: 0; text-align: left; }
.case-library-intro .section-sub { margin: 0; text-align: right; }
.case-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-library-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-card); transition: transform var(--ease), box-shadow var(--ease); }
.case-library-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.case-library-card img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.case-library-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.case-library-card .case-category { margin-bottom: 8px; color: var(--gold-dark); }
.case-library-card h2 { margin-bottom: 10px; color: var(--text-primary); font-size: var(--fs-lg); line-height: 1.35; }
.case-library-card p { margin-bottom: 20px; color: var(--text-muted); font-size: var(--fs-base); line-height: 1.8; }
.case-library-card .text-link { margin-top: auto; }
.case-library-placeholder { justify-content: center; border-style: dashed; background: rgba(37, 99, 235, .035); box-shadow: none; }
.case-library-placeholder:hover { transform: none; box-shadow: none; }
.case-library-note { margin-top: 30px; padding: 16px 18px; border-left: 3px solid var(--orange); color: var(--text-muted); background: var(--orange-light); font-size: var(--fs-sm); line-height: 1.75; }

.case-link {
  color: white;
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* ============================================
   11. ABOUT SECTION
   ============================================ */
.about-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.about-text h2 + .section-label {
  margin-bottom: 20px;
}

.about-text p {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 14px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

/* ============================================
   13. FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
  padding: 48px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand h3 {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  max-width: 280px;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact .contact-icon {
  opacity: 0.5;
  font-size: var(--fs-base);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--ease);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============================================
   14. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: var(--fs-base);
  font-weight: 700;
  transition: all var(--ease);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-gold-outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}

.btn-gold-outline:hover {
  background: var(--orange);
  color: white;
}

.btn-sm {
  padding: 10px 22px;
  font-size: var(--fs-sm);
}

/* ============================================
   15. SUB-PAGE STYLES
   ============================================ */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--slate-800) 100%);
  color: white;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.05);
  pointer-events: none;
}

.page-hero h1 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.page-hero p {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.content-section {
  padding: 64px 0;
  background: var(--white);
}

.content-section .container {
  max-width: 860px;
}

.content-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

.content-section h2:first-child { margin-top: 0; }

.content-section h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--slate-800);
}

.content-section p {
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 14px;
  font-size: var(--fs-base);
}

.content-section .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.content-section .feature-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--ease);
}

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

.content-section .feature-item strong {
  display: block;
  color: var(--text-primary);
  font-size: var(--fs-base);
  margin-bottom: 6px;
}

.content-section .feature-item span {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ============================================
   15a. SUB-PAGE CONTENT SYSTEM
   ============================================ */
.item-kicker {
  display: block;
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.feature-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 36px;
  counter-reset: feature-column;
}

.feature-column {
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
  counter-increment: feature-column;
  transition: border-color var(--ease), transform var(--ease);
}

.feature-column::before {
  content: counter(feature-column, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  color: rgba(37, 99, 235, 0.22);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.feature-column:hover {
  border-top-color: var(--orange);
  transform: translateY(-3px);
}

.feature-column h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
}

.feature-column > p {
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.85;
}

.feature-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.feature-points li {
  position: relative;
  padding-left: 22px;
  color: var(--text-body);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.feature-points li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 800;
}

.insight-list {
  border-top: 1px solid var(--border-strong);
  counter-reset: insight-item;
}

.insight-item {
  display: grid;
  grid-template-columns: 72px minmax(220px, 0.72fr) minmax(0, 1.28fr);
  column-gap: 30px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-strong);
  counter-increment: insight-item;
  transition: padding var(--ease), background var(--ease);
}

.insight-item::before {
  content: counter(insight-item, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 4px;
  color: var(--orange);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.insight-item:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: rgba(37, 99, 235, 0.035);
}

.insight-item h3 {
  grid-column: 2;
  grid-row: 1;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 5px;
}

.insight-item .item-kicker {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 0;
  color: var(--text-muted);
}

.insight-item > p {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--text-muted);
  font-size: var(--fs-base);
  line-height: 1.85;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  counter-reset: process-step;
}

.process-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 20px;
  align-content: start;
  padding: 34px 0 38px;
  border-top: 1px solid var(--border-strong);
  counter-increment: process-step;
}

.process-step::before {
  content: counter(process-step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 4;
  color: rgba(37, 99, 235, 0.3);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.process-step h3,
.process-step .item-kicker,
.process-step > p,
.process-step .feature-points {
  grid-column: 2;
}

.process-step h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 5px;
}

.process-step > p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.process-step .feature-points {
  margin-top: 20px;
}

.delivery-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 38px;
}

.delivery-timeline::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-strong);
}

.timeline-phase {
  position: relative;
  min-width: 0;
}

.timeline-phase::before {
  content: '';
  position: absolute;
  top: -38px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.timeline-label {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-time {
  margin-bottom: 4px;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.timeline-phase h3 {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-size: var(--fs-md);
  font-weight: 800;
}

.timeline-phase > p:not(.timeline-time) {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

.timeline-phase .feature-points {
  margin-top: 20px;
}

/* ============================================
   15b. HERO SLIDESHOW (Sub-Pages)
   ============================================ */
.hero-slideshow {
  position: relative;
  min-height: 600px;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-slideshow .slides {
  position: absolute;
  inset: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slideshow .slide.active { opacity: 1; }

.hero-slideshow .slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 59, 0.25) 0%,
    rgba(15, 23, 42, 0.45) 50%,
    rgba(5, 7, 59, 0.65) 100%
  );
}

.hero-slideshow .hero-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 780px;
  padding: 80px 24px;
}

.hero-slideshow .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 24px;
  background: rgba(37, 99, 235, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(37, 99, 235, 0.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--gold);
}

.hero-slideshow .hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-slideshow .hero-body h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-slideshow .hero-body p {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

.hero-slideshow .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.slide-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slide-dots .dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  border: 0;
}

.slide-dots .dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition: all var(--ease-slow);
}

.slide-dots .dot.active::before {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.3);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

.slide-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  pointer-events: none;
}

.slide-arrows button {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: all var(--ease);
}

.slide-arrows button:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* ============================================
   15c. CTA SECTION (Sub-Pages)
   ============================================ */
.cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--slate-800) 60%, #172554 100%);
  color: white;
  text-align: center;
  padding: 88px 24px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.06);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  pointer-events: none;
}

.cta h2 {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.55);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.cta .btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   15d. btn-accent (alias for btn-primary, used by sub-pages)
   ============================================ */
.btn-accent {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-accent:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

/* ============================================
   16. ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   17. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --fs-3xl: 42px;
    --fs-2xl: 32px;
    --banner-height: 600px;
    --space-section: 72px;
  }

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

  .advantage-layout {
    grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
    gap: 48px;
  }

  .solution-card {
    grid-template-columns: 64px minmax(190px, 0.8fr) minmax(0, 1fr) 28px;
  }

  .about-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image::before { display: none; }

  .cases-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .faq-layout { gap: 44px; }
  .case-library-grid { gap: 18px; }

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

  .insight-item {
    grid-template-columns: 58px minmax(190px, 0.72fr) minmax(0, 1.28fr);
    column-gap: 22px;
  }

  .process-grid {
    gap: 0 36px;
  }

}

@media (max-width: 768px) {
  :root {
    --fs-3xl: 32px;
    --fs-2xl: 26px;
    --fs-xl: 24px;
    --banner-height: 480px;
    --space-section: 56px;
  }

  .nav-container {
    position: relative;
    padding: 8px var(--container-pad);
  }

  .navbar {
    height: auto;
    min-height: 56px;
    padding: 4px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: var(--container-pad);
    right: var(--container-pad);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card-hover);
  }

  .nav-links.open { display: flex; }

  .nav-links li,
  .nav-links a { width: 100%; }

  .nav-links li + li::before { display: none; }

  .nav-links a {
    display: block;
    font-size: var(--fs-sm);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover,
  .nav-links a.active { background: var(--orange-light); }

  .banner h1 {
    font-size: var(--fs-3xl);
  }

  .banner .banner-copy {
    font-size: var(--fs-sm);
  }

  .banner .banner-lead {
    font-size: var(--fs-md);
  }

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

  .advantage-layout,
  .solution-heading {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .solution-card {
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    gap: 16px;
    min-height: 104px;
  }

  .solution-card p {
    grid-column: 2 / 4;
    margin-top: -10px;
  }

  .solution-card::after {
    grid-column: 3;
    grid-row: 1;
  }

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

  .cases-grid {
    grid-template-rows: auto;
  }

  .case-card-featured {
    grid-row: auto;
    min-height: 430px;
  }

  .case-card {
    min-height: 300px;
  }

  .case-heading {
    display: block;
  }

  .case-heading .section-sub {
    margin-top: 12px;
  }

  .case-heading .text-link { display: inline-block; margin-top: 16px; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-intro { position: static; }
  .faq-intro .section-sub { max-width: 560px; }
  .case-library-grid { grid-template-columns: 1fr; }
  .case-library-intro { display: block; }
  .case-library-intro .section-sub { margin-top: 18px; text-align: left; }
  .cases-page-hero { min-height: 360px; }
  .cases-page-hero .container { padding-top: 78px; padding-bottom: 58px; }
  .cases-page-hero h1 { font-size: 38px; }
  .cases-page-hero p { font-size: var(--fs-base); }

  .feature-columns,
  .process-grid,
  .delivery-timeline {
    grid-template-columns: 1fr;
  }

  .feature-columns {
    gap: 38px;
  }

  .feature-column::before {
    margin-bottom: 18px;
    font-size: 34px;
  }

  .insight-item {
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 14px;
    padding: 24px 0;
  }

  .insight-item::before {
    grid-row: 1 / span 3;
  }

  .insight-item h3,
  .insight-item .item-kicker,
  .insight-item > p {
    grid-column: 2;
  }

  .insight-item > p {
    grid-row: 3;
    margin-top: 14px;
  }

  .insight-item:hover {
    padding-left: 8px;
    padding-right: 8px;
  }

  .process-grid {
    gap: 0;
  }

  .process-step {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 28px 0 32px;
  }

  .process-step::before {
    font-size: 26px;
  }

  .delivery-timeline {
    display: block;
    padding: 0 0 0 30px;
  }

  .delivery-timeline::before {
    top: 7px;
    right: auto;
    bottom: 0;
    left: 4px;
    width: 1px;
    height: auto;
  }

  .timeline-phase {
    padding: 0 0 42px;
  }

  .timeline-phase:last-child {
    padding-bottom: 0;
  }

  .timeline-phase::before {
    top: 2px;
    left: -31px;
  }

  .footer-content {
    flex-direction: column;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  :root {
    --banner-height: 500px;
    --space-section: 44px;
  }

  .banner {
    background-position: 58% center;
  }

  .banner h1 { font-size: 34px; }
  .banner-kicker { font-size: 11px; }

  .banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .case-card-featured,
  .case-card {
    min-height: 340px;
  }

  .case-card-featured .case-overlay,
  .case-overlay {
    padding: 24px 20px;
  }

  .case-card-featured .case-overlay h3 {
    font-size: var(--fs-lg);
  }

  .faq-list summary { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 10px; padding: 18px 0; font-size: 16px; }
  .faq-answer { padding: 0 28px 18px 40px; font-size: var(--fs-sm); }
  .case-library-section { padding-top: 56px; }
}
