/* Buan Technologies — shared site styles.
   Layout concept: a top bar with grouped drop-down panels (the owner's own reference, Boson's
   site), then calm, uncluttered pages built from one card system, one type scale, one accent. */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --ink: #12233f;
  --muted: #5b6b85;
  --faint: #8995ab;
  --line: #dbe1ec;
  --accent: #2f6fe0;
  --accent-ink: #ffffff;
  --accent-soft: #e8f0fd;
  --live: #1f6b45;
  --live-bg: #e3f2ea;
  --soon: #8a5a00;
  --soon-bg: #fbf0d9;
  --code-bg: #0f1c33;
  --code-ink: #dce6ff;
  --shadow: 0 1px 2px rgb(18 35 63 / 6%), 0 12px 32px rgb(18 35 63 / 7%);
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1322; --surface: #121d30; --surface-raised: #16233a; --ink: #eaf0fb; --muted: #aab6cc;
    --faint: #7c8aa6; --line: #27354e; --accent: #6fa0ff; --accent-ink: #081225; --accent-soft: #1a2a46;
    --live: #8fd3a8; --live-bg: #123524; --soon: #f0c46e; --soon-bg: #3a2c12;
    --code-bg: #060c18; --code-ink: #cddcff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1322; --surface: #121d30; --surface-raised: #16233a; --ink: #eaf0fb; --muted: #aab6cc;
  --faint: #7c8aa6; --line: #27354e; --accent: #6fa0ff; --accent-ink: #081225; --accent-soft: #1a2a46;
  --live: #8fd3a8; --live-bg: #123524; --soon: #f0c46e; --soon-bg: #3a2c12;
  --code-bg: #060c18; --code-ink: #cddcff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; max-width: 62ch; }
p.lede { font-size: 19px; color: var(--muted); max-width: 54ch; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--f-mono); font-size: 0.85em; background: var(--accent-soft); padding: 0.1em 0.4em; border-radius: 4px; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 760px) { .wrap { padding-inline: 16px; } }

.eyebrow { font-family: var(--f-display); font-size: 12px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--accent); }

/* ---------------------------------------------------------------- nav */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__row { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--ink); margin-right: auto; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  display: grid; place-items: center;
}
.brand__mark svg { width: 16px; height: 16px; }
.navgroups { display: flex; align-items: center; gap: 2px; }
.navgroup { position: relative; }
.navgroup > button {
  font: inherit; font-family: var(--f-body); font-weight: 600; font-size: 15px; color: var(--ink);
  background: none; border: 0; padding: 10px 12px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
}
.navgroup > button:hover, .navgroup > button:focus-visible { background: var(--accent-soft); }
.navgroup svg { width: 11px; height: 11px; opacity: 0.6; }
.navgroup__panel {
  position: absolute; top: calc(100% + 8px); left: 0; width: max(280px, 100%);
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px; display: none; flex-direction: column; gap: 2px;
}
.navgroup:hover .navgroup__panel, .navgroup:focus-within .navgroup__panel { display: flex; }
.navgroup__panel a { color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 9px 10px; border-radius: 7px; display: block; }
.navgroup__panel a:hover { background: var(--accent-soft); text-decoration: none; color: var(--accent); }
.navgroup__panel a span { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.navlink { font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 12px; border-radius: 7px; }
.navlink:hover { background: var(--accent-soft); text-decoration: none; }
.nav-cta {
  font-family: var(--f-display); font-weight: 700; font-size: 14.5px; color: var(--accent-ink);
  background: var(--ink); padding: 9px 16px; border-radius: 8px; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; }
.navtoggle { display: none; }
@media (max-width: 880px) {
  .navgroups, .nav-cta { display: none; }
  .navtoggle { display: block; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); }
}

/* ---------------------------------------------------------------- hero / sections */
.hero { padding-block: 72px 56px; }
.hero__kicker { margin-bottom: 14px; }
.hero h1 { margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  font-family: var(--f-display); font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--ink); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

section { padding-block: 56px; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 64ch; }

.grid3 { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.grid4 { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }

/* A denser tile for a long list of named modules/services — same card language, less padding,
   no bullet list, so "everything we offer" reads as breadth rather than six repeats of .card. */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.tile h4 { font-family: var(--f-display); font-size: 15px; font-weight: 700; margin: 0; color: var(--ink); }
.tile p { font-size: 13.5px; color: var(--muted); margin: 0; }
.tile .chip { margin-bottom: 2px; }

.section-split { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  display: grid; gap: 10px; align-content: start; min-width: 0;
}
.card--lead { border-top: 4px solid var(--ink); }
.card h3 { margin-top: 2px; }
.card p { font-size: 15px; color: var(--muted); }
.card ul { margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 4px; }
.card a.more { font-weight: 700; font-size: 14.5px; margin-top: 4px; }

.chip { display: inline-flex; align-items: center; font-family: var(--f-display); font-weight: 700; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip--live { color: var(--live); background: var(--live-bg); }
.chip--soon { color: var(--soon); background: var(--soon-bg); }

.proof {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.proof__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.proof__stat b { display: block; font-family: var(--f-display); font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof__stat span { font-size: 13px; color: var(--muted); }
.proof__shot {
  border-radius: 12px; border: 1px solid var(--line); background: var(--code-bg); color: var(--code-ink);
  font-family: var(--f-mono); font-size: 12.5px; padding: 16px; overflow: auto; line-height: 1.7;
}

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
/* Two explicit columns but three grid items per step (::before, h3, p): without this, auto-placement
   wraps p onto a second row starting back in column 1 - the 40px number column - so its text broke
   one word per line down a 40px-wide strip. h3 and p both pinned to column 2 keeps them stacked
   beside the number instead of under it. */
.step h3, .step p { grid-column: 2; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--f-display); font-weight: 800; font-size: 15px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

.quote { border-left: 3px solid var(--accent); padding-left: 18px; font-size: 18px; color: var(--ink); font-family: var(--f-display); font-weight: 600; max-width: 56ch; }

/* ---- the screen gallery -----------------------------------------------------------------------
   Drawn, not captured. A real screen grab is one hotel's live guest names and real figures, and
   this page is public - so these are built from the same tokens and the same shapes the product
   actually draws, with placeholder names, standing in for a photograph. Two screens only, and
   both ordinary front-desk views: the board and the day's overview. Nothing here is the part a
   competitor would want - no rate logic, no assistant's own reasoning, no channel-manager internals -
   on purpose: this sells that the product is real and finished, not how the hard parts work. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.gallery figcaption b { color: var(--ink); font-weight: 700; }

.shotframe {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #0e191e;
}
.shotframe__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #15232a; }
.shotframe__dot { width: 9px; height: 9px; border-radius: 50%; background: #3b5058; }
.shotframe__title { margin-left: 6px; font-family: var(--f-mono); font-size: 11.5px; color: #8ea4aa; }
.shotframe__body { padding: 16px; font-family: var(--f-body); color: #eef6f7; }

/* The board: a toolbar line, then three rooms over four nights with one booking bar each. */
.shot-cal__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; }
.shot-cal__top b { font-family: var(--f-display); font-size: 14px; }
.shot-cal__pill { padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 8%); color: #b5c8cd; }
.shot-cal__pill--on { background: #6fd8ee; color: #062530; font-weight: 700; }
.shot-cal__grid { display: grid; grid-template-columns: 70px repeat(4, 1fr); gap: 6px; font-size: 11.5px; }
.shot-cal__head { color: #8ea4aa; padding-bottom: 6px; text-align: center; }
.shot-cal__head:first-child { text-align: left; }
.shot-cal__room { color: #b5c8cd; display: flex; align-items: center; font-weight: 700; }
.shot-cal__cell { background: rgb(255 255 255 / 4%); border-radius: 6px; height: 30px; }
.shot-cal__bar {
  grid-column: span 2; border-radius: 6px; display: flex; align-items: center; padding: 0 10px;
  font-weight: 700; font-size: 11.5px; color: #062530;
}

/* The overview: a hotel name, then three figure tiles the same shape the real dashboard draws. */
.shot-dash__head { font-family: var(--f-display); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.shot-dash__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shot-dash__tile { background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 8%); border-radius: 10px; padding: 12px; }
.shot-dash__tile span { display: block; font-size: 11px; color: #8ea4aa; text-transform: uppercase; letter-spacing: 0.04em; }
.shot-dash__tile b { display: block; font-family: var(--f-display); font-size: 22px; margin-top: 6px; }
.shot-dash__row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / 8%); font-size: 12.5px; }
.shot-dash__row span:first-child { color: #eef6f7; font-weight: 600; }
.shot-dash__row span:last-child { color: #8ea4aa; }

footer.sitefoot { border-top: 1px solid var(--line); padding-block: 40px; background: var(--surface); }
.sitefoot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .sitefoot__grid { grid-template-columns: 1fr 1fr; } }
.sitefoot h4 { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sitefoot a { display: block; color: var(--ink); font-size: 14.5px; padding-block: 3px; font-weight: 500; }
.sitefoot__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.pagehead { padding-block: 52px 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pagehead .eyebrow { margin-bottom: 10px; }

.compare { overflow-x: auto; }
table.compare-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
table.compare-table th, table.compare-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare-table thead th { font-family: var(--f-display); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--accent-soft); }
table.compare-table td.yes { color: var(--live); font-weight: 700; }

.contact-form { display: grid; gap: 16px; max-width: 520px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-sent { background: var(--live-bg); color: var(--live); border-radius: 10px; padding: 16px 18px; font-weight: 600; }
