/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #F5F0E8;
  --dark:    #1A1610;
  --warm:    #C8A96E;
  --rust:    #C4542A;
  --sage:    #6B8F6B;
  --muted:   #8A8070;
  --card-bg: #FDFAF4;
  --border:  #E2DAC8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ─── HERO ─────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  border-right: 1px solid var(--border);
}

.hero-right {
  padding: 60px 60px 60px 60px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--warm);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-h1 em { font-style: italic; color: var(--rust); }

.hero-subtitle {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1;
}

.hero-body {
  font-size: 17px;
  color: #4A4238;
  max-width: 480px;
}

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

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  padding: 16px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rust);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--dark); border-color: var(--dark); }

/* Hero meta */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-num {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--rust);
}
.meta-label { font-size: 12px; color: var(--muted); font-weight: 400; }
.meta-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── NOTION MOCK ───────────────────────────────────────── */
.notion-mock {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(26,22,16,0.18), 0 4px 16px rgba(26,22,16,0.08);
  width: 100%;
  max-width: 520px;
  transform: rotate(1.5deg) translateY(-10px);
  transition: transform 0.4s ease;
  overflow: hidden;
}
.notion-mock:hover { transform: rotate(0.5deg) translateY(-16px); }

.notion-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #F7F6F3;
  border-bottom: 1px solid #E8E4DC;
}
.dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.notion-breadcrumb { font-size: 12px; color: #6B6860; font-weight: 400; }

.notion-body { padding: 20px; }
.notion-page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
}

/* Notion Table */
.notion-table { font-size: 13px; font-family: 'DM Sans', sans-serif; }
.nt-head {
  display: flex;
  padding: 6px 8px;
  background: #F7F6F3;
  border: 1px solid #E8E4DC;
  color: #6B6860;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px 2px 0 0;
}
.nt-row {
  display: flex;
  padding: 7px 8px;
  border: 1px solid #E8E4DC;
  border-top: none;
  color: #2B2826;
  align-items: center;
  transition: background 0.15s;
}
.nt-row:hover { background: #F7F6F3; }
.nt-row-add { color: #6B6860; cursor: pointer; }
.nt-col-name { flex: 2; font-weight: 500; }
.nt-col { flex: 1; }

/* Status Pills */
.pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.pill-good { background: #DDFAE2; color: #1E7C3D; }
.pill-warn { background: #FFF3CD; color: #8B5E00; }
.pill-due  { background: #FFE5E5; color: #C0392B; }

/* ─── MARQUEE ────────────────────────────────────────────── */
.marquee-strip {
  background: var(--dark);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 20s linear infinite;
}
.marquee-inner span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--cream);
  padding: 0 16px;
}
.marquee-inner .sep { color: var(--warm); padding: 0 4px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FEATURES ───────────────────────────────────────────── */
.features-section {
  padding: 100px 80px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 3.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-body {
  font-size: 17px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--card-bg);
  padding: 40px 36px;
  transition: background 0.2s;
}
.feature-card:hover { background: #fff; }
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}
.feature-desc { font-size: 15px; color: #4A4238; line-height: 1.6; }

/* ─── DATABASES ──────────────────────────────────────────── */
.databases-section {
  background: var(--dark);
  padding: 100px 80px;
}
.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #2E2820;
  border: 1px solid #2E2820;
}
.db-card {
  background: #221E18;
  padding: 28px 24px;
  transition: background 0.2s;
}
.db-card:hover { background: #2A261F; }
.db-icon { font-size: 24px; margin-bottom: 12px; }
.db-name {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 8px;
}
.db-desc { font-size: 14px; color: var(--muted); }

/* ─── PREVIEW ────────────────────────────────────────────── */
.preview-section {
  padding: 100px 80px;
  background: #fff;
}
.screen-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  justify-content: center;
}
.screen-tab {
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.screen-tab:hover { color: var(--dark); }
.screen-tab.active { color: var(--rust); border-bottom-color: var(--rust); }

.screen-viewer { max-width: 760px; margin: 0 auto; }
.screen-content { display: none; }
.screen-content.active { display: block; }

.notion-screen {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(26,22,16,0.08);
  overflow: hidden;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.dash-stat {
  background: #F7F6F3;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-num { font-family: 'DM Serif Display', serif; font-size: 24px; }
.ds-label { font-size: 11px; color: var(--muted); font-weight: 500; }

.notion-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ─── STATS ──────────────────────────────────────────────── */
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-box {
  background: var(--card-bg);
  padding: 60px 40px;
  text-align: center;
  transition: background 0.2s;
}
.stat-box:hover { background: #fff; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 6px;
}
.stat-sub { font-size: 14px; color: var(--muted); }

/* ─── PRICING ────────────────────────────────────────────── */
.pricing-section {
  background: var(--dark);
  padding: 100px 80px;
}
.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid #2E2820;
  border-radius: 4px;
  overflow: hidden;
}
.pricing-header {
  background: var(--rust);
  padding: 40px 48px;
  text-align: center;
}
.pricing-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.pricing-price {
  font-family: 'DM Serif Display', serif;
  font-size: 72px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-period { font-size: 14px; color: rgba(255,255,255,0.7); }

.pricing-body { background: var(--cream); padding: 40px 48px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.check { color: var(--sage); font-weight: 600; flex-shrink: 0; }

.btn-buy {
  display: block;
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 18px;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: color 0.3s;
}
.btn-buy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rust);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}
.btn-buy:hover::after { transform: translateX(0); }
.btn-buy span { position: relative; z-index: 1; }

.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-section { padding: 100px 80px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.faq-item {
  background: var(--card-bg);
  padding: 36px 32px;
}
.faq-q {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--dark);
}
.faq-a { font-size: 15px; color: #4A4238; line-height: 1.65; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 60px 80px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--cream);
}
.footer-tagline { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.footer-links a { color: var(--warm); }
.footer-links a:hover { color: var(--cream); }
.footer-copy { font-size: 12px; color: #4A4238; margin-top: 8px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 60px 40px; }

  .features-section,
  .databases-section,
  .preview-section,
  .faq-section,
  .pricing-section,
  .footer { padding: 60px 40px; }

  .features-grid,
  .db-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-section { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-left { padding: 60px 24px; }
  .features-section,
  .databases-section,
  .preview-section,
  .faq-section,
  .pricing-section,
  .footer { padding: 60px 24px; }

  .features-grid,
  .db-grid,
  .stats-section { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .dashboard-stats { grid-template-columns: repeat(2,1fr); }
  .pricing-header { padding: 32px 24px; }
  .pricing-body { padding: 32px 24px; }
  .pricing-price { font-size: 56px; }
  .screen-tabs { flex-wrap: wrap; }
}
