/* ========================================
   Qiang Mei Network Tech — Swiss Grid
   Typography, color, layout
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial", "Hiragino Sans", "Noto Sans SC", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #111111;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: #111111;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #CC0000;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__cta {
  color: #CC0000 !important;
}

/* --- HERO --- */
.hero {
  padding: 160px 40px 120px;
  text-align: center;
  background: #FFFFFF;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero__overline {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 32px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

.hero__wordmark {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #111111;
}

.hero__accent {
  width: 48px;
  height: 3px;
  background: #CC0000;
  margin: 0 auto 32px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #555555;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: #CC0000;
  color: #FFFFFF;
  border-color: #CC0000;
}

.btn--primary:hover {
  background: #AA0000;
  border-color: #AA0000;
  color: #FFFFFF;
}

.btn--outline {
  background: transparent;
  color: #111111;
  border-color: #111111;
}

.btn--outline:hover {
  background: #111111;
  color: #FFFFFF;
}

.btn--inverse {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
  font-size: 1rem;
}

.btn--inverse:hover {
  background: #FFFFFF;
  color: #CC0000;
}

/* --- Sections --- */
.section {
  padding: 100px 40px;
}

.section--alt {
  background: #F8F8F8;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: #111111;
}

/* --- Services --- */
.services {
  background: #F8F8F8;
}

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

.service-card {
  background: #FFFFFF;
  padding: 40px 32px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card__dot {
  width: 8px;
  height: 8px;
  background: #CC0000;
  margin-bottom: 24px;
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #111111;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.7;
}

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  gap: 60px;
  align-items: start;
}

.about__bar {
  background: #CC0000;
  height: 100%;
  min-height: 120px;
}

.about__col p {
  font-size: 0.9375rem;
  color: #555555;
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__details {
  margin-top: 8px;
}

.about__details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 2px;
  margin-top: 20px;
}

.about__details dd {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.6;
}

.about__details a {
  color: #555555;
}

.about__details a:hover {
  color: #CC0000;
}

/* --- Metrics --- */
.metrics {
  background: #111111;
  padding: 80px 40px;
}

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

.metric {
  color: #FFFFFF;
}

.metric__value {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.metric__underline {
  width: 24px;
  height: 2px;
  background: #CC0000;
  margin: 0 auto 12px;
}

.metric__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999999;
}

/* --- Process --- */
.process {
  background: #FFFFFF;
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}

.process-step__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #CC0000;
  margin-bottom: 8px;
}

.process-step__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.process-step__desc {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.6;
}

.process-step__arrow {
  font-size: 1.5rem;
  color: #CC0000;
  font-weight: 700;
  align-self: start;
  margin-top: 24px;
}

/* --- Expertise --- */
.expertise {
  background: #F8F8F8;
}

.expertise__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expertise__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555555;
  padding: 10px 20px;
  background: #FFFFFF;
}

.expertise__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #CC0000;
  flex-shrink: 0;
}

/* --- CTA --- */
.cta {
  background: #CC0000;
  text-align: center;
  padding: 80px 40px;
}

.cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.cta__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
  background: #111111;
  color: #FFFFFF;
  padding: 64px 40px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer__text {
  font-size: 0.875rem;
  color: #999999;
  line-height: 1.8;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  font-size: 0.875rem;
  color: #999999;
}

.footer__links a:hover {
  color: #CC0000;
}

.footer__bottom {
  border-top: 1px solid #333333;
  padding-top: 24px;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: #777777;
}

/* --- Legal Pages --- */
.legal {
  padding: 120px 40px 80px;
  background: #FFFFFF;
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal__inner h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal__date {
  font-size: 0.875rem;
  color: #999999;
  margin-bottom: 48px;
}

.legal__inner h2 {
  font-size: 1.25rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: #111111;
}

.legal__inner p {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal__inner a {
  color: #CC0000;
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    aspect-ratio: auto;
    min-height: 200px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__bar {
    display: none;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-step__arrow {
    transform: rotate(90deg);
    text-align: center;
    margin-top: 0;
  }

  .metrics__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav__inner {
    padding: 0 20px;
  }

  .nav__links {
    gap: 16px;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .section {
    padding: 60px 20px;
  }

  .legal {
    padding: 100px 20px 60px;
  }
}

@media (max-width: 600px) {
  .nav__links a {
    font-size: 0.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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