/* ============================================================
   Luoxun — Integrated Computer Systems Design
   Dark emerald theme. All solid hex colors, no rgba/opacity text.
   ============================================================ */

:root {
  --bg: #0A0F0D;
  --bg-2: #0E1512;
  --surface: #141C18;
  --surface-2: #1A231E;
  --border: #243029;
  --border-strong: #2E3C34;
  --text: #EAF2EE;
  --text-muted: #9FB0A7;
  --text-faint: #71817A;
  --accent: #34D399;
  --accent-bright: #6EE7B7;
  --accent-deep: #0B3A2C;
  --accent-ink: #052E21;
  --warn: #F5B95C;
  --white: #FFFFFF;
  --sidebar-w: 264px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

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

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Page shell & sidebar ---------- */

.page-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background-color: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  z-index: 40;
  transition: transform 0.3s ease;
}

.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-bright));
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 40px;
  flex: 1;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background-color: var(--surface);
}

.nav-link.active {
  color: var(--accent-bright);
  background-color: var(--accent-deep);
  border-left-color: var(--accent);
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.sidebar-contact {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.sidebar-contact:hover {
  color: var(--accent-bright);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0;
}

.sidebar-links a {
  font-size: 12px;
  color: var(--text-faint);
}

.sidebar-links a:hover {
  color: var(--accent-bright);
}

.sidebar-loc {
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Mobile bar ---------- */

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.mobile-brand .brand-text strong {
  font-size: 16px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 35;
}

/* ---------- Shared section helpers ---------- */

main {
  overflow-x: hidden;
}

section {
  padding: 96px 56px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

p {
  color: var(--text-muted);
}

.accent-text {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background-color: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ---------- Hero ---------- */

.hero-section {
  padding: 88px 56px 96px;
  background-color: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-copy .lede {
  font-size: 18px;
  margin: 24px 0 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  list-style: none;
}

.hero-trust li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-visual {
  position: relative;
}

.code-card {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r { background-color: #E0685F; }
.dot-y { background-color: #F5B95C; }
.dot-g { background-color: #34D399; }

.code-file {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-faint);
}

.code-body {
  padding: 22px 24px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 2;
}

.code-body p {
  color: var(--text);
}

.ln {
  display: inline-block;
  width: 28px;
  color: var(--text-faint);
  user-select: none;
}

.kw { color: var(--accent-bright); font-weight: 600; }
.fn { color: var(--warn); }
.str { color: #E8A8C8; }
.cm { color: var(--text-faint); }
.ok { color: var(--accent); }

.float-chip {
  position: absolute;
  background-color: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.chip-a {
  top: -22px;
  right: -18px;
}

.chip-b {
  bottom: -22px;
  left: -18px;
}

.chip-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-bright);
}

.chip-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Overview ---------- */

.overview-section {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  max-width: 1240px;
  margin: 0 auto;
}

.overview-text p {
  font-size: 17px;
  margin-bottom: 20px;
}

.overview-text p:last-child {
  margin-bottom: 0;
}

.overview-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.fact-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

.fact p {
  font-size: 15px;
}

/* ---------- Capabilities ---------- */

.capabilities-section {
  background-color: var(--bg);
}

.cap-list {
  list-style: none;
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.cap-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.cap-item:hover {
  background-color: var(--bg-2);
}

.cap-index {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  padding-left: 8px;
}

.cap-body h3 {
  margin-bottom: 8px;
}

.cap-body p {
  max-width: 680px;
  font-size: 16px;
}

/* ---------- Comparison table ---------- */

.compare-section {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare-table thead th {
  text-align: left;
  padding: 20px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
}

.compare-table tbody th {
  text-align: left;
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background-color: var(--surface);
}

.compare-table td {
  padding: 18px 24px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.compare-table .col-highlight {
  background-color: var(--accent-deep);
  color: var(--accent-bright);
}

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

/* ---------- Process timeline ---------- */

.process-section {
  background-color: var(--bg);
}

.timeline {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  position: relative;
}

.tl-step::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.tl-step:first-child::before {
  top: 40px;
}

.tl-step:last-child::before {
  bottom: auto;
  height: 40px;
}

.tl-marker {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-deep);
  border: 2px solid var(--accent);
  color: var(--accent-bright);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-body h3 {
  margin-bottom: 6px;
}

.tl-body p {
  max-width: 640px;
  font-size: 15px;
}

/* ---------- Results counters ---------- */

.results-section {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 56px;
}

.results-inner {
  max-width: 1240px;
  margin: 0 auto;
}

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

.counter {
  padding: 32px 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.counter-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent-bright);
  letter-spacing: -1px;
}

.counter-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Voices slider ---------- */

.voices-section {
  background-color: var(--bg);
}

.slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  min-height: 180px;
}

.slide {
  display: none;
  text-align: center;
}

.slide.active {
  display: block;
}

.quote {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 20px;
}

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

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.slider-btn {
  padding: 10px 22px;
  border-radius: 999px;
  background-color: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ---------- Contact ---------- */

.contact-section {
  background-color: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1240px;
  margin: 0 auto;
}

.contact-copy p {
  font-size: 16px;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
}

.detail a, .detail span {
  font-size: 16px;
  color: var(--text);
}

.detail a:hover {
  color: var(--accent-bright);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  background-color: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field select {
  appearance: none;
}

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

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
}

.newsletter-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 56px;
  border-bottom: 1px solid var(--border);
  max-width: 1240px;
  margin: 0 auto;
}

.newsletter-copy h3 {
  margin-bottom: 6px;
}

.newsletter-copy p {
  font-size: 14px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}

.newsletter-form input::placeholder {
  color: var(--text-faint);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 56px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 16px;
  max-width: 260px;
}

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

.footer-col h4 {
  margin-bottom: 6px;
}

.footer-col a,
.footer-col span {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-bottom {
  position: relative;
  padding: 28px 56px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
}

.watermark {
  position: absolute;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  font-size: 120px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--surface-2);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
}

/* ---------- Scroll reveal ---------- */

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

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

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

@media (max-width: 820px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
  }

  .sidebar-backdrop.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-bar {
    display: flex;
  }

  section {
    padding: 64px 22px;
  }

  .hero-section,
  .results-section {
    padding: 64px 22px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .cap-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cap-index {
    padding-left: 0;
  }

  .tl-step {
    grid-template-columns: 56px 1fr;
  }

  .newsletter-band,
  .footer-main {
    grid-template-columns: 1fr;
    padding-left: 22px;
    padding-right: 22px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .chip-a {
    right: 0;
  }

  .chip-b {
    left: 0;
  }

  .watermark {
    font-size: 64px;
    bottom: 56px;
  }
}
