/* ============================================================
   FufaAdvertise — main stylesheet
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #7c3aed;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: 0 4px 20px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: grid; place-items: center;
  font-weight: 800;
}
.brand-text strong { display: block; font-size: 1.05rem; }
.brand-text small { color: var(--text-muted); font-size: .75rem; }
.site-nav { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.site-nav a {
  color: var(--text-muted);
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(79,70,229,.1);
  color: var(--primary);
  text-decoration: none;
}
.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
}
.btn-nav:hover { text-decoration: none; opacity: .92; }

/* Hero */
.hero {
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.hero .lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.btn-primary:hover { text-decoration: none; opacity: .92; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* Sections */
.section { padding: 3rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section.alt { background: var(--bg-alt); border-radius: var(--radius); }
.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 1.5rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { color: var(--text-muted); margin: 0; }

/* Steps */
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .5rem; }

/* Tiers table */
.tiers {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tiers th, .tiers td {
  padding: .8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.tiers th { background: var(--bg-alt); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

/* Prose pages */
.prose { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem; }
.prose h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 0; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }

/* Campaign card */
.campaign-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin: 1.5rem 0;
  background: var(--bg-alt);
}
.campaign-card h2 { margin-top: 0; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid h3 { font-size: .95rem; margin: 0 0 .6rem; }
.footer-grid a { display: block; color: var(--text-muted); margin-bottom: .35rem; font-size: .9rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid p { color: var(--text-muted); font-size: .9rem; }
.socials { display: flex; gap: .8rem; margin-top: .6rem; }
.socials a { font-size: 1.2rem; }
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* 404 page */
.error-page { display: grid; place-items: center; min-height: 100vh; background: var(--bg-alt); }
.error-wrap { text-align: center; padding: 2rem; }
.error-wrap h1 { font-size: 5rem; margin: 0; color: var(--primary); }

/* Responsive */
@media (max-width: 640px) {
  .site-header { padding: .7rem 1rem; }
  .site-nav a { padding: .35rem .7rem; font-size: .9rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .section { padding: 2rem 1rem; }
}