/* ============================================================
   Xuntai Ind — Homepage Stylesheet
   Dark theme · violet + magenta accent · left vertical sidebar
   ============================================================ */

:root {
  --bg: #0A0A12;
  --bg-2: #0E0E1A;
  --panel: #141422;
  --panel-2: #1A1A2B;
  --line: #2A2A40;
  --text: #ECEAF7;
  --muted: #A7A4C6;
  --accent: #8A5CFF;
  --accent-2: #FF4D8D;
  --accent-soft: #251B45;
  --on-accent: #0A0A12;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 280px;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

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

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

/* ============================================================
   App shell — left sidebar + main content grid
   ============================================================ */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 32px 26px;
}

.site-main {
  grid-column: 2;
  min-width: 0;
}

/* Sidebar brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--on-accent);
  flex: 0 0 auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* Sidebar nav */
.site-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
  background-color: var(--panel);
}

.site-nav a .nav-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  width: 18px;
  opacity: 1;
}

.site-nav a.active {
  color: var(--text);
  background-color: var(--panel);
  border-color: var(--line);
}

/* Sidebar bottom */
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-foot .contact-line {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-foot .contact-line strong {
  color: var(--text);
  display: block;
  font-size: 14px;
}

.sidebar-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-align: center;
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.sidebar-cta:hover {
  background-color: var(--accent-2);
  color: var(--on-accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  margin: 5px auto;
  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);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 5, 10, 0.6);
}

.nav-overlay.open {
  display: block;
}

/* ============================================================
   Hero — full-bleed background band with overlay text
   ============================================================ */

.hero-band {
  position: relative;
  padding: 120px 72px 90px;
  background:
    linear-gradient(135deg, #14102B 0%, #0C0B18 45%, #170F2B 100%);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-band::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background-color: var(--accent-soft);
}

.hero-band::after {
  content: "";
  position: absolute;
  bottom: -160px;
  right: 180px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background-color: #311638;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background-color: var(--accent-2);
}

.hero-inner h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  max-width: 16ch;
}

.hero-inner h1 .hl {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}

.hero-inner p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background-color: var(--accent-2);
  color: var(--on-accent);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background-color: transparent;
}

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

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.hero-meta .meta-item {
  flex: 1 1 160px;
  min-width: 140px;
}

.meta-item .meta-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
}

.meta-item .meta-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Statement row — full-width single statement band
   ============================================================ */

.statement-row {
  padding: 72px 72px;
  background-color: var(--accent-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement-row p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
}

.statement-row p .hl {
  color: var(--accent-2);
}

/* ============================================================
   Numbered list section — Our Approach
   ============================================================ */

.numbered-section {
  padding: 100px 72px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 60px;
}

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

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.numbered-list {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.step-body h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.step-body p {
  color: var(--muted);
  max-width: 620px;
}

/* ============================================================
   Metrics band — counters
   ============================================================ */

.metrics-section {
  padding: 0 72px 100px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  background-color: var(--panel);
  padding: 44px 32px;
  text-align: center;
}

.metric .counter {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.metric .metric-label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ============================================================
   Bento capabilities grid
   ============================================================ */

.bento-section {
  padding: 0 72px 100px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}

.bento-cell {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-cell:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.bento-cell.wide {
  grid-column: span 2;
}

.bento-cell.tall {
  grid-row: span 2;
}

.bento-cell .b-icon {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: auto;
}

.bento-cell h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.bento-cell p {
  font-size: 14px;
  color: var(--muted);
}

.bento-cell.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.bento-cell.accent h3 {
  color: var(--on-accent);
}

.bento-cell.accent p {
  color: #2A2140;
}

.bento-cell.accent .b-icon {
  color: var(--on-accent);
}

/* ============================================================
   Comparison table
   ============================================================ */

.compare-section {
  padding: 0 72px 100px;
}

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

.compare-table th,
.compare-table td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  border-bottom: 2px solid var(--line);
}

.compare-table thead th:nth-child(2) {
  color: var(--accent);
}

.compare-table td {
  color: var(--muted);
}

.compare-table td:nth-child(2) {
  color: var(--text);
}

.compare-table .yes {
  color: var(--accent);
  font-weight: 700;
}

.compare-table .no {
  color: var(--muted);
}

.compare-table tbody tr:hover td {
  background-color: var(--panel);
}

/* ============================================================
   Accordion FAQ
   ============================================================ */

.faq-section {
  padding: 0 72px 100px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--panel);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  padding: 20px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .plus {
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex: 0 0 auto;
}

.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
}

.faq-item.open .faq-a {
  max-height: 300px;
}

/* ============================================================
   Contact section
   ============================================================ */

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

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

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

.contact-details .cd-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cd-item .cd-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  width: 90px;
  flex: 0 0 auto;
  padding-top: 3px;
}

.cd-item .cd-value {
  color: var(--text);
  font-size: 16px;
}

.contact-form {
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

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

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background-color: #12301F;
  color: #6FE0A8;
}

.form-status.err {
  background-color: #351222;
  color: #FF8FB0;
}

/* ============================================================
   Footer — compact with watermark wordmark
   ============================================================ */

.site-footer {
  background-color: #07070D;
  border-top: 1px solid var(--line);
  padding: 46px 72px 40px;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}

.footer-brand span {
  color: var(--accent);
}

.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--panel-2);
  text-align: left;
  user-select: none;
  margin-top: 10px;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Scroll reveal
   ============================================================ */

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

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .hero-band,
  .statement-row,
  .numbered-section,
  .metrics-section,
  .bento-section,
  .compare-section,
  .faq-section,
  .contact-section,
  .site-footer {
    padding-left: 40px;
    padding-right: 40px;
  }

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

@media (max-width: 960px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .site-main {
    grid-column: 1;
  }

  .site-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
  }

  .site-sidebar.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero-band {
    min-height: auto;
    padding-top: 100px;
  }

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

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

@media (max-width: 600px) {
  .hero-band,
  .statement-row,
  .numbered-section,
  .metrics-section,
  .bento-section,
  .compare-section,
  .faq-section,
  .contact-section,
  .site-footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step-num {
    font-size: 34px;
  }

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

  .bento-cell.wide {
    grid-column: span 1;
  }

  .bento-cell.tall {
    grid-row: span 1;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px 12px;
    font-size: 13px;
  }

  .footer-top {
    flex-direction: column;
  }
}
