* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body, Inter, system-ui, sans-serif); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 90vw); margin: 0 auto; }
.demo-ribbon { background: #0d1117; color: #c9d1d9; font: 600 12px/1.4 Inter, system-ui, sans-serif; text-align: center; padding: 9px 14px; }
.demo-ribbon a { color: #7dd3fc; text-decoration: underline; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 80; height: 3px; width: 0; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.nav { position: sticky; top: 0; z-index: 70; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); padding: 14px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: var(--display, inherit); font-weight: 800; letter-spacing: var(--brand-track, -0.02em); font-size: 22px; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--accent); }
.nav-cta { color: var(--cta-ink, #fff) !important; background: var(--accent); border-radius: var(--radius-sm, 999px); padding: 10px 17px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: var(--radius-sm, 12px); font: 900 18px/1 var(--body, sans-serif); cursor: pointer; }
.hero { padding: clamp(64px, 9vw, 112px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr); gap: clamp(36px, 6vw, 72px); align-items: center; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
h1, h2, h3 { font-family: var(--display, inherit); color: var(--ink); letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(42px, 7vw, 82px); max-width: 820px; }
h2 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 620px; margin: 22px 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border-radius: var(--radius-sm, 999px); background: var(--accent); color: var(--cta-ink, #fff); font-weight: 800; border: 1px solid transparent; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--line-strong, var(--line)); }
.visual { position: relative; min-height: 420px; border-radius: var(--radius, 18px); overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow, none); }
.visual img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.float-card { position: absolute; left: 20px; bottom: 20px; right: 20px; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius-sm, 14px); padding: 18px; backdrop-filter: blur(12px); box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.float-card strong { display: block; font-family: var(--display, inherit); font-size: 22px; line-height: 1.1; }
.float-card span { color: var(--muted); font-size: 13px; }
section { padding: clamp(62px, 8vw, 104px) 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm, 14px); padding: 24px; }
.card, .panel, .product, .feature-item, .metric { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.card:hover, .panel:hover, .product:hover, .feature-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 18px 48px rgba(0,0,0,.1); }
.card p, .split p, .list li, .price-row span { color: var(--muted); }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 900; margin-bottom: 16px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius, 18px); padding: clamp(24px, 4vw, 42px); }
.list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.list strong { color: var(--ink); }
.band { background: var(--band); color: var(--band-ink); padding: clamp(56px, 8vw, 90px) 0; }
.band h2 { color: var(--band-ink); }
.band p { color: var(--band-muted); max-width: 620px; }
.footer { background: var(--footer, #0d1117); color: var(--footer-muted, #8b949e); text-align: center; padding: 44px 5vw 74px; font-size: 13px; }
.td-pill { position: fixed; right: 14px; bottom: 14px; z-index: 40; background: #0e0f12; color: #fff; border-radius: 999px; padding: 11px 16px; font: 700 13px/1 Inter, system-ui, sans-serif; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius, 18px); overflow: hidden; }
.metric { background: var(--panel); padding: 24px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: var(--display, inherit); font-size: 34px; color: var(--accent); line-height: 1; }
.metric span { color: var(--muted); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm, 14px); overflow: hidden; }
.product img { width: 100%; height: 230px; object-fit: cover; }
.product div { padding: 16px; }
.product strong { display: block; }
.product span { color: var(--muted); font-size: 14px; }
.mini-form { display: grid; gap: 12px; margin-top: 20px; }
.mini-form input, .mini-form select, .mini-form textarea { width: 100%; border: 1px solid var(--line); background: var(--input, #fff); color: var(--ink); border-radius: var(--radius-sm, 12px); padding: 13px 14px; font: inherit; }
.mini-form textarea { min-height: 96px; resize: vertical; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2) { transition-delay: .08s; }
.stagger.in > *:nth-child(3) { transition-delay: .16s; }
.stagger.in > *:nth-child(4) { transition-delay: .24s; }
.pro-stage { position: relative; min-height: 70vh; display: grid; align-items: center; overflow: hidden; }
.pro-stage::before { content: ""; position: absolute; inset: 8%; border: 1px solid var(--line); border-radius: var(--radius, 24px); transform: scale(.96); opacity: .45; pointer-events: none; }
.motion-panel { position: relative; z-index: 1; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); border-radius: var(--radius, 24px); padding: clamp(24px, 5vw, 54px); backdrop-filter: blur(14px); transform: translateY(var(--motion-y, 0)) scale(var(--motion-scale, 1)); transition: transform .08s linear; }
.tabs, .filters, .segmented { display: flex; gap: 10px; flex-wrap: wrap; }
.tab, .filter, .segment { border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: var(--radius-sm, 999px); padding: 10px 14px; font: 800 13px/1 var(--body, sans-serif); cursor: pointer; }
.tab.is-active, .filter.is-active, .segment.is-active { background: var(--accent); color: var(--cta-ink, #fff); border-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; background: #0e0f12; color: #fff; border-radius: 999px; padding: 12px 18px; font: 800 13px/1 var(--body, sans-serif); box-shadow: 0 18px 44px rgba(0,0,0,.22); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.page-hero { padding: clamp(48px, 7vw, 84px) 0 34px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 760px; }
.crumb { color: var(--muted); font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.crumb a { color: var(--accent); }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius, 18px); overflow: hidden; display: table; }
.table th, .table td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink); font-family: var(--display, inherit); font-size: 18px; }
.table tr:last-child td { border-bottom: 0; }
.feature-list { display: grid; gap: 14px; }
.feature-item { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm, 14px); background: var(--panel); }
.feature-item strong { color: var(--ink); }
.feature-item span { color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.summary-line strong { color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .cards, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links { position: fixed; left: 16px; right: 16px; top: 72px; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius, 18px); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: var(--radius-sm, 12px); background: color-mix(in srgb, var(--bg) 76%, var(--panel)); }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1120px); }
  .cards, .product-grid, .metric-grid { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .visual, .visual img { min-height: 330px; }
  .btn { width: 100%; }
  .feature-item { grid-template-columns: 1fr; }
}

/* ============================================================
   PREMIUM MOTION + MEDIA SYSTEM  (2026-06 — opt-in utilities)
   First used by the Emberhaus flagship; reused across demos on rollout.
   All motion is transform/opacity only and reduced-motion safe.
   ============================================================ */

/* numbers that animate or sit in columns stay width-stable */
.metric strong, .float-card strong, [data-count] { font-variant-numeric: tabular-nums; }

/* tactile buttons (global polish, safe for all demos) */
.btn { transition: transform .14s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.97); }
.magnetic { will-change: transform; }

/* graded media — cinematic overlay so stock photos stop reading as raw stock */
.media { position: relative; overflow: hidden; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--media-grade, linear-gradient(180deg, transparent 38%, rgba(0,0,0,.55))); }
.media.grayscale > img, .media.grayscale > video { filter: grayscale(1) contrast(1.06) brightness(.9); }

/* cinematic slow zoom (Ken Burns) for hero stills/video */
.kenburns { animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1.17) translate3d(-1.5%, -1%, 0); } }

/* full-bleed video/image hero stage */
.stage { position: relative; min-height: 88vh; display: grid; align-items: end; overflow: hidden; }
.stage > .media { position: absolute; inset: 0; z-index: 0; }
.stage > .wrap { position: relative; z-index: 2; padding: 120px 0 clamp(40px, 7vw, 92px); width: min(1120px, 90vw); }
.stage-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* kinetic marquee */
.marquee { overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: var(--marquee-gap, 28px);
  width: max-content; animation: marquee var(--marquee-dur, 34s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ambient drifting glow blobs — depth without images */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px);
  opacity: var(--blob-o, .5); animation: drift var(--blob-dur, 26s) ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(var(--bx, 8%), var(--by, -6%), 0) scale(1.18); } }

/* clip-wipe reveal */
.clip-in { clip-path: inset(0 100% 0 0); opacity: .001;
  transition: clip-path .85s cubic-bezier(.2,.8,.2,1), opacity .6s ease; }
.clip-in.in { clip-path: inset(0 0 0 0); opacity: 1; }

/* intensity / level meter */
.meter { height: 6px; border-radius: 999px; overflow: hidden; margin-top: 12px;
  background: color-mix(in srgb, var(--ink) 14%, transparent); }
.meter > i { display: block; height: 100%; width: var(--lvl, 60%); background: var(--accent); border-radius: inherit; }

/* sticky mobile action bar (only affects pages that include .mobile-cta) */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid;
    grid-auto-flow: column; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
  .mobile-cta a { background: var(--panel); color: var(--ink); text-align: center;
    padding: 14px 8px; font: 800 14px/1 var(--body, sans-serif); }
  .mobile-cta a.primary { background: var(--accent); color: var(--cta-ink, #fff); }
  body:has(.mobile-cta) { padding-bottom: 58px; }
  body:has(.mobile-cta) .td-pill { bottom: 66px; }
}

/* multi-step wizard (booking / intake flows) */
.steps { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 26px; padding: 0; }
.steps li { list-style: none; display: flex; align-items: center; gap: 9px;
  color: var(--muted); font: 800 13px/1 var(--body, sans-serif); }
.steps .dot { width: 27px; height: 27px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: 12px; transition: background .25s, color .25s, border-color .25s; }
.steps li.is-done .dot, .steps li.is-active .dot { background: var(--accent); color: var(--cta-ink, #fff); border-color: var(--accent); }
.steps li.is-active { color: var(--ink); }
.step-panel[hidden], [data-panel][hidden] { display: none !important; }
/* before/after slider */
.ba { position: relative; overflow: hidden; border-radius: var(--radius, 16px); }
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.ba input[type="range"] { position: absolute; inset: auto 0 0 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; height: 100%; cursor: ew-resize; }
.ba input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: ew-resize; }
.ba .ba-tag { position: absolute; top: 12px; z-index: 2; font: 800 11px/1 var(--body, sans-serif); letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.6); color: #fff; padding: 6px 9px; border-radius: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: var(--radius-sm, 999px); padding: 12px 16px; font: 700 14px/1 var(--body, sans-serif);
  cursor: pointer; transition: transform .14s ease, border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.chip:active { transform: scale(.97); }
.chip.is-selected { background: var(--accent); color: var(--cta-ink, #fff); border-color: var(--accent); }

/* feature hotspot — pulsing dot + tooltip that ties a demo element to a package feature */
.hotspot { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none;
  border-radius: 50%; background: var(--accent); color: var(--cta-ink, #fff); border: 0; cursor: pointer;
  font: 800 12px/1 var(--body, system-ui, sans-serif); vertical-align: middle; margin-left: 8px; }
.hotspot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent);
  animation: hotspot-pulse 2.2s ease-out infinite; }
@keyframes hotspot-pulse { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.hotspot .hs-tip { position: absolute; bottom: 150%; left: 50%; transform: translate(-50%, 6px); width: max-content;
  max-width: 230px; background: #0e0f12; color: #fff; border-radius: 10px; padding: 11px 13px;
  font: 600 12px/1.45 var(--body, system-ui, sans-serif); text-align: left; opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s; box-shadow: 0 14px 34px rgba(0,0,0,.34); z-index: 60; pointer-events: none; }
.hotspot .hs-tip b { display: block; color: #fff; text-transform: uppercase; font-size: 10px; letter-spacing: .09em; opacity: .65; margin-bottom: 3px; }
.hotspot:hover .hs-tip, .hotspot:focus-visible .hs-tip, .hotspot.open .hs-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* performance proof badge (fixed, bottom-left — mirrors the .td-pill) */
.perf-badge { position: fixed; left: 14px; bottom: 14px; z-index: 40; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(14,15,18,.9); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  padding: 8px 13px; font: 700 12px/1 var(--body, system-ui, sans-serif); backdrop-filter: blur(8px); text-decoration: none; }
.perf-badge b { color: #6ee7a0; }
@media (max-width: 720px) { body:has(.mobile-cta) .perf-badge { bottom: 64px; left: 12px; } }

/* reduced motion: stop decorative loops, reveal everything immediately */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .kenburns, .marquee__track, .blob { animation: none !important; transform: none !important; }
  .reveal, .stagger > *, .clip-in { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
