/* Paint the scene on the root canvas as well as the fixed layer, so Safari
   never reveals a separate black canvas while compositing a scroll. */
.home-page { --scene: linear-gradient(to left, #0a0a0a 0%, #0a0a0a 25%, #0a0a0ab3 50%, transparent 75%), linear-gradient(180deg, #0a0a0aa6, #0a0a0ab3 60%, #0a0a0ae6), url('forest-stream.jpg'); background-image: var(--scene); background-position: center; background-size: cover; background-attachment: fixed; }
.home { line-height: 1.6; isolation: isolate; background: transparent; }
/* One continuous backdrop, without section-specific images or color bands. */
.home::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--scene) center/cover no-repeat; }
.home .site-footer { background: transparent; }
.home h1, .home h2, .home h3, .home p { margin: 0; }
.home .container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.hero { position: relative; isolation: isolate; padding: 120px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: block; color: var(--text-muted); font-size: 11px; line-height: 1.5; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.hero h1 span { display: block; color: var(--accent); margin-top: 8px; }
.hero .hero-sub { max-width: 440px; font-size: 18px; color: #cccccc; line-height: 1.75; margin: 26px 0 30px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.text-link { color: var(--text-secondary); text-underline-offset: 5px; font-size: 14px; padding: 12px 0; }
.text-link:hover { color: var(--accent); }
.hero .hero-note { font-size: 13px; color: var(--text-secondary); margin-top: 20px; }
.hero-visual { display: flex; flex-direction: column; align-items: center; position: relative; }
.hero-video { width: auto; max-width: 100%; height: clamp(420px, calc(100svh - 210px), 600px); display: block; }
.media-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; color: var(--text-muted); background: transparent; font-size: 12px; cursor: pointer; }
.media-toggle:hover { color: #f5f5f5; background: rgba(255, 255, 255, .04); }
.media-toggle[hidden] { display: none; }
.hero-visual .media-toggle { margin-top: 14px; }
.features { padding: 72px 0; }
.section-heading { max-width: 630px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.home h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.section-heading p { color: var(--text-secondary); font-size: 17px; margin-top: 16px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-card { border: 1px solid var(--border-subtle); border-radius: 28px; overflow: hidden; background: rgba(18, 18, 18, .86); display: flex; flex-direction: column; }
.feature-copy { padding: 32px 32px 0; min-height: 178px; }
.feature-copy .eyebrow { margin-bottom: 12px; }
.home h3 { font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.feature-copy p { color: var(--text-secondary); font-size: 16px; margin-top: 12px; max-width: 420px; }
.feature-visual { display: flex; flex: 1; align-items: flex-start; justify-content: center; padding: 24px 24px 28px; min-height: 480px; }
.feature-visual img { display: block; width: 240px; max-width: 100%; height: auto; }
.feature-demo { display: flex; flex-direction: column; align-items: center; width: 100%; }
.feature-demo video { width: 296px; max-width: 100%; height: auto; display: block; }
.feature-demo .media-toggle { margin-top: 12px; }
.stats { padding: 0 0 80px; }
.stats-card { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; padding: 48px 64px; background: rgba(18, 18, 18, .86); border: 1px solid var(--border-subtle); border-radius: 28px; }
.stats-copy .eyebrow { margin-bottom: 16px; }
.stats-copy > p { margin-top: 20px; font-size: 17px; color: var(--text-secondary); }
.stats-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.stats-list li { display: flex; gap: 12px; font-size: 15px; }
.stats-list li::before { content: '✓'; color: var(--accent); }
.stats-visual { display: flex; justify-content: center; }
.stats-visual img { display: block; width: 260px; max-width: 100%; height: auto; }
@media (max-width: 960px) {
  .hero-inner { gap: 32px; }
  .hero h1 { font-size: 48px; }
  .hero-video { max-width: 270px; object-fit: contain; }
  .feature-copy { padding: 28px 24px 0; min-height: 216px; }
  .home h3 { font-size: 23px; }
  .stats-card { padding: 40px 32px; gap: 32px; }
}
@media (max-width: 720px) {
  .home .container { width: calc(100% - 40px); }
  .hero { padding: 108px 0 48px; }
  /* The portrait scene continues through the document without a fixed-layer
     seam at Safari's controls. Dark edges match the browser canvas. */
  .home-page {
    --scene: linear-gradient(180deg, #0a0a0a 0, #0a0a0a 72px, #0a0a0ad1 200px, #0a0a0ad1 calc(100% - 120px), #0a0a0a 100%), url('assets/forest-stream-mobile-lossless.webp');
    background-position: center top;
    background-size: cover;
    background-attachment: scroll;
    background-repeat: no-repeat;
  }
  .home::before { content: none; }
  .home .site-nav { padding-top: env(safe-area-inset-top, 0px); }
  .home .site-footer { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .hero { padding-top: calc(108px + env(safe-area-inset-top, 0px)); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 span br { display: none; }
  .hero-actions .text-link { display: none; }
  .hero-content { max-width: 480px; margin-inline: auto; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(36px, 8vw, 48px); line-height: 1.08; }
  .hero .hero-sub { font-size: 16px; margin: 22px auto 24px; line-height: 1.7; }
  .hero-actions { justify-content: center; gap: 12px 22px; }
  .hero .hero-note { margin-top: 14px; }
  .hero-video { width: 240px; height: auto; }
  .features { padding: 40px 0; }
  .section-heading { text-align: center; margin-bottom: 28px; }
  .section-heading p { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-copy { padding: 28px 24px 0; min-height: 0; text-align: center; }
  .feature-copy p { margin-inline: auto; }
  .home h3 { font-size: 24px; }
  .feature-visual { min-height: 0; padding: 20px 20px 28px; }
  .feature-visual img { width: min(230px, 81%); }
  .feature-demo video { width: 284px; }
  .stats { padding-bottom: 48px; }
  .stats-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .stats-copy h2 { font-size: 30px; }
  .stats-copy > p { font-size: 16px; }
  .stats-list { gap: 12px; }
  .stats-visual img { width: 240px; }
}
