/* ==========================================================================
   Weiyi Systems — Dark Wine Theme
   Accent: WINE #9F1239  |  Supporting: #BE123C / #FDA4AF / #2A0E16
   Background: warm near-black #120D0F  |  Text: warm light #F2E8E6
   ========================================================================== */

:root {
  --bg: #120D0F;
  --bg-2: #1A1115;
  --bg-3: #221418;
  --surface: #2A1A1F;
  --ink: #F2E8E6;
  --muted: #C6B1AC;
  --faint: #9C8681;
  --wine: #9F1239;
  --wine-2: #BE123C;
  --rose: #FDA4AF;
  --deep: #2A0E16;
  --line: #3A2029;
  --line-2: #2B181D;
}

* {
  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(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}

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

.section-head h2 {
  font-size: 2.2rem;
  letter-spacing: -0.01em;
}

.section-head p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-wine {
  background-color: var(--wine);
  color: var(--ink);
  border-color: var(--wine-2);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-2px);
}

/* ==========================================================================
   ABACUS NAVIGATION
   ========================================================================== */
.abacus-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg);
}

.abacus-nav.scrolled {
  box-shadow: 0 12px 32px -18px #000000;
}

.abacus-frame {
  max-width: 1240px;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: relative;
  background-color: var(--bg-2);
  border-bottom: 2px solid var(--wine);
}

/* horizontal abacus beam running across the middle, behind the content */
.abacus-frame::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  height: 2px;
  background-color: var(--line-2);
  transform: translateY(-50%);
  z-index: 0;
}

.abacus-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.abacus-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--wine);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1px solid var(--wine-2);
}

.abacus-wordmark {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.abacus-wordmark em {
  font-style: normal;
  color: var(--rose);
}

.abacus-track {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.abacus-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.abacus-link .bead {
  display: inline-block;
  width: 11px;
  height: 20px;
  border-radius: 6px;
  background-color: var(--deep);
  border: 1px solid var(--wine-2);
  transition: background-color 0.18s ease;
}

.abacus-link:hover {
  color: var(--rose);
}

.abacus-link:hover .bead {
  background-color: var(--wine);
}

.abacus-cta {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border-radius: 999px;
  background-color: var(--wine);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid var(--wine-2);
  box-shadow: 0 8px 18px -8px var(--wine-2);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.abacus-cta:hover {
  background-color: var(--wine-2);
  transform: translateY(-2px);
}

.abacus-toggle {
  display: none;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.abacus-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  margin: 4px auto;
  border-radius: 2px;
}

/* ==========================================================================
   BALANCE-SCALE HERO
   ========================================================================== */
.scale-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 156px 28px 96px;
  min-height: 92vh;
}

.hero-copy {
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  background-color: var(--deep);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--wine-2);
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

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

/* Balance scale illustration */
.scale-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 440px;
  margin: 0 auto;
}

.scale-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}

.scale-pillar {
  position: absolute;
  left: 216px;
  top: 140px;
  width: 8px;
  height: 240px;
  background-color: var(--wine-2);
  border-radius: 4px;
}

.scale-pedestal {
  position: absolute;
  left: 160px;
  top: 370px;
  width: 120px;
  height: 46px;
  background-color: var(--bg-2);
  border: 2px solid var(--wine);
  border-radius: 8px 8px 24px 24px;
}

.scale-cap {
  position: absolute;
  left: 208px;
  top: 118px;
  width: 24px;
  height: 24px;
  background-color: var(--wine);
  border: 2px solid var(--rose);
  border-radius: 50%;
}

.scale-beam {
  position: absolute;
  left: 80px;
  top: 126px;
  width: 280px;
  height: 8px;
  background-color: var(--wine-2);
  border-radius: 4px;
}

.scale-side {
  position: absolute;
  top: 136px;
  width: 120px;
  text-align: center;
}

.scale-left {
  left: 20px;
}

.scale-right {
  left: 300px;
}

.scale-chain {
  width: 2px;
  margin: 0 auto;
  background: repeating-linear-gradient(180deg, var(--rose) 0 5px, var(--bg) 5px 10px);
}

.scale-left .scale-chain {
  height: 98px;
}

.scale-right .scale-chain {
  height: 66px;
}

.scale-bowl {
  width: 120px;
  height: 44px;
  border-radius: 0 0 999px 999px;
  background-color: var(--bg-3);
  border: 2px solid var(--wine);
  border-top: none;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-section {
  background-color: var(--bg);
  padding: 90px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-intro h2 {
  font-size: 2.4rem;
}

.about-body p {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 18px;
}

.about-points {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.about-points li {
  padding: 14px 18px;
  background-color: var(--bg-2);
  border-left: 3px solid var(--wine);
  border-radius: 6px;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   SERVICES (ledger list layout)
   ========================================================================== */
.services-section {
  background-color: var(--bg-2);
  padding: 96px 0;
}

.service-ledger {
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.service-ledger li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line-2);
}

.service-index {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--wine);
  letter-spacing: -0.02em;
}

.service-info h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.service-info p {
  color: var(--muted);
  max-width: 640px;
}

.service-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  background-color: var(--deep);
  border: 1px solid var(--wine-2);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ==========================================================================
   FULL-WIDTH STATEMENT ROW
   ========================================================================== */
.statement-row {
  background-color: var(--deep);
  padding: 100px 0;
  border-top: 1px solid var(--wine);
  border-bottom: 1px solid var(--wine);
}

.statement-row .container {
  max-width: 900px;
  text-align: center;
}

.statement-mark {
  display: block;
  width: 54px;
  height: 6px;
  border-radius: 3px;
  background-color: var(--wine-2);
  margin: 0 auto 28px;
}

.statement-row h2 {
  font-size: 2.5rem;
  color: var(--ink);
  margin-bottom: 18px;
}

.statement-sub {
  color: var(--rose);
  font-size: 1.05rem;
}

/* ==========================================================================
   BIG-NUMERAL STAT COLUMNS
   ========================================================================== */
.stats-section {
  background-color: var(--bg);
  padding: 90px 0;
}

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

.stat {
  text-align: center;
  padding: 34px 16px;
  background-color: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.stat-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--rose);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   NUMBERED DELIVERY PROCESS
   ========================================================================== */
.process-section {
  background-color: var(--bg-2);
  padding: 96px 0;
}

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

.process-track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background-color: var(--wine);
}

.process-step {
  position: relative;
  padding: 0 22px;
  text-align: center;
}

.process-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--wine);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid var(--wine-2);
  margin-bottom: 22px;
  z-index: 1;
}

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

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

/* ==========================================================================
   TWO-COLUMN COMPARISON TABLE
   ========================================================================== */
.compare-section {
  background-color: var(--bg);
  padding: 96px 0;
}

.compare-table {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-head {
  background-color: var(--bg-3);
  border-bottom: 1px solid var(--line);
}

.compare-col {
  padding: 18px 22px;
  font-size: 1rem;
}

.compare-col-a {
  border-right: 1px solid var(--line);
}

.compare-head .compare-col {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.compare-head .compare-col-a {
  color: var(--muted);
}

.compare-head .compare-col-b {
  color: var(--rose);
  background-color: var(--deep);
}

.compare-row {
  border-bottom: 1px solid var(--line-2);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row .compare-col-a {
  color: var(--muted);
}

.compare-row .compare-col-b {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   TESTIMONIAL SLIDER
   ========================================================================== */
.quotes-section {
  background-color: var(--bg-2);
  padding: 96px 0;
}

.quote-slider {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.quote-track {
  display: flex;
  overflow: hidden;
  position: relative;
}

.quote-slide {
  flex: 0 0 100%;
  padding: 40px 48px;
  background-color: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-sizing: border-box;
}

.quote-slide p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
}

.quote-slide footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-name {
  font-weight: 700;
  color: var(--rose);
}

.quote-role {
  color: var(--muted);
  font-size: 14px;
}

.quote-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.quote-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid var(--wine);
  color: var(--rose);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.quote-btn:hover {
  background-color: var(--wine);
  color: var(--ink);
}

.quote-dots {
  display: flex;
  gap: 8px;
}

.quote-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
}

.quote-dot.active {
  background-color: var(--wine-2);
}

/* ==========================================================================
   SPLIT CTA BAND
   ========================================================================== */
.cta-band {
  background-color: var(--wine);
  padding: 72px 0;
}

.cta-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.cta-copy h2 {
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.cta-copy p {
  color: #F6DCE2;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta-band .btn-wine {
  background-color: var(--ink);
  color: var(--wine);
  border-color: var(--ink);
}

.cta-band .btn-wine:hover {
  background-color: #F6DCE2;
}

.cta-band .btn-ghost {
  border-color: #F6DCE2;
  color: var(--ink);
}

.cta-band .btn-ghost:hover {
  background-color: var(--deep);
  color: var(--ink);
  border-color: var(--deep);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section {
  background-color: var(--bg);
  padding: 96px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 460px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  font-weight: 600;
}

.contact-list li span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.contact-list a {
  color: var(--ink);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--rose);
}

.contact-form {
  display: grid;
  gap: 18px;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--faint);
}

.form-note {
  min-height: 20px;
  font-size: 14px;
  color: var(--rose);
}

/* ==========================================================================
   FOOTER (compact multi-column, thin wine top rule)
   ========================================================================== */
.site-footer {
  background-color: #0E0A0C;
  padding-top: 0;
}

.footer-rule {
  height: 4px;
  background-color: var(--wine);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand p {
  color: var(--muted);
  max-width: 300px;
  font-size: 15px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-2);
  padding-top: 24px;
  padding-bottom: 28px;
  color: var(--faint);
  font-size: 14px;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .stats-grid,
  .process-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

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

@media (max-width: 900px) {
  .scale-hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    min-height: 0;
  }

  .scale-visual {
    max-width: 340px;
    height: 340px;
    transform: scale(0.82);
    transform-origin: center center;
  }

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

  .service-ledger li {
    grid-template-columns: 60px 1fr;
  }

  .service-tag {
    grid-column: 2;
    justify-self: start;
  }

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

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

@media (max-width: 860px) {
  .abacus-toggle {
    display: block;
  }

  .abacus-cta {
    display: none;
  }

  .abacus-track {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--bg-2);
    border-bottom: 2px solid var(--wine);
    padding: 10px 0;
    display: none;
  }

  .abacus-track.open {
    display: flex;
  }

  .abacus-frame::before {
    display: none;
  }

  .abacus-link {
    padding: 13px 28px;
    justify-content: flex-start;
  }

  .abacus-link .bead {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .section-head h2 {
    font-size: 1.7rem;
  }

  .statement-row h2 {
    font-size: 1.7rem;
  }

  .cta-copy h2 {
    font-size: 1.6rem;
  }

  .stats-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

  .compare-head,
  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-col-a {
    border-right: none;
    border-bottom: 1px solid var(--line-2);
  }

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

  .quote-slide {
    padding: 26px 22px;
  }

  .quote-slide p {
    font-size: 1.1rem;
  }
}
