/* ============================================================
   Mu Jia Xuan — Xi'an Mujiaxuan Aviation Technology Co., Ltd.
   Design #16 — Teal + Rose | Floating Bubbles Hero
   ============================================================ */

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

:root {
  --teal: #0f766e;
  --teal-dark: #0b5d56;
  --rose: #f43f5e;
  --rose-dark: #e11d48;
  --teal-light: #99f6e4;
  --bg-light: #f0fdfa;
  --text-dark: #1c1917;
  --text-mid: #44403c;
  --text-soft: #78716c;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.section-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.section-title {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 600px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* ---------- Slide-Up Animation ---------- */
.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.7s cubic-bezier(0.33, 1, 0.68, 1);
}
.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(15, 118, 110, 0.08); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), #0d9488);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero — Floating Bubbles ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  overflow: hidden;
  padding-top: 72px;
}

.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  animation: floatBubble var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); }
  25%  { transform: translateY(-30px) scale(1.04); }
  50%  { transform: translateY(-15px) scale(0.97); }
  75%  { transform: translateY(-40px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-content h1 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.hero-content h1 .accent-underline {
  display: inline-block;
  position: relative;
}
.hero-content h1 .accent-underline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--rose);
  border-radius: 3px;
  opacity: 0.3;
}

.hero-content .hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.3);
}

.btn-rose-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}
.btn-rose-outline:hover {
  background: var(--rose);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.25);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounceDown 2s ease-in-out infinite;
}
.hero-scroll-indicator svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
  opacity: 0.5;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Services — Accordion Bars ---------- */
.services {
  background: var(--bg-light);
}

.services .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.06);
  transition: box-shadow var(--transition);
}
.accordion-item:hover { box-shadow: 0 4px 16px rgba(15, 118, 110, 0.1); }
.accordion-item.open { box-shadow: 0 6px 24px rgba(15, 118, 110, 0.12); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  user-select: none;
  border-left: 5px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.accordion-item:nth-child(odd) .accordion-header  { border-left-color: var(--teal); }
.accordion-item:nth-child(even) .accordion-header { border-left-color: var(--rose); }

.accordion-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.accordion-title .svc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.accordion-item:nth-child(odd) .svc-icon  { background: var(--bg-light); color: var(--teal); }
.accordion-item:nth-child(even) .svc-icon { background: #fff1f2; color: var(--rose); }

.accordion-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.accordion-arrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
  transition: transform var(--transition);
}
.accordion-item.open .accordion-arrow { background: var(--teal); border-color: var(--teal); }
.accordion-item.open .accordion-arrow svg { stroke: var(--white); transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.accordion-item.open .accordion-body { max-height: 300px; }

.accordion-content {
  padding: 0 1.5rem 1.5rem 3.75rem;
}
.accordion-desc {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.accordion-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.accordion-capabilities span {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--bg-light);
  color: var(--teal);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}
.accordion-item:nth-child(even) .accordion-capabilities span {
  background: #fff1f2;
  color: var(--rose);
}

/* ---------- About — Impact Report ---------- */
.about {
  background: var(--white);
}

.about .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.impact-card {
  background: var(--bg-light);
  border: 2px solid rgba(15, 118, 110, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1rem;
  text-align: center;
  transition: all var(--transition);
}
.impact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.1);
}
.impact-card:nth-child(2), .impact-card:nth-child(4) {
  background: #fff1f2;
  border-color: rgba(244, 63, 94, 0.1);
}

.impact-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.impact-card:nth-child(2) .impact-number,
.impact-card:nth-child(4) .impact-number { color: var(--rose); }

.impact-label {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

.about-commitment {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.7;
}

/* ---------- Industries — Badge Wall ---------- */
.industries {
  background: var(--bg-light);
}

.industries .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.badge-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--white);
  border: 1.5px solid rgba(15, 118, 110, 0.12);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
}
.badge-pill .badge-emoji { font-size: 1.2rem; }

/* ---------- Approach — Funnel Diagram ---------- */
.approach {
  background: var(--white);
}

.approach .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.funnel-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--teal-light), var(--teal), var(--teal-light));
  border-radius: 2px;
  z-index: 0;
}

.funnel-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}
.funnel-stage:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.25);
}

.funnel-stage:nth-child(2) {  /* Discover */
  width: 90%;
  min-height: 60px;
  background: linear-gradient(135deg, var(--teal), #0d9488);
  clip-path: polygon(8% 0%, 92% 0%, 98% 100%, 2% 100%);
}

.funnel-stage:nth-child(3) {  /* Design */
  width: 78%;
  min-height: 60px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  clip-path: polygon(10% 0%, 90% 0%, 96% 100%, 4% 100%);
}

.funnel-stage:nth-child(4) {  /* Deploy */
  width: 64%;
  min-height: 60px;
  background: linear-gradient(135deg, var(--teal), #115e59);
  clip-path: polygon(13% 0%, 87% 0%, 93% 100%, 7% 100%);
}

.funnel-stage:nth-child(5) {  /* Optimize */
  width: 48%;
  min-height: 60px;
  background: linear-gradient(135deg, #115e59, var(--teal-dark));
  clip-path: polygon(18% 0%, 82% 0%, 89% 100%, 11% 100%);
}

.funnel-stage::before {
  content: attr(data-step);
  position: absolute;
  left: -40px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  text-shadow: none;
}

/* ---------- Contact — Quick Action Buttons ---------- */
.contact {
  background: var(--bg-light);
}

.contact .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 850px;
  margin: 0 auto 2rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
}

.contact-btn:nth-child(1) {
  background: var(--teal);
  color: var(--white);
}
.contact-btn:nth-child(1):hover {
  background: var(--teal-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.35);
}

.contact-btn:nth-child(2) {
  background: var(--rose);
  color: var(--white);
}
.contact-btn:nth-child(2):hover {
  background: var(--rose-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
}

.contact-btn:nth-child(3) {
  background: var(--white);
  color: var(--text-dark);
  border: 2px solid var(--teal-light);
}
.contact-btn:nth-child(3):hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.15);
}

.contact-btn .contact-btn-icon {
  font-size: 2.5rem;
}

.contact-btn .contact-btn-label {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-btn .contact-btn-desc {
  font-size: 0.85rem;
  opacity: 0.8;
}

.contact-response-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 500;
}
.contact-response-note span {
  color: var(--teal);
  font-weight: 700;
}

/* ---------- CTA — Resource Card ---------- */
.cta {
  background: var(--white);
}

.cta .container {
  max-width: 700px;
}

.cta-card {
  background: linear-gradient(135deg, var(--rose), #e11d48);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.25);
}

.cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
  backdrop-filter: blur(4px);
}

.cta-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.cta-card p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.75rem;
}

.btn-cta {
  background: var(--white);
  color: var(--rose);
  border-color: var(--white);
  font-weight: 700;
}
.btn-cta:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-note {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 1.25rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

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

.footer-brand .footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal-light); }

.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;
  font-size: 0.82rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--teal-light); }
.footer-bottom .footer-links { display: flex; gap: 1.5rem; }

/* ---------- Legal Pages ---------- */
.legal-page {
  padding-top: 120px;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.legal-page .legal-meta {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
}

.legal-page .legal-section {
  margin-bottom: 2rem;
}

.legal-page .legal-section h2 {
  font-size: 1.15rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.legal-page .legal-section h3 {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.legal-page .legal-section p,
.legal-page .legal-section li {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.legal-page .legal-section ul,
.legal-page .legal-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  list-style: disc;
}

.legal-page .legal-section ol {
  list-style: decimal;
}

.legal-page .legal-section a {
  color: var(--teal);
  text-decoration: underline;
}

.legal-address {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-address p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin-bottom: 0.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .funnel-stage { font-size: 0.9rem; }
  .funnel-stage::before { left: -30px; width: 26px; height: 26px; font-size: 0.7rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(15, 118, 110, 0.08);
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }

  .nav-toggle { display: flex; }

  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-number { font-size: 2.2rem; }

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

  .funnel-stage:nth-child(2) { width: 95%; }
  .funnel-stage:nth-child(3) { width: 85%; }
  .funnel-stage:nth-child(4) { width: 73%; }
  .funnel-stage:nth-child(5) { width: 58%; }
  .funnel-stage::before { left: -28px; width: 24px; height: 24px; font-size: 0.7rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr 1fr; }
  .accordion-title { font-size: 0.95rem; }
  .accordion-content { padding-left: 1.5rem; }
}
