@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #17050d;
  --panel: #260b18;
  --panel-2: #331222;
  --line: rgba(226, 184, 102, .22);
  --gold: #e2b866;
  --gold-2: #f4dca6;
  --ivory: #f7eddd;
  --muted: #cbb3a9;
  --rose: #c4506d;
  --ok: #7fd1a3;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, 'Segoe UI', sans-serif;
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font-family: var(--sans); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no3d { background: radial-gradient(1200px 700px at 75% 10%, #4a1528 0%, var(--bg) 60%); }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, header, footer { position: relative; z-index: 1; }
a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--ivory); }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
em { font-style: italic; color: var(--gold); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(23, 5, 13, .72); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--ivory); letter-spacing: .01em; }
.logo span { color: var(--gold); font-style: italic; }
.nav nav { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav nav a { color: var(--muted); font-size: .95rem; font-weight: 400; }
.nav nav a:hover { color: var(--gold-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--gold); background: linear-gradient(180deg, #f1d190, #d3a652);
  color: #2a0d12 !important; font: 500 .95rem var(--sans); padding: 12px 22px; border-radius: 999px;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(226, 184, 102, .28); }
.btn.ghost { background: transparent; color: var(--gold-2) !important; }
.btn.sm { padding: 8px 16px; font-size: .86rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* hero */
.hero { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 60px 0 80px; }
.hero-copy { max-width: 620px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 0 0 30px; }
.search {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; gap: 10px; padding: 10px;
  background: rgba(38, 11, 24, .86); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(10px);
}
label.f { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ivory);
  border-radius: 12px; padding: 11px 12px; font: 400 .98rem var(--sans); letter-spacing: 0; text-transform: none;
}
select option { background: var(--panel); color: var(--ivory); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.search .btn { align-self: end; height: 46px; }

section.band { padding: 90px 0; background: linear-gradient(180deg, rgba(23, 5, 13, .9), rgba(23, 5, 13, .96)); border-top: 1px solid var(--line); }
section.clear { padding: 90px 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 15px; border-radius: 999px; font: 400 .88rem var(--sans); cursor: pointer; }
.chip.on { background: var(--gold); color: #2a0d12; border-color: var(--gold); font-weight: 500; }

.filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; perspective: 1400px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer;
  transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s, border-color .25s; text-align: left; color: inherit; padding: 0; font: inherit;
}
.card:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, .5); border-color: var(--gold); }
.art { height: 180px; position: relative; display: grid; place-items: center; background-size: cover; background-position: center; }
.art svg { width: 110px; opacity: .55; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #2a0d12; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.demo { left: auto; right: 12px; background: rgba(0, 0, 0, .55); color: var(--ivory); font-weight: 400; }
.card .body { padding: 18px 18px 20px; }
.card h3 { margin-bottom: 2px; }
.meta { font-size: .88rem; color: var(--muted); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; }
.price { font-family: var(--serif); font-size: 1.45rem; color: var(--gold-2); }
.price small { font: 300 .78rem var(--sans); color: var(--muted); }
.empty { padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); grid-column: 1/-1; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(38, 11, 24, .8); backdrop-filter: blur(8px); }
.step b { font: 600 3rem var(--serif); color: var(--gold); display: block; line-height: 1; margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.store { border: 1px solid var(--line); border-radius: 14px; padding: 10px 18px; font-size: .9rem; color: var(--muted); }
.store b { display: block; color: var(--ivory); font-weight: 500; }
ul.tick { list-style: none; padding: 0; margin: 14px 0 22px; }
ul.tick li { padding-left: 26px; position: relative; margin: 7px 0; }
ul.tick li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; background: var(--bg); color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* dialog */
dialog { border: 1px solid var(--line); background: var(--panel); color: var(--ivory); border-radius: 22px; padding: 0; width: min(760px, 100% - 24px); max-height: 92vh; }
dialog::backdrop { background: rgba(10, 2, 6, .75); backdrop-filter: blur(4px); }
.dlg-body { padding: 26px; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0, 0, 0, .55); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--muted); }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.form2 .full { grid-column: 1/-1; }
.note { font-size: .86rem; padding: 10px 14px; border-radius: 12px; margin-top: 12px; }
.note.ok { background: rgba(127, 209, 163, .12); color: var(--ok); border: 1px solid rgba(127, 209, 163, .35); }
.note.bad { background: rgba(196, 80, 109, .14); color: #f0a3b6; border: 1px solid rgba(196, 80, 109, .4); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; }
.thumbs img { height: 84px; border-radius: 10px; border: 1px solid var(--line); }

/* vendor portal */
.portal { display: grid; grid-template-columns: 240px 1fr; gap: 26px; padding: 34px 0 80px; align-items: start; }
.side { position: sticky; top: 92px; }
.side button { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--muted); font: 400 .98rem var(--sans); padding: 12px 16px; border-radius: 12px; cursor: pointer; }
.side button.on { background: var(--panel-2); color: var(--gold-2); }
.meter { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); width: 0; transition: width .4s; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.checks label { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.checks input { width: auto; accent-color: var(--gold); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.photos button { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .65); color: #fff; border: 0; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 460px; }
.cal span { text-align: center; font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.cal button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ivory); font: 400 .92rem var(--sans); cursor: pointer; }
.cal button.blocked { background: var(--rose); border-color: var(--rose); color: #fff; }
.cal button:disabled { opacity: .3; cursor: default; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: rgba(255, 255, 255, .02); }
.plan.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan .price { font-size: 2rem; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 500; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.tablewrap { overflow-x: auto; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px); background: var(--gold); color: #2a0d12; padding: 12px 22px; border-radius: 999px; font-weight: 500; transition: transform .3s; z-index: 50; }
#toast.show { transform: translate(-50%, 0); }

.auth { max-width: 500px; padding: 60px 0 90px; }
[hidden] { display: none !important; }

/* roadmap */
.doc { padding: 50px 0 90px; }
.doc section { margin-top: 54px; }
.doc p, .doc li { color: #e6d6cc; max-width: 78ch; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--panel); }
.kpi b { font: 600 2rem var(--serif); color: var(--gold-2); display: block; }
.kpi span { font-size: .84rem; color: var(--muted); }
.timeline { display: grid; gap: 16px; margin-top: 22px; }
.phase { display: grid; grid-template-columns: 190px 1fr; gap: 22px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--panel); }
.phase .when { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.phase .when small { display: block; font: 400 .8rem var(--sans); color: var(--muted); margin-top: 4px; }
.phase ul { margin: 6px 0 0; padding-left: 18px; }
.callout { border-left: 3px solid var(--gold); background: var(--panel); padding: 16px 20px; border-radius: 0 14px 14px 0; margin: 18px 0; }

@media (max-width: 860px) {
  .nav nav a:not(.btn) { display: none; }
  .search, .filters, .form2 { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1/-1; }
  .steps, .split, .plans, .portal { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; }
  .side button { white-space: nowrap; width: auto; }
  .side .panel { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  section.band, section.clear { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .btn { transition: none; } }

/* vendor app: bottom tab bar on phones, new-request badge */
.side button svg { display: none; }
.side .short { display: none; }
.dot { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--rose); color: #fff; font: 600 .72rem var(--sans); text-align: center; font-style: normal; }
@media (max-width: 860px) {
  .portal { padding: 18px 0 calc(110px + env(safe-area-inset-bottom, 0px)); }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; background: rgba(23, 5, 13, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .side button { display: flex; flex-direction: column; align-items: center; gap: 3px; width: auto; padding: 9px 2px 8px; font-size: .7rem; border-radius: 0; position: relative; }
  .side button.on { background: transparent; color: var(--gold); }
  .side button svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .side .long, #leadCount { display: none; }
  .side .short { display: inline; }
  .dot { position: absolute; top: 4px; left: 54%; margin: 0; }
  .panel { padding: 20px 16px; }
  .nav .wrap { gap: 10px; }
  #who { display: none; }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); white-space: nowrap; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 520px) { .form2, .plans { grid-template-columns: 1fr; } }

/* ============ glass theme: frosted panels over flowing gold ribbons ============ */
:root {
  --bg: #060504; --panel: rgba(255, 255, 255, .06); --panel-2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .15); --gold: #ffd21f; --gold-2: #ffe680; --ivory: #f6f4ee; --muted: #b8b3a6;
}
body, body.no3d { background: var(--bg); }
#waves { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
header, main, section, footer { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
em { font-style: normal; color: var(--gold); }
.nav { background: rgba(6, 5, 4, .45); backdrop-filter: blur(20px) saturate(140%); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--sans); font-weight: 600; font-size: 1.35rem; letter-spacing: -.02em; }
.logo span { font-style: normal; }
.panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .035));
  backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .17); border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .22);
}
input, select, textarea { background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .13); border-radius: 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 31, .16); }
select option { background: #16130c; }
.btn { background: linear-gradient(180deg, #ffe45c, #f4c200); border-color: #f4c200; color: #171200 !important; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(244, 194, 0, .25); }
.btn:hover { box-shadow: 0 14px 40px rgba(244, 194, 0, .45); }
.btn.ghost { background: rgba(255, 255, 255, .07); border-color: var(--line); color: var(--ivory) !important; box-shadow: none; }
.side button { border-radius: 14px; }
.side button.on { background: rgba(255, 210, 31, .14); color: var(--gold); }
.checks label { background: rgba(0, 0, 0, .22); border-color: rgba(255, 255, 255, .12); }
.plan { background: rgba(0, 0, 0, .22); border-radius: 20px; }
.plan .price, .price { font-family: var(--sans); font-weight: 600; }
.meter i { background: linear-gradient(90deg, #f4c200, #ffe680); }
.cal button { background: rgba(0, 0, 0, .22); }
th { color: var(--gold); }

/* login card */
.auth { max-width: none; width: 100%; min-height: calc(100vh - 69px); display: grid; place-items: center; padding: 30px 16px 60px; }
.auth .panel { position: relative; width: min(440px, 100%); padding: 38px 34px 30px; }
.auth .panel::before, .auth .panel::after { content: ''; position: absolute; width: 34px; height: 34px; border: 2px solid var(--gold); pointer-events: none; }
.auth .panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 26px 0 0 0; }
.auth .panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 26px 0; }
.auth h2 { font-size: 2rem; margin-bottom: 4px; }
.auth .form2 { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
.auth .btn { width: 100%; padding: 14px; font-size: 1rem; }
.auth .alt { text-align: center; margin: 20px 0 0; font-size: .92rem; }
@media (max-width: 860px) { .side { background: rgba(6, 5, 4, .88); } }
