:root {
  --bg: #daf4ff;
  --bg-strong: #b9ebff;
  --surface: rgba(242, 250, 255, 0.76);
  --surface-strong: rgba(255, 252, 246, 0.94);
  --surface-deep: #17313e;
  --ink: #17303a;
  --muted: #4f6670;
  --line: rgba(23, 48, 58, 0.12);
  --accent: #deae5d;
  --accent-strong: #936432;
  --accent-soft: #f7e3bc;
  --brown: #6c4429;
  --violet: #6851b9;
  --card-bg:
    linear-gradient(135deg, rgba(104, 81, 185, 0.12), rgba(247, 227, 188, 0.4)),
    rgba(248, 252, 255, 0.78);
  --glow: rgba(74, 188, 242, 0.28);
  --shadow: 0 28px 70px rgba(18, 55, 74, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(104, 81, 185, 0.16), transparent 18%),
    radial-gradient(circle at 70% 28%, rgba(222, 174, 93, 0.22), transparent 24%),
    linear-gradient(180deg, #f4fdff 0%, var(--bg) 38%, #c9efff 100%);
}

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

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

.link-deerlibrarian {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  padding: 0.08em 0.4em;
  margin: 0 0.05em;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe8b8 0%, #f7d38d 100%);
  border: 1px solid rgba(147, 100, 50, 0.24);
  color: #6c4429;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.15em;
  box-shadow: 0 8px 16px rgba(147, 100, 50, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.link-deerlibrarian:hover,
.link-deerlibrarian:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(147, 100, 50, 0.22);
  background: linear-gradient(135deg, #ffeec8 0%, #f9deaa 100%);
}

.link-deerlibrarian:focus-visible {
  outline: 2px solid rgba(147, 100, 50, 0.45);
  outline-offset: 2px;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(13, 65, 98, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.98rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
}

.store-badge {
  display: block;
  width: auto;
  height: 52px;
}

.store-badge-link-top .store-badge {
  height: 44px;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  padding: 36px 0 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-copy h2,
.cta-banner h2 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3.25rem, 7vw, 5.8rem);
  max-width: 9ch;
}

.hero-text,
.section-heading p,
.split-copy p,
.feature-card p,
.experience-card p,
.timeline-card p,
.stats-strip span,
.screen-copy h3 {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}

.store-badge-link-hero {
  margin-bottom: 24px;
}

.store-badge-link-hero .store-badge {
  height: 58px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #e4b667 0%, #c9863d 100%);
  color: #fffdf6;
  box-shadow: 0 18px 34px rgba(201, 134, 61, 0.28);
}

.button-secondary {
  border: 1px solid rgba(23, 48, 58, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.hero-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-card,
.experience-card,
.timeline-card,
.stats-strip article,
.cta-banner,
.screen-card,
.hero-device,
.floating-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-device {
  position: relative;
  width: min(100%, 370px);
  padding: 14px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(23, 49, 62, 0.06), rgba(255, 255, 255, 0.44)),
    var(--surface-strong);
}

.hero-device img,
.screen-card img {
  width: 100%;
  border-radius: 30px;
}

.panel-label {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 18px 0 32px;
}

.stats-strip article {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.stats-strip strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
}

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.split-copy h2,
.cta-banner h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 244px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(104, 81, 185, 0.12);
  color: var(--violet);
  font-weight: 700;
  font-size: 0.95rem;
}

.feature-card h3,
.experience-card h3,
.timeline-card h3,
.screen-copy h3 {
  margin: 0 0 10px;
  font-family: "Outfit", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-size: 1.45rem;
}

.screenshots-section {
  position: relative;
  padding-top: 56px;
}

.screens-carousel {
  display: grid;
  gap: 18px;
  width: 100%;
}

.screens-viewport {
  width: 100%;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.carousel-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.88);
}

.carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.screens-track {
  display: flex;
  gap: 0;
  background: transparent;
  transform: translateX(0);
  transition: transform 280ms ease;
  will-change: transform;
}

.screens-page {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--cards-per-page, 1), minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  background: transparent;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 48, 58, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.carousel-dot[aria-current="true"] {
  background: var(--violet);
  transform: scale(1.15);
}

.screen-card {
  width: 100%;
  max-width: 360px;
  justify-self: center;
  padding: 14px;
  border-radius: 24px;
  background: var(--card-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.screen-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 400px;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 660 / 1434;
  object-fit: contain;
  object-position: bottom center;
  border-radius: 34px;
}

.screen-copy {
  max-width: 28ch;
}

.screen-copy h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.18;
}

.screenshots-section .section-heading {
  max-width: 620px;
  margin-bottom: 18px;
}

.screenshots-section .section-heading p {
  max-width: 52ch;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.experience-panels {
  display: grid;
  gap: 18px;
}

.experience-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.sync-section {
  position: relative;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.timeline-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(222, 174, 93, 0.18);
  color: var(--brown);
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.policy-section {
  padding-top: 56px;
}

.policy-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.policy-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.policy-card h3 {
  margin: 0 0 12px;
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.policy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.policy-card p + p {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 0;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(16, 38, 48, 0.94), rgba(31, 64, 78, 0.94)),
    #102630;
  color: #eef8fc;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  width: 148px;
  height: auto;
}

.footer-label {
  margin-bottom: 10px;
  color: var(--accent-soft);
}

.footer-text {
  margin: 0;
  color: rgba(238, 248, 252, 0.76);
  line-height: 1.6;
  max-width: 42ch;
}

.store-badge-link-footer {
  margin-top: 16px;
}

.store-badge-link-footer .store-badge {
  height: 52px;
}

.footer-link {
  color: var(--accent-soft);
  font-weight: 600;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(248, 252, 255, 0.84), rgba(247, 227, 188, 0.5)),
    rgba(255, 255, 255, 0.64);
}

@media (max-width: 1080px) {
  .hero,
  .split-section,
  .feature-grid,
  .timeline-grid,
  .policy-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .screens-page {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

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

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

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    gap: 24px;
    padding-top: 18px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-device,
  .screen-card {
    height: 500px;
    padding: 12px;
  }

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

  .site-footer,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-card img {
    max-height: 360px;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a141c;
    --bg-strong: #132432;
    --surface: rgba(20, 33, 44, 0.82);
    --surface-strong: rgba(23, 38, 52, 0.94);
    --surface-deep: #060b11;
    --ink: #e6f2fa;
    --muted: #a9c0cf;
    --line: rgba(188, 219, 239, 0.2);
    --accent: #f1ba67;
    --accent-strong: #f4c37b;
    --accent-soft: #ffd89d;
    --brown: #ffd89d;
    --violet: #8f7bf0;
    --card-bg:
      linear-gradient(135deg, rgba(143, 123, 240, 0.16), rgba(13, 29, 41, 0.72)),
      rgba(17, 28, 40, 0.8);
    --glow: rgba(101, 173, 255, 0.24);
    --shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  }

  html {
    color-scheme: dark;
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(123, 76, 215, 0.12), transparent 28%),
      radial-gradient(circle at 85% 8%, rgba(46, 201, 225, 0.14), transparent 22%),
      linear-gradient(180deg, #0b1520 0%, #0d1b27 42%, #071018 100%);
  }

  .button-secondary,
  .carousel-button {
    background: rgba(18, 30, 41, 0.88);
    border-color: var(--line);
    color: var(--ink);
  }

  .carousel-button:hover {
    background: rgba(24, 40, 55, 0.96);
  }

  .feature-card,
  .experience-card,
  .timeline-card,
  .policy-card,
  .stats-strip article,
  .screen-card {
    background: var(--card-bg);
    border-color: var(--line);
  }

  .hero-device {
    background:
      linear-gradient(180deg, rgba(131, 82, 255, 0.18), rgba(11, 18, 25, 0.65)),
      rgba(18, 29, 39, 0.9);
    border-color: var(--line);
  }

  .feature-number {
    background: rgba(143, 123, 240, 0.25);
    color: #e8deff;
  }

  .timeline-card span {
    background: rgba(241, 186, 103, 0.24);
    color: #ffe4bb;
  }

  .cta-banner {
    background:
      linear-gradient(135deg, rgba(143, 123, 240, 0.16), rgba(13, 29, 41, 0.72)),
      rgba(17, 28, 40, 0.8);
  }

  .site-footer {
    background:
      linear-gradient(135deg, rgba(7, 13, 19, 0.98), rgba(15, 30, 42, 0.96)),
      #070f17;
  }

  .carousel-dot {
    background: rgba(169, 192, 207, 0.42);
  }

  .carousel-dot[aria-current="true"] {
    background: var(--violet);
  }

  .link-deerlibrarian {
    background: linear-gradient(135deg, rgba(248, 196, 113, 0.2), rgba(205, 147, 69, 0.2));
    border-color: rgba(248, 196, 113, 0.45);
    color: #ffddaa;
    box-shadow: none;
  }

  .link-deerlibrarian:hover,
  .link-deerlibrarian:focus-visible {
    background: linear-gradient(135deg, rgba(248, 196, 113, 0.3), rgba(205, 147, 69, 0.28));
  }

  .store-badge-link {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 2px 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  }

  .store-badge {
    filter: none;
  }
}
