@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&display=swap');
:root {
  --ink: #efeae2;
  --muted: #9a9388;
  --void: #0c1014;
  --panel: #151a21;
  --panel-2: #1b222b;
  --line: rgba(239, 234, 226, 0.12);
  --amber: #e0a82a;
  --amber-deep: #c08a14;
  --signal: #4ecf9a;
  --hot: #ff6b4a;
  --hold: #d4a84b;
  --font: 'Anuphan', sans-serif;
  --heading: 'Prompt', 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 980px;
  --demo-h: 48px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font); color: var(--ink); line-height: 1.6; overflow-x: hidden; font-synthesis: none;
  background:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(224, 168, 42, 0.09), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 40%, rgba(78, 207, 154, 0.05), transparent 45%),
    linear-gradient(180deg, #090c10 0%, #10151b 45%, #0c1014 100%);
}
img { max-width: 100%; display: block; } a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; font-size: 16px; } ul, ol { list-style: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .55rem 1.25rem; background: #050709; color: #fff; font-size: .82rem; }
.demo-bar strong { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--amber); font-weight: 500; }
.demo-bar__actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.demo-bar a { padding: .35rem .7rem; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); font-size: .78rem; font-weight: 500; }
.demo-bar a.is-primary { background: var(--amber); border-color: var(--amber); color: #14110a; }

.site-header { position: sticky; top: var(--demo-h); z-index: 50; background: rgba(12, 16, 20, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); position: relative; }
.brand { font-family: var(--heading); font-weight: 700; font-size: 1.25rem; display: inline-flex; align-items: baseline; gap: .45rem; }
.brand small { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); font-weight: 500; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: .45rem .8rem; cursor: pointer; border-radius: var(--radius); color: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--muted); }
.nav-cta { background: var(--amber); color: #14110a !important; padding: .55rem 1.05rem; border-radius: var(--radius); font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .9rem 1.4rem; font-weight: 700; border-radius: var(--radius); border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--amber { background: var(--amber); color: #14110a; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero { position: relative; min-height: min(90dvh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: ken 20s var(--ease) both; filter: brightness(.78) saturate(.9); }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(6, 8, 12, .94) 0%, rgba(6, 8, 12, .55) 55%, rgba(6, 8, 12, .3) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 5rem 0 3.5rem; max-width: 36rem; margin-left: max(calc((100% - var(--max)) / 2), 1.25rem); width: min(100% - 2.5rem, 36rem); animation: rise .9s var(--ease) both; }
.hero__brand { font-family: var(--heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.hero__brand span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.hero h1 { font-family: var(--heading); font-size: clamp(2.15rem, 5vw, 3.3rem); line-height: 1.18; letter-spacing: -.02em; margin-bottom: .9rem; }
.hero h1 em { display: block; font-style: normal; color: var(--amber); font-size: .72em; margin-top: .25rem; }
.hero__lead { color: rgba(255,255,255,.86); margin-bottom: 1.5rem; }
@keyframes ken { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.section { padding: 4.5rem 0; }
.section--slots { background: color-mix(in srgb, var(--panel) 80%, transparent); border-block: 1px solid var(--line); }
.section--form { background: #0a0e12; }
.section__head { margin-bottom: 2rem; max-width: 40rem; }
.section__head h2 { font-family: var(--heading); font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -.02em; margin-bottom: .5rem; }
.section__head p { color: var(--muted); }
.eyebrow { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: .5rem; }
.eyebrow.light { color: var(--amber); }
.mono { font-family: var(--mono); }

/* DISPATCH DOCK — signature */
.dock {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.dock__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1.15rem; background: #0a0d11; border-bottom: 1px solid var(--line); font-size: .78rem;
}
.dock__meta .mono { letter-spacing: .08em; color: var(--amber); font-size: .68rem; }
.seal { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--signal); }
.seal i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
.dock__head, .dock__row {
  display: grid; grid-template-columns: 4.5rem 7.5rem 1.4fr 5.5rem 4rem;
  gap: .75rem; align-items: center; padding: 1rem 1.15rem;
}
.dock__head {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.dock__row { border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); transition: background .2s var(--ease), transform .2s var(--ease); }
.dock__row:last-child { border-bottom: none; }
.dock__row:hover { background: color-mix(in srgb, var(--amber) 8%, var(--panel)); transform: translateX(3px); }
.dock__row .mono { color: var(--amber); font-weight: 500; font-size: .88rem; }
.dock__row strong { display: block; font-family: var(--heading); font-size: 1.05rem; }
.dock__row small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.status {
  display: inline-flex; justify-content: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .35rem .5rem; border-radius: 2px; font-weight: 600; width: fit-content;
}
.status--open { background: color-mix(in srgb, var(--signal) 18%, transparent); color: var(--signal); }
.status--hot { background: color-mix(in srgb, var(--hot) 18%, transparent); color: var(--hot); }
.status--hold { background: color-mix(in srgb, var(--hold) 18%, transparent); color: var(--hold); }
.row-cta { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--amber); font-weight: 600; text-align: right; }

/* LANE SLOTS — interactive grid */
.slots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
}
.slot {
  display: grid; gap: .35rem; padding: 1.15rem 1.1rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.slot:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--amber) 50%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 25%, transparent); }
.slot--busy { border-color: color-mix(in srgb, var(--hot) 35%, var(--line)); }
.slot--locked { opacity: .55; pointer-events: none; }
.slot__id { font-size: .7rem; letter-spacing: .1em; color: var(--amber); }
.slot strong { font-family: var(--heading); font-size: 1.05rem; }
.slot__meta { color: var(--muted); font-size: .88rem; }
.slot__state {
  margin-top: .35rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
.slot__state--open { color: var(--signal); }
.slot__state--busy { color: var(--hot); }
.slot__state--hold { color: var(--hold); }
.slot__state--lock { color: var(--muted); }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-bottom: 2.5rem; }
.proof figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.proof img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(.85) brightness(.9); transition: transform .55s var(--ease); }
.proof figure:hover img { transform: scale(1.04); }
.proof figcaption { padding: .7rem .85rem; font-size: .88rem; color: var(--muted); }

.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.voices blockquote { border-top: 3px solid var(--amber); padding-top: 1.1rem; }
.voices p { font-family: var(--heading); font-size: 1.15rem; line-height: 1.4; margin-bottom: .7rem; }
.voices footer { color: var(--muted); font-size: .9rem; }

.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; }
.book h2 { font-family: var(--heading); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: .4rem 0 .7rem; }
.form { background: var(--panel); border: 1px solid var(--line); padding: 1.6rem; border-radius: var(--radius); display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #0e1318; color: var(--ink);
}

.site-footer { background: #050709; color: rgba(255,255,255,.7); padding: 1.75rem 0; border-top: 1px solid var(--line); }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-footer .brand { color: #fff; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .proof, .voices, .book, .slots { grid-template-columns: 1fr 1fr; }
  .dock__head, .dock__row { grid-template-columns: 4rem 1fr 5rem; }
  .dock__head span:nth-child(2), .dock__head span:nth-child(5),
  .dock__row span:nth-child(2), .dock__row .row-cta { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--void); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .slots, .proof { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .hero__inner, .seal i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
