:root {
  --wood-dark: #241308;
  --wood: #3b2112;
  --wood-light: #5a351d;
  --gold: #f5c35c;
  --gold-deep: #d9952c;
  --bone: #f6ead0;
  --bone-dim: #d9c7a3;
  --leaf: #7cb342;
  --ink: #2a170b;
  --paper: #fbf5e9;
  --paper-2: #efe2c2;
  --radius: 18px;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Trebuchet MS", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Thai", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  line-height: 1.6;
  color: var(--bone);
  background: var(--wood-dark);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #ffd98a; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { padding: 16px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold);
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.06em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 18px; font-size: 0.95rem; }
.nav a { color: var(--bone-dim); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

/* Hero */
.hero { padding: 40px 0 56px; text-align: center; }
.hero-icon { width: 148px; height: 148px; margin: 0 auto 20px; border-radius: 34px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 4px rgba(245,195,92,0.25); }
.logo { margin: 0; font-family: var(--display); font-weight: 900; color: var(--gold);
  font-size: clamp(3.2rem, 13vw, 7rem); line-height: 1; letter-spacing: 0.05em;
  text-shadow: 0 4px 0 var(--wood-light), 0 8px 24px rgba(0,0,0,0.5); }
.tagline { margin: 18px auto 0; max-width: 34ch; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.75rem); line-height: 1.35; color: var(--bone); }
.lede { margin: 18px auto 0; max-width: 60ch; color: var(--bone-dim); font-size: 1.08rem; }
.soon { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(0,0,0,0.35); border: 2px solid rgba(245,195,92,0.45); color: var(--bone);
  font-weight: 600; font-size: 0.98rem; }
.pill strong { color: var(--gold); }
.soon-label { width: 100%; margin: 0 0 4px; font-family: var(--display); font-weight: 800;
  color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }

/* Feature image */
.feature { margin: 0 auto; width: 100%; max-width: 1024px; border-radius: var(--radius); overflow: hidden;
  border: 4px solid var(--bone-dim); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }

/* Sections */
section { padding: 56px 0; }
h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; color: var(--gold);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.2; }
.section-intro { margin: 0 0 28px; color: var(--bone-dim); max-width: 62ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: rgba(0,0,0,0.28); border: 2px solid rgba(217,199,163,0.18); border-radius: var(--radius);
  padding: 22px 22px 20px; }
.card h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; color: var(--bone);
  font-size: 1.15rem; letter-spacing: 0.03em; }
.card p { margin: 0; color: var(--bone-dim); font-size: 0.98rem; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.shots figure { margin: 0; border-radius: 14px; overflow: hidden; border: 3px solid rgba(217,199,163,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); background: var(--wood); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.fact { text-align: center; padding: 20px 12px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(245,195,92,0.14), rgba(245,195,92,0.04));
  border: 2px solid rgba(245,195,92,0.3); }
.fact b { display: block; font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--gold); line-height: 1.1; }
.fact span { display: block; margin-top: 6px; color: var(--bone-dim); font-size: 0.92rem; }

/* Footer */
footer { padding: 36px 0 44px; border-top: 2px solid rgba(217,199,163,0.15); color: var(--bone-dim); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--bone-dim); }

/* Document pages (privacy, support) */
.doc { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 32px clamp(18px, 5vw, 44px) 36px;
  max-width: 760px; margin: 12px auto 56px; box-shadow: 0 16px 40px rgba(0,0,0,0.45); }
.doc h1 { margin: 0 0 4px; font-family: var(--display); font-weight: 900; color: #6b4527; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.2; }
.doc h2 { color: #8a5a2b; font-size: 1.3rem; margin-top: 1.8em; }
.doc a { color: #9a5b14; }
.doc .meta { margin: 0 0 18px; color: #7a5a3c; font-style: italic; }
.doc .box { background: var(--paper-2); border-radius: 12px; padding: 14px 18px; }
.doc hr { border: 0; border-top: 2px solid #e2cfa6; margin: 2.6em 0; }

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 0.9rem; }
  .brand span { display: none; }
  .hero { padding-top: 20px; }
  .hero-icon { width: 116px; height: 116px; border-radius: 28px; }
  .shots { grid-template-columns: 1fr; }
}

/* Instagram */
.ig-icon { flex: none; }
.follow { margin: 26px 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn-ig { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: var(--gold); color: var(--wood-dark); font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; text-decoration: none; box-shadow: 0 4px 0 var(--gold-deep), 0 8px 20px rgba(0,0,0,0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease; }
.btn-ig:hover { color: var(--wood-dark); background: #ffd27a; }
.btn-ig:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-deep), 0 4px 12px rgba(0,0,0,0.35); }
.btn-ig:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
.follow-note { color: var(--bone-dim); font-size: 0.95rem; }
.ig-link { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 420px) {
  .btn-ig { font-size: 0.95rem; padding: 11px 16px; gap: 8px; text-align: left; }
}

/* Screenshot viewer */
.shot-link { display: block; cursor: zoom-in; }
.shot-link img { transition: transform 0.2s ease; }
.shot-link:hover img { transform: scale(1.02); }
.shot-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--bone); overflow: hidden; }
.viewer::backdrop { background: rgba(20, 10, 4, 0.92); }
.viewer-figure { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 56px 64px 24px; }
.viewer-img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain;
  border-radius: 12px; border: 3px solid var(--bone-dim); box-shadow: 0 16px 50px rgba(0,0,0,0.6); }
.viewer-caption { color: var(--bone-dim); font-size: 0.95rem; text-align: center; }
.viewer-btn { position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(245,195,92,0.5);
  background: rgba(0,0,0,0.55); color: var(--gold); font-size: 2rem; line-height: 1; cursor: pointer; }
.viewer-btn:hover { background: rgba(0,0,0,0.8); }
.viewer-btn:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }
.viewer-close { top: 12px; right: 12px; }
.viewer-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) {
  .viewer-figure { padding: 60px 8px 16px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 14px; transform: none; }
  .viewer-img { max-height: calc(100% - 90px); }
}
