/* ============================================================
   HK Yaya Limited — homepage stylesheet
   Dark theme · fuchsia accent · chain-link navigation
   ============================================================ */

:root {
  --bg: #100D12;
  --bg-2: #17111C;
  --bg-3: #1E1626;
  --bg-4: #251B30;
  --text: #F3EFF4;
  --muted: #B7A8C1;
  --muted-2: #8E7F9B;
  --accent: #D946EF;
  --accent-soft: #E879F9;
  --accent-ink: #1B0413;
  --purple: #7C3AED;
  --purple-soft: #A78BFA;
  --line: #2B2134;
  --line-2: #382A46;
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent-soft);
  text-decoration: none;
}

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

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

.section {
  padding: 96px 0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ------------------------------------------------------------
   Chain-link navigation
   ------------------------------------------------------------ */
.link-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: var(--bg);
  border-bottom: 2px solid var(--accent);
}

.link-nav-inner {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.link-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  flex-shrink: 0;
}

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

.chain-mark {
  position: relative;
  width: 24px;
  height: 42px;
  border: 3px solid var(--accent);
  border-radius: 12px;
  flex-shrink: 0;
}

.chain-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -3px;
  width: 24px;
  height: 8px;
  background-color: var(--bg);
  transform: translateY(-50%);
}

.brand-word {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--text);
}

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

.link-nav-links {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0 auto;
}

.link-nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
}

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

.link-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.link-nav-links a:hover::after {
  width: 100%;
}

.link-nav-cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.link-nav-cta:hover {
  background-color: var(--accent-soft);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  width: 26px;
  height: 3px;
  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(8px) rotate(45deg);
}

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

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

/* ------------------------------------------------------------
   Conveyor hero
   ------------------------------------------------------------ */
.conveyor-hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 82% 22%, #2A1038 0%, rgba(42, 16, 56, 0) 60%),
    var(--bg);
  overflow: hidden;
  padding: 108px 0 96px;
}

.hero-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

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

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

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent-soft);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 10px;
  transition: transform 0.2s 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-soft);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  transform: translateY(-2px);
}

/* Conveyor visual */
.conveyor {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 360px;
  margin: 0 auto;
}

.conveyor-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 180px;
  background: var(--purple);
  filter: blur(90px);
  border-radius: 50%;
}

.belt {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 58%;
  height: 26px;
  background: linear-gradient(180deg, #2C1738 0%, #1B0E24 100%);
  border-radius: 13px;
  box-shadow: 0 18px 60px 0 rgba(217, 70, 239, 0.28);
}

.belt::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 4px;
  background: #3A1F4E;
  border-radius: 2px;
  transform: translateY(-50%);
}

.crate {
  position: absolute;
  border-radius: 6px;
  display: block;
}

.crate-a {
  width: 74px;
  height: 66px;
  background: var(--accent);
  bottom: 30px;
  left: 16%;
  animation: bob 3.4s ease-in-out infinite;
}

.crate-a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(27, 4, 19, 0.35) 6px 9px);
}

.crate-b {
  width: 62px;
  height: 52px;
  background: var(--purple);
  bottom: 30px;
  left: 44%;
  animation: bob 4.1s ease-in-out infinite 0.4s;
}

.crate-b::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  background: var(--purple-soft);
  transform: translateY(-50%);
}

.crate-c {
  width: 56px;
  height: 60px;
  background: #A21CAF;
  bottom: 30px;
  left: 68%;
  animation: bob 3.8s ease-in-out infinite 0.8s;
}

.crate-c::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 3px;
  background: #E879F9;
  transform: translateX(-50%);
}

.roller {
  position: absolute;
  bottom: 12%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #33203F;
  border: 3px solid var(--purple-soft);
}

.roller.r1 { left: 16%; }
.roller.r2 { left: 38%; }
.roller.r3 { left: 60%; }
.roller.r4 { left: 82%; }

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

/* ------------------------------------------------------------
   Statement row
   ------------------------------------------------------------ */
.statement-row {
  background-color: var(--purple);
  padding: 84px 0;
}

.statement-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  text-align: center;
}

.statement-kicker {
  color: var(--accent-soft);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
}

.statement-text {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  max-width: 900px;
  margin: 0 auto;
}

.statement-text em {
  font-style: normal;
  color: #FBD5FF;
}

/* ------------------------------------------------------------
   Stats
   ------------------------------------------------------------ */
.stats-section {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 72px 0;
}

.stat {
  text-align: center;
  padding: 8px;
}

.stat-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Services — horizontal scroll
   ------------------------------------------------------------ */
.services-section {
  background-color: var(--bg-2);
}

.section-head {
  width: min(1200px, 92%);
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  max-width: 440px;
}

.scroll-hint {
  color: var(--muted-2);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.services-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px max(4%, calc((100vw - 1200px) / 2)) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--purple) var(--bg-3);
}

.service-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background-color: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.service-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--bg-4);
  border: 1px solid var(--line-2);
  margin: 18px 0 20px;
  position: relative;
}

.service-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translate(-50%, -50%);
}

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

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

/* ------------------------------------------------------------
   Process — numbered list
   ------------------------------------------------------------ */
.process-section {
  background-color: var(--bg);
}

.process-list {
  width: min(1200px, 92%);
  margin: 0 auto;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 46px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--purple));
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 26px 0;
}

.step-num {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-3);
  border: 2px solid var(--line-2);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

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

.process-step .step-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-soft);
  margin-bottom: 8px;
}

/* ------------------------------------------------------------
   Comparison table
   ------------------------------------------------------------ */
.compare-section {
  background-color: var(--bg-2);
}

.compare-wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background-color: var(--bg-3);
}

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

.compare-table thead th {
  background-color: var(--bg-4);
  color: var(--text);
  font-size: 1rem;
  border-bottom: 2px solid var(--accent);
}

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

.compare-table td.dim {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.compare-table td {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.plan-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Split CTA band
   ------------------------------------------------------------ */
.cta-band {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
}

.cta-band-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 84px 0;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-band p {
  color: var(--muted);
  max-width: 520px;
}

.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: end;
  min-width: 240px;
}

.cta-band-actions .btn {
  width: 100%;
}

.cta-band-actions .btn-light {
  background-color: var(--text);
  color: var(--bg);
}

.cta-band-actions .btn-light:hover {
  background-color: #FFFFFF;
  color: var(--bg);
}

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

.contact-grid {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-item .dot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-4);
  border: 1px solid var(--line-2);
  flex-shrink: 0;
  position: relative;
}

.contact-item .dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--accent);
  transform: translate(-50%, -50%);
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent-soft);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

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

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

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

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

.form-note {
  color: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
  display: none;
}

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

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--bg);
  border-top: 2px solid var(--accent);
  padding: 56px 0 40px;
}

.footer-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}

.footer-col p,
.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 10px;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text);
}

.footer-brand .chain-mark {
  width: 18px;
  height: 32px;
  border-width: 2px;
  border-radius: 9px;
}

.footer-bottom {
  width: min(1200px, 92%);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--muted-2);
  font-size: 0.85rem;
}

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

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

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

  .conveyor {
    height: 300px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cta-band-inner {
    grid-template-columns: 1fr;
  }

  .cta-band-actions {
    justify-self: start;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .cta-band-actions .btn {
    width: auto;
  }

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

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

@media (max-width: 780px) {
  .link-nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--bg);
    border-bottom: 2px solid var(--accent);
    padding: 8px 0 16px;
    display: none;
    margin: 0;
  }

  .link-nav-links.open {
    display: flex;
  }

  .link-nav-links li {
    width: 100%;
  }

  .link-nav-links a {
    display: block;
    padding: 14px 24px;
    color: var(--text);
  }

  .link-nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .process-list::before {
    left: 28px;
  }

  .process-step {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }

  .step-num {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
  }

  .section {
    padding: 68px 0;
  }
}

@media (max-width: 560px) {
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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