:root {
  color-scheme: dark;
  --ink: #f6eddc;
  --muted: #d0c2aa;
  --dim: #9e927f;
  --dark: #071512;
  --deep: #0c231d;
  --green: #123a30;
  --gold: #d8a847;
  --amber: #f0c36a;
  --burgundy: #7e3140;
  --paper: #f4e4bf;
  --line: rgba(246, 237, 220, 0.16);
  --shadow: rgba(0, 0, 0, 0.45);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(7, 21, 18, 0.76);
  border-bottom: 1px solid rgba(246, 237, 220, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(216, 168, 71, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--amber);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding: 116px clamp(18px, 4vw, 54px) 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/images/hero-holmes-banner.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 21, 18, 0.95), rgba(7, 21, 18, 0.63) 48%, rgba(7, 21, 18, 0.9)),
    linear-gradient(180deg, rgba(7, 21, 18, 0.24), var(--dark) 96%);
}

.hero-inner {
  width: min(1220px, 100%);
  min-height: calc(100vh - 172px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  font-weight: 650;
  max-width: 720px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.8vw, 4.6rem);
  font-weight: 620;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
}

.hero-lede {
  max-width: 640px;
  margin: 26px 0 0;
  color: #eadcc4;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions.centered {
  justify-content: center;
}

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

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

.button.primary {
  background: linear-gradient(135deg, var(--amber), #b98527);
  color: #171009;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.button.secondary {
  border: 1px solid rgba(246, 237, 220, 0.32);
  color: var(--ink);
  background: rgba(246, 237, 220, 0.06);
}

.button.secondary.light {
  background: rgba(255, 255, 255, 0.08);
}

.video-shell {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(246, 237, 220, 0.18);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55);
  background: #000;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.intro-band {
  background: var(--paper);
  color: #241c13;
  padding: clamp(36px, 7vw, 72px) clamp(18px, 4vw, 54px);
}

.intro-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 6vw, 76px);
  align-items: start;
}

.intro-band h2,
.intro-band p {
  color: #241c13;
}

.intro-band .section-kicker {
  color: #744531;
}

.section {
  padding: clamp(64px, 10vw, 128px) clamp(18px, 4vw, 54px);
}

.section-heading {
  width: min(860px, 100%);
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.steps {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step,
.mode,
.story-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(246, 237, 220, 0.055);
}

.step {
  padding: 26px;
  min-height: 278px;
}

.step-number {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

code {
  color: #1b1207;
  background: var(--amber);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 800;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: center;
  padding: clamp(64px, 10vw, 128px) clamp(18px, 4vw, 54px);
  background: linear-gradient(135deg, #102c25, #281b1d);
}

.phone-panel,
.showcase-copy {
  width: min(520px, 100%);
  justify-self: center;
}

.showcase-copy {
  justify-self: start;
}

.phone-frame {
  border-radius: 30px;
  padding: 14px;
  background: #0b0e0e;
  border: 1px solid rgba(246, 237, 220, 0.18);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
}

.phone-top {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink);
  border-bottom: 1px solid rgba(246, 237, 220, 0.12);
}

.chat {
  min-height: 530px;
  padding: 20px 14px 10px;
  background:
    radial-gradient(circle at top, rgba(216, 168, 71, 0.11), transparent 34%),
    #101917;
  border-radius: 0 0 22px 22px;
}

.bubble,
.hint {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 12px;
}

.bubble {
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 0.96rem;
  line-height: 1.45;
}

.bubble.narrator {
  background: rgba(246, 237, 220, 0.11);
  color: var(--ink);
}

.bubble.user {
  margin-left: auto;
  background: #d8a847;
  color: #171009;
}

.bubble.holmes {
  background: rgba(126, 49, 64, 0.5);
  color: #f7ead9;
}

.hint {
  color: var(--dim);
  font-size: 0.82rem;
}

.mode-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mode {
  padding: 32px;
  min-height: 230px;
}

.library-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(70px, 12vw, 142px) clamp(18px, 4vw, 54px);
}

.library-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/presenter.png");
  background-size: cover;
  background-position: center;
  filter: saturate(0.92);
}

.library-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 21, 18, 0.96), rgba(7, 21, 18, 0.72), rgba(7, 21, 18, 0.94)),
    linear-gradient(180deg, rgba(7, 21, 18, 0.36), rgba(7, 21, 18, 0.9));
}

.library-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.story-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.story-list article {
  padding: 22px;
  background: rgba(7, 21, 18, 0.68);
}

.story-list span {
  display: block;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 760;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feature-section {
  background: #100f0d;
}

.feature-row {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}

.feature-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(246, 237, 220, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.cta-section {
  padding: clamp(72px, 11vw, 130px) clamp(18px, 4vw, 54px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 168, 71, 0.22), transparent 34%),
    linear-gradient(135deg, #11352c, #121a1a 58%, #371c25);
}

.cta-section img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(216, 168, 71, 0.42);
}

.cta-section h2,
.cta-section p {
  width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: var(--dim);
  border-top: 1px solid rgba(246, 237, 220, 0.11);
}

.site-footer span {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
  }

  .hero-inner,
  .intro-grid,
  .showcase,
  .feature-row {
    grid-template-columns: 1fr;
  }

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

  .video-shell {
    order: -1;
  }

  .steps,
  .story-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-copy {
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 96px;
  }

  .hero-actions,
  .hero-actions.centered {
    flex-direction: column;
    align-items: stretch;
  }

  .steps,
  .mode-grid,
  .story-list {
    grid-template-columns: 1fr;
  }

  .step,
  .mode {
    min-height: auto;
  }

  .chat {
    min-height: 460px;
  }

  p {
    font-size: 1rem;
  }
}
