:root {
  --ink: #071528;
  --muted: #647085;
  --line: #e7ebf2;
  --soft: #f6f8fb;
  --accent: #ef315e;
  --accent-dark: #c91546;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7, 21, 40, .10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
input, textarea, button { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(231, 235, 242, .82);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
}
.home-page .topbar {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, .08);
  background: #03060c;
}
.home-page .brand-mark { background: var(--white); color: var(--accent); }
.home-page .nav { color: rgba(255, 255, 255, .82); }
.home-page .nav .button.ghost { color: var(--white); background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); }
.brand, .nav, .actions, .stack-actions { display: flex; align-items: center; gap: 14px; }
.brand { font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}
.nav { color: var(--muted); font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  font-weight: 750;
  cursor: pointer;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.ghost { color: var(--ink); background: var(--white); border-color: var(--line); }
.button.ghost:hover { background: var(--soft); border-color: var(--line); }
.button.large { min-height: 50px; padding: 12px 20px; }
.button.full { width: 100%; }

.flash-wrap { max-width: 1120px; margin: 18px auto 0; padding: 0 20px; }
.flash {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.flash.error, .notice.danger { border-color: #ffd0dc; background: #fff2f5; color: #94133a; }
.flash.success { border-color: #bcebd0; background: #f0fff6; color: #116b35; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(54px, 8vw, 104px) clamp(20px, 6vw, 88px);
}
.hero h1, .tenant-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .96;
  letter-spacing: 0;
}
.lead { max-width: 700px; color: var(--muted); font-size: 19px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-panel, .price-box, .panel, .auth-card, .live-preview, .tenant-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-panel { display: grid; gap: 14px; padding: 22px; }
.domain-composer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 20px;
}
.domain-composer b { color: #ff8aa5; }
.metric { display: flex; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.metric span, .facts dt, .muted { color: var(--muted); }
.metric strong { text-align: right; }
.metric.accent { border-color: #ffd0dc; background: #fff6f8; }

.section, .dashboard, .tenant-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) 20px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-3 article { padding: 24px; border-top: 1px solid var(--line); }
.pill {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}
.split { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 30px; align-items: center; }
.price-box { padding: 28px; display: grid; gap: 12px; }
.price-box strong { font-size: 58px; line-height: 1; }
.tenant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tenant-card { display: grid; gap: 8px; padding: 20px; box-shadow: none; }
.tenant-card span { color: var(--accent); font-weight: 750; }
.tenant-card p { margin: 0; color: var(--muted); }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.faq details { padding: 18px 0; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }

.auth-shell { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 46px 20px; }
.auth-card { width: min(100%, 520px); padding: clamp(24px, 5vw, 38px); }
.auth-card h1 { margin-top: 0; font-size: 38px; line-height: 1.05; }
label { display: grid; gap: 7px; margin: 14px 0; color: var(--ink); font-weight: 750; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}
textarea { resize: vertical; }
.subdomain-field { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.subdomain-field input { border: 0; border-radius: 0; }
.subdomain-field b { padding: 0 14px; color: var(--muted); white-space: nowrap; }

.dashboard h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.panel { padding: 22px; box-shadow: none; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { margin-top: 0; }
.facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
code { padding: 3px 6px; border-radius: 6px; background: var(--soft); color: var(--accent-dark); }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: #fff2f5; color: var(--accent-dark); font-weight: 800; }
.notice { padding: 14px; border-radius: 8px; margin: 18px 0; }
.settings-form { max-width: 760px; }

.tenant-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 78px);
}
.tenant-logo { max-width: 120px; max-height: 80px; object-fit: contain; margin-bottom: 22px; }
.live-preview { padding: 24px; color: var(--white); background: var(--ink); }
.live-preview span { color: #ff8aa5; font-weight: 850; }
.live-preview strong { display: block; margin: 18px 0; font-size: 28px; overflow-wrap: anywhere; }
.schedule-list { display: grid; gap: 12px; }
.schedule-list div { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.schedule-list span { color: var(--muted); }

@media (max-width: 860px) {
  .topbar { position: static; align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero, .split, .tenant-hero, .dashboard-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .grid-3, .tenant-grid { grid-template-columns: 1fr; }
  .hero h1, .tenant-hero h1 { font-size: 44px; }
  .facts { grid-template-columns: 1fr; }
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: clamp(54px, 7vw, 92px) clamp(22px, 5vw, 70px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 28% 94%, rgba(239, 49, 94, .46), transparent 22%),
    radial-gradient(circle at 72% 8%, rgba(239, 49, 94, .18), transparent 28%),
    linear-gradient(135deg, #03060c 0%, #070b13 52%, #111020 100%);
}
.home-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: 48%;
  bottom: -82px;
  height: 180px;
  border: 2px solid rgba(239, 49, 94, .65);
  border-color: rgba(239, 49, 94, .65) transparent transparent transparent;
  border-radius: 50%;
  filter: blur(.2px);
  transform: rotate(-7deg);
}
.home-hero-copy { position: relative; z-index: 1; }
.home-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(52px, 7vw, 86px);
  line-height: .96;
  letter-spacing: 0;
}
.home-hero h1 span, .pricing-band h2 span { display: block; color: var(--accent); }
.home-hero .lead { color: rgba(255, 255, 255, .82); }
.button.dark, .button.ghost.dark {
  color: var(--white);
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .28);
}
.button.ghost.dark:hover { background: rgba(255, 255, 255, .10); }
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin-top: 42px;
}
.hero-features span {
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
}
.hero-features b { display: block; color: var(--white); }

.auction-demo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(11, 14, 24, .72);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .45);
}
.video-card {
  position: relative;
  padding: 28px;
  background:
    radial-gradient(circle at 52% 38%, rgba(239, 49, 94, .28), transparent 26%),
    linear-gradient(150deg, #171017 0%, #07080d 72%);
}
.badge-live, .viewer-count {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 850;
}
.badge-live { background: var(--accent); }
.viewer-count { margin-left: 8px; background: rgba(255, 255, 255, .10); }
.product-orbit {
  display: grid;
  place-items: center;
  min-height: 260px;
}
.shoe-shape {
  width: min(86%, 330px);
  height: 130px;
  border-radius: 60% 42% 36% 58%;
  background:
    linear-gradient(12deg, #10131c 0 44%, #2c2f39 45% 58%, #090a0e 59%),
    radial-gradient(circle at 78% 28%, rgba(239, 49, 94, .9), transparent 18%);
  box-shadow: 0 28px 40px rgba(0, 0, 0, .45), inset 0 -12px 0 rgba(255, 255, 255, .08);
  transform: rotate(-10deg);
}
.offer-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 24px;
  align-items: end;
}
.offer-row strong, .offer-row span { display: block; }
.offer-row span { color: rgba(255, 255, 255, .72); margin-top: 22px; }
.offer-row b {
  display: block;
  color: var(--accent);
  font-size: 40px;
  line-height: 1;
}
.offer-row .timer { color: var(--white); }
.progress {
  height: 6px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.progress i { display: block; width: 48%; height: 100%; background: var(--accent); }
.bid-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 18px;
  background: rgba(12, 15, 25, .94);
}
.bid-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px;
  border-radius: 8px;
}
.bid-panel b { color: var(--accent); }
.bid-panel em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: rgba(255, 255, 255, .52);
  font-style: normal;
  font-size: 12px;
}
.bid-panel .winner { background: var(--accent); }
.bid-panel .winner b, .bid-panel .winner em { color: var(--white); }
.chat-line {
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .04);
}
.chat-input {
  margin-top: 20px;
  color: rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
}

.why-section, .domain-section, .steps-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 84px) 20px;
}
.why-section h2, .domain-section h2, .steps-section h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
}
.compare-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(7, 21, 40, .08);
}
.compare-card div { padding: 26px; }
.compare-card div:last-child { background: #fff7f9; }
.compare-card h3 { margin-top: 0; }
.compare-card p { position: relative; margin: 18px 0; padding-left: 28px; color: #3e4756; }
.compare-card p::before {
  content: "x";
  position: absolute;
  left: 0;
  color: #8a93a3;
}
.compare-card div:last-child p::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
}
.compare-card div:last-child h3 { color: var(--accent); }

.domain-section {
  position: relative;
  overflow: hidden;
  max-width: none;
  padding-left: clamp(20px, 5vw, 70px);
  padding-right: clamp(20px, 5vw, 70px);
  background: linear-gradient(180deg, #fff, #f7f8fb);
}
.domain-check {
  display: grid;
  grid-template-columns: 1fr 110px;
  width: min(100%, 390px);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.domain-check span { padding: 14px 16px; color: #333c4c; }
.domain-check button {
  border: 0;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}
.domain-stack {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.domain-stack div {
  min-width: min(100%, 520px);
  padding: 18px 26px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(90deg, #07090f, #222331);
  box-shadow: 0 14px 32px rgba(7, 21, 40, .22);
}
.domain-stack div:nth-child(2) { margin-left: -30px; }
.domain-stack div:nth-child(3) { margin-left: -70px; }

.steps-section {
  display: block;
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.steps article {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.steps b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
}
.steps span { color: var(--muted); font-size: 14px; }

.pricing-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 34px;
  align-items: center;
  padding: clamp(48px, 7vw, 80px) clamp(22px, 5vw, 70px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 80%, rgba(121, 52, 255, .30), transparent 22%),
    linear-gradient(135deg, #05070c 0%, #07101d 100%);
}
.pricing-band h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
}
.pricing-band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 34px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}
.pricing-band li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--accent);
  font-weight: 900;
}
.price-cta {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.price-cta strong {
  color: var(--accent);
  font-size: clamp(64px, 8vw, 104px);
  line-height: 1;
}
.price-cta span { color: rgba(255, 255, 255, .78); font-size: 20px; }

.live-room {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 20px;
}
.live-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: stretch;
}
.live-screen {
  position: relative;
  min-height: min(68vh, 680px);
  border-radius: 8px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 48% 42%, rgba(239, 49, 94, .30), transparent 28%),
    linear-gradient(135deg, #03060c, #121727);
}
.live-screen .badge-live {
  position: absolute;
  top: 18px;
  left: 18px;
}
.live-placeholder {
  display: grid;
  place-content: center;
  height: 100%;
  min-height: inherit;
  padding: 30px;
  text-align: center;
}
.live-placeholder strong {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
}
.live-placeholder p { color: rgba(255, 255, 255, .72); font-size: 18px; }
.live-side, .live-system-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}
.live-side h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}
.facts.compact { grid-template-columns: 92px minmax(0, 1fr); margin-top: 22px; }
.live-system-note { margin-top: 18px; }
.handoff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.handoff-grid div {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.handoff-grid span { color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .home-hero, .auction-demo, .why-section, .domain-section, .pricing-band {
    grid-template-columns: 1fr;
  }
  .live-stage, .handoff-grid {
    grid-template-columns: 1fr;
  }
  .auction-demo { min-height: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .domain-stack div:nth-child(n) { margin-left: 0; }
}

@media (max-width: 620px) {
  .home-hero h1 { font-size: 46px; }
  .hero-features, .compare-card, .pricing-band ul, .steps { grid-template-columns: 1fr; }
  .domain-check { grid-template-columns: 1fr; }
  .domain-check button { min-height: 44px; }
}
