/* ============================================================
   YEXIN — style.css
   Dark theme · Emerald accent (#10B981) · Pale mint (#A7F3D0)
   ============================================================ */

:root {
  --bg: #0D1210;
  --bg-2: #101714;
  --bg-3: #141E19;
  --bg-4: #1A2620;
  --line: #233029;
  --line-soft: #1C2821;
  --text: #E7F2EC;
  --text-muted: #9FB4AA;
  --text-dim: #7E938A;
  --emerald: #10B981;
  --emerald-bright: #34D399;
  --emerald-dark: #0B8A5F;
  --emerald-deep: #0A3D2C;
  --mint: #A7F3D0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

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

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

/* ---------- Scroll reveal (JS-safe with fallback) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-solid {
  background-color: var(--emerald);
  color: #042017;
}
.btn-solid:hover {
  background-color: var(--emerald-bright);
}
.btn-ghost {
  background-color: transparent;
  color: var(--mint);
  border-color: var(--emerald-dark);
}
.btn-ghost:hover {
  border-color: var(--emerald);
  background-color: var(--emerald-deep);
}

/* ============================================================
   CARGO BALE NAVIGATION
   ============================================================ */
.bale-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.bale-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.bale-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bale-word {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* CSS-drawn cargo bale: rounded bundle + two vertical straps */
.bale-mark {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 30px;
  border-radius: 6px;
  background-color: var(--emerald);
  box-shadow: inset 0 -3px 0 var(--emerald-dark);
}
.bale-mark::before,
.bale-mark::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--emerald-dark);
}
.bale-mark::before {
  left: 6px;
}
.bale-mark::after {
  right: 6px;
}

.bale-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.bale-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}
.bale-links a:hover {
  color: var(--mint);
}

.bale-cta {
  padding: 11px 22px;
  border-radius: 7px;
  background-color: var(--emerald);
  color: #042017;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.bale-cta:hover {
  background-color: var(--emerald-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--mint);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   CARGO NET HERO
   ============================================================ */
.cargo-net-hero {
  position: relative;
  padding: 150px 0 96px;
  background-color: var(--bg);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--emerald-deep) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--emerald-dark);
  border-radius: 999px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald);
}

/* CSS-drawn cargo net: diamond mesh + rounded bundle + hook */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.cargo-net {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.net-hook {
  display: block;
  width: 2px;
  height: 46px;
  background-color: var(--mint);
  position: relative;
}
.net-hook::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border: 3px solid var(--mint);
  border-radius: 50%;
}
.net-mesh {
  position: relative;
  width: 320px;
  height: 300px;
  margin-top: -2px;
  border: 2px solid var(--mint);
  border-radius: 14px;
  background-color: var(--emerald-deep);
  background-image:
    repeating-linear-gradient(45deg, var(--emerald-dark) 0px, var(--emerald-dark) 2px, transparent 2px, transparent 26px),
    repeating-linear-gradient(-45deg, var(--emerald-dark) 0px, var(--emerald-dark) 2px, transparent 2px, transparent 26px);
  box-shadow: 0 0 70px 12px var(--emerald-deep);
}
.net-bundle {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  width: 150px;
  height: 120px;
  border-radius: 12px;
  background-color: var(--emerald);
  box-shadow: inset 0 -10px 0 var(--emerald-dark);
}
.net-bundle .bundle-strap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background-color: var(--emerald-dark);
}
.net-bundle .bundle-strap:first-child {
  left: 26px;
}
.net-bundle .bundle-strap:last-child {
  right: 26px;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-kicker {
  display: inline-block;
  color: var(--emerald-bright);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
}

/* ---------- Statement ---------- */
.statement-section {
  padding: 96px 0;
  background-color: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.statement-kicker {
  color: var(--emerald-bright);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.statement-line {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  max-width: 1000px;
  line-height: 1.25;
  margin-bottom: 24px;
}
.statement-note {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 720px;
}

/* ---------- Stats ---------- */
.stats-section {
  padding: 64px 0;
  background-color: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.stat-cell {
  background-color: var(--bg-3);
  padding: 40px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: "Sora", sans-serif;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 800;
  color: var(--mint);
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Capabilities ---------- */
.capabilities-section {
  padding: 96px 0;
  background-color: var(--bg);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.capabilities-copy p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 17px;
}
.capability-list {
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.capability-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background-color: var(--emerald);
}
.capabilities-card {
  background-color: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
}
.card-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: var(--emerald-deep);
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.discipline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.discipline-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-weight: 500;
}
.discipline-list li:last-child {
  border-bottom: none;
}
.discipline-index {
  font-family: "Sora", sans-serif;
  color: var(--emerald-bright);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Process ---------- */
.process-section {
  padding: 96px 0;
  background-color: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.process-list {
  list-style: none;
  position: relative;
  display: grid;
  gap: 0;
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
}
.process-step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}
.process-step:first-child::before {
  top: 50%;
}
.process-step:last-child::before {
  bottom: 50%;
}
.step-number {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-bright);
  width: 64px;
  height: 64px;
  border: 2px solid var(--emerald-dark);
  border-radius: 50%;
  background-color: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.process-step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p {
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Models / comparison table ---------- */
.models-section {
  padding: 96px 0;
  background-color: var(--bg);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--bg-3);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.compare-table thead th {
  background-color: var(--bg-4);
  color: var(--mint);
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th:not(:first-child) {
  text-align: center;
}
.compare-table thead th:last-child {
  background-color: var(--emerald-deep);
}
.compare-table tbody th,
.compare-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--text-muted);
}
.compare-table tbody th {
  color: var(--text);
  font-weight: 600;
  text-align: left;
}
.compare-table tbody td {
  text-align: center;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 96px 0;
  background-color: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.faq-list {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background-color: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: "Sora", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--emerald-bright);
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}

/* ---------- CTA + contact ---------- */
.cta-section {
  padding: 96px 0;
  background-color: var(--bg);
}
.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  background-color: var(--emerald-deep);
  border: 1px solid var(--emerald-dark);
  border-radius: 16px;
  padding: 44px 40px;
  margin-bottom: 40px;
}
.cta-band h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--mint);
  font-size: 17px;
}
.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.cta-band .btn-ghost {
  border-color: var(--mint);
  color: var(--mint);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  background-color: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
}
.contact-info h3 {
  font-size: 22px;
  margin-bottom: 20px;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-bright);
}
.contact-list a,
.contact-list span:last-child {
  color: var(--text-muted);
  font-size: 15px;
}
.contact-list a:hover {
  color: var(--mint);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.18s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--emerald);
}
.form-row textarea {
  resize: vertical;
}
.form-note {
  font-size: 14px;
  color: var(--mint);
  min-height: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--bg-2);
  border-top: 2px solid var(--emerald);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand {
  margin-bottom: 16px;
}
.footer-about p {
  color: var(--text-muted);
  font-size: 15px;
}
.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li,
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 15px;
}
.footer-col ul li a:hover {
  color: var(--mint);
}
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .cargo-net {
    width: 300px;
    height: 300px;
  }
  .net-mesh {
    width: 260px;
    height: 240px;
  }
  .net-bundle {
    width: 120px;
    height: 96px;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    grid-template-columns: 1fr;
  }
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .bale-nav-inner {
    position: relative;
  }
  .bale-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--bg-3);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .bale-links.open {
    display: flex;
  }
  .bale-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }
  .bale-links a:last-child {
    border-bottom: none;
  }
  .bale-cta {
    margin-left: auto;
  }
  .nav-toggle {
    order: 3;
  }
}

@media (max-width: 560px) {
  .bale-cta {
    display: none;
  }
  .capability-list {
    grid-template-columns: 1fr;
  }
  .process-step {
    grid-template-columns: 64px 1fr;
    gap: 16px;
  }
  .step-number {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  .process-step::before {
    left: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
