:root {
  --ink: #0d0d0d;
  --ink-2: #1a1a1a;
  --muted: #6e6e73;
  --line: #e5e5e2;
  --line-strong: #d4d4cf;
  --soft: #f7f7f5;
  --paper: #ffffff;
  --accent: #10a37f;
  --reel-bg: #faf9f6;
  --slot-bg: #0d0d0d;
  --slot-line: rgba(255, 255, 255, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-family:
    "Inter", "Söhne", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

button,
a {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  display: block;
}

.brand-mark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}

nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 160ms ease;
}

nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  gap: 8px;
}

button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.quiet-button,
.dark-button {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    transform 120ms ease,
    background 160ms ease,
    color 160ms ease;
}

.quiet-button {
  background: transparent;
  color: var(--ink);
}

.quiet-button:hover {
  background: var(--soft);
}

.dark-button {
  background: var(--ink);
  color: #fff;
}

.dark-button:hover {
  background: #2a2a2a;
}

.dark-button:active,
.quiet-button:active {
  transform: translateY(1px);
}

.dark-button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.valuation-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.valuation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 240px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow:
    0 20px 40px -16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-bump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}

.toast-bump::before {
  content: "▲";
  font-size: 11px;
}

.toast-total {
  color: #d4d4cf;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .toast {
    left: 16px;
    right: 16px;
    top: 72px;
    min-width: 0;
  }
}

/* ---------- Hero ---------- */

main {
  padding-bottom: 96px;
}

.hero {
  max-width: 980px;
  margin: 96px auto 96px;
  padding: 0 28px;
  text-align: center;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lede {
  max-width: 680px;
  margin: 0 auto 32px;
  color: #2a2a2a;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.cta-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 160ms ease;
}

.cta-link.muted {
  color: var(--muted);
  border-color: var(--line-strong);
}

.cta-link:hover {
  opacity: 0.65;
}

/* ---------- Section scaffolding ---------- */

.tool-section,
.valuation-section,
.notes-section {
  width: min(1200px, calc(100vw - 56px));
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading h2,
.valuation-section h2,
.notes-section h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.action-button {
  min-width: 132px;
  height: 44px;
  font-size: 15px;
}

/* ---------- Generator ---------- */

.generator-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}

.generator-reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.g-reel {
  position: relative;
  background: var(--reel-bg);
  padding: 24px 24px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.g-reel-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.g-reel-window {
  position: relative;
  flex: 1;
  min-height: 168px;
  overflow: hidden;
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 22%,
    #000 78%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 22%,
    #000 78%,
    transparent 100%
  );
}

.g-reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateY(0);
}

.g-reel-item {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 2px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.45;
  transition: opacity 240ms ease;
}

.g-reel-item.is-active {
  opacity: 1;
  font-weight: 700;
}

.result-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 44px 32px 36px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.result-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#companyName {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

#ideaLine {
  margin: 0;
  max-width: 720px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: #2a2a2a;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.tag {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 11px;
  background: var(--soft);
  color: #3a3a3a;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Valuation / slot machine ---------- */

.valuation-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 120px;
}

.slot-copy h2 {
  max-width: 14ch;
}

.slot-lede {
  max-width: 480px;
  margin: 18px 0 28px;
  color: #2a2a2a;
  font-size: 17px;
  line-height: 1.5;
}

.slot-machine {
  border-radius: var(--radius-lg);
  background: var(--slot-bg);
  color: #fff;
  padding: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -24px rgba(0, 0, 0, 0.4);
}

.slot-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 6px 8px 16px;
  border-bottom: 1px solid var(--slot-line);
  color: #c9c9c4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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

.reel-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.reel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
  color: #c9c9c4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: help;
}

.reel-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #d4d4cf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background 160ms ease;
}

.reel-caption:hover .reel-info {
  background: rgba(255, 255, 255, 0.22);
}

.reel {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--reel-bg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(0, 0, 0, 0.06) inset;
  overflow: hidden;
}

.reel::before,
.reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  z-index: 2;
  pointer-events: none;
}

.reel::before {
  top: 0;
  background: linear-gradient(180deg, var(--reel-bg) 10%, transparent);
}

.reel::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--reel-bg) 10%, transparent);
}

.reel-window {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-strip {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform: translateY(0);
}

.reel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 0 14px;
  text-align: center;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.reel-item.long {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.valuation-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--slot-line);
  padding: 18px 8px 6px;
}

.valuation-total span {
  color: #c9c9c4;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.valuation-total strong {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Executives ---------- */

.executives-section {
  width: min(1200px, calc(100vw - 56px));
  margin: 120px auto 0;
}

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

.exec-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition:
    border-color 200ms ease,
    background 160ms ease,
    transform 200ms ease;
}

.exec-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.exec-card.is-spinning {
  border-color: var(--ink);
  background: #faf9f6;
}

.exec-card.is-spinning .exec-name,
.exec-card.is-spinning .exec-title {
  color: #6e6e73;
}

.exec-card.is-spinning .exec-avatar {
  background: var(--ink);
  color: #fff;
  animation: exec-avatar-pulse 130ms steps(2, end) infinite;
}

.exec-card.is-landed {
  animation: exec-card-pop 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes exec-avatar-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.92); }
}

@keyframes exec-card-pop {
  0% { transform: scale(0.985); }
  60% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.exec-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.exec-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.exec-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.exec-abbr {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Disclosures ---------- */

.disclosures-section {
  width: min(1200px, calc(100vw - 56px));
  margin: 120px auto 0;
}

.disclosure-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}

.disclosure-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  padding: 24px 4px 28px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(6px);
  animation: disclosure-in 420ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.disclosure-item:nth-child(1) { animation-delay: 40ms; }
.disclosure-item:nth-child(2) { animation-delay: 140ms; }
.disclosure-item:nth-child(3) { animation-delay: 240ms; }
.disclosure-item:nth-child(4) { animation-delay: 340ms; }

@keyframes disclosure-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.disclosure-num {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.disclosure-headline {
  margin: 0 0 6px;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.disclosure-detail {
  margin: 0;
  max-width: 64ch;
  color: #3a3a3a;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Notes ---------- */

.notes-section {
  margin-top: 120px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.notes-section h2 {
  margin-bottom: 40px;
  max-width: 22ch;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.notes-grid article {
  border-top: 1px solid var(--ink);
  padding: 18px 2px 0;
}

.notes-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.notes-grid p {
  margin: 0;
  color: #3a3a3a;
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 96px;
  padding: 32px 28px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: opacity 160ms ease;
}

.site-footer a:hover {
  opacity: 0.7;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 20px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 22px;
  }
  .hero {
    margin: 64px auto 72px;
    text-align: left;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .valuation-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .generator-reels {
    grid-template-columns: 1fr;
  }
  .result-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .exec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .disclosures-section {
    width: calc(100vw - 40px);
  }
  .disclosure-item {
    grid-template-columns: 44px 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .tool-section,
  .valuation-section,
  .notes-section {
    width: calc(100vw - 32px);
  }
  h1 {
    font-size: clamp(36px, 10.5vw, 52px);
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .reels {
    gap: 6px;
  }
  .reel-item {
    padding: 0 6px;
  }
  .reel-item.long {
    font-size: 13px;
  }
  .exec-grid {
    grid-template-columns: 1fr;
  }
  .executives-section {
    width: calc(100vw - 32px);
  }
}
