:root {
  --bg: #f8fafd;
  --bg-soft: #f0f4fa;
  --bg-elevated: #ffffff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(15, 35, 70, 0.06);
  --line-strong: rgba(15, 35, 70, 0.1);
  --text: #1a2b4a;
  --heading: #0a1628;
  --muted: #5b6b86;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --success: #16a34a;
  --shadow: 0 1px 2px rgba(15, 30, 60, 0.04), 0 8px 32px rgba(15, 30, 60, 0.06);
  --shadow-soft: 0 1px 2px rgba(15, 30, 60, 0.03), 0 4px 16px rgba(15, 30, 60, 0.04);
  --shadow-hover: 0 1px 3px rgba(15, 30, 60, 0.06), 0 12px 40px rgba(15, 30, 60, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-zh .lang-en,
body.lang-en .lang-zh {
  display: none !important;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 35, 70, 0.06);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.brand-mark {
  display: none;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--heading);
  background: var(--bg-soft);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
  font-weight: 600;
}

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

.lang-toggle,
.ghost-btn,
.primary-btn,
.filter-btn,
.float-btn {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-toggle,
.ghost-btn,
.filter-btn,
.float-btn {
  color: var(--heading);
  background: #fff;
  border: 1px solid var(--line-strong);
}

.lang-toggle,
.ghost-btn,
.primary-btn,
.filter-btn {
  padding: 10px 20px;
}

.primary-btn {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.primary-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ghost-btn:hover,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}

.card:hover,
.service-card:hover,
.case-card:hover,
.about-card:hover,
.faq-card:hover,
.form-card:hover,
.metric-card:hover,
.stat-card:hover,
.testimonial-card:hover,
.mini-case:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.12);
}

.hero,
.sub-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-content,
.sub-hero-content {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  padding: 80px 0 64px;
  max-width: 720px;
}

.sub-hero-content {
  padding: 64px 0 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1,
.sub-hero h1,
.section-header h2 {
  margin: 0;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 20px;
  font-weight: 800;
}

.sub-hero h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin-bottom: 10px;
  font-weight: 700;
}

.hero p,
.sub-hero p,
.section-lead,
.muted,
.faq-card p {
  color: var(--muted);
}

.hero p,
.sub-hero p,
.section-lead {
  font-size: 16px;
  max-width: 60ch;
  margin: 0 0 28px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.hero-ws {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.hero-ws:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.hero-tg {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4);
}

.hero-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(34, 158, 217, 0.5);
}

.hero-metrics,
.mini-stats,
.stats-grid,
.grid-3,
.grid-4,
.services-grid,
.case-grid,
.faq-grid {
  display: grid;
  gap: 20px;
}

.hero-metrics,
.mini-stats,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

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

.metric-card,
.stat-card,
.card,
.service-card,
.case-card,
.faq-card,
.about-card,
.form-card,
.contact-card,
.timeline-step,
.testimonial-card,
.mini-case,
.logo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.metric-card,
.stat-card,
.card,
.service-card,
.case-card,
.faq-card,
.about-card,
.form-card,
.timeline-step {
  padding: 24px;
}

.contact-card {
  padding: 28px;
}

.metric-card strong,
.stat-card strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--accent);
}

/* Hidden elements */
.hero-visual,
.dashboard-mock,
.feature-art,
.preview-panel,
.case-cover {
  display: none !important;
}

/* Text-only case card header */
.case-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.case-header .case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
  flex: none;
}

.case-header .case-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Case card text-only optimizations */
.case-card {
  position: relative;
  padding: 24px;
  border-top: 2px solid var(--accent);
}

.case-card:nth-child(2) { border-top-color: #16a34a; }
.case-card:nth-child(3) { border-top-color: #7c3aed; }
.case-card:nth-child(4) { border-top-color: #0ea5e9; }
.case-card:nth-child(5) { border-top-color: #ea580c; }
.case-card:nth-child(6) { border-top-color: #ca8a04; }
.case-card:nth-child(7) { border-top-color: #2563eb; }
.case-card:nth-child(8) { border-top-color: #dc2626; }
.case-card:nth-child(9) { border-top-color: #059669; }
.case-card:nth-child(10) { border-top-color: #7c3aed; }

.case-card h3 {
  font-size: 17px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.case-card .info-row {
  margin-bottom: 8px;
}

.case-card .muted {
  font-size: 14px;
  line-height: 1.72;
  margin-top: 10px;
}

/* Mini-case text-only */
.mini-case {
  min-width: 280px;
  border-top: 2px solid var(--accent);
}

.mini-case:nth-child(2) { border-top-color: #0ea5e9; }
.mini-case:nth-child(3) { border-top-color: #ea580c; }
.mini-case:nth-child(4) { border-top-color: #7c3aed; }
.mini-case:nth-child(5) { border-top-color: #16a34a; }
.mini-case:nth-child(6) { border-top-color: #581c87; }
.mini-case:nth-child(7) { border-top-color: #dc2626; }
.mini-case:nth-child(8) { border-top-color: #ca8a04; }
.mini-case:nth-child(9) { border-top-color: #d97706; }

.mini-case .case-header {
  margin-bottom: 10px;
}

.mini-case h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.mini-case .muted {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* Case grid: 3 columns for text cards */
.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Mock/image elements removed */

/* case-cover hidden globally via display:none */

.case-tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.section {
  position: relative;
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-header {
  margin-bottom: 36px;
}

.icon-badge,
.step-index {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.06);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
}

.split-layout,
.feature-row,
.contact-layout,
.about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.scroll-row,
.testimonial-strip,
.logo-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
}

.mini-case,
.testimonial-card,
.logo-item {
  min-width: 320px;
  padding: 24px;
}

.case-card button,
.mini-case button {
  width: 100%;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.case-card.hidden {
  display: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-btn.active {
  color: #fff;
  border-color: transparent;
  background: var(--accent);
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}

.check-list,
.bullet-list,
.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.check-list li,
.bullet-list li,
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
}

.check-list li::before,
.bullet-list li::before,
.value-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}

.faq-card details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 42, 82, 0.08);
}

.faq-card details:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
}

.form-card form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.notice {
  padding: 14px 16px;
  border-radius: 10px;
  color: #0b6d36;
  background: rgba(22, 163, 74, 0.06);
  border: 1px solid rgba(22, 163, 74, 0.12);
  font-size: 14px;
}

.cta-box {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 34px 0 48px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(18, 42, 82, 0.08);
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 38;
  display: grid;
  gap: 14px;
}

.float-btn {
  min-width: 150px;
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.float-btn .float-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.float-btn.whatsapp {
  color: #fff;
  background: #25D366;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.float-btn.whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.float-btn.telegram-btn {
  color: #fff;
  background: #229ED9;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.25);
}

.float-btn.telegram-btn:hover {
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.35);
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10, 22, 40, 0.4);
  backdrop-filter: blur(12px);
}

.lightbox.open {
  display: grid;
}

.lightbox-dialog {
  width: min(640px, 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(10, 22, 40, 0.2);
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(18, 42, 82, 0.08);
}

.lightbox-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* lightbox-preview min-height removed */

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--muted);
  background: #fff;
  transition: background 0.15s, color 0.15s;
}

.lightbox-close:hover {
  background: var(--bg-soft);
  color: var(--heading);
}

.page-spacer {
  height: 20px;
}

@media (max-width: 1080px) {
  .split-layout,
  .feature-row,
  .contact-layout,
  .about-layout,
  .lightbox-body {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .mini-stats,
  .stats-grid,
  .grid-4,
  .case-grid,
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .nav-wrap {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 0;
    min-height: 56px;
    gap: 10px;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 22px;
  }

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

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .nav-actions .primary-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .mobile-menu {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero-content,
  .sub-hero-content {
    padding: 48px 0 36px;
  }

  .hero h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .sub-hero h1,
  .section-header h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .hero p,
  .sub-hero p,
  .section-lead {
    font-size: 14px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-btn {
    padding: 11px 22px;
    font-size: 14px;
    border-radius: 10px;
  }

  .hero-btn-icon {
    width: 18px;
    height: 18px;
  }

  .hero-metrics,
  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    padding: 14px 10px;
  }

  .metric-card strong {
    font-size: 22px;
  }

  .metric-card span {
    font-size: 12px;
    line-height: 1.4;
  }

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

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hero-metrics,
  .mini-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card {
    padding: 12px 8px;
  }

  .metric-card strong {
    font-size: 20px;
  }

  .stats-grid,
  .grid-4,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero-btn {
    padding: 10px 18px;
    font-size: 13px;
    gap: 6px;
  }

  .hero-btn-icon {
    width: 16px;
    height: 16px;
  }
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.lightbox-tags .tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
}

.filter-bar {
  flex-wrap: wrap;
}

/* ── Service card text-only design ── */
.service-card {
  position: relative;
}

/* Standalone category icon for service cards */
.service-card > .category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent);
}

/* Card h3 title */
.service-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

/* case-cover removed */

/* Case card title styling */
.case-card h3 {
  font-size: 16px;
  margin: 12px 0 0;
  line-height: 1.4;
}

.case-card .muted {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 8px;
}

/* Floating contact responsive - icon only on mobile */
@media (max-width: 820px) {
  .floating-contact {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .float-btn {
    min-width: 0;
    width: 48px;
    height: 48px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    line-height: 0;
  }

  .float-btn .float-icon {
    width: 24px;
    height: 24px;
  }
}
