/* DoQui marketing — brand tokens aligned with frontend auth (register.css) */
:root {
  --dq-blue: #5a54e6;
  --dq-blue-dark: #4842d4;
  --dq-blue-deep: #3730a3;
  --dq-blue-hero: #2a2680;
  --dq-soft: #f5f4fc;
  --dq-ink: #1f2937;
  --dq-muted: #6b7280;
  --dq-white: #ffffff;
  --dq-font: "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--dq-font);
  color: var(--dq-ink);
  background: var(--dq-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--dq-blue);
  color: var(--dq-white);
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: #e4e1f6;
  box-shadow: 0 4px 20px rgba(42, 38, 128, 0.08);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--dq-blue-deep);
  flex-shrink: 0;
}

.brand__logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.brand__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
  margin-left: auto;
  margin-right: 0.75rem;
  gap: 1.25rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dq-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--dq-blue-deep);
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  border-radius: 0.5rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--dq-blue-hero);
  outline-offset: 3px;
}

.btn--primary {
  color: var(--dq-white);
  background: linear-gradient(180deg, #6d67eb 0%, #5a54e6 55%, #4842d4 100%);
  box-shadow: 0 4px 14px rgba(90, 84, 230, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(90, 84, 230, 0.42);
}

.btn--light {
  color: var(--dq-blue-deep);
  background: var(--dq-white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn--light:hover {
  filter: brightness(1.03);
}

.btn--compact {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  margin-left: auto;
}

@media (min-width: 768px) {
  .btn--compact {
    margin-left: 0;
  }
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.0625rem;
  min-width: 10rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--dq-white);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      115deg,
      rgba(42, 38, 128, 0.92) 0%,
      rgba(58, 52, 156, 0.78) 42%,
      rgba(90, 84, 230, 0.55) 100%
    ),
    linear-gradient(180deg, transparent 40%, rgba(42, 38, 128, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) 1.25rem;
  width: 100%;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero__brand img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28));
}

.hero__brand span {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero__lead {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

.hero__support {
  margin: 0.5rem 0 1.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
}

/* ── Sections ── */
.section {
  padding: clamp(3.5rem, 8vh, 5.5rem) 1.25rem;
}

.section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 40rem;
  text-align: center;
}

.section--split .section__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .section--split .section__inner {
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
  }

  .section--split-reverse .section__inner {
    grid-template-columns: 1.15fr 1fr;
  }

  .section--split-reverse .section__copy {
    order: 2;
  }

  .section--split-reverse .section__figure {
    order: 1;
  }
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dq-blue);
}

.eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.75);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dq-blue-deep);
  line-height: 1.25;
}

.section__text {
  margin: 0.875rem 0 0;
  font-size: 1.0625rem;
  color: var(--dq-muted);
  max-width: 32rem;
}

.section__text--center {
  margin-left: auto;
  margin-right: auto;
}

.section__text--on-dark {
  color: rgba(255, 255, 255, 0.9);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

.section__figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(42, 38, 128, 0.12);
}

.section__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.section__figure--inset {
  margin-top: 2.25rem;
}

.section__figure--inset img {
  aspect-ratio: 16 / 10;
}

.section--soft {
  background: var(--dq-soft);
}

.section--soft h2 {
  color: var(--dq-blue-deep);
}

/* Feature list (learn) */
.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
  text-align: left;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--dq-white);
  border: 1px solid #ddd9f4;
  border-radius: 0.75rem;
  font-size: 0.975rem;
  color: var(--dq-ink);
}

.feature-list strong {
  color: var(--dq-blue-deep);
  font-weight: 700;
}

.feature-list__mark {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: 0.45rem;
  border-radius: 9999px;
  background: var(--dq-blue);
  box-shadow: 0 0 0 4px rgba(90, 84, 230, 0.15);
}

/* Free CTA band */
.section--cta {
  background:
    linear-gradient(165deg, #2a2680 0%, #3a349c 38%, #4842d4 72%, #5a54e6 100%);
  color: var(--dq-white);
  text-align: center;
}

.section--cta h2 {
  color: var(--dq-white);
}

.cta-secondary {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-secondary a {
  color: var(--dq-white);
  font-weight: 700;
  text-underline-offset: 3px;
}

.cta-secondary a:hover {
  text-decoration: underline;
}

/* ── Footer ── */
.site-footer {
  padding: 1.5rem 1.25rem;
  background: var(--dq-white);
  border-top: 1px solid #e4e1f6;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.site-footer__copy {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.8125rem;
  color: var(--dq-muted);
}

.brand--footer .brand__name {
  font-size: 1.0625rem;
}

/* ── Reveal motion ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
