/* Ride & Bite Pro — showcase
 *
 * The demo page is a marketplace preview, not a landing-page experiment: every
 * surface is shown in a real device viewport, so the frames carry true CSS
 * pixel sizes and are only *scaled* to fit, never stretched.
 */

:root {
  --ink: #0b0f17;
  --ink-1: #1b2331;
  --body: #39425a;
  --muted: #6d778f;
  --line: #e7e2d9;
  --line-soft: #f0ece4;
  --bg: #ffffff;
  --cream: #f8f6f1;
  --cream-2: #f2eee6;
  --brand: #ff7a1a;
  --brand-deep: #d85c00;
  --brand-soft: #fff1e5;
  --amber: #ffb547;
  --ok: #159a63;
  --blue: #2f6bff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(11, 15, 23, 0.06);
  --shadow: 0 24px 50px -32px rgba(11, 15, 23, 0.45);
  --shadow-lg: 0 40px 90px -40px rgba(11, 15, 23, 0.55);
  --wrap: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Author display rules would otherwise beat the UA's [hidden] style. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

/* ---------------------------------------------------------------- nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 14.5px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 550;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions .menu-btn {
  display: none;
}

.nav-actions {
  flex: 0 0 auto;
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 14.5px/1 var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease,
    border-color 0.14s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a33, var(--brand));
  color: #1c0f02;
  box-shadow: 0 12px 24px -14px rgba(216, 92, 0, 0.9);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #cfc7b9;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  color: #dfe5f0;
  background: #0a0e15;
  overflow: hidden;
  padding: 72px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 480px at 8% -12%, rgba(255, 122, 26, 0.3), transparent 62%),
    radial-gradient(660px 420px at 96% 4%, rgba(47, 107, 255, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(10, 14, 21, 0) 70%, #0a0e15 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 20%, #000 10%, transparent 72%);
  opacity: 0.36;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 54px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #e8eefb;
  font-size: 12.8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 999px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.2vw, 62px);
  margin: 22px 0 18px;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(102deg, #ff9a4d, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.62;
  color: #aeb9cd;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4f7ff;
}

.hero-cta .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.fact {
  font-size: 12.6px;
  color: #c6d0e2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 5px 11px;
}

.hero-note {
  margin-top: 12px;
  font-size: 12.8px;
  color: #8794ab;
}

/* Hero visual: browser window with two phones crossing its lower edge. */

.hero-visual {
  position: relative;
}

.browser-window {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
  background: #0f1520;
  transform: rotate(-1.4deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: #171f2c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #46536b;
}

.browser-bar i:first-child {
  background: #ff6b5e;
}
.browser-bar i:nth-child(2) {
  background: #ffc14d;
}
.browser-bar i:nth-child(3) {
  background: #48d18b;
}

.browser-url {
  margin-left: 8px;
  flex: 1;
  font: 500 11.5px/1 var(--mono);
  color: #9fb0c9;
  background: #0e141f;
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-shot {
  aspect-ratio: 1440 / 860;
  overflow: hidden;
}

.browser-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.hero-phones {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  margin-top: -148px;
  padding-right: 6px;
  z-index: 2;
}

.hero-phone {
  width: 134px;
  flex: 0 0 auto;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(160deg, #2b3444, #0d1119 55%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: rotate(-4deg) translateY(6px);
}

.hero-phone:nth-child(2) {
  transform: rotate(0deg) translateY(-14px);
  width: 146px;
  z-index: 2;
}

.hero-phone:nth-child(3) {
  transform: rotate(4deg) translateY(10px);
}

.hero-phone img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

.hero-float {
  display: none;
}

/* --------------------------------------------------------------- section -- */

.section {
  padding: 78px 0;
}

.section-cream {
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11.5px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.section h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
}

.section-sub {
  margin-top: 12px;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 700px;
}

/* ----------------------------------------------------------------- demo -- */

.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 0;
}

.demo-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.demo-hint {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  max-width: 540px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f7a4f;
  background: #eafaf2;
  border: 1px solid #c7f0dd;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.demo-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18a866;
  box-shadow: 0 0 0 4px rgba(24, 168, 102, 0.14);
}

.controls {
  padding: 18px 24px 0;
  display: grid;
  gap: 12px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-label {
  font: 650 11.5px/1 var(--font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 62px;
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--body);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition: all 0.13s ease;
}

.chip:hover {
  border-color: #cfc7b9;
  color: var(--ink);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip .kbd {
  font: 600 10.5px/1 var(--mono);
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.device-set {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.seg {
  display: inline-flex;
  background: var(--cream-2);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  border: 0;
  background: transparent;
  font: 650 12.5px/1 var(--font);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.seg button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.stage {
  position: relative;
  margin-top: 22px;
  min-height: 560px;
  height: clamp(560px, 74vh, 840px);
  display: grid;
  place-items: center;
  padding: 26px 24px 22px;
  background:
    radial-gradient(560px 320px at 50% 0%, #fff, transparent 70%),
    linear-gradient(180deg, #fbfaf7, #f3efe7);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 15, 23, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 78%);
  pointer-events: none;
}

.device-box {
  position: relative;
  z-index: 1;
  transition: width 0.28s ease, height 0.28s ease;
}

.device {
  position: absolute;
  top: 0;
  left: 0;
  padding: 11px;
  transform-origin: top left;
  background: linear-gradient(150deg, #3b4657, #0e131b 42%, #262f3d);
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 54px;
  transition: border-radius 0.2s ease;
}

.device[data-os="android"] {
  border-radius: 40px;
}

.device .screen {
  position: relative;
  background: #fff;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.device[data-os="android"] .screen {
  border-radius: 30px;
}

.device iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.frame-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #fbfaf7;
  color: var(--muted);
  font: 600 12.5px/1.5 var(--font);
}

.frame-loading b {
  color: var(--ink);
  font-size: 13.5px;
}

.frame-loading a {
  font-size: 12.5px;
}

.spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e9e3d8;
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.device .island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 30px;
  border-radius: 18px;
  background: #05070b;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.device .punch {
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #05070b;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device .homebar {
  position: absolute;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 5px;
  border-radius: 3px;
  background: rgba(11, 15, 23, 0.55);
  z-index: 3;
  pointer-events: none;
}

.device.compact {
  border-radius: 42px;
}

.device.compact .screen {
  border-radius: 34px;
}

/* Desktop frames (the admin control plane is a web app, not a phone app). */

.browser-frame {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  border-radius: 14px;
  overflow: hidden;
  background: #10161f;
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.browser-frame .bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: #1a222f;
}

.browser-frame .bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a566c;
}

.browser-frame .bar i:nth-child(1) {
  background: #ff6b5e;
}
.browser-frame .bar i:nth-child(2) {
  background: #ffc14d;
}
.browser-frame .bar i:nth-child(3) {
  background: #48d18b;
}

.browser-frame .bar span {
  flex: 1;
  margin-left: 8px;
  font: 500 11.5px/1 var(--mono);
  color: #9fb0c9;
  background: #0d131d;
  border-radius: 6px;
  padding: 5px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame .viewport {
  position: relative;
  background: #fff;
  overflow: hidden;
}

.browser-frame iframe {
  display: block;
  border: 0;
  background: #fff;
}

.stage-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.size-readout {
  font: 500 12.5px/1 var(--mono);
  color: var(--muted);
  margin-right: auto;
}

.size-readout b {
  color: var(--ink);
  font-weight: 600;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 8px 11px;
  font: 600 12.5px/1 var(--font);
  color: var(--ink-1);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: #cfc7b9;
}

/* -------------------------------------------------------------- gallery -- */

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 16px;
  font: 650 13.5px/1 var(--font);
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.shot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.shot-frame {
  border-radius: 22px;
  background: linear-gradient(150deg, #3b4657, #0e131b 45%, #262f3d);
  padding: 6px;
  cursor: zoom-in;
  position: relative;
}

.shot-frame .glass {
  border-radius: 17px;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  background: #fff;
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.shot-frame.web {
  border-radius: 12px;
  background: #10161f;
  padding: 5px;
}

.shot-frame.web .glass {
  border-radius: 8px;
  aspect-ratio: 16 / 10;
}

.shot-frame.web::before {
  content: "";
  display: block;
  height: 12px;
  margin-bottom: 4px;
  background:
    radial-gradient(circle at 7px 6px, #ff6b5e 3px, transparent 3.4px),
    radial-gradient(circle at 18px 6px, #ffc14d 3px, transparent 3.4px),
    radial-gradient(circle at 29px 6px, #48d18b 3px, transparent 3.4px);
}

.shot-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shot-meta b {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.shot-meta span {
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.45;
}

.shot-card .tag {
  margin-top: auto;
  align-self: flex-start;
  font: 650 10.5px/1 var(--font);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 5px;
  padding: 5px 7px;
}

/* ----------------------------------------------------------------- grid -- */

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  font-size: 16.5px;
  margin-bottom: 7px;
}

.card p {
  font-size: 14.6px;
  color: var(--muted);
  line-height: 1.6;
}

.card .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 19px;
  margin-bottom: 13px;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.4px;
}

.card li {
  margin-bottom: 5px;
}

/* ---------------------------------------------------------------- table -- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.4px;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

th {
  font: 700 11.5px/1.3 var(--font);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fcfbf8;
}

tr:last-child td {
  border-bottom: 0;
}

td b {
  color: var(--ink);
}

code,
.mono {
  font-family: var(--mono);
  font-size: 12.8px;
  color: var(--ink-1);
}

.copy-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  font: 600 10.5px/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 7px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

/* ------------------------------------------------------------ stack rows -- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.stack-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.stack-item b {
  display: block;
  color: var(--ink);
  font-size: 14.3px;
  margin-bottom: 3px;
}

.stack-item span {
  font-size: 13.6px;
  color: var(--muted);
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.flow-node {
  border: 1px dashed #d8d1c4;
  border-radius: 12px;
  padding: 13px 15px;
  background: #fff;
  font-size: 13.3px;
  color: var(--body);
}

.flow-node b {
  display: block;
  color: var(--ink);
  font-size: 13.8px;
  margin-bottom: 2px;
}

/* ------------------------------------------------------------ downloads -- */

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dl-meta {
  font-size: 12.8px;
  color: var(--muted);
  margin: 2px 0 14px;
}

.dl-card .btn {
  margin-top: auto;
}

.note {
  margin-top: 18px;
  border-radius: 14px;
  background: #fffaf2;
  border: 1px solid #f5e2c8;
  color: #7a5320;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.note strong {
  color: #5c3a10;
}

/* ------------------------------------------------------------------ faq -- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 4px 18px;
}

details[open] {
  border-color: #e0d7c8;
  box-shadow: var(--shadow-sm);
}

summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 650;
  color: var(--ink);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14.6px;
}

/* ------------------------------------------------------------------ cta -- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0b0f17, #18202d 55%, #2a1a0d);
  color: #e6ecf8;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 240px at 88% 10%, rgba(255, 122, 26, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  position: relative;
}

.cta-band p {
  color: #a9b6cc;
  margin-top: 10px;
  max-width: 560px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

/* --------------------------------------------------------------- footer -- */

footer {
  background: #0a0e15;
  color: #8b98af;
  padding: 40px 0 34px;
  font-size: 13.4px;
}

.foot-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e8eef9;
  font-weight: 700;
}

.foot-brand img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.foot-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-links a {
  color: #98a5bb;
}

.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.foot-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5c6a80;
}

.foot-status.online .dot {
  background: #35d07f;
  box-shadow: 0 0 0 4px rgba(53, 208, 127, 0.14);
}

.foot-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ------------------------------------------------------------- lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(7, 10, 15, 0.92);
  backdrop-filter: blur(6px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 28px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
  min-height: 0;
}

.lightbox img {
  max-height: 78vh;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 40px 90px -30px #000;
}

.lightbox figcaption {
  color: #c9d3e5;
  font-size: 14px;
  text-align: center;
}

.lb-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lb-close {
  position: absolute;
  top: 18px;
  right: 20px;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1040px) {
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
    box-shadow: 0 24px 40px -30px rgba(11, 15, 23, 0.5);
  }

  body.nav-open .nav-links a {
    padding: 10px 0;
    font-size: 15px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .hero-visual {
    max-width: 640px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions .menu-btn {
    display: inline-flex;
  }

  .nav-links a {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .nav-actions .btn-ghost:not(.menu-btn) {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 46px 0 62px;
  }

  .hero-phones {
    margin-top: -96px;
    gap: 10px;
  }

  .hero-phone {
    width: 104px;
  }

  .hero-phone:nth-child(2) {
    width: 112px;
  }

  .hero-phone:nth-child(3) {
    display: none;
  }

  .hero-float {
    display: none;
  }

  .stage {
    min-height: 520px;
    height: 72vh;
    padding: 18px 12px;
  }

  .demo-top,
  .controls,
  .stage-tools {
    padding-left: 16px;
    padding-right: 16px;
  }

  .demo-badge {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .shot-card {
    padding: 11px;
    border-radius: 16px;
  }

  .shot-meta b {
    font-size: 13px;
  }

  .shot-meta span {
    display: none;
  }

  .cta-band {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px;
  }

  .lightbox {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .lb-btn {
    position: absolute;
    bottom: 22px;
    width: 40px;
    height: 40px;
  }

  .lb-prev {
    left: 20px;
  }
  .lb-next {
    right: 20px;
  }
}

@media (max-width: 560px) {
  .nav-actions .btn-primary {
    display: none;
  }

  .brand small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
