*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-soft: #020617;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.15);
  --accent: #22c55e;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.22);
  --radius-lg: 1.25rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.85);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei",
    system-ui, -system-ui, sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(34, 197, 94, 0.16), transparent 55%),
    linear-gradient(160deg, #020617 0%, #020617 55%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a:hover {
  color: var(--primary);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.86), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo img {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
}

.main-nav a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #6366f1, #22c55e);
  transition: width 0.18s ease;
}

.main-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px 0;
}

.nav-toggle-label span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-input:checked + .nav-toggle-label span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle-input:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-input:checked + .nav-toggle-label span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */

.hero-section {
  padding: 4.2rem 0 3.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.8rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
  color: #f9fafb;
}

.hero-gradient-text {
  background-image: linear-gradient(120deg, #38bdf8, #6366f1, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 32rem;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
  text-align: center;
}

.btn-primary {
  background-image: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(37, 99, 235, 0.75);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
}

.btn.full-width {
  width: 100%;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
}

.hero-metrics dt {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e5e7eb;
}

.hero-metrics dd {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(96, 165, 250, 0.06), transparent 60%), #020617;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
}

.hero-card-main {
  width: 100%;
  max-width: 460px;
  padding: 0.9rem;
}

.hero-card-main img {
  border-radius: calc(var(--radius-lg) - 0.5rem);
}

.hero-card-floating {
  position: absolute;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.8);
}

.stats-card {
  top: 6%;
  right: 2%;
  max-width: 180px;
}

.stats-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.stats-number {
  margin: 0.25rem 0 0.1rem;
  font-weight: 600;
  font-size: 1.15rem;
  color: #f9fafb;
}

.stats-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.quality-card {
  bottom: 7%;
  left: 4%;
  max-width: 210px;
}

.quality-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: #a5b4fc;
}

.quality-value {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.quality-desc {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 3.5rem 0 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  color: #f9fafb;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Services */

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

.service-card {
  padding: 1.5rem 1.4rem 1.4rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.15), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
  border-color: rgba(129, 140, 248, 0.7);
}

.service-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.service-card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.service-card ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: #cbd5f5;
}

.service-card li + li {
  margin-top: 0.2rem;
}

/* Process */

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.process-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.15), transparent 65%), rgba(15, 23, 42, 0.96);
}

.step-index {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #c4b5fd;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 60%), #020617;
}

.step-content h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-extra {
  margin-top: 0.3rem;
  color: #a5b4fc;
  font-size: 0.82rem;
}

/* Cases */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.case-card {
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.18), transparent 60%), rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-tag {
  align-self: flex-start;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.78rem;
  color: #a5b4fc;
  background: rgba(15, 23, 42, 0.96);
}

.case-card h3 {
  margin: 0.2rem 0 0.2rem;
  font-size: 1rem;
  color: #f9fafb;
}

.case-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  font-size: 0.86rem;
  color: #cbd5f5;
}

.case-card li + li {
  margin-top: 0.1rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.2fr);
  gap: 2.2rem;
  align-items: stretch;
}

.about-text p {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.about-list {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.about-list li + li {
  margin-top: 0.2rem;
}

.about-highlight-card {
  padding: 1.4rem 1.3rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.15), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.18), transparent 60%), rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.9);
}

.about-highlight-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.about-highlight-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.about-highlight-card li + li {
  margin-top: 0.45rem;
}

.about-highlight-card span {
  color: #a5b4fc;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-list li + li {
  margin-top: 0.35rem;
}

.contact-label {
  display: inline-block;
  width: 5.4em;
  color: #cbd5f5;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.6rem 0 1.8rem;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(129, 140, 248, 0.18), transparent 55%), #020617;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-inner p {
  margin: 0.1rem 0;
}

/* Responsive */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 2fr);
    gap: 2.3rem;
  }

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

  .about-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 880px) {
  .header-inner {
    padding: 0.6rem 0;
  }

  .main-nav {
    position: absolute;
    top: 56px;
    right: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.9rem;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    min-width: 180px;
    display: none;
  }

  .main-nav a {
    width: 100%;
  }

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

  .nav-toggle-input:checked ~ .main-nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero-section {
    padding-top: 3.2rem;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

@media (max-width: 640px) {
  .container {
    padding: 0 1.1rem;
  }

  .logo-text {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .hero-metrics {
    gap: 1.1rem;
  }

  .section {
    padding: 2.8rem 0 2rem;
  }
}
