/* ============ Base ============ */
:root {
  --bg: #fafaf9;
  --bg-elev: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #ececec;
  --line-2: #e5e7eb;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --pill: #f1f1ef;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --blue: #2563eb;
  --violet: #7c3aed;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 8px 24px -12px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, button { font: inherit; }

/* ============ Internal banner (private page only) ============ */
.internal-banner {
  background: #fef3c7;
  color: #78350f;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid #fde68a;
}
.internal-banner a { color: #78350f; text-decoration: underline; }

/* ============ Top nav (internal page) ============ */
.topnav {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.topnav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topnav__links { display: flex; gap: 24px; }
.topnav__links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color .15s;
}
.topnav__links a:hover { color: var(--ink); }
@media (max-width: 980px) {
  .topnav__inner { padding: 16px 24px; }
}

/* ============ Brand ============ */
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { display: inline-flex; }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

/* ============ Hero ============ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
}
.hero__left {
  display: flex;
  flex-direction: column;
  padding: 48px 64px;
  min-height: 100vh;
}
.hero__content {
  margin-top: auto;
  margin-bottom: 0;
  padding: 0 0 16px;
  max-width: 560px;
}
.hero__footer {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 48px;
}
.hero__footer p { margin: 0; }
.hero__footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.hero__footer a:hover { opacity: .7; }

.hero__right {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5e6d3 0%, #c9a87c 50%, #6b8e5a 100%);
  min-height: 100vh;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 7px 11px;
  border-radius: 6px;
  background: #e8e6f5;
  color: var(--ink);
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  font-weight: 800;
}
.hero__sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 500px;
  margin: 0 0 32px;
}

/* ============ Signup ============ */
.signup {
  display: flex;
  gap: 10px;
  align-items: stretch;
  max-width: 480px;
}
.signup input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 14px 4px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s;
}
.signup input[type="email"]::placeholder { color: var(--muted-2); }
.signup input[type="email"]:focus { border-color: var(--ink); }
.signup input[type="email"].error { border-color: var(--red); }
.signup button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .08s ease, background .15s ease;
}
.signup button:hover { background: #1f1f1f; }
.signup button:active { transform: translateY(1px); }
.signup__hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.signup__hint.error { color: var(--red); display: block !important; }
.signup__hint.success { color: var(--green); display: block !important; }

.signup--lg { max-width: 560px; margin: 0 auto; }
.signup--lg input { border-bottom-color: rgba(255,255,255,.4); color: #fff; font-size: 17px; }
.signup--lg input::placeholder { color: rgba(255,255,255,.5); }
.signup--lg input:focus { border-bottom-color: #fff; }
.signup--lg button { background: #fff; color: #0a0a0a; padding: 14px 24px; }
.signup--lg button:hover { background: #f3f3f3; }

/* ============ Social proof ============ */
.social-proof { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatars { display: flex; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #ddd center/cover no-repeat;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.social-proof__text { font-size: 14px; color: var(--muted); }
.social-proof__text strong { color: var(--ink); font-weight: 600; }

/* ============ Live ticker section ============ */
.ticker-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 48px 24px;
}
.ticker-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ticker-section__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ticker-section__sub { color: var(--muted); margin: 0; font-size: 14px; }
.ticker-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ticker-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; position: relative; }
.dot--green {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22,163,74,.6);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.ticker-card__list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  max-height: 460px;
  overflow: hidden;
  position: relative;
}
.ticker-card__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  background: var(--bg-elev);
  transition: opacity .4s ease, transform .4s ease, max-height .4s ease, padding .4s ease;
  max-height: 80px;
  overflow: hidden;
}
.ticker-card__list li:last-child { border-bottom: none; }

/* Incoming row: slides down from the top with a brief highlight flash */
.ticker-card__list li.is-entering {
  animation: row-enter .55s cubic-bezier(.2,.8,.2,1);
}
@keyframes row-enter {
  0%   { transform: translateY(-14px); opacity: 0; background: #ecfdf5; }
  60%  { background: #ecfdf5; }
  100% { transform: translateY(0); opacity: 1; background: var(--bg-elev); }
}

/* Outgoing row: collapses and fades */
.ticker-card__list li.is-leaving {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

/* "NEW" pill on the freshly inserted row */
.ticker-card__new-pill {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #16a34a;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 2px;
  animation: pill-fade 4s ease-out forwards;
}
@keyframes pill-fade {
  0%, 70% { opacity: 1; transform: scale(1); }
  100%    { opacity: 0; transform: scale(.9); }
}
.ticker-card__company { font-weight: 600; font-size: 15px; }
.ticker-card__meta { font-size: 12.5px; color: var(--muted); }
.ticker-card__amount { font-weight: 700; font-size: 15px; }
.ticker-card__stage { font-size: 11px; color: var(--muted); text-align: right; }
.ticker-card__footer {
  padding: 12px 20px;
  font-size: 12px;
  color: var(--muted);
  background: #fafafa;
  border-top: 1px solid var(--line);
  text-align: center;
}
.hero__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 60% 40%, rgba(124,58,237,.10), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(37,99,235,.10), transparent 50%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* ============ Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  max-width: var(--max);
  margin: 24px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  background: var(--bg);
  padding: 36px 32px;
  text-align: left;
}
.stats__num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.stats__label { color: var(--muted); font-size: 14px; }

/* ============ Feed ============ */
.feed {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 48px 48px;
}
.feed__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.feed h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.feed__sub { color: var(--muted); margin: 0; font-size: 15px; }

.feed__search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  width: 340px;
  max-width: 100%;
  color: var(--muted);
  transition: border-color .15s;
}
.feed__search:focus-within { border-color: var(--ink); }
.feed__search input {
  border: none;
  outline: none;
  background: transparent;
  margin-left: 8px;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}

/* ============ Filters ============ */
.filters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.filter { display: flex; flex-direction: column; gap: 6px; min-width: 180px; flex: 1; }
.filter label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.filter select {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.filter select:focus { border-color: var(--ink); }
.filter__clear {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  height: 40px;
  transition: all .15s;
}
.filter__clear:hover { color: var(--ink); border-color: var(--ink); }

/* ============ Feed meta ============ */
.feed__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}
.sort { display: flex; align-items: center; gap: 8px; }
.sort label { font-size: 13px; }
.sort select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 4px 20px 4px 4px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

/* ============ Cards ============ */
.cards { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: #d4d4d4;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.card__logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.card__main { min-width: 0; }
.card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.card__name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.card__stage {
  font-size: 11px;
  font-weight: 600;
  background: var(--pill);
  color: var(--ink-2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.card__date { font-size: 12.5px; color: var(--muted-2); margin-left: auto; }
.card__desc { color: var(--muted); font-size: 14.5px; margin: 0 0 8px; line-height: 1.45; }
.card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta svg { opacity: .6; }
.card__right { text-align: right; flex-shrink: 0; }
.card__amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.card__round { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============ Empty ============ */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0 0 8px; font-size: 18px; }
.empty p { margin: 0; }
.link { background: none; border: none; color: var(--ink); text-decoration: underline; padding: 0; font: inherit; cursor: pointer; }

/* ============ Load more ============ */
.load-more { text-align: center; margin-top: 32px; }
.load-more button {
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  transition: all .15s;
}
.load-more button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.load-more button[hidden] { display: none; }

/* ============ CTA ============ */
.cta {
  margin-top: 80px;
  background: var(--ink);
  color: #fff;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(124,58,237,.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37,99,235,.18), transparent 50%);
  pointer-events: none;
}
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.1;
}
.cta p { color: rgba(255,255,255,.7); font-size: 17px; margin: 0 0 32px; }

/* ============ Footer ============ */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.footer__left { display: flex; flex-direction: column; gap: 10px; }
.footer__left p { margin: 0; font-size: 13px; color: var(--muted); }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer__nav a:hover { color: var(--ink); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s linear .25s;
  z-index: 100;
  max-width: 90vw;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s ease, visibility 0s linear 0s;
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }
  .hero__left { padding: 32px 24px 48px; min-height: auto; }
  .hero__content { padding-top: 32px; padding-bottom: 32px; }
  .hero__footer { padding-top: 32px; }
  .hero__right {
    order: -1;
    height: 320px;
    min-height: 320px;
  }
  .ticker-section { padding: 56px 24px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feed { padding: 56px 24px 24px; }
  .feed__header h2 { font-size: 28px; }
  .footer { padding: 32px 24px; }
  .card { grid-template-columns: 48px 1fr; gap: 14px; padding: 16px; }
  .card__logo { width: 48px; height: 48px; font-size: 18px; }
  .card__right { grid-column: 2; text-align: left; margin-top: 6px; }
  .card__amount { font-size: 22px; }
  .card__date { margin-left: 0; }
}

@media (max-width: 560px) {
  h1 { font-size: 36px; }
  .signup { flex-direction: column; align-items: stretch; }
  .signup button { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__item { padding: 24px 20px; }
  .stats__num { font-size: 28px; }
  .feed__header { flex-direction: column; align-items: stretch; }
  .feed__search { width: 100%; }
  .filter { min-width: 100%; flex-basis: 100%; }
}
