* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: #faf6ee;
  font-family: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Explore card (shared white card pattern) ---------- */

.explore {
  max-width: 1200px;
  margin: 8px auto 16px;
  margin-left: max(16px, calc((100% - 1200px) / 2));
  margin-right: max(16px, calc((100% - 1200px) / 2));
  padding: 10px 20px 20px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
}

.explore__heading {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000000;
  padding: 0 4px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.explore__heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.explore__heading-row .explore__heading {
  margin-top: 0;
  margin-bottom: 0;
}

.explore__see-all {
  font-size: 12px;
  font-weight: 600;
  color: #906700;
  text-decoration: none;
  padding: 0 4px;
  white-space: nowrap;
}

.explore__see-all:hover {
  text-decoration: underline;
}

.explore__desc {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.6);
  padding: 0 4px;
  margin-bottom: 16px;
  max-width: 520px;
}

.explore__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 4px 20px 8px;
  scrollbar-width: none;
}

.explore__intro-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.explore__row::-webkit-scrollbar {
  display: none;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a.nav__cta {
  background: #1a1a1a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav__links a.nav__cta:hover {
  background: #000000;
  color: #ffffff;
}

.nav__links a:hover {
  color: #906700;
}

.nav__logo {
  height: 64px;
  width: auto;
  display: block;
  margin-left: -8px;
}

.nav__logo--desktop {
  display: none;
}

.menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-trigger:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.menu-trigger:active {
  transform: translateY(0);
}

.menu-trigger__bars {
  position: relative;
  width: 20px;
  height: 14px;
}

.menu-trigger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.menu-trigger__bars span:nth-child(1) { top: 0; }
.menu-trigger__bars span:nth-child(2) { top: 6px; }
.menu-trigger__bars span:nth-child(3) { top: 12px; }

.menu-trigger.is-active .menu-trigger__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-trigger.is-active .menu-trigger__bars span:nth-child(2) {
  opacity: 0;
}

.menu-trigger.is-active .menu-trigger__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* ---------- Menu overlay ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #faf6ee;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.menu-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
}

.menu-overlay__logo {
  height: 64px;
  width: auto;
  margin-left: -8px;
}

.menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: #1a1a1a;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-close:hover {
  background: rgba(26, 26, 26, 0.05);
  transform: translateY(-1px);
}

.menu-close svg {
  width: 18px;
  height: 18px;
}

.menu-overlay__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 24px;
}

.menu-overlay__link {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

.menu-overlay.is-open .menu-overlay__link {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay.is-open .menu-overlay__link:nth-child(1) { transition-delay: 0.08s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(2) { transition-delay: 0.14s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay.is-open .menu-overlay__link:nth-child(4) { transition-delay: 0.26s; }

.menu-overlay__link:hover {
  color: #906700;
}

.menu-overlay__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  opacity: 0;
  transition: opacity 0.4s ease 0.32s;
}

.menu-overlay.is-open .menu-overlay__footer {
  opacity: 1;
}

.menu-overlay__social {
  display: flex;
  gap: 10px;
}

body.menu-is-open {
  overflow: hidden;
}

/* ---------- Article modal ---------- */

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.article-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.article-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.article-modal__panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.article-modal.is-open .article-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.article-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
}

.article-modal__close svg {
  width: 16px;
  height: 16px;
}

.article-modal__scroll {
  overflow-y: auto;
  padding: 28px 20px 40px;
}

.article-modal__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 14px;
}

.article-modal__byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.article-modal__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-modal__byline-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.article-modal__byline-text strong {
  color: #1a1a1a;
  font-weight: 600;
}

.article-modal__cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
  background: #f3f4f6;
}

.article-modal__body {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
}

.article-modal__body h1,
.article-modal__body h2,
.article-modal__body h3 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #111827;
}

.article-modal__body h2 { font-size: 19px; }
.article-modal__body h3 { font-size: 17px; }

.article-modal__body p {
  margin: 8px 0;
}

.article-modal__body ul,
.article-modal__body ol {
  margin: 8px 0;
  padding-left: 22px;
}

.article-modal__body blockquote {
  border-left: 3px solid #d2b48c;
  padding-left: 14px;
  font-style: italic;
  color: #6b7280;
  margin: 20px 0;
}

.article-modal__body img {
  border-radius: 12px;
  margin: 20px 0;
  max-width: 100%;
}

.article-modal__body a {
  color: #906700;
  text-decoration: underline;
}

.article-modal__recommended {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.article-modal__recommended-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.article-modal__recommended-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-modal__rec-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.article-modal__rec-card:hover {
  background: rgba(26, 26, 26, 0.03);
}

.article-modal__rec-card img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

/* ---------- Legal pages (Privacy / Terms) ---------- */

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 20px;
}

.legal-page__back:hover {
  color: #906700;
}

.legal-page__back svg {
  width: 16px;
  height: 16px;
}

.legal-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.legal-title {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.legal-body h2 {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.legal-body p {
  margin: 0;
}

.legal-body ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.legal-body ul ul {
  margin-top: 8px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: #906700;
  text-decoration: underline;
}

.legal-body .legal-caps {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

@media (min-width: 768px) {
  .legal-title {
    font-size: 32px;
  }

  .legal-body {
    font-size: 15px;
  }
}

.article-modal__rec-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.site-footer {
  max-width: 1200px;
  margin: 32px auto 24px;
  margin-left: max(16px, calc((100% - 1200px) / 2));
  margin-right: max(16px, calc((100% - 1200px) / 2));
  padding: 32px 10px 56px;
  background: transparent;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__logo {
  height: 40px;
  width: auto;
  margin-left: -10px;
  align-self: flex-start;
}

.site-footer__tagline {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.6);
  max-width: 320px;
  line-height: 1.5;
}

.site-footer__social {
  display: flex;
  gap: 10px;
}

.site-footer__social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.site-footer__social-icon:hover {
  background: #000000;
}

.site-footer__social-icon svg {
  width: 16px;
  height: 16px;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 26, 26, 0.06);
}

.site-footer__copyright {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.5);
}

.site-footer__legal {
  display: flex;
  gap: 16px;
}

.site-footer__legal a {
  font-size: 12px;
  color: rgba(26, 26, 26, 0.6);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: #1a1a1a;
}

/* ---------- Shared shimmer skeleton ---------- */

.shimmer {
  background: linear-gradient(90deg, #e4e1d7 25%, #f7f5f0 37%, #e4e1d7 63%) !important;
  background-size: 400% 100% !important;
  animation: shimmer 1.1s ease infinite !important;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- Desktop overrides ---------- */

@media (min-width: 768px) {
  .nav {
    padding: 32px 48px;
  }

  .nav__logo {
    display: none;
  }

  .nav__logo--desktop {
    display: block;
    height: 56px;
    width: auto;
  }

  .explore--investors {
    background: transparent;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .explore--investors .explore__row {
    display: contents;
  }

  .explore--investors .explore__intro-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
  }

  .explore--investors .explore__intro-card .explore__heading {
    margin-top: 0;
  }

  .explore--investors .startup-card {
    background: #ffffff;
  }

  .explore--features {
    background: transparent;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .explore--features .features__row {
    display: contents;
  }

  .explore--features .feature-card {
    width: auto;
  }

  .explore--features .explore__intro-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
  }

  .explore--features .explore__intro-card .explore__heading {
    margin-top: 0;
  }

  .explore--features .features__pills {
    display: none;
  }

  .explore--startups {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    align-items: center;
  }

  .explore--startups .explore__intro-card .explore__heading {
    margin-top: 0;
  }

  .explore--startups .metric-card {
    margin-top: 0;
  }

  .nav__links {
    display: flex;
  }

  .menu-trigger {
    display: none;
  }

  .menu-overlay__logo {
    height: 100px;
    margin-left: 0;
  }

  .menu-overlay__top {
    padding: 32px 48px;
  }

  .menu-overlay__nav {
    padding: 0 48px;
  }

  .menu-overlay__link {
    font-size: 64px;
  }

  .menu-overlay__footer {
    padding: 32px 48px;
  }

  .article-modal {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .article-modal__panel {
    width: 100%;
    height: auto;
    max-width: 680px;
    max-height: 85vh;
    border-radius: 24px;
  }

  .article-modal__scroll {
    padding: 40px 48px 48px;
  }

  .article-modal__title {
    font-size: 32px;
  }

  .article-modal__cover {
    height: 320px;
  }

  .site-footer {
    margin-top: 48px;
    margin-bottom: 32px;
    padding-top: 36px;
  }

  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
