/* ============================================================
   Qin Xun Tao — Xi'an Qinxuntao Network Technology Co., Ltd.
   Design #25: Terracotta + Sage
   ============================================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #1c1917;
  background-color: #fefce8;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #1c1917;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a3412;
  margin-bottom: 0.5rem;
}

.section-heading {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: #78716c;
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 56rem;
}

section {
  padding: 5rem 0;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 252, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(154, 52, 18, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: #1c1917;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: #9a3412;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fefce8;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #44403c;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #9a3412;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  line-height: 1.2;
}

.btn--terracotta {
  background: #9a3412;
  color: #fefce8;
  border-color: #9a3412;
}

.btn--terracotta:hover {
  background: #7b2a0e;
  border-color: #7b2a0e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(154, 52, 18, 0.3);
}

.btn--sage-outline {
  background: transparent;
  color: #84a98c;
  border-color: #84a98c;
}

.btn--sage-outline:hover {
  background: #84a98c;
  color: #fefce8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(132, 169, 140, 0.3);
}

.btn--light {
  background: #fefce8;
  color: #9a3412;
  border-color: #fefce8;
}

.btn--light:hover {
  background: #f5f0d5;
  border-color: #f5f0d5;
  transform: translateY(-1px);
}

/* ============================================================
   HERO — Watercolor Wash
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fefce8;
  overflow: hidden;
  padding: 6rem 1.25rem 4rem;
}

.hero-watercolor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wash-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.22;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.wash-circle--1 {
  width: clamp(18rem, 40vw, 32rem);
  height: clamp(18rem, 40vw, 32rem);
  background: #9a3412;
  top: -8%;
  left: -5%;
}

.wash-circle--2 {
  width: clamp(14rem, 32vw, 26rem);
  height: clamp(14rem, 32vw, 26rem);
  background: #84a98c;
  top: 15%;
  right: -4%;
}

.wash-circle--3 {
  width: clamp(20rem, 44vw, 36rem);
  height: clamp(20rem, 44vw, 36rem);
  background: #9a3412;
  bottom: -10%;
  left: 25%;
  opacity: 0.16;
}

.wash-circle--4 {
  width: clamp(12rem, 28vw, 22rem);
  height: clamp(12rem, 28vw, 22rem);
  background: #84a98c;
  top: 50%;
  left: -3%;
  opacity: 0.19;
}

.wash-circle--5 {
  width: clamp(16rem, 36vw, 28rem);
  height: clamp(16rem, 36vw, 28rem);
  background: #9a3412;
  top: 35%;
  right: 10%;
  opacity: 0.14;
}

.wash-circle--6 {
  width: clamp(10rem, 22vw, 18rem);
  height: clamp(10rem, 22vw, 18rem);
  background: #84a98c;
  bottom: 5%;
  right: -2%;
  opacity: 0.2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a3412;
  background: rgba(154, 52, 18, 0.08);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  color: #1c1917;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-title .accent {
  position: relative;
  color: #9a3412;
}

.hero-underline {
  width: 5rem;
  height: 0.25rem;
  background: #84a98c;
  border-radius: 9999px;
  margin: 1.25rem auto;
}

.hero-text {
  font-size: 1.125rem;
  color: #44403c;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICES — Hero Feature + Mini Cards
   ============================================================ */
.services {
  background: #fffdf5;
}

.services .section-label,
.services .section-heading,
.services .section-subtitle {
  text-align: center;
}

.services .section-heading {
  margin-bottom: 0.5rem;
}

.services .section-subtitle {
  margin-bottom: 3rem;
}

.feature-card--hero {
  background: #fefce8;
  border-left: 5px solid #9a3412;
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}

.feature-card--hero:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.06);
}

.hero-feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(154, 52, 18, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero-feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: #9a3412;
}

.feature-card--hero h3 {
  font-size: 1.375rem;
  margin-bottom: 0.625rem;
}

.feature-card--hero p {
  color: #44403c;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 40rem;
}

.mini-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.mini-card {
  background: #fefce8;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border-top: 4px solid #84a98c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.mini-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.mini-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(132, 169, 140, 0.15);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.mini-card-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  color: #84a98c;
}

.mini-card h4 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.mini-card p {
  font-size: 0.875rem;
  color: #78716c;
  line-height: 1.5;
}

/* ============================================================
   ABOUT — Story + Quote
   ============================================================ */
.about {
  background: #fefce8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-story h2 {
  margin-bottom: 1.25rem;
}

.about-story .section-label {
  margin-bottom: 0.25rem;
}

.about-story p {
  color: #44403c;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-story p:last-of-type {
  margin-bottom: 0;
}

.about-quote {
  background: #fffdf5;
  border-left: 5px solid #84a98c;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 2rem 2rem 2rem 1.75rem;
  position: relative;
}

.about-quote blockquote {
  margin: 0;
}

.about-quote blockquote p {
  font-size: 1.125rem;
  font-style: italic;
  color: #44403c;
  line-height: 1.7;
  margin-bottom: 1rem;
  quotes: none;
}

.about-quote cite {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #9a3412;
  font-style: normal;
}

.about-quote cite span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #78716c;
  margin-top: 0.125rem;
}

/* ============================================================
   INDUSTRIES — Metric Badges
   ============================================================ */
.industries {
  background: #fffdf5;
}

.industries .section-label,
.industries .section-heading,
.industries .section-subtitle {
  text-align: center;
}

.industries .section-heading {
  margin-bottom: 0.5rem;
}

.industries .section-subtitle {
  margin-bottom: 2.5rem;
}

.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fefce8;
  transition: transform 0.25s, box-shadow 0.25s;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.badge--terracotta {
  background: #9a3412;
}

.badge--sage {
  background: #84a98c;
}

.badge-metric {
  opacity: 0.85;
  font-weight: 500;
  font-size: 0.8125rem;
}

/* ============================================================
   APPROACH — 3-Step Cycle
   ============================================================ */
.approach {
  background: #fefce8;
  position: relative;
}

.approach .section-label,
.approach .section-heading,
.approach .section-subtitle {
  text-align: center;
}

.approach .section-heading {
  margin-bottom: 0.5rem;
}

.approach .section-subtitle {
  margin-bottom: 3.5rem;
}

.cycle-container {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
  min-height: 22rem;
}

.cycle-step {
  background: #fffdf5;
  border: 2px solid #e7e0d0;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  width: 18rem;
  position: absolute;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cycle-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cycle-step--1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cycle-step--1:hover {
  transform: translateX(-50%) translateY(-4px);
}

.cycle-step--2 {
  bottom: 0;
  left: 0;
}

.cycle-step--3 {
  bottom: 0;
  right: 0;
}

.cycle-step-number {
  width: 2.75rem;
  height: 2.75rem;
  background: #9a3412;
  color: #fefce8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 auto 0.75rem;
}

.cycle-step:nth-child(2) .cycle-step-number {
  background: #84a98c;
}

.cycle-step:nth-child(3) .cycle-step-number {
  background: #9a3412;
}

.cycle-step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}

.cycle-step p {
  font-size: 0.875rem;
  color: #78716c;
  line-height: 1.5;
}

/* Cycle arrows using CSS borders */
.cycle-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cycle-arrow {
  position: absolute;
  width: 0;
  height: 0;
}

/* Arrow 1→2: from bottom-center of step1 to top-left of step2 */
.cycle-arrow--12 {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid #84a98c;
  bottom: 3rem;
  left: 14rem;
  transform: rotate(35deg);
  opacity: 0.5;
}

/* Arrow 2→3: from right of step2 to left of step3 */
.cycle-arrow--23 {
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #9a3412;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

/* Arrow 3→1: from top of step3 to bottom-right of step1 */
.cycle-arrow--31 {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 16px solid #84a98c;
  top: 5rem;
  right: 7rem;
  transform: rotate(-35deg);
  opacity: 0.5;
}

/* Curved connector SVGs */
.cycle-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CONTACT — Call Card
   ============================================================ */
.contact {
  background: #fffdf5;
}

.contact .section-label,
.contact .section-heading {
  text-align: center;
}

.contact .section-heading {
  margin-bottom: 2rem;
}

.call-card {
  max-width: 24rem;
  margin: 0 auto;
  background: #fefce8;
  border: 2px solid #84a98c;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}

.call-card:hover {
  box-shadow: 0 4px 20px rgba(132, 169, 140, 0.15);
}

.call-card-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(132, 169, 140, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.call-card-icon svg {
  width: 2rem;
  height: 2rem;
  color: #84a98c;
}

.call-card-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: 0.02em;
  margin-bottom: 0.375rem;
}

.call-card-note {
  font-size: 0.875rem;
  color: #78716c;
  margin-bottom: 1.5rem;
}

.call-card .btn {
  width: 100%;
}

/* ============================================================
   CTA — Trust Network
   ============================================================ */
.cta {
  background: #fefce8;
  text-align: center;
}

.cta .section-heading {
  margin-bottom: 2rem;
}

.partner-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #84a98c;
  color: #fefce8;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.partner-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(132, 169, 140, 0.35);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  color: #fefce8;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #a8a29e;
}

.footer-links h5 {
  color: #fefce8;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #a8a29e;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #84a98c;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #78716c;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: #a8a29e;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: #84a98c;
}

/* ============================================================
   LEGAL PAGES (Privacy & Terms)
   ============================================================ */
.legal-hero {
  background: #fefce8;
  padding: 7rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(154, 52, 18, 0.06);
}

.legal-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.legal-hero .effective-date {
  font-size: 0.9375rem;
  color: #78716c;
}

.legal-content {
  background: #fffdf5;
  padding: 3.5rem 0 5rem;
}

.legal-content .container--narrow {
  max-width: 48rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  color: #1c1917;
  margin: 2.5rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #44403c;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  color: #44403c;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: #9a3412;
  text-decoration: underline;
}

/* ============================================================
   MOBILE NAV TOGGLE
   ============================================================ */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #1c1917;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 252, 232, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(154, 52, 18, 0.08);
  }

  section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: auto;
    padding: 7rem 1.25rem 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mini-cards-grid {
    grid-template-columns: 1fr;
  }

  .cycle-container {
    position: static;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .cycle-step {
    position: static;
    width: 100%;
  }

  .cycle-step--1 {
    transform: none;
  }

  .cycle-step--1:hover {
    transform: translateY(-4px);
  }

  .cycle-arrows,
  .cycle-svg {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

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

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .hero-watercolor,
  .cycle-arrows,
  .cycle-svg {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }
}
