:root {
  color-scheme: light;
  --page: #f7f7f4;
  --ink: #111312;
  --muted: #555c58;
  --line: rgba(17, 19, 18, 0.14);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --panel: #ffffff;
  --panel-soft: #f7f7f5;
  --panel-shadow: rgba(34, 29, 24, 0.11);
  --hero-image: url("public/white.png");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #070b12;
    --ink: #f4f7fb;
    --muted: #aab4c0;
    --line: rgba(244, 247, 251, 0.16);
    --surface: rgba(10, 15, 24, 0.7);
    --surface-strong: rgba(12, 18, 28, 0.92);
    --panel: #111827;
    --panel-soft: #182233;
    --panel-shadow: rgba(0, 0, 0, 0.32);
    --hero-image: url("public/dark.png");
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #070b12;
  --ink: #f4f7fb;
  --muted: #aab4c0;
  --line: rgba(244, 247, 251, 0.16);
  --surface: rgba(10, 15, 24, 0.7);
  --surface-strong: rgba(12, 18, 28, 0.92);
  --panel: #111827;
  --panel-soft: #182233;
  --panel-shadow: rgba(0, 0, 0, 0.32);
  --hero-image: url("public/dark.png");
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f7f7f4;
  --ink: #111312;
  --muted: #555c58;
  --line: rgba(17, 19, 18, 0.14);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --panel: #ffffff;
  --panel-soft: #f7f7f5;
  --panel-shadow: rgba(34, 29, 24, 0.11);
  --hero-image: url("public/white.png");
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
}

main {
  overflow: clip;
}

.theme-toggle {
  position: fixed;
  z-index: 10;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.42);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.theme-toggle:hover {
  background: rgba(7, 10, 15, 0.6);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

.toggle-icon {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toggle-sun {
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow:
    0 -9px 0 -7px currentColor,
    0 9px 0 -7px currentColor,
    9px 0 0 -7px currentColor,
    -9px 0 0 -7px currentColor,
    6px 6px 0 -7px currentColor,
    -6px 6px 0 -7px currentColor,
    6px -6px 0 -7px currentColor,
    -6px -6px 0 -7px currentColor;
}

.toggle-moon {
  border-radius: 999px;
  box-shadow: inset -6px -2px 0 1px currentColor;
}

:root[data-theme="light"] .toggle-sun,
:root[data-theme="dark"] .toggle-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

:root[data-theme="light"] .toggle-moon,
:root[data-theme="dark"] .toggle-sun {
  opacity: 0;
  transform: scale(0.6) rotate(24deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center start;
  padding: clamp(28px, 5vw, 72px);
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.56) 0%,
      rgba(0, 0, 0, 0.22) 42%,
      rgba(0, 0, 0, 0.02) 100%
    ),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero h1 {
  max-width: 10.8ch;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 8.8vw, 8rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 16px 60px rgba(0, 0, 0, 0.48);
}

.startups {
  position: relative;
  --startup-page: #f7f7f5;
  --startup-ink: #171716;
  --startup-muted: #66615e;
  --startup-line: rgba(23, 23, 22, 0.11);
  --startup-panel: #ffffff;
  --startup-panel-soft: #f7f7f5;
  --startup-shadow: rgba(34, 29, 24, 0.13);
  min-height: 100svh;
  padding: clamp(54px, 8vw, 116px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, transparent calc(50% - 540px), var(--startup-line) 0, transparent calc(50% - 539px)),
    linear-gradient(90deg, transparent calc(50% + 539px), var(--startup-line) 0, transparent calc(50% + 540px)),
    linear-gradient(180deg, var(--startup-line) 1px, transparent 1px) 0 0 / 100% 112px,
    var(--startup-page);
}

.startup-stack {
  display: flex;
  min-width: 0;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  flex-direction: column;
  gap: 14px;
}

.startup-card {
  overflow: clip;
  min-width: 0;
  border: 0;
  border-radius: 24px;
  background: var(--startup-panel);
  box-shadow:
    0 28px 70px var(--startup-shadow),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.startup-card summary {
  position: relative;
  display: grid;
  min-height: 104px;
  padding: 26px 70px 24px 32px;
  cursor: pointer;
  list-style: none;
}

.startup-card summary::-webkit-details-marker {
  display: none;
}

.startup-card summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ink) 36%, transparent);
  outline-offset: -8px;
}

.card-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--startup-muted);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.card-title {
  display: block;
  color: var(--startup-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.card-chevron {
  position: absolute;
  top: 31px;
  right: 32px;
  width: 16px;
  height: 16px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  color: var(--startup-ink);
  transform: rotate(45deg);
  transform-origin: 62% 62%;
  transition: transform 180ms ease;
}

.startup-card[open] .card-chevron {
  transform: rotate(225deg);
}

.card-body {
  padding: 0 32px 32px;
}

.card-body p {
  max-width: 13.6em;
  margin: 0;
  color: var(--startup-muted);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.26;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.card-note {
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--startup-panel-soft);
}

.card-note span,
.card-note strong {
  display: block;
  letter-spacing: 0;
}

.card-note span {
  margin-bottom: 8px;
  color: var(--startup-muted);
  font-size: 1rem;
  line-height: 1.2;
}

.card-note strong {
  color: var(--startup-ink);
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  font-weight: 650;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.startup-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 34px 90px var(--startup-shadow),
    0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.founder-chat-launcher {
  position: fixed;
  z-index: 12;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #1f1a18;
  color: #ffffff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.founder-chat-launcher:hover {
  transform: translateY(-2px);
}

.founder-chat-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.founder-chat-shell.is-open {
  display: block;
}

.founder-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 10, 0.42);
  backdrop-filter: blur(12px);
}

.founder-chat-panel {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  display: flex;
  width: min(920px, calc(100vw - 24px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 22, 0.12);
  border-radius: 26px;
  background: #f8f8f5;
  color: #171716;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.28);
}

.founder-chat-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(23, 23, 22, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.founder-chat-label {
  display: block;
  margin-bottom: 5px;
  color: #696561;
  font-size: 0.94rem;
  line-height: 1.2;
}

.founder-chat-header h2 {
  margin: 0;
  color: #171716;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.founder-chat-icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #171716;
  cursor: pointer;
}

.founder-chat-icon-button span {
  width: 18px;
  height: 18px;
  position: relative;
}

.founder-chat-icon-button span::before,
.founder-chat-icon-button span::after {
  position: absolute;
  top: 8px;
  left: 1px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.founder-chat-icon-button span::before {
  transform: rotate(45deg);
}

.founder-chat-icon-button span::after {
  transform: rotate(-45deg);
}

.founder-chat-status {
  margin: 14px 26px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ebe8e2;
  color: #37322f;
  font-size: 0.94rem;
  line-height: 1.4;
}

.founder-chat-status[data-tone="error"] {
  background: #fff0ec;
  color: #8a2715;
}

.founder-chat-view {
  display: none;
  min-height: 0;
  flex: 1;
  padding: 20px 26px 26px;
}

.founder-chat-view.is-active {
  display: flex;
  flex-direction: column;
}

.founder-chat-tabs {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: #ebe8e2;
}

.founder-chat-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #696561;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.founder-chat-tabs button.is-active {
  background: #ffffff;
  color: #171716;
  box-shadow: 0 10px 28px rgba(34, 29, 24, 0.08);
}

.founder-chat-form {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.founder-chat-form.is-active {
  display: flex;
}

.founder-chat-form label {
  display: grid;
  gap: 7px;
}

.founder-chat-form span {
  color: #696561;
  font-size: 0.92rem;
  line-height: 1.2;
}

.founder-chat-form input,
.founder-chat-form textarea,
.founder-chat-composer textarea {
  width: 100%;
  border: 1px solid rgba(23, 23, 22, 0.14);
  border-radius: 16px;
  background: #ffffff;
  color: #171716;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  letter-spacing: 0;
  outline: 0;
}

.founder-chat-form input {
  min-height: 48px;
  padding: 0 15px;
}

.founder-chat-form textarea,
.founder-chat-composer textarea {
  resize: vertical;
  padding: 14px 15px;
}

.founder-chat-form input:focus,
.founder-chat-form textarea:focus,
.founder-chat-composer textarea:focus {
  border-color: #1f1a18;
  box-shadow: 0 0 0 3px rgba(31, 26, 24, 0.1);
}

.founder-chat-primary,
.founder-chat-secondary {
  min-height: 50px;
  border-radius: 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.founder-chat-primary {
  border: 0;
  background: #1f1a18;
  color: #ffffff;
}

.founder-chat-secondary {
  border: 1px solid rgba(23, 23, 22, 0.14);
  background: #ffffff;
  color: #171716;
}

.founder-chat-panel button:disabled,
.founder-chat-panel input:disabled,
.founder-chat-panel textarea:disabled {
  cursor: wait;
  opacity: 0.66;
}

.founder-chat-conversation,
.founder-chat-admin-thread {
  min-height: 0;
}

.founder-chat-profile {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(34, 29, 24, 0.08);
}

.founder-chat-profile div {
  display: grid;
  gap: 3px;
}

.founder-chat-profile span {
  color: #696561;
  font-size: 0.9rem;
}

.founder-chat-profile strong {
  color: #171716;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
}

.founder-chat-profile p {
  margin: 0;
  color: #4d4845;
  font-size: 0.96rem;
  line-height: 1.45;
}

.founder-chat-messages {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 6px 4px 16px;
}

.founder-chat-message {
  max-width: min(78%, 560px);
  padding: 13px 15px 11px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(34, 29, 24, 0.08);
}

.founder-chat-message.is-admin {
  align-self: flex-end;
  background: #1f1a18;
  color: #ffffff;
}

.founder-chat-message.is-visitor {
  align-self: flex-start;
}

.founder-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.45;
}

.founder-chat-message time {
  display: block;
  margin-top: 7px;
  color: currentColor;
  font-size: 0.78rem;
  line-height: 1.2;
  opacity: 0.58;
}

.founder-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 23, 22, 0.1);
}

.founder-chat-composer textarea {
  min-height: 52px;
  max-height: 180px;
}

.founder-chat-composer .founder-chat-primary {
  align-self: end;
  min-width: 104px;
}

.founder-chat-conversation > .founder-chat-secondary,
.founder-chat-admin > .founder-chat-secondary {
  margin-top: 12px;
}

.founder-chat-admin-grid {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 16px;
}

.founder-chat-inbox {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
}

.founder-chat-inbox-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(23, 23, 22, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: #171716;
  text-align: left;
  cursor: pointer;
}

.founder-chat-inbox-item.is-active {
  border-color: #1f1a18;
  box-shadow: 0 16px 42px rgba(34, 29, 24, 0.1);
}

.founder-chat-inbox-item span {
  font-weight: 800;
}

.founder-chat-inbox-item strong {
  overflow: hidden;
  color: #4d4845;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.founder-chat-inbox-item small {
  overflow: hidden;
  color: #77726d;
  font-size: 0.82rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.founder-chat-admin-thread {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.founder-chat-empty {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #696561;
  font-size: 0.96rem;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
    right: auto;
    left: 16px;
    background: rgba(7, 10, 15, 0.66);
    border-color: rgba(255, 255, 255, 0.42);
  }

  .hero {
    align-items: end;
    padding-bottom: 15svh;
    background-position: 62% center;
  }

  .hero h1 {
    max-width: min(100%, 8.4ch);
    font-size: clamp(2.85rem, 13.6vw, 4.1rem);
    line-height: 0.96;
  }

  .startups {
    padding-top: 38px;
    padding-bottom: 44px;
    background:
      linear-gradient(180deg, var(--startup-line) 1px, transparent 1px) 0 0 / 100% 96px,
      var(--startup-page);
  }

  .startup-card {
    border-radius: 22px;
  }

  .startup-card summary {
    min-height: 92px;
    padding: 22px 58px 20px 24px;
  }

  .card-chevron {
    top: 28px;
    right: 26px;
    width: 14px;
    height: 14px;
    border-width: 2.5px;
  }

  .card-body {
    padding: 0 24px 24px;
  }

  .card-body p {
    max-width: 100%;
  }

  .card-note {
    padding: 19px 20px;
    border-radius: 18px;
  }

  .founder-chat-launcher {
    right: 14px;
    bottom: 14px;
    min-height: 46px;
    padding: 0 18px;
  }

  .founder-chat-panel {
    inset: 0;
    width: 100%;
    border-radius: 0;
  }

  .founder-chat-header,
  .founder-chat-view {
    padding-right: 18px;
    padding-left: 18px;
  }

  .founder-chat-admin-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(120px, 34%) minmax(0, 1fr);
  }

  .founder-chat-composer {
    grid-template-columns: 1fr;
  }

  .founder-chat-composer .founder-chat-primary {
    width: 100%;
  }

  .founder-chat-message {
    max-width: 90%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .startup-card:hover {
    transform: none;
    transition: none;
  }
}
