:root {
  color-scheme: dark;
  --page: #000;
  --paper: #101012;
  --surface: #09090b;
  --line: #303036;
  --text: #f5f1f2;
  --muted: #beb6b9;
  --accent: #ff615c;
  --accent-soft: #211012;
  --shell: 1200px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, video { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.04em; }
h1, h2 { color: var(--accent); font-weight: 500; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.wrap { width: min(var(--shell), calc(100% - 96px)); margin-inline: auto; }
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  padding: .65rem;
  background: var(--paper);
  z-index: 5;
}
.skip:focus { transform: none; }

.top {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #050505f2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.top-inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 600; line-height: 1.18; }
.brand small { display: block; color: var(--muted); font-size: .85rem; }
.brand-mark, .flow-icon, .card-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.brand-mark { font-size: .82rem; letter-spacing: .07em; }
.top nav { display: flex; gap: clamp(.8rem, 3vw, 2.1rem); color: var(--muted); }
.top nav a:hover, .footer-inner a:hover { color: var(--accent); }
.top-cta { font-size: .9rem; font-weight: 550; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; }
.top-cta:hover { background: var(--paper); border-color: #9a5555; }

.hero {
  background: radial-gradient(ellipse at 85% 3%, #290809, transparent 49%), linear-gradient(var(--paper), var(--page));
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  align-items: center;
  column-gap: clamp(1.75rem, 5vw, 5.2rem);
  padding-top: clamp(3.1rem, 7vw, 6.3rem);
  padding-bottom: 1.6rem;
}
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .9rem; font-weight: 600; }
.eyebrow span { width: 15px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(2.85rem, 4.9vw, 4.9rem); margin: .8rem 0 1.05rem; line-height: 1.02; letter-spacing: -.065em; }
.hero h1 em { color: #ff8982; font-style: normal; }
.intro, .section-head > p:not(.eyebrow), .video-card p:not(.eyebrow) { color: var(--muted); max-width: 41rem; }
.intro { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 31rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font-weight: 550;
  transition: background .2s, border-color .2s;
}
.button:hover { background: var(--surface); border-color: #9a5555; }
.primary { background: #ff615c; border-color: #ff615c; color: #160608; }
.primary:hover { background: #ff827d; border-color: #ff827d; }
.button:disabled { opacity: .65; cursor: wait; }
.hero-art { border: 1px solid #402125; overflow: hidden; border-radius: 20px; background: #000; box-shadow: 0 16px 42px #44131552; }
.hero-art img { height: auto; }
.hero-flow {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(2.25rem, 5vw, 4.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101012;
}
.hero-flow > div { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; font-weight: 550; line-height: 1.3; }
.hero-flow > div + div { border-left: 1px solid var(--line); }
.hero-flow small { display: block; margin-top: .18rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.flow-icon { width: 34px; height: 34px; }

.section { padding-block: clamp(2.85rem, 6vw, 5.25rem); scroll-margin-top: 76px; }
.section-head { margin-bottom: 1.55rem; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); margin: .45rem 0 .65rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.card { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card h3 { margin: .75rem 0 .5rem; font-size: 1.22rem; letter-spacing: -.025em; }
.card p, .lab-controls > p:not(.tag) { color: var(--muted); }
.card a { margin-top: auto; padding-top: .85rem; color: var(--accent); font-weight: 600; }
.card a:hover { text-decoration: underline; }
.card-features { width: 100%; margin-top: .8rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.card-features h4 { margin: 0; color: var(--accent); font-size: .95rem; font-weight: 600; }
.card-features ul { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.hospitality { border-top: 1px solid var(--line); }

.demo-section { background: var(--surface); border-block: 1px solid var(--line); scroll-margin-top: 76px; }
.lab { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.lab-bar { display: flex; flex-wrap: wrap; gap: .42rem; padding: .8rem; border-bottom: 1px solid var(--line); }
.lab-bar button { padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--text); font-size: .9rem; font-weight: 500; }
.lab-bar button:hover { background: var(--surface); }
.lab-bar button[aria-pressed=true] { color: var(--accent); border-color: #944747; background: var(--accent-soft); }
.lab-content { display: grid; grid-template-columns: 1fr 1.28fr; }
.lab-controls, .lab-output { padding: clamp(1rem, 3vw, 1.9rem); min-width: 0; }
.lab-output { border-left: 1px solid var(--line); }
.tag { display: inline-block; padding: .03rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .875rem; }
.lab h3, .video-card h3 { margin: .65rem 0; font-size: clamp(1.45rem, 2.8vw, 2.15rem); }
.lab label { display: block; margin-bottom: .3rem; font-weight: 550; }
.lab label { margin-top: 1rem; }
input, select { width: 100%; padding: .6rem .75rem; border: 1px solid #686268; border-radius: 9px; background: var(--paper); color: var(--text); }
select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23beb6b9' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .65rem center;
}
.lab-output ol { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .32rem .6rem; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--page); }
.step strong { font-weight: 600; }
.step span { color: var(--muted); font-size: .88rem; }
.step[data-state=done] { border-color: #395a48; background: #101a15; }
.step[data-state=done] .step-status { color: #a4e2bc; }
.step[data-state=held] { border-color: #80504d; }
.step[data-state=held] .step-status, .step[data-state=skipped] .step-status { color: var(--accent); }
.step-detail { grid-column: 1/-1; }
.step-detail:empty { display: none; }
.result { min-height: 2.5rem; margin-top: .65rem; color: var(--accent); }

.video-card { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 1.25rem; margin-top: 1rem; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.video-card video { aspect-ratio: 16/9; border-radius: 11px; background: #0e0f11; }
.video-card details { margin-top: .7rem; }
.video-card summary { cursor: pointer; color: var(--accent); font-weight: 550; }
.video-card details p { margin-top: .4rem; }

footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 78px; display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding-block: .8rem; }
.footer-inner strong { color: var(--text); font-weight: 600; margin-right: auto; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 48px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { min-height: 64px; flex-wrap: wrap; gap: .4rem .75rem; padding-block: .5rem; }
  .top nav { width: 100%; order: 3; justify-content: space-between; gap: .45rem; padding-top: .35rem; border-top: 1px solid var(--line); font-size: .9rem; }
  .hero-inner { grid-template-columns: 1fr; row-gap: 1.45rem; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4rem); }
  .hero-flow { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-flow > div { padding: .62rem .72rem; }
  .hero-flow > div:nth-child(3) { border-left: 0; }
  .hero-flow > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow-icon { display: none; }
  .section, .demo-section { scroll-margin-top: 108px; }
  .lab-content, .video-card { grid-template-columns: 1fr; }
  .lab-output { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 390px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.solution-trigger {
  margin-top: auto;
  padding: .55rem .65rem;
  border: 1px solid #7e393a;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.card > p + .solution-trigger, .card-features + .solution-trigger { margin-top: 1rem; }
.card .solution-trigger + a { margin-top: auto; font-size: .9rem; }
.solution-trigger:hover { border-color: var(--accent); }
.solution-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: 90dvh;
  overflow: auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #6c3738;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 22px 80px #000a;
}
.solution-dialog::backdrop { background: #000b; }
.solution-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; margin-bottom: .75rem; }
.solution-header h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.solution-header .button { min-height: 38px; padding: .3rem .75rem; }
.solution-dialog > p, .solution-answers dd { color: var(--muted); }
.solution-answers { margin: 1.2rem 0 0; }
.solution-answers dt { border-top: 1px solid var(--line); padding-top: .65rem; font-weight: 600; }
.solution-answers dd { margin: .2rem 0 .8rem; }
