  /* ── Landing page styles ── */
  .landing {
    font-family: var(--md-sys-typescale-font-core), serif;
    color: var(--md-sys-color-on-surface);
    background: var(--md-sys-color-surface);
    overflow-x: hidden;
  }

  /* ── Nav ── */
  .landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    background: rgba(255,255,255,0.72);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    transition: box-shadow 0.2s;
  }
  .landing-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .landing-nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--md-sys-color-primary);
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
  }
  .landing-nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .landing-nav__links a {
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
  }
  .landing-nav__links a:hover {
    color: var(--md-sys-color-primary);
  }
  .landing-nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    line-height: 1;
  }
  .landing-btn--ghost {
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
  }
  .landing-btn--ghost:hover {
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
  }
  .landing-btn--primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: 0 1px 3px rgba(35,31,115,0.18);
  }
  .landing-btn--primary:hover {
    background: var(--md-sys-color-primary-container);
    box-shadow: 0 4px 12px rgba(35,31,115,0.22);
    transform: translateY(-1px);
  }
  .landing-btn--outline {
    background: transparent;
    color: var(--md-sys-color-primary);
    border: 1.5px solid var(--md-sys-color-outline-variant);
  }
  .landing-btn--outline:hover {
    border-color: var(--md-sys-color-primary);
    background: var(--md-sys-color-primary-fixed);
  }
  .landing-btn--white {
    background: #fff;
    color: var(--md-sys-color-primary);
  }
  .landing-btn--white:hover {
    background: var(--md-sys-color-primary-fixed);
  }
  .landing-btn--lg {
    padding: 14px 28px;
    font-size: 0.9375rem;
    border-radius: 12px;
  }

  /* ── Sections ── */
  .landing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ── Hero ── */
  .landing-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
  }
  .landing-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--md-sys-color-primary-fixed);
    color: var(--md-sys-color-on-primary-fixed);
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
  }
  .landing-hero__badge svg {
    width: 16px;
    height: 16px;
  }
  .landing-hero h1 {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--md-sys-color-on-surface);
    margin: 0 auto 20px;
    max-width: 800px;
  }
  .landing-hero h1 span {
    background: linear-gradient(135deg, var(--md-sys-color-primary), #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .landing-hero__sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 560px;
    margin: 0 auto 36px;
  }
  .landing-hero__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 64px;
  }
  .landing-hero__visual {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
  }
  .landing-hero__img {
    width: 100%;
    border-radius: 16px;
    background: var(--md-sys-color-surface-container-lowest);
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: 0 24px 48px rgba(35,31,115,0.08), 0 2px 8px rgba(0,0,0,0.04);
    overflow: visible;
    margin-bottom: 40px;
  }
  /* Mockup: top app bar */
  .mockup-appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: var(--md-sys-color-surface-container-low);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
  }
  .mockup-appbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--md-sys-color-primary);
    text-transform: uppercase;
  }
  .mockup-appbar__nav {
    display: flex;
    gap: 16px;
  }
  .mockup-appbar__nav span {
    display: block;
    width: 48px;
    height: 6px;
    border-radius: 3px;
    background: var(--md-sys-color-outline-variant);
  }
  .mockup-appbar__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--md-sys-color-primary-fixed);
  }
  /* Mockup: toolbar */
  .mockup-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    margin: 16px auto 0;
    width: fit-content;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    border: 1px solid var(--md-sys-color-outline-variant);
  }
  .mockup-toolbar__btn {
    width: 28px;
    height: 24px;
    border-radius: 4px;
    background: var(--md-sys-color-surface-container);
    border: none;
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mockup-toolbar__sep {
    width: 1px;
    height: 16px;
    background: var(--md-sys-color-outline-variant);
    margin: 0 4px;
  }
  /* Mockup: document stage */
  .mockup-stage {
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 32px 40px;
  }
  .mockup-stage__title {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--md-sys-color-primary);
    margin: 0 0 4px;
  }
  .mockup-stage__meta {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.625rem;
    color: var(--md-sys-color-outline);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
  }
  .mockup-stage__line {
    height: 8px;
    border-radius: 4px;
    background: var(--md-sys-color-on-surface);
    margin-bottom: 10px;
  }
  .mockup-stage__line:nth-child(1) { opacity: 0.08; width: 100%; }
  .mockup-stage__line:nth-child(2) { opacity: 0.06; width: 88%; }
  .mockup-stage__line:nth-child(3) { opacity: 0.05; width: 95%; }
  .mockup-stage__line:nth-child(4) { opacity: 0.04; width: 70%; }
  .mockup-stage__line:nth-child(5) { opacity: 0.08; width: 92%; }
  .mockup-stage__line:nth-child(6) { opacity: 0.05; width: 60%; }
  .mockup-stage__cursor {
    display: inline-block;
    width: 2px;
    height: 12px;
    background: var(--md-sys-color-primary);
    animation: landing-blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: -2px;
    margin-top: -4px;
  }
  /* Mockup: status bar */
  .mockup-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.625rem;
    color: var(--md-sys-color-outline);
  }
  .mockup-statusbar__left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .mockup-statusbar__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
  }
  .mockup-statusbar__btn {
    padding: 4px 14px;
    border-radius: 6px;
    background: var(--md-sys-color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.625rem;
    border: none;
  }
  /* ── How It Works ── */
  .landing-how {
    padding: 80px 0;
  }
  .landing-how__header {
    text-align: center;
    margin-bottom: 64px;
  }
  .landing-how__label {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }
  .landing-how__header h2 {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 12px;
  }
  .landing-how__header p {
    font-size: 1.0625rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .landing-how__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
  .landing-how__steps {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
  .landing-step {
    display: flex;
    gap: 20px;
  }
  .landing-step__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--md-sys-color-primary-fixed);
    color: var(--md-sys-color-on-primary-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
  }
  .landing-step h3 {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--md-sys-color-on-surface);
  }
  .landing-step p {
    font-size: 0.9375rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
    margin: 0;
  }

  /* Diff mockup */
  .landing-diff {
    border-radius: 16px;
    background: var(--md-sys-color-surface-container-lowest);
    border: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: 0 8px 32px rgba(35,31,115,0.06);
    overflow: hidden;
  }
  .landing-diff__bar {
    padding: 12px 16px;
    background: var(--md-sys-color-surface-container);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
  }
  .landing-diff__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
  }
  .landing-diff__dot--red { background: #ef4444; }
  .landing-diff__dot--yellow { background: #eab308; }
  .landing-diff__dot--green { background: #22c55e; }
  .landing-diff__code {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.8;
  }
  .landing-diff__line {
    display: flex;
    gap: 12px;
  }
  .landing-diff__ln {
    color: var(--md-sys-color-outline);
    user-select: none;
    min-width: 20px;
    text-align: right;
  }
  .landing-diff__add {
    color: #16a34a;
    background: rgba(34,197,94,0.08);
    padding: 0 4px;
    border-radius: 3px;
  }
  .landing-diff__del {
    color: #dc2626;
    background: rgba(220,38,38,0.08);
    padding: 0 4px;
    border-radius: 3px;
    text-decoration: line-through;
  }
  .landing-diff__playback {
    padding: 12px 16px;
    background: var(--md-sys-color-surface-container);
    border-top: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .landing-diff__play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
  }
  .landing-diff__play-btn svg {
    width: 12px;
    height: 12px;
    fill: #fff;
  }
  .landing-diff__track {
    flex: 1;
    height: 4px;
    background: var(--md-sys-color-surface-container-highest);
    border-radius: 2px;
    position: relative;
  }
  .landing-diff__progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
  }
  .landing-diff__time {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.75rem;
    color: var(--md-sys-color-outline);
  }

  /* ── Features bento ── */
  .landing-features {
    padding: 80px 0;
  }
  .landing-features__header {
    text-align: center;
    margin-bottom: 48px;
  }
  .landing-features__header h2 {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 12px;
  }
  .landing-features__header p {
    font-size: 1.0625rem;
    color: var(--md-sys-color-on-surface-variant);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .landing-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .landing-bento__card {
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-lowest);
    position: relative;
    overflow: hidden;
  }
  .landing-bento__card--wide {
    grid-column: span 2;
  }
  .landing-bento__card--dark {
    background: var(--md-sys-color-primary-container);
    color: #fff;
    border-color: transparent;
  }
  .landing-bento__card--dark h3 {
    color: #fff;
  }
  .landing-bento__card--dark p {
    color: #ffffff;
  }
  .landing-bento__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--md-sys-color-primary-fixed);
    color: var(--md-sys-color-on-primary-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  .landing-bento__card--dark .landing-bento__icon {
    background: rgba(255,255,255,0.15);
    color: #fff;
  }
  .landing-bento__icon svg {
    width: 22px;
    height: 22px;
  }
  .landing-bento__card h3 {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--md-sys-color-on-surface);
  }
  .landing-bento__card p {
    font-size: 0.9375rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.6;
    margin: 0;
  }
  .landing-bento__card.landing-bento__card--dark h3 {
    color: #fff;
  }
  .landing-bento__card.landing-bento__card--dark p {
    color: #fff;
  }

  /* Replay visual inside bento */
  .landing-bento__replay {
    margin-top: 24px;
    background: var(--md-sys-color-surface-container);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
  }
  .landing-bento__replay-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.7;
    margin-bottom: 12px;
  }
  .landing-bento__replay-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--md-sys-color-primary);
    animation: landing-blink 1s step-end infinite;
    vertical-align: text-bottom;
  }
  @keyframes landing-blink {
    50% { opacity: 0; }
  }
  .landing-bento__replay-bar {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .landing-bento__replay-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
  }
  .landing-bento__replay-btn svg {
    width: 10px;
    height: 10px;
    fill: #fff;
  }
  .landing-bento__replay-track {
    flex: 1;
    height: 3px;
    background: var(--md-sys-color-outline-variant);
    border-radius: 2px;
    position: relative;
  }
  .landing-bento__replay-fill {
    width: 45%;
    height: 100%;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
  }

  /* Analytics bars */
  .landing-bento__bars {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .landing-bento__bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .landing-bento__bar-label {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.75rem;
    color: var(--md-sys-color-outline);
    min-width: 80px;
    text-align: right;
  }
  .landing-bento__bar-track {
    flex: 1;
    height: 8px;
    background: var(--md-sys-color-surface-container);
    border-radius: 4px;
    overflow: hidden;
  }
  .landing-bento__bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
  }
  .landing-bento__bar-fill--primary { background: var(--md-sys-color-primary); }
  .landing-bento__bar-fill--green { background: #22c55e; }
  .landing-bento__bar-fill--amber { background: #f59e0b; }
  .landing-bento__bar-value {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    min-width: 36px;
  }

  /* ── Pricing ── */
  .landing-pricing {
    padding: 80px 0;
    background: var(--md-sys-color-surface-container-lowest, #fbfbff);
  }
  .landing-pricing .pricing-grid {
    margin-top: 8px;
  }
  .landing-pricing__more {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 0.9375rem;
    color: var(--md-sys-color-on-surface-variant);
  }
  .landing-pricing__more a {
    color: var(--md-sys-color-primary);
    font-weight: 600;
    text-decoration: none;
  }
  .landing-pricing__more a:hover {
    text-decoration: underline;
  }

  /* ── Testimonial ── */
  .landing-testimonial {
    padding: 60px 0 80px;
  }
  .landing-testimonial__inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }
  .landing-testimonial__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--md-sys-color-primary-fixed), var(--md-sys-color-primary-container));
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-sys-color-on-primary);
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
  }
  .landing-testimonial blockquote {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 20px;
    font-style: italic;
  }
  .landing-testimonial__cite {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.875rem;
    color: var(--md-sys-color-outline);
    font-style: normal;
  }
  .landing-testimonial__cite strong {
    color: var(--md-sys-color-on-surface);
    font-weight: 600;
  }

  /* ── Final CTA ── */
  .landing-cta {
    padding: 0 0 80px;
  }
  .landing-cta__inner {
    background: var(--md-sys-color-primary);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .landing-cta__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
  }
  .landing-cta__inner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
  }
  .landing-cta h2 {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
  }
  .landing-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 1.0625rem;
    margin: 0 0 32px;
    position: relative;
  }
  .landing-cta__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
  }

  /* ── Footer ── */
  .landing-footer {
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding: 40px 0;
  }
  .landing-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }
  .landing-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface);
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
  }
  .landing-footer__links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .landing-footer__links a {
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.8125rem;
    transition: color 0.15s;
  }
  .landing-footer__links a:hover {
    color: var(--md-sys-color-primary);
  }
  .landing-footer__copy {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.8125rem;
    color: var(--md-sys-color-outline);
  }

  /* ── Mobile nav ── */
  .landing-nav__toggle {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
  }
  .landing-nav__toggle svg {
    width: 24px;
    height: 24px;
  }

  /* ── Responsive ── */
  @media (max-width: 900px) {
    .landing-how__grid {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .landing-bento {
      grid-template-columns: 1fr;
    }
    .landing-bento__card--wide {
      grid-column: span 1;
    }
  }
  @media (max-width: 640px) {
    .landing-nav__links {
      display: none;
    }
    .landing-nav__toggle {
      display: block;
    }
    .landing-hero h1 {
      font-size: 2rem;
    }
    .landing-cta__inner {
      padding: 48px 24px;
    }
    .landing-footer__inner {
      flex-direction: column;
      text-align: center;
    }
  }

  /* ── CSS-only scroll animations ── */
  @keyframes landing-fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes landing-fadeLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes landing-fadeRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes landing-scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
  }

  .reveal {
    animation: landing-fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .reveal--left {
    animation: landing-fadeLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .reveal--right {
    animation: landing-fadeRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .reveal--scale {
    animation: landing-scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* Stagger children inside bento grid */
  .reveal-stagger > .reveal:nth-child(1) { animation-delay: 0.05s; }
  .reveal-stagger > .reveal:nth-child(2) { animation-delay: 0.15s; }
  .reveal-stagger > .reveal:nth-child(3) { animation-delay: 0.25s; }
  .reveal-stagger > .reveal:nth-child(4) { animation-delay: 0.35s; }
  .reveal-stagger > .reveal:nth-child(5) { animation-delay: 0.45s; }

  /* Steps stagger */
  .landing-how__steps .reveal:nth-child(1) { animation-delay: 0.1s; }
  .landing-how__steps .reveal:nth-child(2) { animation-delay: 0.25s; }
  .landing-how__steps .reveal:nth-child(3) { animation-delay: 0.4s; }

  /* ── Bento card hover ── */
  .landing-bento__card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
  }
  .landing-bento__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(35, 31, 115, 0.1), 0 2px 8px rgba(0,0,0,0.04);
  }
  .landing-bento__card--dark:hover {
    box-shadow: 0 16px 40px rgba(35, 31, 115, 0.25);
  }

  /* ── Icon pulse on card hover ── */
  .landing-bento__card:hover .landing-bento__icon {
    transform: scale(1.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .landing-bento__icon {
    transition: transform 0.3s ease;
  }
  /* ── Hero badge shimmer ── */
  @keyframes landing-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
  }
  .landing-hero__badge {
    background: linear-gradient(
      110deg,
      var(--md-sys-color-primary-fixed) 0%,
      var(--md-sys-color-primary-fixed) 40%,
      rgba(255,255,255,0.6) 50%,
      var(--md-sys-color-primary-fixed) 60%,
      var(--md-sys-color-primary-fixed) 100%
    );
    background-size: 200% 100%;
    animation: landing-shimmer 3s ease-in-out infinite;
  }

  /* ── Diff lines slide in ── */
  @keyframes landing-lineIn {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .landing-diff__line {
    animation: landing-lineIn 0.4s ease both;
  }
  .landing-diff__line:nth-child(1) { animation-delay: 0.3s; }
  .landing-diff__line:nth-child(2) { animation-delay: 0.45s; }
  .landing-diff__line:nth-child(3) { animation-delay: 0.6s; }
  .landing-diff__line:nth-child(4) { animation-delay: 0.75s; }
  .landing-diff__line:nth-child(5) { animation-delay: 0.9s; }

  /* ── Playback progress animated fill ── */
  @keyframes landing-fillProgress {
    from { width: 0; }
    to   { width: 65%; }
  }
  .landing-diff__progress {
    animation: landing-fillProgress 1.5s ease-out 0.8s both;
  }

  /* ── Analytics bars animate ── */
  @keyframes landing-barPrimary { from { width: 0; } to { width: 85%; } }
  @keyframes landing-barGreen   { from { width: 0; } to { width: 72%; } }
  @keyframes landing-barAmber   { from { width: 0; } to { width: 35%; } }
  .landing-bento__bar-fill--primary { animation: landing-barPrimary 1s cubic-bezier(0.16,1,0.3,1) 0.4s both; }
  .landing-bento__bar-fill--green   { animation: landing-barGreen   1s cubic-bezier(0.16,1,0.3,1) 0.6s both; }
  .landing-bento__bar-fill--amber   { animation: landing-barAmber   1s cubic-bezier(0.16,1,0.3,1) 0.8s both; }

  /* ── Replay fill animate ── */
  @keyframes landing-replayFill { from { width: 0; } to { width: 45%; } }
  .landing-bento__replay-fill {
    animation: landing-replayFill 2s ease-out 0.3s both;
  }

  /* ── Step number hover ── */
  .landing-step:hover .landing-step__num {
    background: var(--md-sys-color-primary);
    color: #fff;
    transform: scale(1.1);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .landing-step__num {
    transition: all 0.25s ease;
  }

  /* ── CTA glow pulse ── */
  @keyframes landing-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(35,31,115,0); }
    50% { box-shadow: 0 0 60px 10px rgba(35,31,115,0.08); }
  }
  .landing-cta__inner {
    animation: landing-scaleIn 0.8s cubic-bezier(0.16,1,0.3,1) both,
               landing-glow 3s ease-in-out infinite 1.5s;
  }

  .reveal-stagger > .reveal:nth-child(6) { animation-delay: 0.55s; }

  /* ── Hero demo carousel ── */
  .landing-hero__img {
    position: relative;
    min-height: 340px;
  }
  .hero-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    will-change: opacity;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
  }
  .hero-scene--active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    height: 340px;
  }

  /* Fake cursor */
  .hero-cursor {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    opacity: 0;
    transition: transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
    pointer-events: none;
    will-change: transform;
  }
  .hero-cursor--visible { opacity: 1; }
  .hero-cursor--click svg {
    animation: hero-click 0.3s ease;
  }
  @keyframes hero-click {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.7); }
    100% { transform: scale(1); }
  }

  /* Typed text area */
  .hero-typed-area {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    min-height: 100px;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 32px 24px;
    text-align: left;
  }

  /* Scene dots */
  .hero-dots {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
  }
  .hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--md-sys-color-outline-variant);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
  }
  .hero-dot--active {
    background: var(--md-sys-color-primary);
    transform: scale(1.4);
  }

  /* Carousel arrows */
  .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-lowest);
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  .hero-arrow svg {
    width: 18px;
    height: 18px;
  }
  .hero-arrow--prev { left: 10px; }
  .hero-arrow--next { right: 10px; }
  .landing-hero__img:hover .hero-arrow {
    opacity: 1;
  }
  .hero-arrow:hover {
    background: var(--md-sys-color-surface-container);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  /* Replay scene */
  .hero-replay {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .hero-replay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 8px;
  }
  .hero-replay__label {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
  }
  .hero-replay__speed {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--md-sys-color-primary-fixed);
    color: var(--md-sys-color-on-primary-fixed);
  }
  .hero-replay__stage {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 8px 24px 16px;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--md-sys-color-on-surface-variant);
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
  }
  .hero-replay__controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--md-sys-color-surface-container);
  }
  .hero-replay__bar-track {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--md-sys-color-surface-container-highest);
    overflow: hidden;
  }
  .hero-replay__bar-fill {
    height: 100%;
    width: 0%;
    background: var(--md-sys-color-primary);
    border-radius: 2px;
  }
  .hero-replay__time {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.6875rem;
    color: var(--md-sys-color-outline);
    white-space: nowrap;
  }

  /* Report scene */
  .hero-report {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    gap: 28px;
  }
  .hero-report__score-card {
    text-align: center;
  }
  .hero-report__score {
    font-family: var(--md-sys-typescale-font-shell), sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--md-sys-color-primary);
    line-height: 1;
  }
  .hero-report__score span:last-child {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-sys-color-outline);
  }
  .hero-report__check {
    margin-top: 8px;
  }
  .hero-check-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.6s ease;
  }
  .hero-check-path--drawn {
    stroke-dashoffset: 0;
  }
  .hero-report__label {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--md-sys-color-outline);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 6px;
  }
  .hero-report__bars {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-report__metric {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hero-report__metric > span {
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.75rem;
    color: var(--md-sys-color-outline);
    min-width: 100px;
    text-align: right;
  }
  .hero-report__bar-track {
    flex: 1;
    height: 8px;
    background: var(--md-sys-color-surface-container);
    border-radius: 4px;
    overflow: hidden;
  }
  .hero-report__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--md-sys-color-primary), #22c55e);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Submit button success */
  .hero-btn--success {
    background: #22c55e !important;
    color: #fff !important;
    transition: background 0.3s ease;
  }

  /* Scene labels */
  .hero-scene-label {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--md-sys-typescale-font-label), sans-serif;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--md-sys-color-outline);
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--md-sys-color-surface-container);
    z-index: 2;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .hero-scene { transition: none; }
    .hero-cursor { transition: none; }
    .hero-arrow { opacity: 1; }
    .hero-check-path { transition: none; }
    .hero-report__bar-fill { transition: none; }
  }

  /* Mobile arrows always visible */
  @media (max-width: 640px) {
    .hero-arrow {
      opacity: 1;
      width: 30px;
      height: 30px;
    }
    .hero-arrow svg {
      width: 14px;
      height: 14px;
    }
    .hero-arrow--prev { left: 6px; }
    .hero-arrow--next { right: 6px; }
    .hero-report__score { font-size: 2rem; }
    .hero-report__bars { max-width: 280px; }
    .hero-report__metric > span { min-width: 80px; font-size: 0.6875rem; }
  }

  /* ── Dark mode overrides ── */
  @media (prefers-color-scheme: dark) {
    .landing-nav {
      background: var(--md-sys-color-glass);
    }
    .mockup-toolbar {
      background: var(--md-sys-color-glass);
    }
    .mockup-statusbar {
      background: var(--md-sys-color-glass);
    }
    .landing-btn--white {
      background: var(--md-sys-color-surface-container-high);
      color: var(--md-sys-color-primary);
    }
    .landing-btn--white:hover {
      background: var(--md-sys-color-surface-container-highest);
    }
    .landing-btn--primary {
      box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    .landing-btn--primary:hover {
      background: color-mix(in srgb, var(--md-sys-color-primary) 85%, white);
      color: var(--md-sys-color-on-primary);
      box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .landing-hero__img {
      box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.2);
    }
    .landing-hero h1 span {
      background: linear-gradient(135deg, var(--md-sys-color-primary), #a5a0ff);
      -webkit-background-clip: text;
      background-clip: text;
    }
    .landing-bento__card:hover {
      box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    }
    .landing-bento__card--dark:hover {
      box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    }
    .landing-diff {
      box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    .landing-hero__badge {
      background: linear-gradient(
        110deg,
        var(--md-sys-color-primary-fixed) 0%,
        var(--md-sys-color-primary-fixed) 40%,
        rgba(255,255,255,0.15) 50%,
        var(--md-sys-color-primary-fixed) 60%,
        var(--md-sys-color-primary-fixed) 100%
      );
      background-size: 200% 100%;
    }
    .hero-cursor svg path {
      fill: var(--md-sys-color-surface-container-high);
    }
    .hero-arrow {
      background: var(--md-sys-color-surface-container-high);
      border-color: var(--md-sys-color-outline-variant);
    }
    .hero-arrow:hover {
      background: var(--md-sys-color-surface-container-highest);
    }
  }
