/* CraftKit — Notion Template Store */

:root {
  --bg: #FAFAF7;
  --bg-warm: #F5F1EB;
  --surface: #FFFFFF;
  --surface-2: #F0EDE8;
  --border: #E8E3DB;
  --text: #1A1917;
  --text-dim: #78716C;
  --accent: #D97706;      /* amber-600 */
  --accent-light: #FEF3C7; /* amber-100 */
  --accent-dark: #B45309;  /* amber-700 */
  --teal: #0D9488;        /* teal-600 */
  --teal-light: #CCFBF1;  /* teal-100 */
  --green: #16A34A;
  --shadow: rgba(0,0,0,0.06);
  --shadow-md: rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── Navbar ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}

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

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.25rem;
  color: var(--text); letter-spacing: -0.3px;
}

.logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}

.logo-icon svg { width: 18px; height: 18px; fill: white; }

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

.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover {
  background: var(--accent-dark);
  color: white !important;
  transform: translateY(-1px);
}

/* ─── Hero ─── */
.hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(217, 119, 6, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(13, 148, 136, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-badge svg { width: 14px; height: 14px; fill: var(--accent-dark); }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 680px;
  margin: 0 auto 1.25rem;
  color: var(--text);
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.hero-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.hero-cta svg { width: 18px; height: 18px; fill: white; }

.hero-image {
  max-width: 900px;
  margin: 3.5rem auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.hero-image img {
  width: 100%; height: auto;
  object-fit: cover;
}

/* ─── Trust Bar ─── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 2rem;
  text-align: center;
}

.trust-bar-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2rem 3rem;
}

.trust-stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
}
.trust-stat .number {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text);
}
.trust-stat .label {
  font-size: 0.8rem; color: var(--text-dim); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}

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

.trust-logos {
  display: flex; align-items: center; gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.875rem; font-weight: 500;
  flex-wrap: wrap; justify-content: center;
}

/* ─── Filter Bar ─── */
.filter-section {
  padding: 4rem 2rem 2rem;
  max-width: 1200px; margin: 0 auto;
}

.filter-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.filter-pills {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}

.filter-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ─── Templates Grid ─── */
.templates-section {
  padding: 1rem 2rem 5rem;
  max-width: 1200px; margin: 0 auto;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  display: flex; flex-direction: column;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-md);
  border-color: rgba(217, 119, 6, 0.3);
}

.template-preview {
  height: 180px;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.template-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.template-card:hover .template-preview img {
  transform: scale(1.04);
}

.template-body {
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  flex: 1;
}

.template-meta {
  display: flex; align-items: center; justify-content: space-between;
}

.category-tag {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cat-productivity { background: var(--teal-light); color: var(--teal); }
.cat-business { background: #DBEAFE; color: #1D4ED8; }
.cat-personal { background: #F3E8FF; color: #7C3AED; }
.cat-finance { background: #D1FAE5; color: #065F46; }

.template-price {
  font-size: 1.1rem; font-weight: 700;
  color: var(--accent);
}

.template-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.template-desc {
  font-size: 0.85rem; color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

.template-footer {
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

.template-cta {
  font-size: 0.85rem; font-weight: 600;
  color: var(--accent);
  display: flex; align-items: center; gap: 0.3rem;
  transition: gap 0.2s;
}
.template-card:hover .template-cta { gap: 0.5rem; }

.template-cta svg { width: 14px; height: 14px; fill: var(--accent); }

/* ─── Features Strip ─── */
.features-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.features-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-item {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.feature-icon svg { width: 22px; height: 22px; fill: var(--accent); }

.feature-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--text);
}

.feature-desc {
  font-size: 0.85rem; color: var(--text-dim);
  line-height: 1.6;
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--accent);
  padding: 5rem 2rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 2rem; font-weight: 800;
  color: white; letter-spacing: -0.02em;
  max-width: 500px; margin: 0 auto 1rem;
  line-height: 1.2;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 440px; margin: 0 auto 2rem;
}

.cta-banner-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; color: var(--accent);
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.cta-banner-btn svg { width: 18px; height: 18px; fill: var(--accent); }

/* ─── Footer ─── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}

.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 1.1rem;
  color: white;
}

.footer-brand-icon {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

.footer-brand-icon svg { width: 16px; height: 16px; fill: white; }

.footer-notion {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 500;
  background: rgba(255,255,255,0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-notion svg { width: 16px; height: 16px; }

.footer-links {
  display: flex; gap: 1.5rem;
  list-style: none;
  font-size: 0.85rem;
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: white; }

.footer-copy { font-size: 0.8rem; }

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

.fade-up { animation: fadeUp 0.6s ease-out forwards; }

.cat-content { background: #FEF9C3; color: #A16207; }

/* ─── Pricing Section ─── */
.pricing-section {
  background: var(--bg);
  padding: 5rem 2rem;
  text-align: center;
}

.pricing-inner { max-width: 960px; margin: 0 auto; }

.pricing-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.pricing-heading {
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.pricing-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.pricing-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-from {
  font-size: 0.8rem; color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-size: 2rem; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.pricing-features li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--text-dim);
}

.pricing-cta {
  display: block; text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  transition: all 0.2s;
}

.pricing-cta:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.pricing-cta-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.pricing-cta-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .templates-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}