/* Bug Othello — landing page styles
   Palette lấy từ sprite gốc trong Assets/Sprite (bg, board, chesses, logo). */

@font-face {
  font-family: "Action Man";
  src: url("../fonts/Action_Man_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #29aee4;
  --sky-deep: #1b7fb8;
  --leaf: #7cc531;
  --leaf-deep: #4e8f1e;
  --grass: #9bd33c;
  --sun: #ffc93c;
  --orange: #f7941d;
  --berry: #e23b2e;
  --beetle: #3fae49;
  --ink: #23301a;
  --ink-soft: #5a6b4d;
  --cream: #fff9ee;
  --card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(35, 48, 26, 0.08);
  --shadow-md: 0 10px 30px rgba(35, 48, 26, 0.12);
  --shadow-lg: 0 24px 60px rgba(35, 48, 26, 0.18);
  --radius: 20px;
  --radius-lg: 32px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--sky-deep);
}

h1,
h2,
h3,
.display {
  font-family: "Action Man", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 9vw, 104px) 0;
}

.section__lead {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35, 48, 26, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Action Man", sans-serif;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--leaf-deep);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky) url("../img/bg.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 174, 228, 0.35) 0%, rgba(41, 174, 228, 0.75) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: clamp(48px, 8vw, 96px) 0;
}

.hero__logo {
  width: clamp(180px, 30vw, 260px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.hero__title {
  color: #fff;
  text-shadow: 0 4px 0 rgba(27, 127, 184, 0.55);
}

.hero__tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: #fff;
  max-width: 30ch;
  text-shadow: 0 2px 6px rgba(27, 127, 184, 0.4);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
}

.badge--muted {
  background: rgba(255, 255, 255, 0.75);
  color: var(--sky-deep);
}

.hero__shot {
  justify-self: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: "Action Man", sans-serif;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
  background: var(--leaf);
  box-shadow: 0 6px 0 var(--leaf-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--leaf-deep);
}

.btn--sun {
  background: var(--sun);
  box-shadow: 0 6px 0 var(--orange);
  color: var(--ink);
}

.btn--sun:hover {
  box-shadow: 0 4px 0 var(--orange);
}

/* ---------- Phone frame (screenshot slots) ---------- */

.phone {
  width: 260px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  border: 10px solid #2b3a24;
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.phone__screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone--placeholder .phone__screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: repeating-linear-gradient(
      -45deg,
      rgba(124, 197, 49, 0.08) 0 14px,
      rgba(124, 197, 49, 0.16) 14px 28px
    ),
    #f4f8ec;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.phone--placeholder .phone__screen span {
  font-size: 2rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--grass);
  color: #fff;
  font-family: "Action Man", sans-serif;
  margin-bottom: 14px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- About band ---------- */

.band {
  background: linear-gradient(180deg, #eef7e2, #e2f0d0);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.about__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__board {
  width: min(100%, 340px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about__pieces {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 62%;
  filter: drop-shadow(0 12px 24px rgba(35, 48, 26, 0.25));
}

.about h2 {
  text-align: left;
}

.about p {
  color: var(--ink-soft);
}

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rule-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--ink);
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--berry);
}

.rule-list li:nth-child(even)::before {
  background: var(--beetle);
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--grass);
}

.feature:nth-child(3n + 2) {
  border-top-color: var(--sun);
}

.feature:nth-child(3n) {
  border-top-color: var(--sky);
}

.feature__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Screenshots ---------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- Legal page ---------- */

.legal {
  padding: clamp(40px, 7vw, 72px) 0 clamp(56px, 9vw, 96px);
}

.legal__body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}

.legal h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.35rem;
  text-align: left;
  margin-top: 40px;
}

.legal__meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.callout {
  background: #eef7e2;
  border-left: 5px solid var(--leaf);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}

.callout p:last-child {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__inner,
  .about {
    grid-template-columns: 1fr;
  }

  .hero__content {
    text-align: center;
  }

  .hero__tagline {
    margin-inline: auto;
  }

  .hero__badges {
    justify-content: center;
  }

  .hero__logo {
    margin-inline: auto;
  }

  .about h2 {
    text-align: center;
  }

  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    display: none;
  }

  .steps,
  .features {
    grid-template-columns: 1fr;
  }

  .phone {
    width: 220px;
  }
}
