:root {
  --bg: #020202;
  --panel: #060708;
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.62);
  --assessment-glow: rgba(78, 93, 127, 0.34);
  --dealflow-glow: rgba(50, 81, 143, 0.38);
  --portfolio-glow: rgba(128, 65, 20, 0.3);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #040404 0%, #010101 100%);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

body.demo-open {
  overflow: hidden;
}

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

.hero {
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.42em;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

.section-label {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ideas-panel {
  margin-top: 22px;
}

.other-ideas-panel {
  margin-top: 18px;
}

.using-ai-panel {
  margin-top: 18px;
}

.ideas-box {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62)),
    var(--panel);
  overflow: hidden;
}

.ideas-box__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
}

.ideas-box__summary::-webkit-details-marker {
  display: none;
}

.ideas-box__hint {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.ideas-box__hint-static {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ideas-box[open] .ideas-box__hint {
  color: rgba(245, 241, 234, 0.84);
}

.ideas-box[open] .ideas-box__hint::before {
  content: attr(data-open-label);
}

.ideas-box:not([open]) .ideas-box__hint::before {
  content: attr(data-closed-label);
}

.ideas-box__hint {
  font-size: 0;
}

.ideas-box__content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 30px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: stretch;
}

.ideas-box__content:not(.other-ideas__content) .ideas-entry__sections {
  grid-template-rows: 12rem 9rem auto;
}

.ideas-box__content:not(.other-ideas__content) .ideas-point {
  align-content: start;
}

.ideas-box__content:not(.other-ideas__content) .ideas-point:not(.ideas-point-stack) p {
  min-height: 0;
}

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

.other-ideas__content {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.other-ideas-grid .ideas-entry__head {
  min-height: 108px;
}

.other-ideas-grid .ideas-entry__head h3 {
  min-height: 0;
}

.other-ideas-grid .ideas-entry__sections {
  gap: 16px;
  grid-template-rows: 13rem 11rem auto;
}

.other-ideas-grid .ideas-point-stack {
  padding-top: 0;
}

.other-ideas-grid .ideas-point:not(.ideas-point-stack) p {
  min-height: 0;
}

.other-ideas-grid .ideas-point {
  align-content: start;
}

.using-ai-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.using-ai-grid .ideas-entry__head {
  min-height: 72px;
}

.using-ai-grid .ideas-entry__head h3 {
  min-height: 0;
}

.using-ai-grid .ideas-entry__sections {
  gap: 12px;
  grid-template-rows: none;
}

.using-ai-grid .ideas-point {
  gap: 12px;
}

.using-ai-grid .ideas-point p {
  min-height: 0;
}

.ideas-entry {
  position: relative;
  padding: 22px 20px 28px;
  margin-top: 8px;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.46)),
    rgba(10, 11, 15, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.ideas-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.ideas-entry-assessment::before {
  background: radial-gradient(circle at 34% 20%, rgba(58, 82, 150, 0.18), transparent 40%);
}

.ideas-entry-dealflow::before {
  background: radial-gradient(circle at 34% 20%, rgba(54, 82, 148, 0.18), transparent 40%);
}

.ideas-entry-portfolio::before {
  background: radial-gradient(circle at 34% 20%, rgba(160, 87, 32, 0.18), transparent 40%);
}

.ideas-entry h3 {
  position: relative;
  margin: 0 0 16px;
  min-height: 3.2rem;
  display: flex;
  align-items: flex-start;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.ideas-entry__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ideas-entry__head h3 {
  margin: 0 0 16px;
}

.ideas-demo-button {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.ideas-demo-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.ideas-entry__sections {
  position: relative;
  display: grid;
  gap: 10px;
}

.ideas-point {
  display: grid;
  gap: 10px;
}

.ideas-point:not(.ideas-point-stack) p {
  min-height: 6rem;
}

.ideas-point-stack {
  padding-top: 0;
}

.ideas-point h4 {
  margin: 0;
  color: rgba(245, 241, 234, 0.76);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ideas-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.ideas-inline-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.ideas-inline-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.demo-modal__panel {
  position: relative;
  width: min(880px, calc(100% - 40px));
  margin: 72px auto;
  padding: 28px;
  max-height: calc(100vh - 96px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(12, 12, 14, 0.94), rgba(4, 4, 5, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.demo-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.demo-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.demo-modal__title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.demo-modal__close {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.demo-preview {
  display: grid;
  gap: 18px;
}

.demo-modal__body {
  overflow-y: auto;
  padding-right: 6px;
}

.demo-app {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    rgba(7, 8, 10, 0.92);
}

.demo-app__sidebar {
  padding: 20px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.demo-app__brand {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-app__nav {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.02);
}

.demo-app__main {
  padding: 20px;
}

.demo-app__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-app__pill {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(245, 241, 234, 0.84);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.03);
}

.demo-app__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-app__panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.demo-app__panel-wide {
  grid-column: 1 / -1;
}

.demo-app__panel h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.demo-app__panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.report-preview {
  display: grid;
  gap: 16px;
}

.report-preview__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.report-preview__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.report-preview__hero h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.report-preview__badge {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
}

.report-preview__list {
  display: grid;
  gap: 12px;
}

.report-preview__item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.report-preview__item h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.report-preview__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.report-preview__item p + p {
  margin-top: 8px;
}

.idea-card {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.idea-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.idea-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.36);
}

.idea-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -5%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.8;
}

.idea-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 52%;
  height: 62%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05));
  transform: rotate(28deg);
}

.idea-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 370px;
  padding: 26px;
}

.idea-card__meta {
  margin: 0 0 14px;
  color: rgba(245, 241, 234, 0.66);
  font-size: 0.82rem;
  letter-spacing: 0.34em;
}

.idea-card h2 {
  max-width: 260px;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.idea-card__body {
  max-width: 290px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.idea-card__detail {
  max-width: 290px;
  margin: 14px 0 0;
  color: rgba(245, 241, 234, 0.82);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.idea-card__ghost {
  position: absolute;
  right: 18px;
  top: 72px;
  color: rgba(255, 255, 255, 0.08);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-style: italic;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.idea-card-assessment::before {
  background: radial-gradient(circle, var(--assessment-glow) 0%, transparent 72%);
}

.idea-card-assessment .idea-card__ghost {
  top: 64px;
  right: 28px;
}

.idea-card-dealflow::before {
  background: radial-gradient(circle, var(--dealflow-glow) 0%, transparent 72%);
}

.idea-card-portfolio::before {
  background: radial-gradient(circle, var(--portfolio-glow) 0%, transparent 72%);
}

.idea-card-portfolio .idea-card__ghost {
  color: rgba(169, 93, 35, 0.16);
}

.footer {
  padding: 12px 24px 28px;
  color: rgba(245, 241, 234, 0.5);
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.footer-link {
  color: #6ea8ff;
  text-decoration: none;
}

.footer-link:hover {
  color: #9fc4ff;
}

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

  .ideas-box__content {
    grid-template-columns: 1fr;
  }

  .other-ideas-grid {
    grid-template-columns: 1fr;
  }

  .using-ai-grid {
    grid-template-columns: 1fr;
  }

  .demo-modal__panel {
    margin: 28px auto;
    padding: 22px;
  }

  .demo-app {
    grid-template-columns: 1fr;
  }

  .demo-app__sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .demo-app__layout {
    grid-template-columns: 1fr;
  }

  .ideas-entry__sections {
    gap: 16px;
  }

  .ideas-point:not(.ideas-point-stack) p {
    min-height: 0;
  }

  .idea-card,
  .idea-card__content {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 28px, 1180px);
    padding-top: 34px;
  }

  .hero {
    margin-bottom: 24px;
  }

  .eyebrow {
    letter-spacing: 0.24em;
    line-height: 1.6;
  }

  .idea-card__content {
    padding: 22px;
  }

  .idea-card__ghost {
    top: 52px;
    right: 14px;
  }
}
