/* =========================================================
   Yunwang Digital - Global Stylesheet
   Layout inspired by izhixiu.cn, brand for Foshan Yunwang IT
   ========================================================= */

:root {
  --primary: #1e50ae;
  --primary-dark: #163f8e;
  --primary-light: #4086e0;
  --accent: #4ab344;
  --accent-dark: #3a9136;
  --highlight: #00af50;
  --dark: #0d1b3d;
  --text: #2a3142;
  --text-muted: #6b7280;
  --text-light: #9aa3b2;
  --border: #e5e9f0;
  --border-light: #eef1f6;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-soft: #f1f4fa;
  --bg-dark: #0d1b3d;
  --shadow-sm: 0 2px 8px rgba(20, 40, 80, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 40, 80, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 40, 80, 0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1240px;
  --section: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* =========================================================
   Container & Section
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section) 0;
}

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

.section--dark {
  background: var(--bg-dark);
  color: #dbe1ef;
}

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

.section-head .eyebrow {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-head h2 em {
  font-style: normal;
  color: var(--primary);
}

.section--dark .section-head h2 {
  color: #fff;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 720px;
  margin: 0 auto;
}

.section--dark .section-head p {
  color: #a8b3c9;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

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

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

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn .arrow {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* =========================================================
   Top Header
   ========================================================= */
.topbar {
  background: var(--dark);
  color: #a8b3c9;
  font-size: 13px;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.topbar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-right {
  display: flex;
  gap: 18px;
  align-items: center;
}

.topbar-right a {
  color: #a8b3c9;
  transition: color 0.2s ease;
}

.topbar-right a:hover {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -1px;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 19px;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.brand-text small {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 2px;
  font-weight: 500;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 28px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--primary);
}

.nav-caret {
  font-size: 10px;
  opacity: 0.5;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  min-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: all 0.2s ease;
}

.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.dropdown a:hover {
  background: var(--bg-alt);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.dropdown a:hover .dropdown-icon {
  background: var(--primary);
  color: #fff;
}

.dropdown-text strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.dropdown-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.nav-cta {
  margin-left: 16px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--primary);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0d1b3d 0%, #1e50ae 60%, #2a6ad6 100%);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 130px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 20%, rgba(74, 179, 68, 0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(64, 134, 224, 0.4), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  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: 60px 60px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

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

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(74, 179, 68, 0.15);
  border: 1px solid rgba(74, 179, 68, 0.35);
  border-radius: 100px;
  font-size: 13px;
  color: #aef2a0;
  margin-bottom: 24px;
}

.hero-text .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-text h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-text h1 .accent {
  color: #6ed85f;
}

.hero-text p.lead {
  font-size: 18px;
  line-height: 1.7;
  color: #c9d4ec;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
}

.hero-meta strong {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}

.hero-meta span {
  font-size: 13px;
  color: #94a4c5;
  margin-top: 4px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 460px;
}

.hero-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-card--main {
  inset: 30px 30px 90px 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  display: flex;
  flex-direction: column;
}

.hero-card--main .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 18px;
}

.hero-card--main .card-head strong {
  font-size: 14px;
  color: #fff;
}

.hero-card--main .card-head .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6ed85f;
}

.hero-card--main .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ed85f;
}

.hero-metric {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.hero-metric-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.hero-metric-item strong {
  display: block;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
}

.hero-metric-item span {
  font-size: 11px;
  color: #94a4c5;
}

.hero-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.hero-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #c9d4ec;
}

.hero-bar-row .label {
  width: 60px;
}

.hero-bar-row .bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.hero-bar-row .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #6ed85f);
  border-radius: 4px;
}

.hero-bar-row .num {
  width: 30px;
  text-align: right;
  color: #fff;
  font-weight: 600;
}

/* floating cards */
.hero-card--float1 {
  top: -10px;
  right: -10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-card--float1 .icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-card--float1 .txt strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.hero-card--float1 .txt span {
  font-size: 11px;
  color: #94a4c5;
}

.hero-card--float2 {
  bottom: 0;
  left: -20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-card--float2 .avatars {
  display: flex;
}

.hero-card--float2 .avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  margin-left: -8px;
  background-size: cover;
}

.hero-card--float2 .avatars span:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.hero-card--float2 .avatars span:nth-child(2) {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.hero-card--float2 .avatars span:nth-child(3) {
  background: linear-gradient(135deg, #10b981, #06b6d4);
}

.hero-card--float2 .avatars span:nth-child(4) {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.hero-card--float2 .txt strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.hero-card--float2 .txt span {
  font-size: 11px;
  color: #94a4c5;
}

/* =========================================================
   Partners strip
   ========================================================= */
.partners {
  background: var(--bg-soft);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.partners-label {
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.partners-list {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}

.partners-list span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.partners-list span:hover {
  opacity: 1;
  color: var(--primary);
}

/* =========================================================
   Solutions grid
   ========================================================= */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.solution-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

.solution-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(30, 80, 174, 0.1), rgba(74, 179, 68, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.solution-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.solution-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.solution-card .tags span {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: 100px;
}

.solution-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.solution-card:hover .more {
  gap: 10px;
}

/* =========================================================
   Services (digital capabilities)
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.25s ease;
}

.service-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 16px;
  transition: all 0.25s ease;
}

.service-item:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.service-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   Industry sectors
   ========================================================= */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.industry-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.industry-illu {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.25s ease;
}

.industry-card:hover .industry-illu {
  background: var(--accent);
  color: #fff;
}

.industry-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.industry-card span {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 2px;
  font-weight: 500;
}

/* =========================================================
   Stats / Numbers band
   ========================================================= */
.stats {
  background: linear-gradient(135deg, var(--dark), #1e3a8a);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(74, 179, 68, 0.18), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(64, 134, 224, 0.25), transparent 50%);
  pointer-events: none;
}

.stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 0 12px;
}

.stat-item strong {
  display: block;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  background: linear-gradient(135deg, #fff, #6ed85f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 14px;
  color: #a8b3c9;
  letter-spacing: 0.5px;
}

/* =========================================================
   Cases
   ========================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-cover {
  height: 200px;
  position: relative;
  overflow: hidden;
}

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

.case-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.case-body {
  padding: 24px;
}

.case-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.case-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

.case-meta strong {
  color: var(--primary);
  font-weight: 600;
}

/* =========================================================
   Process
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.2;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 72px;
  height: 72px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  position: relative;
}

.process-num::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-soft));
  z-index: -1;
}

.process-step h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 80px;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
}

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

.testimonial .stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

/* =========================================================
   News
   ========================================================= */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

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

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-cover {
  height: 180px;
  position: relative;
  overflow: hidden;
}

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

.news-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(13, 27, 61, 0.85);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

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

.news-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.news-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.news-card .read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.news-card.featured {
  grid-row: span 2;
}

.news-card.featured .news-cover {
  height: 280px;
}

.news-card.featured h4 {
  font-size: 22px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  transition: padding 0.2s ease;
}

.news-list-item:last-child {
  border-bottom: none;
}

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

.news-list-item time {
  display: block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.news-list-item h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(74, 179, 68, 0.2), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.1), transparent 50%);
}

.cta-inner {
  position: relative;
}

.cta h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.25;
}

.cta h2 em {
  font-style: normal;
  color: #6ed85f;
}

.cta p {
  font-size: 17px;
  color: #c9d4ec;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-contact {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-contact-item .icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6ed85f;
}

.cta-contact-item .txt strong {
  display: block;
  font-size: 14px;
  color: #c9d4ec;
  font-weight: 500;
  margin-bottom: 2px;
}

.cta-contact-item .txt span {
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--dark);
  color: #a8b3c9;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .brand-text strong {
  color: #fff;
}

.footer-brand .brand-text small {
  color: #94a4c5;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: #94a4c5;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a4c5;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
}

.footer-col h5 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-col a {
  color: #94a4c5;
  transition: color 0.2s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.footer-contact-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #94a4c5;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #6b7588;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

/* =========================================================
   Inner page header (subpages)
   ========================================================= */
.page-hero {
  background: linear-gradient(120deg, var(--dark), var(--primary));
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 20%, rgba(74, 179, 68, 0.15), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(64, 134, 224, 0.3), transparent 50%);
}

.page-hero-inner {
  position: relative;
  text-align: center;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 16px;
  color: #c9d4ec;
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #94a4c5;
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  opacity: 0.5;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --section: 72px;
  }
  .hero-text h1 {
    font-size: 44px;
  }
  .section-head h2 {
    font-size: 32px;
  }
  .solutions-grid,
  .cases-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats-inner {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-card.featured {
    grid-row: span 1;
    grid-column: span 2;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    height: 360px;
  }
}

@media (max-width: 720px) {
  :root {
    --section: 56px;
  }
  .topbar {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
  }
  .header-inner {
    height: 64px;
  }
  .hero {
    padding: 72px 0 80px;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-text p.lead {
    font-size: 16px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .hero-meta {
    flex-wrap: wrap;
    gap: 24px;
  }
  .hero-meta strong {
    font-size: 22px;
  }
  .solutions-grid,
  .services-grid,
  .cases-grid,
  .testimonials-grid,
  .industries-grid,
  .process-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item strong {
    font-size: 36px;
  }
  .cta h2 {
    font-size: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-hero h1 {
    font-size: 32px;
  }
}
