/* =========================================================
   PostForge AI — Landing page
   Design tokens pulled directly from the Figma export.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --ink:           #0E1E36;     /* dark navy for headings */
  --ink-soft:      #1C2A44;
  --body:          #4A5A73;     /* body text */
  --muted:         #7A869C;
  --line:          #E6E9F2;

  /* Brand */
  --violet:        #6C5CE7;     /* primary purple */
  --violet-600:    #5E4BDB;
  --violet-700:    #4F3CC9;
  --violet-50:     #EEEBFF;
  --violet-100:    #E0DAFF;
  --indigo-bg:     #F4F2FF;
  --cyan:          #22C8E0;
  --cyan-400:      #4FD3E6;

  /* Accents */
  --rose:          #EF5B5B;
  --rose-50:       #FDECEC;
  --green:         #22C55E;
  --amber:         #F59E0B;

  /* Surfaces */
  --bg:            #FFFFFF;
  --bg-soft:       #F7F6FB;     /* features section bg */
  --bg-hero:       linear-gradient(180deg, #F0EEFC 0%, #EAF1FB 55%, #E9F5F9 100%);
  --card:          #FFFFFF;

  /* Gradients */
  --grad-brand:    linear-gradient(135deg, #1B1E3D 0%, #6C5CE7 45%, #22C8E0 100%);
  --grad-icon:     linear-gradient(160deg, #7C5CFC 0%, #6C5CE7 40%, #3ECBE0 100%);
  --grad-cta:      radial-gradient(120% 140% at 30% 40%, #A58BFF 0%, #7C5CFC 30%, #3A2C7C 70%, #0E1E36 100%);

  /* Radii & shadows */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm:  0 4px 14px rgba(20, 26, 55, 0.06);
  --shadow-md:  0 14px 40px rgba(20, 26, 55, 0.08);
  --shadow-lg:  0 30px 80px rgba(20, 26, 55, 0.12);
  --shadow-icon: 0 14px 28px rgba(108, 92, 231, 0.28);

  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* lucide sizing - applies both pre-hydration ([data-lucide] <i>) and post-hydration (<svg>) */
[data-lucide],
.lucide { width: 20px; height: 20px; stroke-width: 2; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 600;
}
.eyebrow--muted { color: var(--violet); opacity: 0.8; }

.display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}

.lede {
  color: var(--body);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}
.lede--center { text-align: center; max-width: 640px; margin: 12px auto 0; }

.section-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn [data-lucide], .btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.35);
}
.btn--primary:hover { background: var(--violet-600); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: #c9cfdd; }

.btn--dark {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
}
.btn--dark:hover { background: #0A152A; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--outline:hover { border-color: var(--violet); color: var(--violet); }

.btn--block { display: flex; width: 100%; }

.btn--white {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  padding: 18px 32px;
  box-shadow: 0 20px 40px rgba(10, 10, 30, 0.25);
}
.btn--white:hover { background: #F7F5FF; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 251, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(20, 26, 55, 0.04);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  background: linear-gradient(90deg, #6C5CE7, #3ECBE0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.nav__links a:not(.btn):hover { color: var(--violet); }

.nav__toggle { display: none; color: var(--ink); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 120px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--bg-hero);
  z-index: -1;
}
.hero__bg::after {
  /* soft glow dot */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(120, 200, 255, 0.35), transparent 60%),
    radial-gradient(500px 400px at 20% 90%, rgba(108, 92, 231, 0.12), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__copy .pill { margin-bottom: 28px; }
.hero .display {
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero .lede { max-width: 440px; margin-bottom: 36px; }
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.pill--soft {
  background: #DFD7FA;
  color: var(--violet-700);
}
.pill [data-lucide], .pill svg { width: 14px; height: 14px; }

/* --- Hero mockup --- */
.hero__mockup {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.mockup {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__header {
  padding: 20px 24px 28px;
  background: linear-gradient(135deg, #7C5CFC 0%, #6C5CE7 45%, #3ECBE0 100%);
  color: #fff;
}
.mockup__dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.mockup__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.mockup__label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.mockup__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  line-height: 1.25;
}
.mockup__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mockup__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #F4F5F9;
  border-radius: 14px;
  color: var(--ink);
}
.mockup__row [data-lucide], .mockup__row svg { color: var(--muted); margin-left: auto; }
.mockup__row-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mockup__row-text strong { font-weight: 600; font-size: 14px; color: var(--ink); }
.mockup__row-text span { font-size: 12px; color: var(--muted); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--violet { background: var(--violet); }

/* Floating badges */
.float {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(20, 26, 55, 0.15);
}
.float strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}
.float span { font-size: 12px; color: var(--muted); }
.float__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}
.float__icon [data-lucide], .float__icon svg { width: 20px; height: 20px; }
.float__icon--blue {
  background: linear-gradient(160deg, #7C9CFF 0%, #3ECBE0 100%);
}
.float--top    { top: 18px;    right: -18px; }
.float--bottom { bottom: 60px; left: -18px; }

/* ---------- PROBLEM / SOLUTION ---------- */
.ps { padding: 96px 0; background: #fff; }
.ps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.ps__col .eyebrow { margin-bottom: 16px; }
.ps .display--sm {
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 32px;
  max-width: 420px;
}
.ps__list { display: flex; flex-direction: column; gap: 14px; }
.ps__list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 24px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.ps__list--neg li {
  background: var(--rose-50);
  border-left: 4px solid var(--rose);
}
.ps__list--pos li {
  background: var(--indigo-bg);
  border-left: 4px solid var(--violet);
}
.chip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.chip--neg { background: var(--rose); }
.chip--pos {
  background: var(--violet);
  color: #fff;
  width: 18px;
  height: 18px;
}
.chip--pos [data-lucide], .chip--pos svg { width: 12px; height: 12px; stroke-width: 3; }

/* ---------- FEATURES ---------- */
.features {
  background: var(--bg-soft);
  padding: 112px 0;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-icon);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-icon);
}
.feature-card__icon [data-lucide], .feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 0;
}
.feature-card p {
  font-size: 15px;
  color: var(--body);
  margin: 0;
  line-height: 1.6;
}

/* ---------- HOW IT WORKS ---------- */
.how { background: #fff; padding: 112px 0; }
.how__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.how__step {
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.how__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--grad-icon);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-icon);
  margin-bottom: 8px;
}
.how__icon [data-lucide], .how__icon svg { width: 32px; height: 32px; }
.how__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 56px;
  color: var(--violet-100);
  line-height: 1;
}
.how__step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin: 0;
  max-width: 220px;
}
.how__step p {
  font-size: 14px;
  color: var(--body);
  margin: 0;
  max-width: 240px;
}
.how__connector {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
  align-self: center;
  min-width: 80px;
  margin-top: 48px;
}

/* ---------- SOCIAL PROOF ---------- */
.proof {
  position: relative;
  padding: 112px 0;
  color: #fff;
  overflow: hidden;
}
.proof__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  z-index: -1;
}
.proof__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 500px at 50% 40%, rgba(255,255,255,0.12), transparent 70%);
}
.proof__title {
  color: #fff;
  text-align: center;
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 48px;
}
.proof__stats {
  display: flex;
  justify-content: center;
  gap: 72px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.testimonial {
  background: #fff;
  color: var(--ink);
  padding: 36px 40px;
  border-radius: var(--r-lg);
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}
.testimonial__stars {
  display: flex;
  gap: 4px;
  color: #F5A623;
  margin-bottom: 20px;
}
.testimonial__stars svg { fill: currentColor; stroke: currentColor; width: 22px; height: 22px; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  margin: 0 0 28px;
  color: var(--ink);
}
.testimonial__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.testimonial__name { font-weight: 600; color: var(--ink); font-size: 14px; }
.testimonial__role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.testimonial__dots { display: flex; gap: 6px; }
.testimonial__dots span {
  width: 28px; height: 4px;
  background: var(--line); border-radius: 999px;
}
.testimonial__dots span.active { background: var(--violet); }

/* ---------- PRICING ---------- */
.pricing {
  background: var(--bg-soft);
  padding: 112px 0;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.price-card--featured {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F3FF 100%);
  border: 2px solid var(--violet);
  box-shadow: 0 30px 60px rgba(108, 92, 231, 0.18);
  transform: translateY(-8px);
}
.price-card--featured:hover { transform: translateY(-12px); }

.price-card__badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--violet);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-card__head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 8px;
}
.price-card__head p { color: var(--muted); font-size: 14px; margin: 0; }

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.price-card__price .amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  color: var(--ink);
  line-height: 1;
}
.price-card__price .per { color: var(--muted); font-size: 15px; }

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.price-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14.5px;
}
.price-card__features svg {
  width: 16px; height: 16px;
  color: var(--violet);
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* ---------- FINAL CTA ---------- */
.cta {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-cta);
  z-index: -1;
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 350px at 75% 60%, rgba(62,203,224,0.35), transparent 70%),
    radial-gradient(600px 400px at 20% 30%, rgba(108,92,231,0.3), transparent 70%);
}
.cta .display--xl {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.cta__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 48px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0E1E36;
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
  font-size: 20px;
  margin-bottom: 12px;
}
.footer__brand p { margin: 0; font-size: 14px; max-width: 220px; }
.footer__col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color .15s;
}
.footer__col li a:hover { color: #fff; }
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  transition: background .15s, color .15s;
}
.footer__social a:hover {
  background: var(--violet);
  color: #fff;
}
.footer__bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__mockup { justify-self: start; max-width: 480px; }
  .ps__grid { grid-template-columns: 1fr; gap: 48px; }
  .features__grid, .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: 1fr; gap: 40px; }
  .how__connector { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .features__grid, .pricing__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0 80px; }
  .hero__cta .btn { flex: 1; }
  .float--top { right: 8px; top: -10px; }
  .float--bottom { left: 8px; bottom: -10px; }
  .proof__stats { gap: 32px; }
  .testimonial { padding: 28px 24px; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-4px); }
  .ps, .features, .how, .proof, .pricing, .cta { padding: 72px 0; }
}

/* ---------- Motion (reveal on load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    opacity: 0;
    transform: translateY(12px);
    animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards;
  }
  .hero__copy > *:nth-child(1) { animation-delay: .05s; }
  .hero__copy > *:nth-child(2) { animation-delay: .15s; }
  .hero__copy > *:nth-child(3) { animation-delay: .25s; }
  .hero__copy > *:nth-child(4) { animation-delay: .35s; }

  .hero__mockup {
    opacity: 0;
    transform: translateY(16px) scale(.98);
    animation: rise-mockup 1s .2s cubic-bezier(.2,.7,.3,1) forwards;
  }
  .float--top { animation: float 4s ease-in-out infinite; }
  .float--bottom { animation: float 5s ease-in-out infinite reverse; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-mockup {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
