/* ============================================================
   QianEr — Computer Systems Design & Integrated Systems
   Theme: LIGHT warm ivory + PLUM accent (#A21CAF)
   ============================================================ */

:root {
  --plum: #A21CAF;
  --plum-bright: #C026D3;
  --plum-deep: #86198F;
  --plum-tint: #FAE8FF;
  --ivory: #FAF6F2;
  --ivory-2: #F3EAE2;
  --espresso: #231A24;
  --espresso-2: #3A2A3D;
  --muted: #6B556E;
  --line: #E6D6DC;
  --white: #FFFFFF;
  --soft: #FBF4FA;
}

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

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

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--ivory);
  color: var(--espresso);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--espresso);
}

/* ============================================================
   KEYCAP NAVIGATION
   ============================================================ */

.keycap-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--ivory);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(35, 26, 36, 0.05);
}

.keycap-nav .container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.keycap-nav .brand-keycap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
  padding: 8px 16px;
  background-color: var(--espresso);
  color: var(--ivory);
  border-radius: 10px;
  border-bottom: 4px solid var(--plum);
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.keycap-nav .brand-keycap:hover {
  border-color: var(--plum-bright);
  transform: translateY(-1px);
}

.keycap-nav .brand-keycap .monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background-color: var(--plum);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.keycap-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}

.keycap-nav .nav-links a {
  padding: 7px 13px;
  border-radius: 8px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-bottom: 3px solid #D9C4CF;
  color: var(--espresso-2);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.keycap-nav .nav-links a:hover,
.keycap-nav .nav-links a.active {
  background-color: var(--plum-tint);
  border-color: var(--plum);
  border-bottom-color: var(--plum-deep);
  color: var(--plum-deep);
  transform: translateY(-1px);
}

.keycap-nav .cta-keycap {
  padding: 9px 18px;
  border-radius: 8px;
  background-color: var(--plum);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 4px solid var(--plum-deep);
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.keycap-nav .cta-keycap:hover {
  background-color: var(--plum-bright);
  transform: translateY(-1px);
}

.keycap-nav .nav-toggle {
  display: none;
  margin-left: auto;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-bottom: 3px solid #D9C4CF;
  background-color: var(--white);
  color: var(--espresso-2);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* ============================================================
   HONEYCOMB HERO
   ============================================================ */

.honeycomb-hero {
  padding: 72px 0 64px;
  background-color: var(--ivory);
  position: relative;
}

.honeycomb-hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.honeycomb-hero .hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--plum-tint);
  color: var(--plum-deep);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.honeycomb-hero h1 {
  font-size: 3rem;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.honeycomb-hero h1 .accent {
  color: var(--plum);
}

.honeycomb-hero .hero-copy {
  font-size: 1.1rem;
  color: var(--espresso-2);
  max-width: 520px;
  margin-bottom: 28px;
}

.honeycomb-hero .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-plum {
  background-color: var(--plum);
  color: #fff;
  border: 2px solid var(--plum);
}

.btn-plum:hover {
  background-color: var(--plum-bright);
  border-color: var(--plum-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--espresso);
  border: 2px solid var(--espresso);
}

.btn-ghost:hover {
  background-color: var(--espresso);
  color: var(--ivory);
  transform: translateY(-2px);
}

/* Honeycomb cluster */

.honeycomb-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.honeycomb-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.honeycomb-col.offset {
  transform: translateY(32px);
}

.hex {
  width: 92px;
  height: 106px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.hex:hover {
  transform: scale(1.05);
}

.hex.h-plum { background-color: var(--plum); }
.hex.h-deep { background-color: var(--plum-deep); }
.hex.h-bright { background-color: var(--plum-bright); }
.hex.h-tint { background-color: var(--plum-tint); color: var(--plum-deep); }
.hex.h-dark { background-color: var(--espresso); }

.hex .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #fff;
}

.hex.h-tint .dot { background-color: var(--plum); }

/* ============================================================
   STATEMENT ROW (full-width)
   ============================================================ */

.statement-row {
  background-color: var(--espresso);
  color: var(--ivory);
  padding: 80px 0;
  text-align: center;
}

.statement-row .statement-text {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 940px;
  margin: 0 auto 16px;
}

.statement-row .statement-text .accent {
  color: var(--plum-bright);
}

.statement-row .statement-sub {
  font-size: 1.05rem;
  color: #E8DCE6;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   BIG-NUMERAL STAT COLUMNS
   ============================================================ */

.stats-section {
  padding: 84px 0;
  background-color: var(--ivory);
}

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

.section-head .kicker {
  color: var(--plum);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 2.1rem;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

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

.stat-column {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--plum);
  border-radius: 14px;
  padding: 34px 24px;
  text-align: center;
}

.stat-column .stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--plum-deep);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-column .stat-label {
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 6px;
}

.stat-column .stat-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   SERVICES
   ============================================================ */

.services-section {
  padding: 84px 0;
  background-color: var(--soft);
}

.services-section .section-head {
  margin-bottom: 48px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  background-color: var(--white);
  border-radius: 14px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--plum);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(35, 26, 36, 0.08);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--espresso);
}

.service-card h3 .num {
  color: var(--plum);
  margin-right: 6px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ============================================================
   NUMBERED DELIVERY PROCESS (01/02/03/04 with connecting lines)
   ============================================================ */

.process-section {
  padding: 84px 0;
  background-color: var(--ivory);
}

.process-section .section-head {
  margin-bottom: 54px;
}

.process-list {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 8px;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}

.process-step {
  position: relative;
  padding: 0 0 42px 92px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step .step-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background-color: var(--plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  border: 6px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--plum);
}

.process-step .step-body {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
}

.process-step .step-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.process-step .step-body p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ============================================================
   TWO-COLUMN COMPARISON TABLE
   ============================================================ */

.compare-section {
  padding: 84px 0;
  background-color: var(--soft);
}

.compare-section .section-head {
  margin-bottom: 48px;
}

.compare-table {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}

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

.compare-table thead th {
  background-color: var(--espresso);
  color: var(--ivory);
  font-weight: 700;
}

.compare-table thead th:nth-child(2) {
  background-color: var(--plum);
  color: #fff;
}

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

.compare-table td:first-child {
  font-weight: 700;
  color: var(--espresso-2);
}

.compare-table .check {
  color: var(--plum-deep);
  font-weight: 800;
}

.compare-table .cross {
  color: var(--muted);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-section {
  padding: 84px 0;
  background-color: var(--ivory);
}

.faq-section .section-head {
  margin-bottom: 46px;
}

.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item .faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--espresso);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item .faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--plum-tint);
  color: var(--plum-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background-color: var(--plum);
  color: #fff;
}

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item .faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ============================================================
   SPLIT CTA BAND
   ============================================================ */

.cta-band {
  padding: 80px 0;
  background-color: var(--ivory);
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.cta-band .cta-panel {
  padding: 56px 48px;
}

.cta-band .cta-panel.left {
  background-color: var(--plum);
  color: #fff;
}

.cta-band .cta-panel.left h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-band .cta-panel.left p {
  color: #F6E4F7;
  margin-bottom: 26px;
  font-size: 1.02rem;
}

.cta-band .cta-panel.left .btn-light {
  background-color: #fff;
  color: var(--plum-deep);
  border: 2px solid #fff;
}

.cta-band .cta-panel.left .btn-light:hover {
  background-color: var(--plum-tint);
  border-color: var(--plum-tint);
  transform: translateY(-2px);
}

.cta-band .cta-panel.right {
  background-color: var(--espresso);
  color: var(--ivory);
}

.cta-band .cta-panel.right h3 {
  color: var(--ivory);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.cta-band .contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #E8DCE6;
  font-size: 0.98rem;
}

.cta-band .contact-row strong {
  color: var(--plum-bright);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-section {
  padding: 84px 0;
  background-color: var(--soft);
}

.contact-section .section-head {
  margin-bottom: 44px;
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--espresso);
  background-color: var(--ivory);
  margin-bottom: 18px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--plum-tint);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form .form-status {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================
   FOOTER (compact multi-column, thin plum top rule)
   ============================================================ */

.site-footer {
  background-color: var(--espresso);
  color: #E8DCE6;
  border-top: 5px solid var(--plum);
  padding: 56px 0 32px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.site-footer .footer-brand {
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 0.92rem;
  color: #C9BCC7;
}

.site-footer .footer-col a {
  display: block;
  color: #C9BCC7;
  font-size: 0.93rem;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.site-footer .footer-col a:hover {
  color: var(--plum-bright);
}

.site-footer .footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #4A3A4D;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #B7A8B5;
}

.site-footer .footer-bottom a {
  color: var(--plum-bright);
}

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

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .honeycomb-hero .container {
    grid-template-columns: 1fr;
  }
  .honeycomb-hero h1 {
    font-size: 2.4rem;
  }
  .honeycomb-cluster {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-list {
    grid-template-columns: 1fr;
  }
  .cta-band .container {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .keycap-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--ivory);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(35, 26, 36, 0.1);
  }
  .keycap-nav .nav-links.open {
    display: flex;
  }
  .keycap-nav .nav-links a {
    border: none;
    border-left: 3px solid var(--plum);
    border-radius: 0;
    background: none;
    padding: 12px 10px;
  }
  .keycap-nav .nav-toggle {
    display: inline-block;
  }
  .keycap-nav .cta-keycap {
    margin-left: 6px;
  }
  .statement-row .statement-text {
    font-size: 1.6rem;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .compare-table th,
  .compare-table td {
    padding: 14px 14px;
    font-size: 0.88rem;
  }
  .process-step {
    padding-left: 74px;
  }
  .process-step .step-marker {
    width: 64px;
    height: 64px;
    font-size: 1.05rem;
  }
  .process-list::before {
    left: 32px;
  }
}
