/* =========================================================
   BVAsian — Computer Systems Design and Related Services
   Unique palette: dark violet-ink + magenta + violet + sand
   ========================================================= */

:root {
  --bg: #0C0A14;
  --bg-2: #120E1D;
  --surface: #181225;
  --surface-2: #201831;
  --line: #2B2140;
  --text: #F4EFFB;
  --muted: #A79CC0;
  --brand: #F23D91;
  --brand-deep: #C72B72;
  --brand-2: #7E5BFF;
  --sand: #EBCB8F;
  --mint: #3FD8A4;
  --shadow: 0 18px 50px #06040B;
}

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

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

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

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

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

/* ---------- Layout shell ---------- */
.home-page {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Site header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.brand .brand-mark {
  color: var(--brand);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  font-size: 0.95rem;
  font-weight: 700;
  color: #140A12;
  background-color: var(--brand);
  padding: 11px 20px;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--brand-deep);
  transform: translateY(-1px);
}

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

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

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

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

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

/* ---------- Hero band ---------- */
.hero-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 640px;
  padding: 90px 0;
  background: linear-gradient(135deg, #14101F 0%, #1B1230 45%, #140E22 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb.orb-one {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, #5C1F4A 0%, transparent 68%);
}

.hero-orb.orb-two {
  width: 380px;
  height: 380px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, #33245E 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 22px;
}

.hero-eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--brand);
}

.hero-band h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-band h1 .accent {
  color: var(--brand);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  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(--brand);
  color: #140A12;
}

.btn-primary:hover {
  background-color: var(--brand-deep);
}

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

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

/* Stat cluster */
.stat-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.stat-card.stat-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
}

.stat-card.stat-wide .stat-num {
  color: var(--sand);
}

.stat-label {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Generic section ---------- */
.section {
  padding: 96px 0;
}

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

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

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

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

/* ---------- Numbered disciplines ---------- */
.discipline-list {
  display: flex;
  flex-direction: column;
}

.discipline-row {
  display: grid;
  grid-template-columns: 120px 1fr 220px;
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

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

.discipline-index {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-2);
  line-height: 1;
}

.discipline-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.discipline-desc {
  color: var(--muted);
  font-size: 0.98rem;
}

.discipline-tag {
  justify-self: end;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sand);
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Horizontal scroll row ---------- */
.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 8px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 999px;
}

.offer-card {
  scroll-snap-align: start;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
}

.offer-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.offer-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.offer-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--surface);
}

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

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

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-table th.highlight-col {
  background-color: var(--surface-2);
  color: var(--text);
}

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

.compare-table td.mark {
  text-align: center;
  font-weight: 700;
}

.compare-table td.mark.yes {
  color: var(--mint);
}

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

.compare-table th.highlight-col,
.compare-table td.highlight-col {
  background-color: var(--surface-2);
}

/* ---------- Accordion FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.faq-item details > summary {
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-size: 1.08rem;
  font-weight: 700;
}

.faq-question .plus {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding: 0 26px 24px;
  color: var(--muted);
}

/* ---------- Contact band ---------- */
.contact-section {
  position: relative;
  background: linear-gradient(135deg, #1B1230 0%, #241238 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.contact-info p {
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 460px;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.contact-line .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

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

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.form-field input,
.form-field textarea {
  width: 100%;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

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

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

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  background-color: var(--brand);
  color: #140A12;
  padding: 15px;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.form-submit:hover {
  background-color: var(--brand-deep);
}

.form-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-band {
    min-height: 0;
    padding: 70px 0;
  }

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

  .discipline-row {
    grid-template-columns: 72px 1fr;
  }

  .discipline-tag {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .nav-group {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 12px 28px 20px;
  }

  .nav-group.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .brand {
    margin-right: auto;
  }

  .section {
    padding: 68px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
