@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --line: #d8e1ef;
  --line-soft: #e6edf7;
  --text: #1f2937;
  --muted: #5f6b7c;
  --heading: #151c2b;
  --accent: #2f6fed;
  --accent-soft: #e8f0ff;
  --danger: #b42318;
  --danger-soft: #fdecec;
  --warn: #8a5a00;
  --warn-soft: #fff5dc;
  --success: #22863a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47, 111, 237, 0.08), transparent 70%),
    radial-gradient(700px 500px at 5% 5%, rgba(180, 35, 24, 0.04), transparent 65%),
    linear-gradient(180deg, #fbfdff 0%, #f4f7fb 60%, #eef3fb 100%);
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01';
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

main {
  width: 100%;
}

.app-shell {
  min-height: 100vh;
}

/* ===== Header ===== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1.4rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--heading);
}

.logo-link:hover {
  text-decoration: none;
}

.logo-mark {
  font-size: 1.45rem;
  line-height: 1;
}

.logo-text {
  font-weight: 800;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.primary-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 0.6rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.primary-nav-link:hover {
  background: #f2f6fc;
  color: var(--heading);
  text-decoration: none;
}

.primary-nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-cta {
  display: inline-flex;
}

/* ===== Buttons ===== */

.btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  border-radius: 0.7rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  background: #215fd8;
  text-decoration: none;
}

.btn.btn-secondary {
  background: #fff;
  border-color: #c7d5eb;
  color: #35517c;
  font-weight: 600;
}

.btn.btn-secondary:hover {
  background: #f4f8ff;
}

/* ===== Layout ===== */

.app-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 4rem;
}

/* ===== Hero ===== */

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--heading);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.lede {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.55;
  max-width: 68ch;
}

.lede.subtle {
  color: var(--muted);
  font-size: 1.02rem;
}

.lede strong {
  color: var(--heading);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-muted {
  background: #f1f4fa;
  color: #586880;
}

/* ===== Ideas list ===== */

.ideas {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.idea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03), 0 8px 24px rgba(16, 24, 40, 0.04);
  scroll-margin-top: 5rem;
}

.idea-header {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.idea-number {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 0.55rem;
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  margin-top: 0.18rem;
}

.idea-header h2 {
  color: var(--heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.idea-tagline {
  color: var(--muted);
  font-style: italic;
  font-size: 0.98rem;
  margin-top: 0.25rem;
}

.idea-body {
  display: grid;
  gap: 1.05rem;
}

.idea-section h3 {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}

.idea-section p {
  line-height: 1.55;
}

.idea-section ul {
  display: grid;
  gap: 0.48rem;
  padding-left: 1.1rem;
}

.idea-section li {
  line-height: 1.5;
}

.idea-section li strong {
  color: var(--heading);
}

/* graveyard + escape sections get a tinted card */

.idea-section.graveyard {
  background: var(--danger-soft);
  border: 1px solid #f6d4d0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.idea-section.graveyard h3 {
  color: var(--danger);
}

.idea-section.graveyard p {
  color: #5a2118;
}

.idea-section.escape {
  background: #ecfaf1;
  border: 1px solid #cbe9d5;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
}

.idea-section.escape h3 {
  color: var(--success);
}

.idea-section.escape p {
  color: #1d4a2b;
}

.idea-section.bottom-line {
  border-radius: 0.75rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid transparent;
  display: grid;
  gap: 0.25rem;
}

.idea-section.bottom-line h3 {
  letter-spacing: 0.08em;
}

.idea-section.bottom-line p {
  font-weight: 600;
  line-height: 1.5;
}

.idea-section.bottom-line.bottom-line-avoid {
  background: #fbe9e6;
  border-color: #efbfb7;
}

.idea-section.bottom-line.bottom-line-avoid h3 {
  color: var(--danger);
}

.idea-section.bottom-line.bottom-line-avoid p {
  color: #5a2118;
}

.idea-section.bottom-line.bottom-line-10x {
  background: #fff5dc;
  border-color: #f1d99e;
}

.idea-section.bottom-line.bottom-line-10x h3 {
  color: var(--warn);
}

.idea-section.bottom-line.bottom-line-10x p {
  color: #5a3d00;
}

/* ===== Trending AI section ===== */

.trending-card {
  margin-top: 1.6rem;
}

.trending-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.trending-card h2 {
  color: var(--heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
}

.trending-sub {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.trending-list {
  display: grid;
  gap: 0.85rem;
}

.trend {
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  padding: 0.95rem 1.05rem;
  background: #fbfdff;
  display: grid;
  gap: 0.4rem;
}

.trend-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}

.trend-title {
  color: var(--heading);
  font-size: 1.05rem;
  font-weight: 800;
}

.trend-tags {
  display: inline-flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.trend-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.trend-tag.trend-tag-hot {
  background: #fde5e1;
  color: var(--danger);
}

.trend-pitch {
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

.trend-why,
.trend-graveyard {
  font-size: 0.95rem;
  line-height: 1.5;
}

.trend-why strong,
.trend-graveyard strong {
  color: var(--heading);
}

/* ===== Submit form ===== */

.submit-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  display: grid;
  gap: 0.32rem;
}

.form-label {
  font-weight: 700;
  color: var(--heading);
  font-size: 0.92rem;
}

.form-hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

.submit-form input,
.submit-form textarea {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 0.7rem;
  padding: 0.62rem 0.72rem;
  width: 100%;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  resize: vertical;
}

.submit-form input:focus-visible,
.submit-form textarea:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.35);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.2rem;
}

.form-actions .btn {
  padding: 0.65rem 1.1rem;
}

.form-status {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.form-status[data-tone='error'] {
  color: var(--danger);
}

.form-status[data-tone='success'] {
  color: var(--success);
}

.form-fineprint {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.3rem;
}

@media (max-width: 600px) {
  .form-row-split {
    grid-template-columns: 1fr;
  }
}

/* ===== Rankings table ===== */

.rankings-card {
  margin-bottom: 1.6rem;
}

.rankings-header {
  margin-bottom: 1rem;
}

.rankings-header h2 {
  color: var(--heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.rankings-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 0.7rem;
  border: 1px solid var(--line-soft);
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rankings-table th,
.rankings-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}

.rankings-table tbody tr:last-child td {
  border-bottom: 0;
}

.rankings-table tbody tr:hover {
  background: #f8fbff;
}

.rankings-table th {
  color: #647089;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f4f7fc;
}

.rankings-table th:first-child,
.rankings-table td:first-child {
  width: 2.2rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.rankings-table td a {
  color: var(--heading);
  font-weight: 600;
}

.rankings-table td a:hover {
  color: var(--accent);
  text-decoration: none;
}

.heat,
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.heat-1 {
  background: #f1f4fa;
  color: #586880;
}

.heat-2 {
  background: #fff1d8;
  color: #8a5a00;
}

.heat-3 {
  background: #fde5e1;
  color: var(--danger);
}

.heat-trending {
  background: #ecfaf1;
  color: var(--success);
}

.verdict-avoid {
  background: #fde5e1;
  color: var(--danger);
}

.verdict-10x {
  background: #fff1d8;
  color: #8a5a00;
}

.rankings-divider td {
  background: #f4f7fc !important;
  color: #647089;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.55rem 0.85rem;
}

.rankings-table tbody tr.rankings-divider:hover td {
  background: #f4f7fc !important;
}

.rankings-footer {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

.rankings-footer a {
  font-weight: 700;
}

/* ===== Card sections ===== */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 1px rgba(16, 24, 40, 0.03), 0 8px 24px rgba(16, 24, 40, 0.04);
  scroll-margin-top: 5rem;
}

.card h2 {
  color: var(--heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}

.card p {
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.card ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.1rem;
  margin-bottom: 0.7rem;
}

.card li strong {
  color: var(--heading);
}

.callout {
  border-left: 3px solid var(--accent);
  background: #f6faff;
  padding: 0.7rem 0.95rem;
  border-radius: 0 0.55rem 0.55rem 0;
  font-weight: 600;
  color: var(--heading);
}

.explainer {
  margin-bottom: 1.1rem;
}

.submit-card {
  background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 100%);
}

/* ===== Footer ===== */

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.footer-meta {
  font-size: 0.84rem;
  color: #7a8597;
}

/* ===== Responsive ===== */

@media (max-width: 720px) {
  .app-header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .header-cta {
    display: none;
  }

  .app-main {
    padding: 1.75rem 1rem 3rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h1 br {
    display: none;
  }

  .lede {
    font-size: 1.04rem;
  }

  .idea {
    padding: 1.1rem 1.1rem 1.2rem;
  }

  .idea-header {
    gap: 0.7rem;
  }

  .idea-header h2 {
    font-size: 1.25rem;
  }
}
