/*
  Questoro core site styles.
  Portable static snapshot derived from the main app light marketplace system.
*/

:root {
  --q-paper: #ffffff;
  --q-paper-2: #f6f7f8;
  --q-paper-3: #edeff1;
  --q-paper-soft: #fff8f5;
  --q-bg: #f5f7f6;
  --q-ink: #1c1c1c;
  --q-ink-2: rgba(28, 28, 28, 0.72);
  --q-ink-3: #787c7e;
  --q-orange: #ff4500;
  --q-orange-deep: #e03d00;
  --q-orange-soft: #ffd8ca;
  --q-orange-tint: #fff8f5;
  --q-night: #1c1c1c;
  --q-night-2: #262626;
  --q-rule: rgba(16, 24, 40, 0.1);
  --q-rule-soft: rgba(16, 24, 40, 0.06);
  --q-good: #15803d;
  --q-bad: #b42318;
  --q-shadow-card: 0 20px 60px rgba(16, 24, 40, 0.05);
  --q-shadow-strong: 0 24px 80px rgba(255, 69, 0, 0.1), 0 4px 12px rgba(16, 24, 40, 0.04);
  --q-shadow-orange: 0 8px 20px rgba(255, 69, 0, 0.18);
  --q-font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body.q-main {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 69, 0, 0.08), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(255, 69, 0, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 250, 247, 0.5)),
    var(--q-bg);
  color: var(--q-ink);
  font-family: var(--q-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.q-main ::selection {
  background: rgba(255, 69, 0, 0.15);
}

a {
  color: inherit;
}

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

button,
.q-button {
  cursor: pointer;
}

.q-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1100px) {
  .q-wrap {
    padding: 0 48px;
  }
}

.q-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--q-paper-3);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
}

.q-nav__row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.q-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--q-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.q-brand__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.q-brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ff7a45 0%, var(--q-orange) 60%, var(--q-orange-deep) 100%);
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.25);
}

.q-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid var(--q-paper-3);
  border-radius: 999px;
  background: var(--q-paper);
  padding: 7px 14px;
  color: var(--q-ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.q-pill b,
.q-pill strong {
  color: var(--q-orange);
}

.q-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 999px;
  background: var(--q-orange);
  box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.45);
  animation: q-pulse 2s infinite;
}

@keyframes q-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(255, 69, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}

.q-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--q-font);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.q-button:hover {
  transform: translateY(-1px);
}

.q-button--primary {
  background: var(--q-orange);
  color: #fff;
  box-shadow: var(--q-shadow-orange);
}

.q-button--primary:hover {
  background: var(--q-orange-deep);
}

.q-button--ghost {
  border-color: var(--q-paper-3);
  background: var(--q-paper);
  color: var(--q-ink);
}

.q-button--ghost:hover {
  border-color: var(--q-rule);
  background: var(--q-paper-2);
}

.q-button--dark {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.q-button__arrow {
  transition: transform 0.2s ease;
}

.q-button:hover .q-button__arrow {
  transform: translateX(3px);
}

.q-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 69, 0, 0.18);
  border-radius: 999px;
  background: var(--q-paper);
  padding: 6px 14px;
  color: var(--q-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.q-display {
  margin: 0;
  color: var(--q-ink);
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.02;
}

.q-display em,
.q-section-head h2 em {
  color: var(--q-orange);
  font-style: normal;
}

.q-lede {
  margin: 24px 0 0;
  max-width: 64ch;
  color: var(--q-ink-2);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
}

.q-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--q-paper-3);
  background: var(--q-paper-soft);
  padding: 72px 0 70px;
}

.q-hero::before,
.q-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
}

.q-hero::before {
  top: 60px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(255, 69, 0, 0.14), transparent 70%);
  filter: blur(40px);
}

.q-hero::after {
  right: -160px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(255, 69, 0, 0.1), transparent 70%);
  filter: blur(50px);
}

.q-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.q-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.q-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-top: 30px;
  color: var(--q-ink-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.q-meta-row b {
  color: var(--q-orange);
}

.q-dashboard {
  border: 1px solid var(--q-paper-3);
  border-radius: 28px;
  background: var(--q-paper);
  box-shadow: var(--q-shadow-strong);
  overflow: hidden;
}

.q-windowbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--q-paper-3);
  background: var(--q-paper-2);
  padding: 14px 18px;
}

.q-windowbar__dots {
  display: flex;
  gap: 7px;
}

.q-windowbar__dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--q-paper-3);
}

.q-windowbar__dots span:first-child { background: #ff6058; }
.q-windowbar__dots span:nth-child(2) { background: #ffbd2e; }
.q-windowbar__dots span:nth-child(3) { background: #27c93f; }

.q-windowbar__label {
  color: var(--q-ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.q-dashboard__body {
  padding: 24px;
}

.q-dashboard__title {
  margin: 0;
  color: var(--q-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.024em;
  line-height: 1.12;
}

.q-dashboard__sub {
  margin: 8px 0 0;
  color: var(--q-ink-2);
  font-size: 14px;
}

.q-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.q-metric {
  min-height: 126px;
  border: 1px solid var(--q-paper-3);
  border-radius: 18px;
  background: var(--q-paper);
  padding: 18px;
}

.q-metric--dark {
  position: relative;
  overflow: hidden;
  border-color: var(--q-ink);
  background: var(--q-ink);
  color: #fff;
}

.q-metric--dark::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  background: radial-gradient(closest-side, rgba(255, 69, 0, 0.35), transparent);
  filter: blur(14px);
}

.q-metric__label {
  color: var(--q-ink-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.q-metric--dark .q-metric__label {
  color: rgba(255, 255, 255, 0.58);
}

.q-metric__value {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--q-ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.q-metric--dark .q-metric__value {
  color: #fff;
}

.q-metric__note {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--q-ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.q-metric--dark .q-metric__note {
  color: rgba(255, 255, 255, 0.76);
}

.q-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.q-chip {
  border: 1px solid rgba(255, 69, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 69, 0, 0.08);
  padding: 6px 10px;
  color: var(--q-orange-deep);
  font-size: 12px;
  font-weight: 700;
}

.q-section {
  border-bottom: 1px solid var(--q-paper-3);
  padding: 80px 0;
  background: var(--q-paper);
}

.q-section--alt {
  background: var(--q-paper-2);
}

.q-section-head {
  max-width: 840px;
  margin-bottom: 40px;
}

.q-section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.q-section-head h2 {
  margin: 16px 0 0;
  color: var(--q-ink);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.05;
}

.q-section-head p {
  max-width: 64ch;
  margin: 16px 0 0;
  color: var(--q-ink-2);
  font-size: 17px;
  line-height: 1.62;
}

.q-section-head--center p {
  margin-right: auto;
  margin-left: auto;
}

.q-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.q-card {
  position: relative;
  border: 1px solid var(--q-paper-3);
  border-radius: 24px;
  background: var(--q-paper);
  padding: 28px;
  box-shadow: var(--q-shadow-card);
}

.q-card__index {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 69, 0, 0.1);
  color: var(--q-orange);
  font-size: 14px;
  font-weight: 800;
}

.q-card h3 {
  margin: 22px 0 0;
  color: var(--q-ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.q-card p {
  margin: 12px 0 0;
  color: var(--q-ink-2);
  font-size: 15px;
  line-height: 1.62;
}

.q-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.q-comment-card {
  border: 1px solid rgba(46, 107, 62, 0.22);
  border-top: 4px solid var(--q-good);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--q-paper) 0%, rgba(46, 107, 62, 0.05) 100%);
  padding: 26px;
}

.q-comment-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.q-avatar {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 999px;
  object-fit: cover;
  background: var(--q-paper-3);
}

.q-user {
  color: var(--q-ink);
  font-size: 16px;
  font-weight: 800;
}

.q-user-meta {
  margin-top: 4px;
  color: var(--q-ink-3);
  font-size: 13px;
  font-weight: 600;
}

.q-comment-body {
  margin-top: 20px;
  border-top: 1px solid var(--q-rule-soft);
  padding-top: 20px;
  color: var(--q-ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

.q-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
  border-top: 1px dashed var(--q-rule);
  padding-top: 16px;
  color: var(--q-ink-3);
  font-size: 13px;
  font-weight: 700;
}

.q-comment-actions b {
  color: var(--q-good);
}

.q-avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 24px;
}

.q-avatar-stack img {
  width: 42px;
  height: 42px;
  border: 3px solid var(--q-paper);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
}

.q-avatar-stack img + img {
  margin-left: -12px;
}

.q-cta-dark {
  position: relative;
  overflow: hidden;
  background: var(--q-ink);
  color: #fff;
  padding: 84px 0;
  text-align: center;
}

.q-cta-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255, 69, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.q-cta-dark .q-wrap {
  position: relative;
  z-index: 1;
}

.q-cta-dark h2 {
  margin: 0 auto;
  max-width: 760px;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.05;
}

.q-cta-dark p {
  margin: 20px auto 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.6;
}

.q-cta-dark__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.q-footer {
  background: var(--q-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .q-hero__grid,
  .q-proof-grid {
    grid-template-columns: 1fr;
  }

  .q-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .q-nav__row {
    min-height: 60px;
  }

  .q-nav .q-pill,
  .q-nav .q-button--ghost {
    display: none;
  }

  .q-hero {
    padding: 52px 0 56px;
  }

  .q-display {
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: 1.07;
  }

  .q-hero__grid {
    gap: 30px;
  }

  .q-dashboard__body {
    padding: 18px;
  }

  .q-metric-grid,
  .q-card-grid {
    grid-template-columns: 1fr;
  }

  .q-section {
    padding: 56px 0;
  }

  .q-card,
  .q-comment-card {
    padding: 22px;
  }
}
