/**
 * Landing — dshost.vn SaaS layout (DST brand)
 */

body.ds-landing-root,
.ds-landing-root {
  margin: 0;
  background-color: var(--ds-bg) !important;
  color: var(--ds-ink);
}

.ds-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ds-bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ds-line-dim);
}

.ds-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ds-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.ds-logo--nav {
  height: 2.1rem;
  max-width: min(168px, 40vw);
}

@media (max-width: 520px) {
  .ds-logo--nav {
    height: 1.85rem;
    max-width: min(132px, 38vw);
  }
}

.ds-logo--hero {
  height: clamp(3.25rem, 10vw, 5.5rem);
  max-width: min(380px, 88vw);
}

.ds-logo--footer {
  height: 1.85rem;
  opacity: 0.92;
}

/* —— Hero SaaS: brand + product shot —— */
.ds-hero--saas {
  position: relative;
  padding: clamp(2.75rem, 7vw, 4.75rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--ds-line-dim);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(232, 184, 74, 0.07), transparent 60%),
    var(--ds-bg);
}

.ds-hero__saas {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: center;
}

@media (min-width: 960px) {
  .ds-hero__saas {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 2.75rem;
  }
}

.ds-hero__copy {
  max-width: 34rem;
}

.ds-hero__brand {
  margin: 0.4rem 0 0;
  line-height: 0;
}

.ds-hero__headline {
  margin: 1.1rem 0 0;
  font-family: var(--ds-font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ds-gold);
  letter-spacing: 0.01em;
}

.ds-hero__lead {
  margin: 0.85rem 0 0;
  color: var(--ds-ink-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 32rem;
}

.ds-hero__cta {
  margin-top: 1.6rem;
  gap: 0.75rem;
}

.ds-hero__product {
  min-width: 0;
}

.ds-hero__product-frame {
  border: 2px solid var(--ds-line-dim);
  border-radius: var(--ds-radius);
  background: var(--ds-bg-sunken);
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(232, 184, 74, 0.08);
  aspect-ratio: 16 / 10;
  animation: ds-hero-rise 0.7s ease both;
}

.ds-hero__product-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

@keyframes ds-hero-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-hero__product-frame {
    animation: none;
  }
}

/* —— Video library —— */
.ds-video-lib {
  background: var(--ds-bg);
  border-bottom: 1px solid var(--ds-line-dim);
}

.ds-video-lib__head {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.ds-video-lib__head h2 {
  margin-bottom: 0;
}

.ds-video-lib__frame {
  max-width: 52rem;
  margin-inline: auto;
  padding: 0.7rem;
  background: var(--ds-bg-sunken);
}

.ds-video-lib__player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0908;
}

.ds-video-lib__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* —— Value strip —— */
.ds-value {
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--ds-line-dim);
  background: var(--ds-bg-raised);
}

.ds-value__grid {
  display: grid;
  gap: 1.25rem 1.75rem;
}

@media (min-width: 720px) {
  .ds-value__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ds-value__item {
  min-width: 0;
}

.ds-value__title {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: 1.45rem;
  color: var(--ds-gold);
  font-weight: 600;
}

.ds-value__text {
  margin: 0.35rem 0 0;
  color: var(--ds-ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* —— Panel bento —— */
.ds-panel-showcase {
  background: var(--ds-bg);
}

.ds-panel-showcase__head {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ds-panel-showcase__head h2 {
  margin-bottom: 0.45rem;
}

.ds-panel-bento {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .ds-panel-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .ds-panel-shot--featured {
    grid-column: 1 / -1;
  }
}

.ds-panel-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ds-panel-shot__frame {
  border: 2px solid var(--ds-line-dim);
  border-radius: var(--ds-radius);
  background: #0a0908;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-panel-shot--featured .ds-panel-shot__frame {
  aspect-ratio: 16 / 9;
}

.ds-panel-shot:hover .ds-panel-shot__frame {
  border-color: color-mix(in srgb, var(--ds-gold) 55%, var(--ds-line-dim));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ds-panel-shot__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.ds-panel-shot__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-inline: 0.15rem;
}

.ds-panel-shot__meta strong {
  font-family: var(--ds-font-display);
  font-size: 1.2rem;
  color: var(--ds-ink);
  font-weight: 600;
}

.ds-panel-shot__meta span {
  font-size: 0.9rem;
  color: var(--ds-ink-muted);
}

/* —— Why DSHOST —— */
.ds-why {
  background: var(--ds-bg-raised);
  border-bottom: 1px solid var(--ds-line-dim);
}

.ds-why__head {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ds-why__head h2 {
  margin-bottom: 0.45rem;
}

.ds-why__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ds-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .ds-why__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

.ds-why__item {
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--ds-bg);
  border: 2px solid var(--ds-line-dim);
  border-radius: var(--ds-radius);
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ds-why__item:hover {
  border-color: color-mix(in srgb, var(--ds-gold) 45%, var(--ds-line-dim));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.ds-why__title {
  margin: 0;
  font-family: var(--ds-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ds-gold);
  line-height: 1.25;
}

.ds-why__text {
  margin: 0.45rem 0 0;
  color: var(--ds-ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* —— Support pledge —— */
.ds-pledge {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(232, 184, 74, 0.08), transparent 62%),
    var(--ds-bg);
  border-bottom: 1px solid var(--ds-line-dim);
}

.ds-pledge__frame {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 4.5vw, 2.6rem) clamp(1.15rem, 3vw, 2rem);
  text-align: center;
  background: var(--ds-bg-sunken);
}

.ds-pledge__head {
  margin-bottom: 0;
  text-align: center;
  max-width: none;
}

.ds-pledge__head h2 {
  margin-bottom: 0.45rem;
}

.ds-pledge__head p {
  margin-inline: auto;
}

.ds-pledge__actions {
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

/* —— FAQ —— */
.ds-faq {
  background: var(--ds-bg-raised);
  border-bottom: 1px solid var(--ds-line-dim);
}

.ds-faq__layout {
  max-width: 44rem;
}

.ds-faq__head {
  text-align: center;
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
}

.ds-faq__head h2 {
  margin-bottom: 0.45rem;
}

.ds-faq__accordion .ds-accordion__trigger {
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: var(--ds-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 1rem 1.1rem;
}

.ds-faq__accordion .ds-accordion__panel {
  padding: 0 1.1rem 1rem;
  line-height: 1.55;
}

/* —— Pricing —— */
.ds-plans {
  background: var(--ds-bg);
  border-block: 1px solid var(--ds-line-dim);
}

.ds-plans__head {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
}

.ds-plans__head h2 {
  margin-bottom: 0.45rem;
}

.ds-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: 1.85rem;
}

/* —— Final CTA —— */
.ds-final-cta .ds-cta-band {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.75rem) 1.5rem;
  background:
    linear-gradient(180deg, rgba(232, 184, 74, 0.09), transparent 55%),
    var(--ds-surface);
  border: 2px solid var(--ds-line-dim);
  border-radius: var(--ds-radius);
}

.ds-cta-band h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.5rem);
  color: var(--ds-gold);
  margin: 0 0 0.65rem;
}

.ds-cta-band p {
  margin: 0 auto 1.35rem;
  max-width: 26rem;
  color: var(--ds-ink-muted);
}

.ds-cta-band__actions {
  justify-content: center;
  gap: 0.75rem;
}

/* —— Footer —— */
.ds-site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--ds-line-dim);
  color: var(--ds-ink-faint);
}

.ds-site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ds-site-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.ds-site-footer__tag {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-ink-faint);
}

.ds-site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.ds-site-footer__mail {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ds-ink-muted);
  text-decoration: none;
}

.ds-site-footer__mail:hover {
  color: var(--ds-gold);
}

.ds-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ds-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 2px solid var(--ds-line-dim);
  border-radius: 2px;
  color: var(--ds-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ds-social__link svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.ds-social__link:hover {
  color: var(--ds-gold);
  border-color: var(--ds-gold);
}

.ds-social__link--soon {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
}

/* —— Zalo chat (một icon góc phải) —— */
.ds-zalo {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  line-height: 0;
  border-radius: 22%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 6px 18px rgba(0, 40, 120, 0.38);
  text-decoration: none;
}

.ds-zalo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ds-zalo:hover {
  filter: brightness(1.06);
}

@media (max-width: 520px) {
  .ds-zalo {
    width: 3.15rem;
    height: 3.15rem;
  }
}
