:root {
  color-scheme: light;
  --ink: #07111f;
  --muted: #5a6578;
  --navy: #071328;
  --blue: #0d57c7;
  --blue-dark: #06255f;
  --gold: #f7c948;
  --gold-deep: #ce8b18;
  --red: #d80d18;
  --cream: #fff7dd;
  --white: #ffffff;
  --line: rgba(7, 17, 31, 0.14);
  --shadow: 0 18px 48px rgba(3, 13, 33, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  color: var(--white);
  background: rgba(4, 10, 24, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  font-size: 0.88rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  color: var(--white);
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(216, 13, 24, 0.28);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  padding: 112px clamp(18px, 5vw, 72px) clamp(38px, 7vh, 72px);
  overflow: hidden;
  color: var(--white);
  background-image: url("assets/facebook-999-2026.png");
  background-position: center right;
  background-size: cover;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 8, 20, 0.94) 0%, rgba(3, 8, 20, 0.72) 36%, rgba(3, 8, 20, 0.18) 72%),
    linear-gradient(180deg, rgba(3, 8, 20, 0.34) 0%, rgba(3, 8, 20, 0.08) 54%, rgba(3, 8, 20, 0.86) 100%);
}

.hero-content {
  width: min(650px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(0.88rem, 1.1vw, 1rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro-grid h2,
.audience-grid h2,
.download-panel h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.45rem, 5.7vw, 5.15rem);
  font-weight: 1000;
  text-wrap: balance;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.46);
}

.hero-copy {
  width: min(600px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.65vw, 1.32rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.copy-button:focus-visible,
.header-link:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.9);
  outline-offset: 3px;
}

.button-primary {
  color: #170c01;
  background: linear-gradient(180deg, #ffe777 0%, var(--gold) 48%, #efaa24 100%);
  box-shadow: 0 14px 30px rgba(247, 201, 72, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 40px rgba(247, 201, 72, 0.36);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.button-large {
  width: min(420px, 100%);
  margin-top: 22px;
}

.limited-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-section {
  background: var(--cream);
  border-bottom: 1px solid rgba(206, 139, 24, 0.24);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 7vw, 82px) 0;
}

.intro-grid h2,
.audience-grid h2,
.download-panel h2,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 1000;
}

.intro-grid p:not(.section-kicker),
.audience-list,
.download-copy {
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.78;
}

.features-section {
  padding: clamp(50px, 8vw, 94px) 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 30px;
}

.section-heading .section-kicker,
.intro-section .section-kicker,
.audience-section .section-kicker,
.download-section .section-kicker {
  color: var(--red);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 282px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(4, 20, 48, 0.08);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 1000;
}

.feature-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.42rem);
  line-height: 1.26;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.audience-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(216, 13, 24, 0.86), rgba(216, 13, 24, 0) 42%),
    linear-gradient(135deg, var(--navy) 0%, var(--blue-dark) 62%, #071328 100%);
}

.audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
  padding: clamp(50px, 8vw, 94px) 0;
}

.audience-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.88);
}

.audience-list li {
  position: relative;
  min-height: 56px;
  padding: 14px 16px 14px 52px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.audience-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 16px;
  height: 10px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

.download-section {
  padding: clamp(54px, 8vw, 100px) 18px;
  background: var(--cream);
}

.download-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(206, 139, 24, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-copy {
  margin: 18px auto 0;
  width: min(560px, 100%);
}

.password-box {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(520px, 100%);
  min-height: 76px;
  margin: 26px auto 0;
  padding: 14px;
  text-align: left;
  background: #f7fbff;
  border: 1px solid rgba(13, 87, 199, 0.24);
  border-radius: 8px;
}

.password-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.password-box strong {
  color: var(--blue-dark);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.copy-button {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.copy-status {
  min-height: 28px;
  margin: 10px 0 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.noscript-note {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  padding: 26px 18px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy);
  font-weight: 800;
}

@media (max-width: 940px) {
  .hero {
    min-height: 86svh;
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(3, 8, 20, 0.92) 0%, rgba(3, 8, 20, 0.62) 58%, rgba(3, 8, 20, 0.26) 100%),
      linear-gradient(180deg, rgba(3, 8, 20, 0.24) 0%, rgba(3, 8, 20, 0.12) 48%, rgba(3, 8, 20, 0.9) 100%);
  }

  .intro-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-link {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .hero {
    min-height: 84svh;
    padding: 90px 18px 32px;
    background-position: 70% center;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .feature-card {
    min-height: auto;
  }

  .download-panel {
    padding: 28px 18px;
  }

  .password-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .copy-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
