:root {
  color-scheme: dark;
  --ink: #f5f7f8;
  --muted: #a7b0b8;
  --line: rgba(255, 255, 255, 0.13);
  --paper: #090b0d;
  --panel: rgba(27, 31, 35, 0.66);
  --dark: rgba(14, 17, 20, 0.82);
  --green: #70e1c1;
  --gold: #efc875;
  --soft: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 18px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html { background: #090b0d; }
body {
  background: radial-gradient(circle at 50% -20%, rgba(112, 225, 193, 0.12), transparent 42%), #050708;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(112, 225, 193, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(5, 7, 8, 0.18), rgba(5, 7, 8, 0.82) 78%, #050708);
}
.light-rays-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.95;
}
.light-rays-fallback::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 185deg at 50% -18%, transparent, rgba(112, 225, 193, 0.26), transparent 18%, rgba(112, 225, 193, 0.16), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(112, 225, 193, 0.18), transparent 42%);
  opacity: 0.75;
}
::selection { background: rgba(112, 225, 193, 0.3); color: #fff; }

.site-nav { position: sticky; top: 12px; z-index: 20; }
.site-nav a,
.contact-box,
.launch-grid article,
.control-panel,
.summary-card,
.table-panel,
.addon-panel,
.script-panel,
.intake-panel,
.workflow-panel,
.poster-preview,
.policy-grid article,
.booking-rule,
.booking-form,
.booking-summary,
.faq-panel,
.booking-result {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}
.site-nav a { background: rgba(18, 22, 25, 0.72); transition: border-color 180ms ease, background 180ms ease, transform 180ms ease; }
.site-nav a:hover { border-color: rgba(112, 225, 193, 0.62); background: rgba(41, 49, 51, 0.84); transform: translateY(-2px); }
.topbar { min-height: 250px; border-color: var(--line); }
.eyebrow { border: 1px solid rgba(239, 200, 117, 0.42); background: rgba(239, 200, 117, 0.12); color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
h1 { max-width: 820px; color: #fff; text-shadow: 0 8px 32px rgba(0, 0, 0, 0.42); }
.booking-entry, .terms-check a, .back-link:hover { color: var(--green); }

.launch-grid article,
.package-card,
.addon-item,
.policy-grid article,
.workflow-list li,
.booking-service { transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease; }
.launch-grid article:hover, .policy-grid article:hover { transform: translateY(-3px); border-color: rgba(112, 225, 193, 0.32); }
.package-card,
.addon-item,
.workflow-list li,
.segment,
.ghost-action,
select,
input,
textarea,
.booking-service,
.consult-check,
.next-step-box,
.payment-box { border-color: var(--line); background: rgba(255, 255, 255, 0.055); color: var(--ink); }
.package-card:hover, .addon-item:hover, .booking-service:hover { transform: translateY(-2px); border-color: rgba(112, 225, 193, 0.5); background: rgba(112, 225, 193, 0.075); }
.package-card.active, .booking-service.active { border-color: var(--green); background: rgba(112, 225, 193, 0.1); box-shadow: inset 0 0 0 1px var(--green), 0 18px 42px rgba(0, 0, 0, 0.28); }
.package-price, .summary-top strong, .booking-summary > strong, .booking-service em { color: var(--green); }

.summary-card, .booking-rule, .booking-summary { border: 1px solid rgba(112, 225, 193, 0.2); background: rgba(12, 16, 18, 0.8); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%); }
.public-cta { border: 1px solid rgba(239, 200, 117, 0.18); background: rgba(239, 200, 117, 0.08); }
.summary-booking-link, .primary-action { background: var(--green); color: #07110e; box-shadow: 0 10px 30px rgba(112, 225, 193, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.52); transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease; }
.summary-booking-link:hover, .primary-action:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 14px 38px rgba(112, 225, 193, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.58); }
.summary-booking-link:active, .primary-action:active, .ghost-action:active { transform: scale(0.985); }
.poster-preview img { opacity: 0.88; }
.segment button.active { background: rgba(112, 225, 193, 0.18); color: var(--green); box-shadow: inset 0 0 0 1px rgba(112, 225, 193, 0.3); }
.price-table tr { transition: background 160ms ease; }
.price-table tbody tr:hover { background: rgba(112, 225, 193, 0.055); }
.rush-card { border: 1px solid var(--line); background: var(--soft); }
.switch span { background: #3d444a; }
.switch input:checked + span { background: var(--green); }
.faq-panel details { padding-inline: 10px; transition: background 180ms ease; }
.faq-panel details[open] { background: rgba(112, 225, 193, 0.045); }
.payment-box img { border-color: rgba(255, 255, 255, 0.18); }
.toast { border: 1px solid var(--line); background: rgba(20, 24, 27, 0.86); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

@media (prefers-reduced-motion: no-preference) {
  .summary-card, .contact-box { animation: glass-arrive 520ms cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes glass-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 560px) {
  body { background-size: 44px 44px; }
  .topbar { min-height: 0; }
  .site-nav { top: 6px; }
}

/* Fixed cross-page navigation and focused home */
.app-shell { padding-top: 104px; }
.floating-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 7px;
  justify-content: center;
  flex-wrap: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(16, 19, 22, 0.72);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
  transform: translateX(-50%);
  overflow-x: auto;
  scrollbar-width: none;
}
.floating-nav::-webkit-scrollbar { display: none; }
.floating-nav a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.floating-nav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.floating-nav a.active {
  background: rgba(112, 225, 193, 0.14);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(112, 225, 193, 0.22);
}

.app-shell { position: relative; z-index: 1; }
.home-page .app-shell { padding-top: 0; padding-bottom: 24px; }
.home-hero {
  display: grid;
  min-height: 100svh;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.home-hero-copy { display: grid; justify-items: center; gap: 24px; }
.home-hero .eyebrow { margin: 0; }
.home-hero h1 {
  font-size: clamp(48px, 8vw, 94px);
  line-height: 1.02;
  white-space: nowrap;
}
.home-hero h1.reveal-item {
  letter-spacing: 0.34em;
}
.home-hero h1.reveal-item.is-visible {
  animation: title-letter-focus 1050ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}
@keyframes title-letter-focus {
  from { letter-spacing: 0.34em; }
  to { letter-spacing: 0; }
}
.hero-action {
  display: inline-flex;
  min-height: 54px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--green);
  color: #07110e;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(112, 225, 193, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.hero-action:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 20px 50px rgba(112, 225, 193, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.62); }
.hero-action:active { transform: scale(0.985); }

.contact-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 36px;
  margin-top: 64px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
  scroll-margin-top: 110px;
}
.contact-footer h2 { max-width: 420px; font-size: 28px; }
.contact-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.contact-list a, .contact-list p { display: flex; min-width: 0; justify-content: space-between; gap: 18px; padding: 15px 17px; background: rgba(12, 16, 18, 0.9); color: var(--ink); text-decoration: none; }
.contact-list a:hover { background: rgba(112, 225, 193, 0.08); }
.contact-list span { color: var(--muted); }
.contact-list strong { min-width: 0; overflow-wrap: anywhere; text-align: right; }

@media (max-width: 720px) {
  .app-shell { padding-top: 86px; }
  .home-page .app-shell { padding-top: 0; }
  .floating-nav { top: 10px; left: 8px; right: 8px; width: auto; max-width: none; gap: 2px; justify-content: center; transform: none; }
  .floating-nav a { min-height: 38px; padding: 9px 8px; font-size: 13px; }
  .home-hero { min-height: 100svh; }
  .home-hero h1 { font-size: 52px; white-space: normal; }
  .home-hero h1.reveal-item { letter-spacing: 0.16em; }
  @keyframes title-letter-focus {
    from { letter-spacing: 0.16em; }
    to { letter-spacing: 0; }
  }
.contact-footer { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; padding: 22px; }
  .contact-list a, .contact-list p { align-items: flex-start; flex-direction: column; gap: 5px; }
  .contact-list strong { text-align: left; }
}

.sample-section {
  width: min(1040px, 100%);
  margin: 96px auto 92px;
  scroll-margin-top: 112px;
}

.sample-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-align: center;
}

.sample-head h2 {
  max-width: 760px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.sample-player {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025) 44%, rgba(112, 225, 193, 0.04)),
    rgba(13, 17, 20, 0.6);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  backdrop-filter: blur(28px) saturate(165%);
}

.sample-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 20%, rgba(112, 225, 193, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
  opacity: 0.84;
}

.sample-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  background: #050708;
  object-fit: cover;
}

/* Optical liquid-glass treatment */
.floating-nav,
.contact-box,
.control-panel,
.summary-card,
.table-panel,
.addon-panel,
.workflow-panel,
.booking-form,
.booking-summary,
.booking-rule,
.faq-panel,
.selected-service-strip,
.contact-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025) 38%, rgba(112, 225, 193, 0.04) 72%),
    rgba(13, 17, 20, 0.64);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(30px) saturate(170%) contrast(105%);
  backdrop-filter: blur(30px) saturate(170%) contrast(105%);
}

.floating-nav::before,
.contact-box::before,
.control-panel::before,
.summary-card::before,
.table-panel::before,
.addon-panel::before,
.workflow-panel::before,
.booking-form::before,
.booking-summary::before,
.booking-rule::before,
.faq-panel::before,
.selected-service-strip::before,
.contact-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 8%;
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  opacity: 0.72;
  pointer-events: none;
}

.floating-nav::after,
.package-card::after,
.booking-form::after,
.summary-card::after,
.booking-summary::after,
.selected-service-strip::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -90%;
  left: -40%;
  width: 34%;
  height: 280%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: rotate(18deg) translateX(-180%);
  transition: transform 700ms cubic-bezier(.2, .75, .2, 1);
  pointer-events: none;
}

.floating-nav:hover::after,
.package-card:hover::after,
.booking-form:hover::after,
.summary-card:hover::after,
.booking-summary:hover::after,
.selected-service-strip:hover::after {
  transform: rotate(18deg) translateX(520%);
}

.package-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 30px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}

.package-card.active,
.selected-service-strip {
  border-color: rgba(112, 225, 193, 0.62);
  background:
    linear-gradient(145deg, rgba(168, 255, 231, 0.16), rgba(112, 225, 193, 0.045) 55%, rgba(255, 255, 255, 0.035)),
    rgba(17, 30, 28, 0.62);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(220, 255, 246, 0.38),
    inset 0 0 24px rgba(112, 225, 193, 0.08);
}

.floating-nav a.active {
  border: 1px solid rgba(112, 225, 193, 0.38);
  background: linear-gradient(145deg, rgba(137, 245, 215, 0.2), rgba(112, 225, 193, 0.08));
  box-shadow: inset 0 1px 0 rgba(222, 255, 246, 0.4), 0 8px 24px rgba(0, 0, 0, 0.24);
}

.nav-glass-filter-source {
  position: fixed;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-nav {
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.055) 34%, rgba(255, 255, 255, 0.025) 58%, rgba(112, 225, 193, 0.09)),
    rgba(10, 14, 16, 0.38);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.44),
    0 6px 20px rgba(112, 225, 193, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.64),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(190%) brightness(1.12);
  backdrop-filter: blur(18px) saturate(190%) brightness(1.12);
}

.nav-glass-ready .floating-nav {
  -webkit-backdrop-filter: url("#nav-glass-filter") blur(16px) saturate(190%) brightness(1.14);
  backdrop-filter: url("#nav-glass-filter") blur(16px) saturate(190%) brightness(1.14);
}

.floating-nav::before {
  left: 18px;
  right: 18px;
  top: 1px;
  width: auto;
  height: 46%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08) 50%, transparent),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.54), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(112, 225, 193, 0.28), transparent 30%);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.floating-nav::after {
  z-index: 0;
  top: 5px;
  left: 8px;
  right: 8px;
  bottom: 5px;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 18%, transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 0 28px rgba(255, 255, 255, 0.055);
  transform: none;
  opacity: 0.62;
  transition: opacity 220ms ease;
}

.floating-nav:hover::after {
  transform: none;
  opacity: 0.86;
}

.floating-nav a {
  position: relative;
  z-index: 1;
  color: rgba(235, 242, 244, 0.72);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.floating-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  transform: none;
}

.floating-nav a.active {
  border-color: rgba(180, 255, 236, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(112, 225, 193, 0.16) 50%, rgba(255, 255, 255, 0.045)),
    rgba(112, 225, 193, 0.08);
  color: #8ff8dc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(112, 225, 193, 0.18),
    0 8px 26px rgba(0, 0, 0, 0.22);
}

.floating-nav .nav-item {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  display: flex;
  min-width: 0;
}

.floating-nav .nav-item > a {
  flex: 1 1 auto;
}

.nav-samples::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
  pointer-events: auto;
}

.sample-subnav {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, max-content);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(10, 14, 16, 0.72);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-samples:hover .sample-subnav,
.nav-samples:focus-within .sample-subnav {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-nav .sample-subnav a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  color: rgba(245, 247, 248, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.floating-nav .sample-subnav a:hover {
  background: rgba(112, 225, 193, 0.14);
  color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .floating-nav::after,
  .package-card::after,
  .booking-form::after,
  .summary-card::after,
  .booking-summary::after,
  .selected-service-strip::after { display: none; }
}

/* Single-page navigation */
html { scroll-behavior: smooth; }
.floating-nav {
  width: min(980px, calc(100vw - 48px));
  max-width: none;
  border-radius: 999px;
  padding: 8px 12px;
  overflow: visible;
}
.floating-nav a {
  flex: 1 1 0;
  border-radius: 999px;
  text-align: center;
}
.floating-nav .nav-action {
  flex: 1 1 0;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.floating-nav .nav-action:hover { color: var(--ink); background: rgba(255, 255, 255, 0.055); }
.page-section { scroll-margin-top: 108px; }
.embedded-page {
  min-height: 420px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.embedded-page + .embedded-page { margin-top: 64px; }
.embedded-page .site-nav,
.embedded-page .contact-footer { display: none; }
.section-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
}
.terms-embedded > .terms-head,
.terms-embedded > .terms-block,
.terms-embedded > .terms-back { width: min(860px, 100%); margin-inline: auto; }

.rules-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(78vh, 760px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(13, 17, 20, 0.88);
  color: var(--ink);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
  backdrop-filter: blur(34px) saturate(165%);
}
.rules-dialog::backdrop { background: rgba(0, 0, 0, 0.68); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rules-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(13, 17, 20, 0.9);
}
.rules-dialog-bar h2 { margin: 0; font-size: 20px; }
.rules-dialog-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.rules-dialog-content { max-height: calc(min(78vh, 760px) - 69px); padding: 22px; overflow-y: auto; }
.rules-dialog-content .terms-head { display: none; }

@media (max-width: 720px) {
  .floating-nav {
    width: auto;
    padding: 6px;
    border-radius: 24px;
  }
  .floating-nav a { padding-inline: 4px; font-size: 12px; }
  .sample-subnav {
    left: 0;
    right: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(360px, calc(100vw - 24px));
    border-radius: 18px;
    transform: translate(0, -8px);
  }
  .nav-samples:hover .sample-subnav,
  .nav-samples:focus-within .sample-subnav { transform: translate(0, 0); }
  .floating-nav .sample-subnav a { min-height: 32px; padding: 8px 9px; font-size: 12px; }
  .sample-section { margin: 72px auto 58px; }
  .sample-head { justify-items: start; text-align: left; }
  .sample-player { border-radius: 16px; }
  .embedded-page { padding-top: 24px; }
  .embedded-page + .embedded-page { margin-top: 42px; }
}

.floating-nav { position: fixed; }

/* Homepage showcase and unified estimator */
.home-showcase {
  width: 100%;
  margin: -56px auto 84px;
  scroll-margin-top: 110px;
}
.home-hero-copy .subline { max-width: 680px; text-align: center; }
.home-showcase .launch-grid { margin-bottom: 28px; }
.home-showcase .poster-preview {
  width: min(620px, 100%);
  margin: 0 auto;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(13, 17, 20, 0.62);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}
.home-showcase .poster-preview img {
  max-height: none;
  opacity: 0.94;
  object-fit: contain;
}

.unified-estimator {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02) 42%, rgba(112, 225, 193, 0.035)),
    rgba(13, 17, 20, 0.64);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  backdrop-filter: blur(30px) saturate(165%);
}
.unified-estimator .control-panel,
.unified-estimator .summary-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.unified-estimator .control-panel {
  padding: 10px 20px 10px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}
.unified-estimator .summary-panel { align-content: start; }
.unified-estimator .summary-card { padding: 18px 16px 16px 24px; }

@media (max-width: 920px) {
  .home-showcase { margin-top: -24px; }
  .unified-estimator { grid-template-columns: 1fr; gap: 0; }
  .unified-estimator .control-panel { padding: 10px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
  .unified-estimator .summary-card { padding: 22px 10px 10px; }
}

/* Apple-like scroll reveal */
.reveal-item {
  opacity: 0;
  translate: 0 34px;
  scale: 0.985;
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    translate 760ms cubic-bezier(0.16, 1, 0.3, 1),
    scale 760ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-index, 0) * 58ms);
  will-change: opacity, translate, scale;
}

.reveal-item.is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.home-hero-copy .reveal-item {
  translate: 0 42px;
  scale: 0.98;
}

.quote-grid.reveal-item,
.booking-layout.reveal-item {
  translate: 0 46px;
}

.service-item.reveal-item,
.receipt-line.reveal-item,
.workflow-list li.reveal-item,
.contact-list > .reveal-item {
  translate: 0 18px;
  transition-duration: 560ms;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-hero h1.reveal-item,
  .home-hero h1.reveal-item.is-visible { letter-spacing: 0; animation: none; }
  .reveal-item {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: none;
  }
}
