:root {
  --primary: #E85D75;
  --primary-dark: #D14D65;
  --bg: #FFFBF7;
  --surface: #FFFFFF;
  --text: #2D2D2D;
  --muted: #6B6B6B;
  --border: #F0E6E0;
  --font: 'DM Sans', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}
.logo__icon { font-size: 1.5rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.btn--primary { background: var(--primary); color: white; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--outline { border-color: white; color: white; }
.btn--outline:hover { background: white; color: var(--primary); }
.btn--lg { padding: 14px 28px; font-size: 1rem; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #FFF8F0 0%, #FFE4E8 40%, #FFF8F0 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: rgba(232, 93, 117, 0.12);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--primary); font-style: normal; }
.hero__lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.hero__cta { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.hero__install { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__install code {
  display: inline-block;
  background: var(--text);
  color: #7FDBCA;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.hero__pypi-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.hero__pypi-link:hover { text-decoration: underline; }

/* Card showcase */
.card-showcase { position: relative; height: 420px; }
.card-showcase__item {
  position: absolute;
  width: 220px;
  height: 300px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transition: transform 0.3s;
}
.card-showcase__item:hover { transform: translateY(-8px) !important; }
.card-showcase__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}
.card-showcase__emoji { font-size: 3rem; margin-bottom: 16px; }
.card-showcase__item--1 { background: #FFE4E8; transform: rotate(-10deg); left: 0; top: 60px; z-index: 1; }
.card-showcase__item--2 { background: #E8F4FD; transform: rotate(5deg); left: 100px; top: 20px; z-index: 2; }
.card-showcase__item--3 { background: #FFF8F0; transform: rotate(-3deg); left: 200px; top: 80px; z-index: 3; border: 2px solid var(--border); }

/* Stats */
.stats { padding: 48px 0; background: var(--surface); border-y: 1px solid var(--border); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 24px;
}
.stats strong { display: block; font-size: 2rem; color: var(--primary); font-family: var(--serif); }
.stats span { font-size: 0.85rem; color: var(--muted); }

/* Features */
.features { padding: 96px 0; }
.section-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.2;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.2s;
}
.feature-card:hover { border-color: var(--primary); box-shadow: 0 8px 32px rgba(232,93,117,0.1); transform: translateY(-2px); }
.feature-card__icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--muted); font-size: 0.9rem; }

/* Code section */
.code-section { padding: 80px 0; background: var(--text); color: white; }
.code-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.code-section h2 { font-family: var(--serif); font-size: 2rem; margin-bottom: 12px; }
.code-section p { color: rgba(255,255,255,0.7); }
.code-block {
  background: #1a1a2e;
  padding: 28px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}
.code-comment { color: #6A9955; }
.code-string { color: #CE9178; }

/* CTA */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary), #FF8FA3);
  color: white;
  text-align: center;
}
.cta-section h2 { font-family: var(--serif); font-size: 2.5rem; margin-bottom: 12px; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; font-size: 1.1rem; }
.cta-section__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn--primary { background: white; color: var(--primary); }
.cta-section .btn--primary:hover { background: #FFF8F0; }

/* Footer */
.footer { padding: 48px 0; background: var(--text); color: rgba(255,255,255,0.6); }
.footer__inner { text-align: center; }
.footer .logo { justify-content: center; color: white; margin-bottom: 8px; }
.footer__links { margin-top: 16px; display: flex; gap: 24px; justify-content: center; }
.footer__links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer__links a:hover { color: white; }

@media (max-width: 768px) {
  .hero__grid, .code-section__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .card-showcase { display: none; }
  .features__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.btn) { display: none; }
}
