:root {
  --ink: #071126;
  --navy: #071a53;
  --blue: #0b4ee7;
  --blue-deep: #041448;
  --red: #ed1c24;
  --red-deep: #b90f18;
  --yellow: #ffd319;
  --gold: #f6a800;
  --green: #23c45e;
  --white: #ffffff;
  --soft: #eaf2ff;
  --muted: #b8caee;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  font-family: "Noto Sans Khmer", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--blue-deep);
}

img,
svg {
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 6%;
  background: rgba(3, 13, 49, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--blue-deep);
  background: linear-gradient(135deg, var(--yellow), var(--gold));
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(255, 211, 25, 0.28);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.top-nav > a {
  color: var(--soft);
}

.icon-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.icon-button svg,
.small-button svg,
.button svg,
.signal-list svg,
.audience-list svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 8, 32, 0.95), rgba(5, 22, 73, 0.76) 48%, rgba(3, 14, 45, 0.38)),
    url("assets/facebook-content-guide-khmer.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(0deg, var(--blue-deep), rgba(4, 20, 72, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 88%);
  margin: 0 auto;
  padding: 84px 0 112px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 7px 14px;
  color: var(--ink);
  background: linear-gradient(135deg, var(--yellow), var(--gold));
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 900;
}

.eyebrow.dark {
  color: var(--navy);
  background: #dbeafe;
  border: 1px solid #8bb7ff;
  box-shadow: 0 8px 20px rgba(11, 78, 231, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 3.35rem;
  line-height: 1.14;
  font-weight: 900;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
}

h2 {
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.28;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 900;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.9;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.36);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  max-width: 100%;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(180deg, #ff383f, var(--red-deep));
  border-color: rgba(255, 255, 255, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--yellow), var(--gold));
}

.download-note {
  max-width: 620px;
  margin: 18px 0 0;
  color: #ffe777;
  font-weight: 800;
  line-height: 1.7;
}

.section,
.download-section {
  padding: 72px 0;
}

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

.problem-section,
.audience-section {
  color: var(--ink);
  background: var(--white);
}

.problem-layout,
.audience-layout,
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 36px;
  align-items: center;
}

.problem-layout p,
.audience-layout p {
  color: #34405b;
  line-height: 1.85;
}

.signal-list,
.audience-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li,
.audience-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px;
  background: #f4f8ff;
  border: 1px solid #dce8ff;
  border-radius: 8px;
  color: #101c3c;
  font-weight: 700;
  line-height: 1.7;
}

.signal-list svg {
  color: var(--green);
  margin-top: 3px;
}

.benefits-section {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(255, 211, 25, 0.14), transparent 34%),
    linear-gradient(180deg, var(--blue-deep), #061b61);
}

.benefits-section h2 {
  max-width: 760px;
}

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

.benefit-card {
  position: relative;
  min-height: 286px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.benefit-card svg {
  width: 34px;
  height: 34px;
  margin: 18px 0;
  color: var(--yellow);
}

.benefit-card p {
  color: var(--muted);
  line-height: 1.8;
}

.benefit-number {
  color: var(--yellow);
  font-size: 0.94rem;
  font-weight: 900;
}

.audience-list svg {
  color: var(--blue);
  margin-top: 4px;
}

.download-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.16), transparent 32%),
    linear-gradient(180deg, #052173, #030b28);
}

.download-copy p {
  color: var(--soft);
  line-height: 1.85;
}

.password-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 20px 0;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.password-box span {
  font-weight: 800;
}

.password-box strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 46px;
  padding: 6px 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 900;
}

.small-button {
  min-height: 46px;
}

.fallback-link {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.fallback-link a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fallback-link .inline-download {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-left: 6px;
  padding: 5px 12px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.download-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.download-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 6%;
  color: var(--muted);
  background: #02091e;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(380px, calc(100% - 36px));
  padding: 14px 16px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  font-weight: 900;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .top-nav a {
    display: none;
  }

  .hero {
    min-height: 76svh;
    background:
      linear-gradient(180deg, rgba(2, 8, 32, 0.9), rgba(5, 22, 73, 0.76) 58%, rgba(3, 14, 45, 0.72)),
      url("assets/facebook-content-guide-khmer.png") center / cover no-repeat;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .problem-layout,
  .audience-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

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

  .download-visual {
    transform: none;
  }
}

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

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .icon-button {
    padding: 8px 10px;
  }

  .hero-inner,
  .section-inner {
    width: min(92%, 520px);
  }

  .hero-inner {
    padding: 54px 0 82px;
  }

  h1 {
    font-size: 1.82rem;
  }

  h2 {
    font-size: 1.38rem;
  }

  .hero-copy,
  .download-copy p,
  .problem-layout p,
  .audience-layout p {
    font-size: 0.95rem;
  }

  .button {
    width: 100%;
    min-height: 56px;
    padding: 12px 16px;
  }

  .section,
  .download-section {
    padding: 54px 0;
  }

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

  .benefit-card {
    min-height: 0;
  }

  .password-box {
    width: 100%;
  }

  .password-box strong {
    flex: 1 1 100px;
  }

  .small-button {
    flex: 1 1 120px;
  }
}
