/* ========================================
   2 Punks Capital - Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #12141c;
  --bg-card: #181a24;
  --bg-card-hover: #1e2130;
  --text-primary: #f0f0f5;
  --text-secondary: #9a9bb0;
  --text-muted: #6b6c80;
  --accent: #8b5cf6;
  --accent-dim: rgba(139, 92, 246, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --badge-acquired: #22c55e;
  --badge-acquihired: #3b82f6;
  --badge-shutdown: #6b7280;
  --nav-height: 72px;
  --section-padding: 120px;
  --container-max: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 9999;
  transition: background 0.3s ease;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  background: var(--accent-dim);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.5);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  position: relative;
  z-index: 10001;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero-logo {
  width: 180px;
  margin: 0 auto 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

/* --- Sections --- */
section {
  padding: var(--section-padding) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: 64px;
}

/* --- About --- */
.about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-desc {
  margin-bottom: 32px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- GPs --- */
.gps {
  border-top: 1px solid var(--border);
}

.gps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.gp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.gp-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.gp-info {
  padding: 32px;
}

.gp-name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gp-role {
  font-size: 0.8125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 16px;
}

.gp-bio {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Investors --- */
.investors {
  border-top: 1px solid var(--border);
}

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

.investor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 20px 24px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.investor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 2px solid var(--border);
}

.investor-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.investor-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.gp-linkedin {
  display: inline-block;
  vertical-align: -4px;
  margin-left: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1;
}

.gp-linkedin:hover {
  color: var(--accent);
}

.investor-company {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.investor-twitter {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.investor-twitter:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --- Portfolio --- */
.portfolio {
  border-top: 1px solid var(--border);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.portfolio-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.portfolio-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.portfolio-item img {
  max-width: 75%;
  max-height: 60%;
  object-fit: contain;
  filter: brightness(0.95);
  transition: filter 0.3s ease;
}

.portfolio-item:hover img {
  filter: brightness(1.05);
}

.portfolio-item .company-name {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-item:hover .company-name {
  opacity: 1;
  transform: translateY(0);
}

/* Portfolio badges */
.portfolio-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  display: none;
}

.portfolio-item[data-status="acquired"] .portfolio-badge {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: var(--badge-acquired);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.portfolio-item[data-status="acquihired"] .portfolio-badge {
  display: block;
  background: rgba(59, 130, 246, 0.15);
  color: var(--badge-acquihired);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.portfolio-item[data-status="shutdown"] .portfolio-badge {
  display: block;
  background: rgba(107, 114, 128, 0.15);
  color: var(--badge-shutdown);
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.portfolio-item[data-status="shutdown"] {
  opacity: 0.55;
}

.portfolio-item[data-status="shutdown"]:hover {
  opacity: 0.75;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .nav {
    background: #0a0b0f;
    z-index: 9999;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0a0b0f;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.125rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .gps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .investors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .portfolio-item {
    padding: 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-logo {
    width: 140px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .investors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .investor-card {
    padding: 24px 16px 20px;
  }

  .investor-photo {
    width: 64px;
    height: 64px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat {
    padding: 16px;
  }

  .stat-value {
    font-size: 1.5rem;
  }
}


