/* Ajoi hero — Linear/Vercel-level dark premium · centered logo · EN + /zh */

:root {
  --bg: #07090c;
  --bg-elev: #0b0f14;
  --text: #e8eef5;
  --muted: rgba(232, 238, 245, 0.62);
  --faint: rgba(232, 238, 245, 0.38);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #8b9cff;
  --accent-soft: rgba(139, 156, 255, 0.16);
  --cta: #e8eef5;
  --cta-ink: #0a0c10;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Mesh backdrop */
.mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  animation: drift 36s ease-in-out infinite alternate;
}

.blob-a {
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, #3a4a8c 0%, transparent 70%);
}

.blob-b {
  bottom: -18%;
  right: -10%;
  background: radial-gradient(circle, #2a3d55 0%, transparent 70%);
  animation-duration: 48s;
  animation-delay: -8s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 6%) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 12, 0.72);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  min-height: 32px;
}

.nav-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

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

.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-current {
  color: var(--text);
}

.lang-sep {
  color: var(--faint);
  user-select: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Layout */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero — big centered mark */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.25rem;
  min-height: calc(78vh - 72px);
  justify-content: center;
  padding: 4rem 0 3.5rem;
}

.hero-brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-logo {
  width: min(78vw, 420px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.45));
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 40rem;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 18ch;
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.trust-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Services */
.services {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 1.45rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.service-tag {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.service-mark {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  min-height: 2.25rem;
}

.service-mark img {
  width: auto;
  max-width: 180px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.service-offer {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.service-price {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.service-price strong {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-cta {
  align-self: flex-start;
  font-size: 0.82rem;
}

/* Contact */
.contact {
  padding: 3.5rem 0 1rem;
  border-top: 1px solid var(--line);
}

.contact-inner {
  max-width: 36rem;
}

.contact h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.contact .section-sub {
  margin-bottom: 1.35rem;
}

/* Proof */
.proof {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.proof blockquote {
  margin: 0 0 1.75rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  max-width: 28ch;
}

.proof cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 238, 245, 0.28);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.feature-card {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.foot {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

.foot-mail {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.foot-mail:hover {
  color: var(--text);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 2.5rem;
    gap: 1.75rem;
  }

  .hero-logo {
    width: min(86vw, 340px);
  }

  .hero h1 {
    max-width: none;
  }

  .nav-links {
    display: none;
  }

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

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

@media (max-width: 560px) {
  .nav-actions .btn-ghost {
    display: none;
  }

  .hero-logo {
    width: min(88vw, 300px);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .nav-logo {
    height: 24px;
    max-width: 100px;
  }
}
