:root {
  --bg: #07111f;
  --bg-soft: #0d1b31;
  --surface: rgba(12, 26, 48, 0.72);
  --surface-strong: rgba(14, 32, 58, 0.9);
  --border: rgba(142, 180, 255, 0.18);
  --text: #edf4ff;
  --muted: #9eb4d8;
  --accent: #72f2c0;
  --accent-strong: #1fb6b2;
  --warm: #ffb86a;
  --danger: #ff7b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(53, 102, 186, 0.35), transparent 32%),
    radial-gradient(circle at top right, rgba(40, 200, 166, 0.22), transparent 28%),
    linear-gradient(160deg, #07111f 0%, #0b1730 45%, #07101d 100%);
  font-family: "Manrope", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 90%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.hero {
  padding: 24px 0 36px;
}

.topbar,
.hero-grid,
.feature-grid,
.matcher-layout,
.filter-grid,
.monetization-grid,
.signal-grid {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(120, 255, 211, 0.95), transparent 48%),
    linear-gradient(135deg, #12284b 0%, #1a3764 45%, #63bdf7 100%);
  border: 1px solid rgba(116, 166, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #eef2ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  text-align: center;
}

.brand p,
.brand span,
.hero-copy h1,
.hero-copy p,
.eyebrow,
.section-heading h2,
.section-text,
.feature-card h3,
.feature-card p,
.assistant-head p,
.chat-bubble,
.signal-grid span,
.signal-grid strong,
.input-label,
label span,
textarea,
select,
.results-kicker,
.results-summary,
.monetization-card h3,
.monetization-card p,
.hero-points,
.top-link,
.button,
.confidence-pill {
  margin: 0;
}

.brand p {
  font-weight: 800;
  font-size: clamp(3.4rem, 7.2vw, 7.2rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand > div > span,
.top-link,
.hero-text,
.hero-points,
.section-text,
.feature-card p,
.results-summary,
.monetization-card p,
label span {
  color: var(--muted);
}

.brand > div {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.brand > div > span {
  display: block;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 4px solid var(--accent);
  color: var(--accent);
  font-size: clamp(0.72rem, 0.95vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-trigger {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(104, 226, 201, 0.24);
  background: linear-gradient(135deg, rgba(12, 34, 52, 0.96), rgba(16, 61, 67, 0.9));
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(5, 13, 26, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.auth-trigger.is-profile {
  min-width: 180px;
  justify-content: flex-start;
  border-radius: 22px;
  padding: 10px 16px 10px 10px;
  background:
    radial-gradient(circle at left, rgba(114, 242, 192, 0.2), transparent 40%),
    linear-gradient(135deg, rgba(16, 35, 58, 0.98), rgba(18, 63, 69, 0.94));
}

.auth-trigger-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(114, 242, 192, 0.36);
  background: linear-gradient(135deg, rgba(114, 242, 192, 0.86), rgba(92, 178, 244, 0.86));
  color: #07111f;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-trigger-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-trigger-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 226, 201, 0.44);
  box-shadow: 0 18px 36px rgba(5, 13, 26, 0.34);
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 7, 17, 0.74);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 460px);
  max-height: min(92vh, 820px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(104, 226, 201, 0.18);
  background:
    radial-gradient(circle at top left, rgba(104, 226, 201, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(23, 35, 61, 0.98), rgba(15, 27, 47, 0.98));
  box-shadow: 0 36px 90px rgba(2, 7, 17, 0.5);
  z-index: 41;
  scrollbar-width: thin;
  scrollbar-color: rgba(114, 242, 192, 0.55) rgba(255, 255, 255, 0.05);
}

.auth-modal::-webkit-scrollbar {
  width: 10px;
}

.auth-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.auth-modal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(114, 242, 192, 0.85), rgba(68, 176, 255, 0.85));
  border-radius: 999px;
  border: 2px solid rgba(16, 26, 46, 0.72);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(114, 242, 192, 0.34);
  background: linear-gradient(135deg, rgba(22, 40, 66, 0.96), rgba(21, 55, 71, 0.96));
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(114, 242, 192, 0.28);
}

.auth-modal-close:hover {
  border-color: rgba(114, 242, 192, 0.56);
  background: linear-gradient(135deg, rgba(27, 50, 80, 0.98), rgba(24, 72, 82, 0.98));
}

.auth-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(114, 242, 192, 0.18);
}

.auth-modal-close.is-hinted {
  border-color: rgba(114, 242, 192, 0.8);
  background: linear-gradient(135deg, rgba(33, 66, 92, 0.98), rgba(28, 90, 92, 0.98));
  animation: auth-close-hint 0.9s ease;
}

.auth-modal-kicker,
.auth-modal-title,
.auth-modal-text,
.auth-field span,
.auth-input,
.auth-register-link {
  margin: 0;
}

.auth-modal-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-modal-title {
  margin-top: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  line-height: 0.95;
}

.auth-modal-text {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(114, 242, 192, 0.16);
  background: rgba(114, 242, 192, 0.08);
  color: var(--text);
  line-height: 1.6;
}

.auth-status.is-error {
  border-color: rgba(255, 123, 107, 0.24);
  background: rgba(255, 123, 107, 0.1);
}

.auth-status.is-success {
  border-color: rgba(114, 242, 192, 0.26);
  background: rgba(114, 242, 192, 0.12);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-avatar-field {
  display: grid;
  justify-items: center;
}

.auth-avatar-upload {
  width: 100%;
  min-height: 116px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  border: 1px dashed rgba(114, 242, 192, 0.35);
  background:
    radial-gradient(circle at 42px 42px, rgba(114, 242, 192, 0.18), transparent 42%),
    rgba(7, 17, 31, 0.62);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.auth-avatar-upload:hover,
.auth-avatar-upload:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(114, 242, 192, 0.62);
  background:
    radial-gradient(circle at 42px 42px, rgba(114, 242, 192, 0.25), transparent 42%),
    rgba(9, 24, 42, 0.82);
}

.auth-avatar-preview {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(114, 242, 192, 0.34);
  background: linear-gradient(135deg, rgba(114, 242, 192, 0.82), rgba(96, 185, 246, 0.86));
  color: #07111f;
  font-size: 2rem;
  font-weight: 900;
}

.auth-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-avatar-copy {
  display: grid;
  gap: 5px;
}

.auth-avatar-copy strong {
  font-size: 1rem;
}

.auth-avatar-copy small {
  color: var(--muted);
  line-height: 1.45;
}

.auth-field {
  display: grid;
  gap: 8px;
  position: relative;
}

.auth-field span {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.88);
  color: var(--text);
  font: inherit;
}

.auth-input:focus {
  outline: none;
  border-color: rgba(104, 226, 201, 0.5);
  box-shadow: 0 0 0 3px rgba(104, 226, 201, 0.12);
}

.auth-picker {
  position: relative;
}

.auth-picker-trigger {
  width: 100%;
  min-height: 58px;
  padding: 16px 46px 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.88)),
    linear-gradient(135deg, transparent 50%, rgba(114, 242, 192, 0.8) 50%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 12px 12px;
  background-position: 0 0, calc(100% - 18px) center;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.auth-picker.is-open .auth-picker-trigger,
.auth-picker-trigger:focus-visible {
  outline: none;
  border-color: rgba(104, 226, 201, 0.5);
  box-shadow: 0 0 0 3px rgba(104, 226, 201, 0.12);
}

.auth-picker-trigger.is-placeholder {
  color: rgba(158, 180, 216, 0.7);
}

.auth-picker-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 3;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(104, 226, 201, 0.2);
  background:
    radial-gradient(circle at top left, rgba(104, 226, 201, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(18, 31, 54, 0.98), rgba(12, 22, 40, 0.98));
  box-shadow: 0 24px 60px rgba(2, 7, 17, 0.42);
}

.auth-options-popover {
  display: grid;
  gap: 8px;
}

.auth-option {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.auth-option:hover,
.auth-option.is-selected {
  background: rgba(114, 242, 192, 0.12);
  border-color: rgba(114, 242, 192, 0.28);
  transform: translateY(-1px);
}

.auth-calendar-head,
.auth-calendar-weekdays,
.auth-calendar-grid {
  display: grid;
}

.auth-calendar-head {
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.auth-calendar-controls {
  display: grid;
  gap: 8px;
  position: relative;
}

.auth-calendar-title {
  text-align: center;
  font-size: 0.98rem;
}

.auth-year-picker {
  position: relative;
}

.auth-calendar-year-button {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.88)),
    linear-gradient(135deg, transparent 50%, rgba(114, 242, 192, 0.8) 50%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 12px 12px;
  background-position: 0 0, calc(100% - 18px) center;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding-right: 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
}

.auth-calendar-year-button:focus,
.auth-year-picker.is-open .auth-calendar-year-button {
  outline: none;
  border-color: rgba(104, 226, 201, 0.5);
  box-shadow: 0 0 0 3px rgba(104, 226, 201, 0.12);
}

.auth-year-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 224px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(104, 226, 201, 0.18);
  background:
    radial-gradient(circle at top left, rgba(104, 226, 201, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(18, 31, 54, 0.98), rgba(12, 22, 40, 0.98));
  box-shadow: 0 20px 50px rgba(2, 7, 17, 0.42);
  z-index: 5;
  scrollbar-width: thin;
  scrollbar-color: rgba(114, 242, 192, 0.55) rgba(255, 255, 255, 0.05);
}

.auth-year-popover::-webkit-scrollbar {
  width: 8px;
}

.auth-year-popover::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.auth-year-popover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(114, 242, 192, 0.85), rgba(68, 176, 255, 0.85));
  border-radius: 999px;
}

.auth-year-option {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.auth-year-option:hover,
.auth-year-option.is-selected {
  background: rgba(114, 242, 192, 0.12);
  border-color: rgba(114, 242, 192, 0.28);
}

.auth-calendar-nav {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-calendar-weekdays,
.auth-calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.auth-calendar-weekdays {
  margin-bottom: 8px;
}

.auth-calendar-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.auth-calendar-day {
  height: 38px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.auth-calendar-day.is-muted {
  opacity: 0.35;
}

.auth-calendar-day:hover,
.auth-calendar-day.is-selected {
  border-color: rgba(114, 242, 192, 0.3);
  background: rgba(114, 242, 192, 0.14);
}

.auth-calendar-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(114, 242, 192, 0.45);
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-forgot-link {
  justify-self: center;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-forgot-link:hover {
  color: var(--accent);
}

.auth-register-link {
  justify-self: center;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-register-link:hover {
  color: var(--accent);
}

@keyframes auth-close-hint {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(114, 242, 192, 0.16);
  }

  40% {
    transform: scale(1.12);
    box-shadow: 0 0 0 10px rgba(114, 242, 192, 0.14);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(114, 242, 192, 0.05);
  }
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  padding-top: 48px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.77rem;
  font-weight: 800;
}

.hero-copy h1,
.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 14px 0 16px;
  max-width: 12ch;
}

.hero-text,
.section-text,
.feature-card p,
.monetization-card p,
.results-summary {
  font-size: 1.02rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.top-link:hover,
.prompt-chip:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #79caff);
  color: #07111f;
  box-shadow: 0 18px 40px rgba(77, 173, 198, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}

.button-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(7, 17, 31, 0.22);
  border-top-color: #07111f;
  display: none;
  flex: 0 0 18px;
  animation: button-spin 0.8s linear infinite;
}

.button.is-loading {
  pointer-events: none;
}

.button.is-loading .button-spinner {
  display: inline-block;
}

.button.is-loading .button-label {
  display: none;
}

@keyframes button-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.scroll-top-button {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(114, 242, 192, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(114, 242, 192, 0.16), rgba(121, 202, 255, 0.16));
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(7, 17, 31, 0.28);
  z-index: 30;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease, background 180ms ease;
}

.scroll-top-button:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 242, 192, 0.36);
  background: linear-gradient(135deg, rgba(114, 242, 192, 0.22), rgba(121, 202, 255, 0.2));
}

.scroll-top-button[hidden] {
  display: none !important;
}

.scroll-top-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.full-width {
  width: 100%;
}

.hero-points {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-points li::before {
  content: "•";
  color: var(--warm);
  margin-right: 10px;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel,
.assistant-card,
.matcher-card,
.results-card,
.feature-card,
.monetization-card {
  position: relative;
}

.assistant-card,
.matcher-card,
.results-card {
  border-radius: 30px;
  padding: 26px;
}

.assistant-card::after,
.matcher-card::after,
.results-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 38%);
}

.assistant-head,
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.assistant-status {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(114, 242, 192, 0.12);
}

.assistant-flow {
  display: grid;
  gap: 12px;
  margin: 22px 0 24px;
}

.chat-bubble {
  padding: 16px 18px;
  border-radius: 18px;
  line-height: 1.6;
}

.chat-bubble.user {
  background: rgba(255, 255, 255, 0.06);
}

.chat-bubble.ai {
  background: linear-gradient(135deg, rgba(31, 182, 178, 0.2), rgba(116, 166, 255, 0.17));
}

.signal-grid {
  grid-template-columns: repeat(3, 1fr);
}

.signal-grid div,
.result-card {
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.signal-grid strong,
.results-head h3 {
  display: block;
  font-size: 1.12rem;
}

.section {
  padding: 44px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 12px 0 0;
}

.feature-grid,
.monetization-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.monetization-card {
  padding: 24px;
  border-radius: 24px;
}

.feature-card h3,
.monetization-card h3,
.result-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.input-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
}

textarea,
select {
  width: 100%;
  border: 1px solid rgba(158, 180, 216, 0.18);
  border-radius: 18px;
  background: rgba(6, 16, 30, 0.65);
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 140px;
  margin-bottom: 16px;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.prompt-chip {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.filter-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
}

.filter-grid.has-age-filter {
  grid-template-columns: repeat(4, 1fr);
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.results-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 800;
}

.confidence-pill {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(114, 242, 192, 0.12);
  border: 1px solid rgba(114, 242, 192, 0.18);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.results-summary {
  margin: 18px 0 20px;
}

.results-source {
  margin: -6px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.results-source a {
  color: var(--accent);
}

.results-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.results-toggle {
  min-width: 140px;
}

.result-card {
  padding: 18px;
  height: 100%;
  min-height: 860px;
  display: flex;
  flex-direction: column;
}

.result-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.result-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-height: calc(1.35em * 2);
}

.result-age-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(114, 242, 192, 0.12);
  border: 1px solid rgba(114, 242, 192, 0.18);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.result-platforms {
  margin: 0 0 14px;
  min-height: calc(1.4em * 2);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.result-facts {
  min-height: calc(1.5em * 3);
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.result-facts div + div {
  margin-top: 2px;
}

.result-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(114, 242, 192, 0.18), rgba(121, 202, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(142, 180, 255, 0.12);
}

.result-cover.has-image {
  background-color: rgba(255, 255, 255, 0.03);
}

.result-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.06), rgba(7, 17, 31, 0.2));
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-story {
  margin-top: 4px;
  min-height: calc(1.65em * 4 + 28px);
}

.result-story-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.result-story p {
  color: var(--muted);
}

.result-story-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.65em * 4);
}

.result-card.expanded .result-story {
  min-height: 0;
}

.result-card.expanded .result-story-text {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  min-height: 0;
}

.description-toggle {
  align-self: flex-start;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(114, 242, 192, 0.2);
  background: rgba(114, 242, 192, 0.08);
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.description-toggle:hover {
  transform: translateY(-1px);
  background: rgba(114, 242, 192, 0.14);
  border-color: rgba(114, 242, 192, 0.32);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 16px;
  min-height: 88px;
  align-content: flex-start;
}

.result-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
  align-items: center;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.store-link:hover {
  transform: translateY(-1px);
  border-color: rgba(114, 242, 192, 0.28);
  background: rgba(114, 242, 192, 0.08);
}

.store-link-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  flex: 0 0 24px;
}

.store-link-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.store-link-text {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.store-link-steam .store-link-mark {
  background: rgba(74, 125, 211, 0.18);
  color: #d7eaff;
}

.store-link-epic .store-link-mark {
  background: rgba(255, 255, 255, 0.92);
  color: #0d1117;
}

.store-link-playstation .store-link-mark {
  background: rgba(0, 93, 206, 0.16);
  color: #2e8cff;
}

.meta-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.82rem;
}

.meta-pill-accent {
  background: rgba(114, 242, 192, 0.12);
  border: 1px solid rgba(114, 242, 192, 0.16);
  color: var(--accent);
}

.fit-scale {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 14px;
}

.fit-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), #77c7ff);
}

.result-rating {
  margin-top: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .auth-trigger {
    justify-self: start;
  }

  .hero-grid,
  .feature-grid,
  .monetization-grid {
    grid-template-columns: 1fr;
  }

  .results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .brand {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 1.95rem;
  }

  .brand p {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .brand > div > span {
    white-space: normal;
    font-size: 0.72rem;
  }

  .auth-trigger {
    width: 100%;
    justify-content: center;
    justify-self: stretch;
  }

  .auth-trigger.is-profile {
    justify-content: flex-start;
  }

  .auth-avatar-upload {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero {
    padding-top: 16px;
  }

  .assistant-card,
  .matcher-card,
  .results-card {
    padding: 20px;
    border-radius: 24px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .results-list {
    grid-template-columns: 1fr;
  }
}
