@font-face {
  font-family: "Kanit";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/kanit-thai-400-normal.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kanit";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/kanit-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Kanit";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/kanit-thai-700-normal.woff2") format("woff2");
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "Kanit";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/kanit-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #120c08;
  --panel: #1d140e;
  --line: #3a2414;
  --text: #f6ece0;
  --muted: #b9a693;
  --gold: #f7bd2e;
  --gold-hi: #fff0ad;
  --blue: #3f8ef5;
  --red: #f2543d;
  --radius: 16px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(63, 142, 245, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(242, 84, 61, 0.14), transparent 60%), var(--bg);
  color: var(--text);
  font:
    400 17px/1.65 "Kanit",
    system-ui,
    sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--gold);
}
code {
  background: rgba(247, 189, 46, 0.12);
  color: var(--gold-hi);
  padding: 0.05em 0.4em;
  border-radius: 6px;
  font-size: 0.92em;
  white-space: nowrap;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(16px, calc((100% - 1120px) / 2));
  background: rgba(18, 12, 8, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav nav {
  display: flex;
  gap: 18px;
  overflow-x: auto;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.nav nav a:hover {
  color: var(--text);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 40px;
}
.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.15;
  margin: 0 0 20px;
}
h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 4px 0 var(--line);
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--line);
  transition: transform 0.12s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  background: var(--gold);
  color: #2a1a0d;
}
.btn.small {
  padding: 6px 14px;
  font-size: 0.9rem;
  box-shadow: 0 3px 0 var(--line);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chips li {
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 12px;
}
.hero-shot {
  margin: 0;
  justify-self: center;
  max-width: 340px;
  border-radius: 28px;
  overflow: hidden;
  border: 4px solid var(--line);
  box-shadow:
    0 0 0 6px rgba(247, 189, 46, 0.25),
    0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg);
}

.section {
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 6px;
}
.sub {
  color: var(--muted);
  margin: 0 0 24px;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 18px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.seg button {
  font: inherit;
  font-size: 0.92rem;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--gold);
  color: #2a1a0d;
  font-weight: 700;
}
.round,
.sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.round input {
  accent-color: var(--gold);
  width: 140px;
}
.round output {
  min-width: 2ch;
  color: var(--text);
  font-weight: 700;
}
.sound input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.stage {
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--line);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.stage.portrait {
  width: min(100%, 405px);
  aspect-ratio: 9 / 16;
}
.stage.landscape {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.flow {
  list-style: none;
  padding: 0;
  margin: 24px 0 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  counter-reset: step;
}
.flow li {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.flow span {
  font-size: 1.6rem;
  display: block;
}
.flow b {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.features article {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  border-top: 3px solid var(--gold);
}
.features article:nth-child(3n + 2) {
  border-top-color: var(--blue);
}
.features article:nth-child(3n) {
  border-top-color: var(--red);
}
.features h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}
th,
td {
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
th {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}
tr:last-child td {
  border-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery figure {
  margin: 0;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery .wide {
  grid-column: span 2;
}
.gallery img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}
.gallery figcaption {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.download p {
  color: var(--muted);
  max-width: 44em;
}
.steps {
  padding-left: 1.3em;
  color: var(--muted);
}
.steps li::marker {
  color: var(--gold);
  font-weight: 700;
}

.foot {
  text-align: center;
  padding: 40px 16px 56px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot p {
  margin: 4px 0;
}
.muted {
  opacity: 0.7;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 32px;
  }
  .hero-shot {
    max-width: 260px;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .nav nav {
    display: none;
  }
  .flow,
  .features {
    grid-template-columns: 1fr;
  }
  .gallery .wide {
    grid-column: span 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}

.notfound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.notfound h1 {
  margin: 0;
}
.notfound p {
  color: var(--muted);
  margin: 0 0 16px;
}
