/* FZ Developers / FaithMobile — static landing
   Tokens mirror the Miaoda source app for easy iteration. */

:root {
  --bg: #0f0d17;
  --fg: #f7f6f2;
  --muted: #a6a4b7;
  --card: #1a1825;
  --border: #333040;
  --primary: #f6ae31;
  --primary-fg: #141221;
  --secondary: #282636;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --container: 80rem;
  --header-h: 4rem;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 900;
}

.brand__mark--sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.75rem;
}

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

.brand__name {
  font-size: 0.875rem;
  font-weight: 700;
}

.brand__tag {
  font-size: 0.6875rem;
  color: var(--muted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--fg);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.nav-backdrop {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(0, 0, 0, 0.45);
}

.nav-backdrop.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: auto;
    width: min(18rem, 85vw);
    height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 60;
  }

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

  .site-nav .btn {
    margin-top: 0.5rem;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .nav-toggle,
  .nav-backdrop {
    display: none !important;
  }

  .site-nav {
    display: flex;
  }

  .site-nav .btn {
    margin-left: 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn--sm {
  min-height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.75rem;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: color-mix(in srgb, var(--primary) 70%, #000);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

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

.btn--ghost:hover {
  background: color-mix(in srgb, var(--card) 80%, transparent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--header-h);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 70%, transparent),
    color-mix(in srgb, var(--bg) 60%, transparent),
    var(--bg)
  );
}

.hero__content {
  position: relative;
  /* max-width: 48rem; */
  padding-block: 6rem;
}

@media (min-width: 768px) {
  .hero__content {
    padding-block: 9rem;
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero__headline {
  margin: 1rem 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero__lead {
  margin: 1.75rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Sections */
.section {
  padding-block: 5rem;
  scroll-margin-top: var(--header-h);
}

@media (min-width: 768px) {
  .section {
    padding-block: 7rem;
  }
}

.section--tint {
  background: color-mix(in srgb, var(--secondary) 40%, transparent);
}

.section__intro {
  max-width: 48rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__subtitle {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--fg) 90%, transparent);
}

.section__body {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* About product cards */
.product-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .product-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: var(--card);
  transition: border-color 0.15s ease;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.product-card__arrow {
  color: var(--muted);
  transition: color 0.15s ease;
}

.product-card:hover .product-card__arrow {
  color: var(--primary);
}

.product-card__title {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.product-card__body {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  flex-shrink: 0;
}

.icon-box--sm {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
}

/* Split layouts */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split__copy--first {
    order: 1;
  }

  .split__media--second {
    order: 2;
  }
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  margin: 0;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.media-frame--landscape {
  aspect-ratio: 4 / 3;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 50%, transparent), transparent 55%);
  pointer-events: none;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: var(--card);
}

.feature__title {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.feature__body {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.quote {
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--primary);
}

.quote__lead {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

.quote__body {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.philosophy {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.philosophy__title {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.philosophy__body {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

.value-row {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .value-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value__title {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.value__body {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Contact */
.contact-panel {
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 10%, transparent),
    var(--card) 45%,
    var(--card)
  );
}

@media (min-width: 768px) {
  .contact-panel {
    padding: 4rem;
  }
}

.contact-panel__lead {
  max-width: 36rem;
  margin-inline: auto;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--primary);
}

.email-chip a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-chip a:hover {
  color: var(--primary);
}

.contact-panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
  padding-block: 3rem;
}

.site-footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__row {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.site-footer__nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-footer__nav a:hover {
  color: var(--fg);
}

.site-footer__copy {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}
