/* Homepage (Konzept 3 — Full Canvas Cinema 3D Flythrough):
   100svh Full-Canvas Hero with floating transparent nav -> Continuous 3D Tour -> Module Rail ->
   1 Live App Demo -> Scope -> 6 FAQs -> Full-Canvas Pre-Dawn Closing Bookend.
   Preserves body light (>0.8) / dark (<0.1) for MarketingThemeTest. */

/* ── Floating Transparent Nav Over Full-Canvas Hero (homepage only) ── */
body.mk-home-body .mk-nav {
  position: fixed; top: 0; left: 0; right: 0;
  transition: background-color 240ms ease, box-shadow 240ms ease, color 240ms ease;
}
body.mk-home-body:not([data-nav-solid="true"]) .mk-nav {
  background: transparent; box-shadow: none; color: #f7f6f3;
}
body.mk-home-body:not([data-nav-solid="true"]) .mk-nav .mk-logo,
body.mk-home-body:not([data-nav-solid="true"]) .mk-nav .mk-logo svg { color: #f7f6f3; }
body.mk-home-body:not([data-nav-solid="true"]) .mk-nav-links > a,
body.mk-home-body:not([data-nav-solid="true"]) .mk-nav-links > button,
body.mk-home-body:not([data-nav-solid="true"]) .mk-login { color: rgba(247, 246, 243, 0.82); }
body.mk-home-body:not([data-nav-solid="true"]) .mk-nav .btn-primary {
  background: rgba(255, 255, 255, 0.14); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (hover: hover) and (pointer: fine) {
  body.mk-home-body:not([data-nav-solid="true"]) .mk-nav-links > a:hover,
  body.mk-home-body:not([data-nav-solid="true"]) .mk-nav-links > button:hover,
  body.mk-home-body:not([data-nav-solid="true"]) .mk-login:hover { color: #fff; }
  body.mk-home-body:not([data-nav-solid="true"]) .mk-nav .btn-primary:hover { background: rgba(255, 255, 255, 0.24); }
}

.mk-home {
  --mh-ink: var(--mk-text);
  --mh-muted: var(--mk-muted);
  --mh-line: var(--mk-line);
  --mh-surface: var(--mk-surface);
  --mh-dot-emerald: #0f766e;
  --mh-dot-coral: #f8654b;
  --mh-ok-bg: rgba(15, 118, 110, 0.1);
  --mh-ok-ink: #0f766e;
  --mh-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
.dark .mk-home {
  --mh-dot-emerald: #34d399;
  --mh-ok-bg: rgba(52, 211, 153, 0.14);
  --mh-ok-ink: #34d399;
}

.mk-home ::selection { background: var(--mh-ink); color: var(--mk-ground); }
.mk-home :is(a, button, summary):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.mk-home :is(a, button, summary) { touch-action: manipulation; }
.mk-home :is(button, summary) { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mk-home h1, .mk-home h2 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.036em; text-wrap: balance; color: var(--mh-ink); }
.mk-home :is(.mh-hero-lead, .mh-band-head p, .mh-truth-main, .mh-truth-aside, .mh-faq-list p, .mh-closing p) { text-wrap: pretty; }

/* ── Full-Canvas 100svh Cinema 3D Flythrough Hero ── */
.mh-hero {
  position: relative; min-height: 100svh; width: 100%; overflow: hidden;
  background: #121213; color: #f7f6f3;
  display: flex; align-items: flex-end;
}
.mh-hero-plate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 48%; display: block; pointer-events: none;
}
.mh-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(12deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.7) 30%, rgba(10, 10, 12, 0.16) 58%, rgba(10, 10, 12, 0) 78%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.56) 0%, rgba(10, 10, 12, 0) 24%);
}
.mh-hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(7rem, 14svh, 10rem) clamp(3rem, 6.5svh, 4.5rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; min-width: 0;
}
.mh-hero-copy { max-width: 40rem; min-width: 0; }
.mh-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem;
  margin-bottom: 1.05rem; font-size: 0.8125rem; font-weight: 520; color: rgba(247, 246, 243, 0.78);
}
.mh-hero-kicker { display: inline-flex; align-items: center; gap: 0.5rem; color: #f7f6f3; }
.mh-meta-sep { width: 1px; height: 11px; background: rgba(247, 246, 243, 0.26); }
.mh-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--mh-dot-emerald); flex-shrink: 0; display: inline-block; }
.mh-dot[data-tone="coral"] { background: var(--mh-dot-coral); box-shadow: 0 0 0 4px rgba(248, 101, 75, 0.24); }

.mh-hero .mh-hero-title {
  font-size: clamp(2.15rem, 4.4vw, 3.85rem); line-height: 1.03; margin: 0; color: #f7f6f3;
}
.mh-hero .mh-hero-lead {
  margin: 1.1rem 0 0; max-width: 44ch;
  font-size: clamp(0.98rem, 1.25vw, 1.125rem); line-height: 1.52; color: rgba(247, 246, 243, 0.82);
}
.mh-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 1.65rem; }

.mh-fc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.45rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 560; letter-spacing: -0.01em; text-decoration: none;
  transition: transform 150ms var(--mh-ease-out), background-color 180ms ease, border-color 180ms ease;
}
.mh-fc-btn:active { transform: scale(0.97); }
.mh-fc-btn--primary { background: #f7f6f3; color: #111114; }
.mh-fc-btn--ghost {
  background: rgba(17, 17, 20, 0.36); color: #f7f6f3;
  box-shadow: inset 0 0 0 1px rgba(247, 246, 243, 0.32);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.mh-play-ico { width: 10px; height: 10px; flex-shrink: 0; }

.mh-scroll-cue {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; font-weight: 520; color: rgba(247, 246, 243, 0.72);
  white-space: nowrap; padding-bottom: 0.4rem;
}
.mh-scroll-line { width: 42px; height: 1px; background: rgba(247, 246, 243, 0.45); display: inline-block; }

/* Role-Cast Hero Entrance Choreography */
@keyframes mh-lead-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mh-support-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mh-actions-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mh-fade-only { from { opacity: 0; } to { opacity: 1; } }
.mh-anim-lead { animation: mh-lead-in 540ms var(--mh-ease-out) 0ms both; }
.mh-anim-support { animation: mh-support-in 480ms var(--mh-ease-out) 70ms both; }
.mh-anim-actions { animation: mh-actions-in 440ms var(--mh-ease-out) 120ms both; }
.mh-anim-meta { animation: mh-fade-only 380ms var(--mh-ease-out) 110ms both; }

/* ── Module Rail, Bands, Live Demo, Scope & FAQ ── */
.mh-module-rail { padding-block: 1.25rem; box-shadow: inset 0 1px var(--mh-line); background: var(--mk-ground); }
.mh-rail-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.mh-rail-label { font-size: 0.8125rem; color: var(--mh-muted); }
.mh-rail-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.mh-rail-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.25rem; font-size: 0.875rem; font-weight: 510; color: var(--mh-ink); text-decoration: none; transition: opacity 150ms ease; }

.mh-band { padding-block: clamp(4rem, 7.5vw, 6.25rem); box-shadow: inset 0 1px var(--mh-line); background: var(--mk-ground); scroll-margin-top: 84px; }
.mh-band--tinted { background: var(--mh-surface); }
.mh-band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.mh-band-head h2 { font-size: clamp(1.8rem, 3.1vw, 2.75rem); line-height: 1.08; max-width: 18ch; margin: 0; }
.mh-band-head p { font-size: 1rem; line-height: 1.62; color: var(--mh-muted); max-width: 48ch; margin: 0; }
.mh-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 510; color: var(--mh-ink); text-decoration: underline; text-decoration-color: var(--mh-line); text-underline-offset: 6px; transition: text-decoration-color 150ms ease; }

.mh-demo-frame { border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--mh-line); background: var(--mk-ground); }
.mh-demo-frame .mk-product-show { margin: 0; }

.mh-truth-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1rem; }
.mh-truth-card { padding: clamp(1.25rem, 2.4vw, 1.75rem); border-radius: 16px; background: var(--mh-surface); box-shadow: inset 0 0 0 1px var(--mh-line); display: flex; flex-direction: column; gap: 0.85rem; }
.mh-truth-card--fit { background: color-mix(in srgb, var(--mh-ok-bg) 55%, var(--mk-ground)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mh-ok-ink) 22%, var(--mh-line)); }
.mh-truth-kicker { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.8125rem; font-weight: 580; color: var(--mh-ink); }
.mh-truth-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0; }
.mh-truth-badge svg { width: 13px; height: 13px; }
.mh-truth-badge--ok { background: var(--mh-ok-bg); color: var(--mh-ok-ink); }
.mh-truth-badge--no { background: var(--mk-ground); color: var(--mh-muted); box-shadow: inset 0 0 0 1px var(--mh-line); }
.mh-truth-main { font-size: 1.02rem; line-height: 1.68; color: var(--mh-ink); margin: 0; max-width: 56ch; }
.mh-truth-aside { font-size: 0.9375rem; line-height: 1.65; color: var(--mh-muted); margin: 0; max-width: 44ch; }

.mh-faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mh-faq-head h2 { font-size: clamp(1.8rem, 3.1vw, 2.75rem); line-height: 1.08; max-width: 15ch; margin: 0; }
.mh-faq-list details { box-shadow: inset 0 1px var(--mh-line); padding-block: 1.05rem; }
.mh-faq-list details:last-child { box-shadow: inset 0 1px var(--mh-line), inset 0 -1px var(--mh-line); }
.mh-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; list-style: none; cursor: pointer; font-size: 1rem; font-weight: 510; color: var(--mh-ink); transition: opacity 150ms ease; }
.mh-faq-list summary::-webkit-details-marker { display: none; }
.mh-faq-icon { flex-shrink: 0; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--mh-ok-bg); color: var(--mh-ok-ink); transition: background-color 180ms ease; }
.mh-faq-plus { width: 15px; height: 15px; transition: transform 180ms var(--mh-ease-out); }
.mh-faq-list details[open] .mh-faq-plus { transform: rotate(45deg); }
.mh-faq-list p { margin: 0.8rem 0 0; max-width: 62ch; font-size: 0.9375rem; line-height: 1.65; color: var(--mh-muted); }

/* ── Full-Canvas Dark Pre-Dawn Closing Bookend ── */
.mh-closing {
  position: relative; overflow: hidden; background: #111113; color: #f7f6f3;
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
.mh-closing-plate {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 64% 42%; opacity: 0.46; transform: scale(1.08);
  pointer-events: none; display: block;
}
.mh-closing-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 12, 14, 0.95) 0%, rgba(12, 12, 14, 0.74) 48%, rgba(12, 12, 14, 0.34) 100%);
}
.mh-closing-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.mh-closing-mark { width: 40px; height: 40px; color: #f7f6f3; margin-bottom: 1.35rem; }
.mh-closing h2 { font-size: clamp(2.1rem, 4vw, 3.45rem); line-height: 1.05; margin: 0; max-width: 15ch; color: #f7f6f3; }
.mh-closing p { margin: 1.1rem 0 0; font-size: 1.04rem; line-height: 1.58; color: rgba(247, 246, 243, 0.8); max-width: 44ch; }

/* Calm one-time below-the-fold scroll reveals */
@media (prefers-reduced-motion: no-preference) {
  .mk-home [data-mh-reveal-state="pending"] { opacity: 0; transform: translateY(16px); }
  .mk-home [data-mh-reveal-state="in"] {
    opacity: 1; transform: translateY(0);
    transition: opacity 500ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--mh-stagger, 0ms), transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--mh-stagger, 0ms);
  }
}

@media (hover: hover) and (pointer: fine) {
  .mh-link:hover { text-decoration-color: var(--mh-ink); }
  .mh-rail-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .mh-fc-btn--primary:hover { background: #fff; }
  .mh-fc-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
  .mh-faq-list summary:hover .mh-faq-icon { background: color-mix(in srgb, var(--mh-ok-ink) 18%, transparent); }
}

@media (max-width: 960px) {
  .mh-band-head, .mh-truth-grid, .mh-faq-layout { grid-template-columns: minmax(0, 1fr); }
  .mh-scroll-cue { display: none; }
}
@media (max-width: 680px) {
  .mh-hero-plate { object-position: 50% 34%; }
  .mh-hero-scrim {
    background:
      linear-gradient(0deg, rgba(10, 10, 12, 0.96) 0%, rgba(10, 10, 12, 0.84) 44%, rgba(10, 10, 12, 0.22) 72%, rgba(10, 10, 12, 0.52) 100%);
  }
  .mh-hero-inner { padding-block: 8.5rem 2.75rem; }
  .mh-hero .mh-hero-title { font-size: clamp(1.85rem, 8.2vw, 2.55rem); }
  .mh-hero .mh-hero-lead { font-size: 0.95rem; }
  .mh-meta-sep { display: none; }
  .mh-hero-meta { gap: 0.35rem 0.9rem; }
  .mh-band { padding-block: 3.25rem; }
  .mh-closing-scrim { background: linear-gradient(0deg, rgba(12, 12, 14, 0.96) 0%, rgba(12, 12, 14, 0.78) 60%, rgba(12, 12, 14, 0.56) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .mh-anim-lead, .mh-anim-support, .mh-anim-actions, .mh-anim-meta {
    animation-name: mh-fade-only; animation-duration: 180ms; animation-delay: 0ms;
  }
  .mh-fc-btn:active { transform: none; }
}
