/* ==============================================
   PostAI — Shared Design System
   site.css — imported by all main pages
   ============================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg:          #ffffff;
  --bg-surface:  #f8f9fc;
  --bg-surface-2:#f0f1f5;
  --bg-dark:     #0a0a12;
  --bg-dark-2:   #121317;
  --bg-dark-card:#13131f;

  /* Borders */
  --border:      #e6eaf0;
  --border-dark: rgba(255,255,255,0.08);

  /* Text */
  --text:        #121317;
  --text-2:      #45474d;
  --text-3:      #6a6a71;
  --text-inv:    #f1f5f9;
  --text-inv-2:  #94a3b8;

  /* Accent */
  --accent:      #7c3aed;
  --accent-hover:#6d28d9;
  --accent-light:#ede9fe;
  --accent-mid:  #a78bfa;

  /* Semantic */
  --green:       #10b981;
  --gold:        #f59e0b;

  /* Spacing */
  --section-pad: 96px;
  --section-pad-sm: 56px;

  /* Radius */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

/* --- Container --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.1;
  font-weight: 800;
}

h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }

p { color: var(--text-2); line-height: 1.75; }

/* --- Eyebrow label --- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* --- Section base --- */
.section {
  padding: var(--section-pad) 0;
}
.section--surface { background: var(--bg-surface); }
.section--dark    { background: var(--bg-dark); }
.section--dark-2  { background: var(--bg-dark-2); }

/* --- Section header --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header p {
  margin-top: 14px;
  font-size: 18px;
  color: var(--text-3);
}
.section-header--left { text-align: left; margin-left: 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124,58,237,0.28);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.38);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-3);
  color: var(--text);
  transform: translateY(-1px);
}

/* Dark bg button variants */
.btn-primary-dark {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 14px rgba(124,58,237,0.4);
}
.btn-primary-dark:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.55);
}

.btn-ghost-dark {
  background: rgba(255,255,255,0.06);
  color: var(--text-inv);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* --- CTA Pair --- */
.cta-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-pair--center { justify-content: center; }

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

.card-dark {
  background: var(--bg-dark-card);
  border: 1px solid rgba(124,58,237,0.14);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.22s ease;
}
.card-dark:hover {
  border-color: rgba(124,58,237,0.38);
  box-shadow: 0 0 28px rgba(124,58,237,0.1), 0 12px 36px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

/* --- Grid utilities --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* --- Stars --- */
.stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* --- Trust strip --- */
.trust-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 20px;
}
.trust-strip__dot {
  width: 3px;
  height: 3px;
  background: var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Agency Marquee --- */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track img {
  height: 28px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.marquee-track img:hover { opacity: 0.85; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Stats row --- */
.stats-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.stat-block {
  flex: 1;
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--border);
}
.stat-num {
  display: block;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label  { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.stat-sub    { font-size: 12px; color: var(--text-3); display: block; margin-top: 2px; }

/* Dark stats variant */
.stats-row--dark .stat-block::after { background: rgba(255,255,255,0.08); }
.stats-row--dark .stat-num  { color: var(--accent-mid); }
.stats-row--dark .stat-label{ color: var(--text-inv); }
.stats-row--dark .stat-sub  { color: var(--text-inv-2); }

/* --- Review card --- */
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.review-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.review-card .quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  font-style: italic;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.review-author strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.review-author span   { font-size: 12px; color: var(--text-3); display: block; }

/* Dark review card */
.review-card--dark {
  background: var(--bg-dark-card);
  border-color: rgba(124,58,237,0.14);
}
.review-card--dark:hover { border-color: rgba(124,58,237,0.32); box-shadow: 0 0 20px rgba(124,58,237,0.08), 0 10px 30px rgba(0,0,0,0.4); }
.review-card--dark .quote { color: var(--text-inv-2); }
.review-card--dark .review-author strong { color: var(--text-inv); }
.review-card--dark .review-author img { border-color: rgba(124,58,237,0.3); }

/* --- Scroll-reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section divider line --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* --- Tag/Badge --- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
}

/* =============================================
   Responsive utilities
============================================= */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root {
    --section-pad: var(--section-pad-sm);
  }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .stat-block:not(:last-child)::after { display: none; }
  .section-header { margin-bottom: 36px; }
  .section-header p { font-size: 16px; }
  .btn { font-size: 14px; padding: 12px 20px; }
  h1 { line-height: 1.08; }
}
