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

:root {
  --bg: #fafafa;
  --bg-elevated: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --logo-pink: #E8788A;
  --card-shadow: 0 2px 12px rgba(232, 120, 138, 0.1);
  --card-shadow-hover: 0 20px 60px -12px rgba(232, 120, 138, 0.25);
  --border: rgba(0, 0, 0, 0.12);
  --border-hover: rgba(0, 0, 0, 0.22);
  --text: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --accent: #16a34a;
  --accent-2: #0d9488;
  --gradient: linear-gradient(135deg, #16a34a, #0d9488);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

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

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

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

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

/* === Navbar === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--gradient);
  color: #ffffff;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

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

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

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

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 0 24px;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--text);
}

.mobile-link.cta {
  color: var(--accent);
  border-bottom: none;
  margin-top: 8px;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(22, 163, 74, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(22, 163, 74, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 860px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 20px;
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(22, 163, 74, 0.06);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  color: var(--logo-pink);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-secondary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* === Sections === */
.section {
  padding: 120px 32px;
}

.section-alt {
  background: var(--bg-elevated);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  background: var(--gradient);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  min-height: 130px;
  background: var(--bg-card);
}

.card-logo.invert img {
  filter: brightness(0);
}

.card-logo img {
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
}

.text-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.text-logo.mono {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card-content {
  padding: 24px 28px 16px;
  flex: 1;
}

.card-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 24px;
}

.card-link-text {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.card:hover .card-link-text {
  color: var(--accent);
}

.card-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.25s;
}

.card:hover .card-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* === Footer === */
.footer {
  padding: 64px 32px 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 400px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-sep {
  color: var(--text-muted);
  font-size: 10px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 100px 20px 60px; min-height: auto; min-height: 90vh; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 28px; }
  .stat-divider { height: 36px; }

  .section { padding: 80px 20px; }
  .card-grid { grid-template-columns: 1fr; }

  .footer { padding: 48px 20px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-sep { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.1s; opacity: 0; }
.hero-title { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.2s; opacity: 0; }
.hero-subtitle { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.35s; opacity: 0; }
.hero-stats { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.5s; opacity: 0; }
.hero-actions { animation: fadeInUp 0.6s ease forwards; animation-delay: 0.65s; opacity: 0; }
