.quotes-demo-page {
  --quotes-page-bg: #eef7ff;
  background: #fff;
}

.quotes-demo-hero {
  min-height: 84vh;
  padding: 7rem 0 4rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(13, 75, 102, 0.92) 54%, rgba(15, 159, 154, 0.86)),
    radial-gradient(circle at 80% 15%, rgba(245, 184, 65, 0.24), transparent 32%);
}

.quotes-demo-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
}

.quotes-demo-hero .lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.84);
}

.quotes-eyebrow {
  margin-bottom: 0.85rem;
  color: #8ff0df;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quotes-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.quotes-feature-list span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.quotes-app-shell {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  background: var(--quotes-page-bg);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.28);
  transition: background 0.35s ease;
}

.quotes-app-container {
  width: 100%;
  max-width: 420px;
  padding: 0;
}

:root {
  --quote-card-bg:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76) 38%, rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, #fff7ed, #eef7ff 52%, #f7f1ff);
  --quote-card-text: #172033;
  --quote-card-muted: #667085;
  --quote-card-border: rgba(255, 255, 255, 0.85);
  --quote-card-shadow: 0 24px 70px rgba(31, 41, 55, 0.22);
  --quote-accent-a: #ff8a5b;
  --quote-accent-b: #2bb3a3;
}

:root.quotes-dark {
  --quote-card-bg:
    radial-gradient(circle at top left, rgba(50, 60, 84, 0.92), rgba(20, 27, 42, 0.96) 42%, rgba(11, 16, 28, 0.98)),
    linear-gradient(135deg, #1c2a3f, #111827 58%, #241b32);
  --quote-card-text: #f8fafc;
  --quote-card-muted: #cbd5e1;
  --quote-card-border: rgba(255, 255, 255, 0.14);
  --quote-card-shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
  --quote-accent-a: #ffb86b;
  --quote-accent-b: #67e8d9;
}

.quote-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  min-height: 22rem;
  padding: 34px 28px 30px;
  color: var(--quote-card-text);
  text-align: center;
  border: 1px solid var(--quote-card-border);
  border-radius: 28px;
  background: var(--quote-card-bg);
  box-shadow: var(--quote-card-shadow);
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 170px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--quote-accent-a), var(--quote-accent-b));
  transform: translateX(-50%);
  box-shadow: 0 10px 24px rgba(43, 179, 163, 0.24);
  pointer-events: none;
}

.quote-card::after {
  content: "\201C";
  position: absolute;
  top: 44px;
  left: 24px;
  z-index: 0;
  color: var(--quote-accent-a);
  font-family: "Playfair Display", serif;
  font-size: 8rem;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
}

.quote-card > * {
  position: relative;
  z-index: 1;
}

.greeting {
  margin-top: 8px;
  margin-bottom: 8px;
  color: var(--quote-card-text);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0;
}

#dateLine {
  color: var(--quote-card-muted);
  font-weight: 700;
}

.quote-text {
  min-height: 8.5rem;
  margin: 30px 0 24px;
  color: var(--quote-card-text);
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.46;
}

.quote-author {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  color: var(--quote-card-text);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

:root.quotes-dark .quote-author {
  background: rgba(255, 255, 255, 0.1);
}

.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.controls-bar .btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.quotes-demo-details {
  padding: 4rem 0;
  background: #f7fafc;
}

.quotes-detail-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid #dfe7f0;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.quotes-detail-card i {
  display: inline-grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: #fff;
  border-radius: 0.65rem;
  background: #0b6ef3;
}

.quotes-detail-card h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.quotes-detail-card p {
  margin: 0;
  color: #5b6472;
}

@media (max-width: 575.98px) {
  .quotes-demo-hero {
    padding-top: 6rem;
  }

  .quotes-app-shell {
    padding: 1rem;
  }

  .quote-card {
    min-height: 20rem;
    padding: 32px 22px 28px;
    border-radius: 24px;
  }

  .quote-text {
    font-size: 1.38rem;
  }
}
