:root {
  --bg: #f7f8fa;
  --bg-soft: #f1ede8;
  --card: #eee9e4;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #b79f7a;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --white: #ffffff;
  --radius: 1.5rem;
  --shadow: 0 8px 30px rgba(31, 41, 51, 0.05);
  --ai-purple: #8b5cf6;
  --ai-blue: #4f7cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.case-study {
  overflow: hidden;
}

.hero {
  padding: 6rem 0 3rem;
  background:
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(79, 124, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f8fa 0%, #f4f5f7 100%);
}

.hero__content {
  max-width: 920px;
}

.eyebrow,
.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-intro {
  max-width: 860px;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 860px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
}

.hero__subtitle {
  max-width: 760px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.meta-card,
.summary-card,
.highlight-card,
.process-card,
.mock-card,
.tool-card,
.quote-card {
  background: var(--white);
  border: 1px solid rgba(183, 159, 122, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.meta-card {
  padding: 1rem 1.2rem;
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meta-value {
  font-weight: 600;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: rgba(238, 233, 228, 0.35);
}

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.summary-card,
.highlight-card {
  padding: 1.5rem;
}

.summary-card ul,
.highlight-card ul,
.product-copy ul,
.persona-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.quote-card {
  padding: 1.2rem 1.35rem;
  margin-top: 1.25rem;
  border-left: 4px solid var(--ai-purple);
}

.quote-card p {
  margin: 0;
  font-weight: 600;
}

.product-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.product-block--top {
  margin-top: 2rem;
}

.mock-card {
  min-height: 280px;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8f6f3 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(31, 41, 51, 0.08);
}

.placeholder-card {
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8f6f3 100%);
}

.placeholder-image {
  width: 100%;
  min-height: 220px;
  border: 2px dashed rgba(183, 159, 122, 0.55);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
}

.placeholder-image span {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.placeholder-image small {
  max-width: 320px;
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.tool-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  padding: 1.4rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.process-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  padding: 1.4rem;
}

.tall-card {
  min-height: 360px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.95rem 1.4rem;
  border-radius: 0.9rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(183, 159, 122, 0.45);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.7);
}

.footer-cta {
  padding-top: 3rem;
}

.footer-cta__content {
  text-align: center;
  padding-bottom: 5rem;
}

@media (max-width: 980px) {
  .hero__meta,
  .two-col,
  .product-block,
  .process-grid,
  .process-grid--three,
  .tool-grid,
  .tool-grid--three {
    grid-template-columns: 1fr;
  }

  .mock-card,
  .tall-card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 5rem 0 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .meta-card,
  .summary-card,
  .highlight-card,
  .process-card,
  .mock-card,
  .tool-card,
  .quote-card {
    border-radius: 1.1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.product-block {
  margin-top: 4rem;
}

.product-copy h3 {
  margin-bottom: 0.5rem;
}

.product-copy p {
  color: var(--muted);
}

.link-inline {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link-inline:hover {
  text-decoration: underline;
}

.mock-label {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Card base */
.mock-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Image */
.mock-image {
  transition: transform 0.3s ease;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 51, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0.8rem;
  border-radius: 0.6rem;
}

/* Hover effects */
.mock-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(31, 41, 51, 0.12);
}

.mock-card:hover .mock-image {
  transform: scale(1.05);
}

.mock-card:hover .overlay {
  opacity: 1;
}

/* =========================
   Structured flow / timeline treatment
   ========================= */

.structured-flow {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 2.6rem;
}

.structured-flow::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(183, 159, 122, 0.12) 0%,
    rgba(183, 159, 122, 0.6) 15%,
    rgba(183, 159, 122, 0.45) 85%,
    rgba(183, 159, 122, 0.1) 100%
  );
}

.product-block--timeline {
  position: relative;
  margin-top: 0;
  padding: 2.6rem 0;
  border-top: 1px solid rgba(183, 159, 122, 0.35);
}

.product-block--timeline:first-child {
  border-top: 0;
  padding-top: 0.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2.1rem;
  top: 2.9rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  box-shadow: 0 0 0 6px rgba(247, 248, 250, 0.9);
}

.mini-label {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =========================
   Final UI section treatment
   ========================= */

.ui-showcase {
  position: relative;
  margin-top: 2.2rem;
  padding-left: 2.6rem;
}

.ui-showcase::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(79, 124, 255, 0.12) 0%,
    rgba(183, 159, 122, 0.45) 18%,
    rgba(183, 159, 122, 0.28) 100%
  );
}

.ui-showcase__intro {
  position: relative;
  padding: 0.25rem 0 1.5rem;
  border-bottom: 1px solid rgba(183, 159, 122, 0.28);
  margin-bottom: 1.75rem;
}

.timeline-marker--top {
  top: 0.4rem;
  left: -2.1rem;
}

.ui-showcase__copy {
  max-width: 760px;
}

.ui-showcase__copy p:last-child {
  color: var(--muted);
}

.ui-showcase__grid {
  margin-top: 0;
}

/* Small polish for product copy inside timeline sections */
.product-block--timeline .product-copy {
  padding-right: 0.5rem;
}

.product-block--timeline .product-copy p {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .structured-flow,
  .ui-showcase {
    padding-left: 1.4rem;
  }

  .structured-flow::before,
  .ui-showcase::before {
    left: 0.35rem;
  }

  .timeline-marker,
  .timeline-marker--top {
    left: -0.25rem;
    box-shadow: 0 0 0 4px rgba(247, 248, 250, 0.95);
  }

  .product-block--timeline {
    padding: 2rem 0;
  }
}

@media (max-width: 640px) {
  .structured-flow,
  .ui-showcase {
    padding-left: 1rem;
  }

  .structured-flow::before,
  .ui-showcase::before {
    display: none;
  }

  .timeline-marker,
  .timeline-marker--top {
    display: none;
  }

  .ui-showcase__intro {
    padding-top: 0;
  }
}