/* ==========================================================================
   Huabangxing — main site stylesheet
   Light theme · blue-indigo accent #2563EB on cream #F7F5F0
   ========================================================================== */

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #F1EEE7;
  --ink: #1A1A1A;
  --ink-soft: #4B5563;
  --accent: #2563EB;
  --accent-dark: #1E40AF;
  --accent-deep: #0F172A;
  --accent-light: #93C5FD;
  --line: #E3DFD5;
  --green: #16A34A;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Shield navigation
   ========================================================================== */

.shield-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-badge {
  position: relative;
  width: 40px;
  height: 46px;
  background-color: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
  flex: none;
}

.brand-badge::before {
  content: "";
  position: absolute;
  inset: 4px;
  background-color: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%);
}

.brand-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--surface);
}

.brand-word {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  transition: background-color 0.18s ease;
}

.nav-cta:hover {
  background-color: var(--accent-dark);
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
  border-radius: 2px;
}

/* ==========================================================================
   Server rack hero
   ========================================================================== */

.rack-hero {
  position: relative;
  background-color: var(--bg);
  padding: 96px 0 88px;
  overflow-x: hidden;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary:hover {
  background-color: var(--accent-dark);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost:hover {
  background-color: var(--accent-dark);
  color: #FFFFFF;
}

/* Server rack visual */
.rack {
  position: relative;
  width: 280px;
  margin: 0 auto;
}

.rack-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.rack-cap {
  position: relative;
  z-index: 1;
  height: 26px;
  background-color: var(--accent-deep);
  border-radius: 10px 10px 0 0;
  border: 2px solid #25335A;
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

.cap-slot {
  width: 60px;
  height: 6px;
  background-color: #334155;
  border-radius: 3px;
}

.rack-body {
  position: relative;
  z-index: 1;
  background-color: var(--accent-deep);
  border: 2px solid #25335A;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 16px 14px 18px;
  box-shadow: var(--shadow-md);
}

.rack-face {
  display: flex;
  gap: 14px;
}

.rack-slats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rack-slats span {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2A3A5C 0%, #1E2A47 100%);
  border: 1px solid #33415F;
}

.rack-leds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-around;
  width: 10px;
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.led-green {
  background-color: var(--green);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.9);
}

.led-blue {
  background-color: var(--accent);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.9);
}

.rack-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #25335A;
}

.rack-power {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #0B1120;
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.8);
}

.rack-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-light);
}

/* ==========================================================================
   Shared section bits
   ========================================================================== */

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: -0.4px;
  margin-bottom: 16px;
}

.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
}

/* Statement row */
.statement-section {
  background-color: var(--accent-deep);
  padding: 88px 0;
}

.statement-section .section-eyebrow {
  color: var(--accent-light);
}

.statement {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
  color: #FFFFFF;
  max-width: 900px;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.statement-copy {
  font-size: 18px;
  line-height: 1.7;
  color: #CBD5E1;
  max-width: 820px;
}

/* Stats */
.stats-section {
  background-color: var(--bg);
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: 46px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.stat-plus,
.stat-decimal {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-dark);
}

.stat-label {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* Services horizontal scroll */
.services-section {
  background-color: var(--surface-2);
  padding: 88px 0;
}

.services-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 24px 24px;
  scroll-snap-type: x mandatory;
  max-width: 1224px;
  margin: 0 auto;
}

.service-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.service-num {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

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

.service-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* Process */
.process-section {
  background-color: var(--bg);
  padding: 88px 0;
}

.process-list {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-light);
  z-index: 0;
}

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

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

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

.process-step p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* Comparison table */
.compare-section {
  background-color: var(--surface-2);
  padding: 88px 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--surface);
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.compare-table thead th {
  background-color: var(--accent-deep);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
}

.compare-table thead th:first-child {
  text-align: left;
}

.compare-table tbody th {
  font-weight: 700;
  color: var(--ink);
  background-color: var(--surface-2);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: var(--ink-soft);
}

.compare-table tr:hover td {
  background-color: #F5F2EB;
}

/* Capabilities tabs */
.capabilities-section {
  background-color: var(--bg);
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.tab {
  border: 2px solid var(--line);
  background-color: var(--surface);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab:hover {
  border-color: var(--accent-light);
  color: var(--accent-dark);
}

.tab.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.tab-panels {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.tab-panel p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 720px;
}

/* Split CTA */
.cta-section {
  background-color: var(--bg);
  padding: 88px 0;
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.cta-copy h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--accent-deep);
  margin-bottom: 18px;
  letter-spacing: -0.4px;
}

.cta-copy p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.cta-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-contacts li {
  font-size: 16px;
}

.contact-label {
  display: inline-block;
  width: 60px;
  font-weight: 700;
  color: var(--accent-dark);
}

.cta-contacts a {
  color: var(--ink);
  font-weight: 600;
}

.cta-contacts a:hover {
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background-color: var(--surface);
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  min-height: 20px;
}

/* ==========================================================================
   Split footer
   ========================================================================== */

.split-footer {
  border-top: 1px solid var(--line);
}

.footer-upper {
  background-color: var(--surface-2);
  padding: 48px 0;
}

.footer-upper-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-news h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.footer-news p {
  font-size: 15px;
  color: var(--ink-soft);
}

.footer-quick {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-quick a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.footer-quick a:hover {
  color: var(--accent);
}

.footer-lower {
  background-color: var(--accent-deep);
  padding: 56px 0 28px;
}

.footer-lower-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1E293B;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 15px;
  color: #94A3B8;
  max-width: 300px;
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: #CBD5E1;
  margin-bottom: 10px;
}

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

.footer-copy {
  padding-top: 24px;
}

.footer-copy p {
  font-size: 14px;
  color: #64748B;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .rack {
    width: 240px;
  }

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

  .process-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-list::before {
    display: none;
  }

  .process-step {
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }

  .step-num {
    margin: 0;
    flex: none;
  }

  .cta-split {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer-lower-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    display: none;
  }

  .shield-nav.open .nav-links {
    max-height: 420px;
  }

  .statement {
    font-size: 30px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .footer-lower-inner {
    grid-template-columns: 1fr;
  }
}
