/* Gridfy Design System — Landing Page tokens */
:root {
  --brand: #d3ec79;
  --brand-dark: #638518;
  --brand-bg: #f4fbe2;
  --surface-inverse: #1a1c1e;
  --surface-card: #25282c;
  --surface-secondary: #f8f9fa;
  --surface-primary: #ffffff;
  --text-inverse: #ffffff;
  --text-primary: #1a1c1e;
  --text-secondary: #595f66;
  --text-tertiary: #868e96;
  --text-light: #dee2e6;
  --border-default: #e9ecef;
  --border-dark: #32373c;
  --font: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-inverse);
  background: var(--surface-inverse);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 80px;
  background: var(--surface-inverse);
}

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

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--surface-inverse);
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-inverse);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: color .2s;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--brand);
  color: var(--surface-inverse);
  font-weight: 600;
  font-size: 14px;
  border-radius: 9999px;
  transition: opacity .2s;
}

.btn-primary:hover { opacity: .9; }

.btn-primary-lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: 2px solid var(--text-inverse);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 16px;
  border-radius: 9999px;
  transition: background .2s;
}

.btn-outline:hover { background: rgba(255,255,255,.08); }

.btn-outline-subtle {
  border-color: var(--text-light);
  padding: 0 36px;
  height: 52px;
}

.btn-outline-card {
  border-color: #abb8c3;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  height: 44px;
  width: 100%;
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  background: var(--surface-inverse);
  text-align: center;
}

.hero-content {
  padding: 56px 80px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  max-width: 650px;
  white-space: pre-line;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 560px;
  color: var(--text-tertiary);
}

.hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-img-container {
  padding: 0 60px 64px;
}

.hero-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0,0,0,.4);
}

/* ── Social Proof ── */
.social-proof {
  background: var(--surface-secondary);
  padding: 40px 80px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 160px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Section commons ── */
.overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--brand);
  text-transform: uppercase;
}

.section-dark {
  background: var(--surface-inverse);
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.section-light {
  background: var(--surface-secondary);
  padding: 80px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  max-width: 700px;
}

.section-header p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 620px;
  color: var(--text-tertiary);
}

/* ── Feature Cards ── */
.cards-row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.card {
  flex: 1;
  background: var(--surface-card);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-dark);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-inverse);
}

.card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ── Use Case Cards ── */
.usecase-icon {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usecase-icon svg {
  width: 28px;
  height: 28px;
  color: var(--surface-inverse);
}

/* ── Product Showcase ── */
.showcase {
  background: var(--surface-primary);
  padding: 80px 120px;
  display: flex;
  align-items: center;
  gap: 64px;
}

.showcase-left {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.showcase-left h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.showcase-left > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
}

.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-feature svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
}

.showcase-feature span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.showcase-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-img {
  width: 560px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

/* ── Pricing ── */
.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
}

.pricing-card {
  width: 360px;
  background: var(--surface-primary);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid var(--border-default);
}

.pricing-card.pro {
  width: 380px;
  background: var(--surface-inverse);
  border: 2px solid var(--brand);
  box-shadow: 0 12px 40px rgba(211,236,121,.19);
}

.pricing-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-card.pro .pricing-badge { color: var(--text-inverse); }

.popular-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background: var(--brand);
  color: var(--border-dark);
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  width: fit-content;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.pricing-price .amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
}

.pricing-card.pro .pricing-price .amount { color: var(--text-inverse); }

.pricing-price .period {
  font-size: 16px;
  color: var(--text-tertiary);
  padding-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pricing-card.pro .pricing-desc { color: var(--text-light); }

.pricing-divider {
  height: 1px;
  background: var(--border-default);
}

.pricing-card.pro .pricing-divider { background: var(--border-dark); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
}

.pricing-card.pro .pricing-feature { color: var(--text-inverse); }

.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
  flex-shrink: 0;
}

.pricing-cta-pro {
  width: 100%;
  height: 48px;
  background: var(--brand);
  color: var(--border-dark);
  font-size: 15px;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CTA Section ── */
.cta-section {
  background: radial-gradient(ellipse 120% 120% at center, rgba(211,236,121,.08), transparent);
  padding: 80px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: 40px;
  font-weight: 800;
}

.cta-section p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 560px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  padding-top: 16px;
}

/* ── Footer ── */
.footer-divider {
  height: 1px;
  background: var(--surface-card);
}

.footer {
  padding: 48px 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: var(--surface-inverse);
}

.footer-top {
  display: flex;
  justify-content: space-between;
}

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

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-row svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.footer-brand-row span {
  font-size: 18px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
}

.footer-col a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color .2s;
}

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

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

.footer-bottom span {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  .nav-links { display: none; }
  .hero-content { padding: 40px 32px 24px; }
  .hero h1 { font-size: 36px; }
  .hero-img-container { padding: 0 24px 48px; }
  .social-proof { padding: 32px; flex-wrap: wrap; gap: 24px; }
  .section-dark, .section-light { padding: 48px 32px; }
  .cards-row { flex-direction: column; }
  .showcase { flex-direction: column; padding: 48px 32px; }
  .showcase-left { width: 100%; }
  .pricing-cards { flex-direction: column; align-items: center; }
  .pricing-card, .pricing-card.pro { width: 100%; max-width: 400px; }
  .cta-section { padding: 48px 32px; }
  .cta-btns { flex-direction: column; }
  .footer { padding: 32px; }
  .footer-top { flex-wrap: wrap; gap: 32px; }
}
