/* ===========================
   GIST — Home Page Styles
   =========================== */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vw;
  padding: 110px 8vw 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--blue-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-100) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 40%, transparent 100%);
  opacity: .45;
}

.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none;
}
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%);
  top: -120px; right: -80px;
  animation: blobDrift 12s ease-in-out infinite alternate;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  bottom: -80px; left: 5%;
  animation: blobDrift 16s ease-in-out infinite alternate-reverse;
}
@keyframes blobDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.06); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 560px;
  animation: fadeUp .9s cubic-bezier(.4,0,.2,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-200);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--blue-600);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--slate-500);
  max-width: 440px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: .8rem;
  color: var(--slate-400);
}

/* ── Hero Visual ── */
.hero-visual {
  position: relative; z-index: 1;
  flex: 0 0 auto;
  animation: fadeUp 1.1s .2s cubic-bezier(.4,0,.2,1) both;
}

.card-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 320px;
  border: 1px solid var(--blue-100);
  overflow: hidden;
  position: relative; z-index: 2;
  transition: transform .4s ease;
}
.card-mock:hover { transform: translateY(-4px) rotate(-1deg); }

.card-mock-behind {
  position: absolute;
  top: 24px; right: -28px; z-index: 1;
  width: 280px;
  transform: rotate(4deg);
  opacity: .85;
  transition: transform .4s ease;
}
.card-mock:hover ~ .card-mock-behind { transform: rotate(6deg) translateY(-4px); }

.card-mock-bar {
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-100);
  padding: .6rem .9rem;
  display: flex; gap: .4rem;
}
.card-mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue-200);
}
.card-mock-bar span:first-child { background: #fca5a5; }
.card-mock-bar span:nth-child(2) { background: #fcd34d; }

.card-mock-body { padding: 1.25rem 1.3rem 1rem; }

.mock-tag {
  display: inline-block;
  background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-200);
  border-radius: 100px;
  font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .65rem;
  margin-bottom: .75rem;
}
.mock-tag.tag-blue { background: var(--blue-100); color: var(--blue-800); }

.mock-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--slate-900);
  margin-bottom: 1rem;
}
.mock-title.sm-title { font-size: .9rem; }

.mock-line {
  height: 8px; background: var(--slate-100); border-radius: 4px;
  margin-bottom: .45rem;
}
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-line.w90 { width: 90%; }
.mock-line.w50 { width: 50%; }
.mock-line.w40 { width: 40%; }
.mock-line.w25 { width: 25%; }
.mock-line.sm { height: 6px; margin-bottom: .3rem; }

.mock-avatar-row {
  display: flex; align-items: center; gap: .65rem;
  margin-top: 1rem;
}
.mock-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  flex-shrink: 0;
}
.mock-byline { flex: 1; }
.mock-like { font-size: .75rem; color: var(--slate-400); margin-left: auto; }

/* ── Logos ── */
.logos-section {
  text-align: center;
  padding: 3rem 5vw;
  border-top: 1px solid var(--blue-50);
  border-bottom: 1px solid var(--blue-50);
  background: var(--off-white);
}
.logos-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
}
.logos-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
}
.logo-pill {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 100px;
  padding: .4rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--slate-600);
  box-shadow: var(--shadow-sm);
}

/* ── Features ── */
.features-section {
  padding: 7rem 8vw 5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.feat-card {
  background: var(--white);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feat-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.feat-card--large {
  grid-column: span 2;
  background: var(--blue-50);
}
.feat-card--accent {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.feat-icon {
  font-size: 1.4rem;
  color: var(--blue-400);
  margin-bottom: .75rem;
}
.feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--slate-900);
}
.feat-card p { font-size: .9rem; color: var(--slate-500); line-height: 1.6; }

/* Accent card overrides come AFTER general rules to win specificity */
.feat-card--accent p { color: rgba(255,255,255,.82); }
.feat-card--accent h3 { color: var(--white); }
.feat-card--accent .feat-icon { color: rgba(255,255,255,.75); }

/* Editor Mock inside feature card */
.editor-mock {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--blue-200);
  box-shadow: var(--shadow-sm);
}
.em-line {
  height: 8px; background: var(--slate-100); border-radius: 4px; margin-bottom: .5rem;
}
.em-line.short { width: 55%; }
.em-heading {
  height: auto; background: none; font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; color: var(--slate-900);
  margin-bottom: .7rem;
}
.em-cursor {
  display: inline-block;
  color: var(--blue-500);
  font-weight: 300;
  animation: blink .9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Quote ── */
.quote-section {
  text-align: center;
  padding: 5rem 10vw;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
}
.quote-section blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--slate-900);
  max-width: 720px;
  margin: 0 auto .75rem;
  line-height: 1.4;
}
.quote-section cite {
  font-size: .85rem;
  color: var(--slate-400);
}

/* ── How It Works ── */
.how-section {
  padding: 7rem 8vw 5rem;
}
.steps-row {
  display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 180px;
  padding: 1.75rem;
  background: var(--white);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-lg);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-200);
  line-height: 1;
  margin-bottom: .5rem;
}
.step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: .35rem;
}
.step p { font-size: .88rem; color: var(--slate-500); line-height: 1.6; }
.step-arrow {
  font-size: 1.5rem;
  color: var(--blue-300);
  margin-top: 2.5rem;
  flex-shrink: 0;
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  text-align: center;
  padding: 7rem 5vw;
  overflow: hidden;
  background: var(--blue-700);
}
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(96,165,250,.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.cta-banner h2 em {
  font-style: italic;
  color: var(--blue-300);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card--large { grid-column: span 2; }
}
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-card--large { grid-column: span 1; }
  .steps-row { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
}
