.visual-scene { --scene-ink: #082b57; --scene-accent: #237b32; --scene-muted: #c1d2e5; --scene-soft: #e3efdf; margin: 20px 0; color: var(--scene-ink); }
.visual-scene svg { display: block; width: 100%; height: auto; overflow: visible; }
.visual-scene figcaption { text-align: center; font-size: 11px; line-height: 1.4; margin-top: 6px; color: inherit; }
.scene-frame { fill: #fff; stroke: #9eb9d4; stroke-width: 1.5; }
.scene-stroke, .scene-wire { fill: none; stroke: #7598ba; stroke-width: 2; stroke-linecap: round; }
.scene-wire { stroke-dasharray: 4 5; }
.scene-ink { fill: var(--scene-ink); }
.scene-accent, .scene-lamp { fill: var(--scene-accent); }
.scene-soft { fill: var(--scene-soft); }
.scene-muted { fill: var(--scene-muted); }
.scene-check { stroke: var(--scene-accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scene-light-stroke { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scene-packet { fill: #237b32; opacity: 0; }
.service-card .service-icon[hidden] { display: none; }
.service-card .visual-scene { margin: 16px -8px 24px; }
.service-card.featured .visual-scene { --scene-ink: #dceaff; --scene-accent: #a9dc52; --scene-muted: #476c90; --scene-soft: #224e73; color: #dceaff; }
.service-card.featured .scene-frame { fill: #102f50; stroke: #50769b; }
.service-card.featured .scene-light-stroke { stroke: #082b57; }
.scene-build { --scene-ink: #082b57; margin: 28px 0 0; padding: 16px; border: 1px solid #41658c; background: #ffffff08; border-radius: 14px; color: #dceaff; }
.scene-build svg { max-width: 330px; margin: auto; }
.scene-build-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.build-step { border-top: 2px solid #a9dc52; padding-top: 8px; font-size: 10px; line-height: 1.4; color: #dceaff; }
.hero-step-check { display: inline-block; margin-left: 10px; color: var(--lime); font-size: 15px; }
.hero-sequence .terminal-body > p { color: #d3e5f7; }
.hero-sequence .terminal-line span { position: relative; box-shadow: 0 0 10px #a9dc52; }
@media (prefers-reduced-motion: no-preference) {
  .scene-playing .scene-part { transform-box: fill-box; transform-origin: center; animation: assemble-part .7s cubic-bezier(.2,.7,.2,1) both; }
  .scene-playing .step-1 { animation-delay: .2s; }
  .scene-playing .step-2 { animation-delay: 1s; }
  .scene-playing .step-3 { animation-delay: 1.8s; }
  .scene-playing .scene-packet { animation: deliver-packet 2.2s .8s both; }
  .scene-playing .scene-wire { animation: connect-tools 2s .4s both; }
  .scene-playing .scene-lamp { animation: server-online .5s both; }
  .scene-playing .lamp-1 { animation-delay: .8s; }
  .scene-playing .lamp-2 { animation-delay: 1.6s; }
  .scene-playing .lamp-3 { animation-delay: 2.4s; }
  .scene-playing .build-step { animation: build-milestone .7s both; animation-delay: var(--step-delay); }
  .pricing-card:has(.scene-playing) .starter-inclusions li:nth-child(1) { animation: inclusion-highlight .8s .2s both; }
  .pricing-card:has(.scene-playing) .starter-inclusions li:nth-child(2) { animation: inclusion-highlight .8s 1s both; }
  .pricing-card:has(.scene-playing) .starter-inclusions li:nth-child(4) { animation: inclusion-highlight .8s 1.8s both; }
  .hero-sequence.scene-playing .terminal-body > p { animation: explain-step .7s both; animation-delay: var(--step-delay); }
  .hero-sequence.scene-playing .hero-step-check { animation: complete-step .4s both; animation-delay: calc(var(--step-delay) + .65s); }
  .hero-sequence.scene-playing .terminal-line { animation: launch-ready .8s 2.6s both; }
  .hero-sequence.scene-playing .terminal-line span::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #a9dc52;
    animation: status-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    animation-delay: 2.8s;
  }
  .hero-sequence.scene-playing .terminal-line strong::after {
    content: ' _';
    color: #a9dc52;
    font-weight: 300;
    display: inline-block;
    animation: cursor-blink 1s steps(2, start) infinite;
    animation-delay: 2.6s;
  }
  @keyframes status-ping {
    0% { transform: scale(0.9); opacity: 0.9; }
    60% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.4); opacity: 0; }
  }
  @keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  @keyframes assemble-part { from { opacity: 0; transform: translateY(15px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes explain-step { from { opacity: .35; translate: 12px 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes complete-step { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
  @keyframes launch-ready { from { opacity: .25; } to { opacity: 1; text-shadow: 0 0 18px #a9dc5260; } }
  @keyframes build-milestone { from { color: #869eb8; border-color: #41658c; } to { color: #dceaff; border-color: #a9dc52; } }
  @keyframes connect-tools { from { stroke-dashoffset: 80; opacity: .25; } to { stroke-dashoffset: 0; opacity: 1; } }
  @keyframes deliver-packet { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(134px); } }
  @keyframes server-online { from { fill: #b4bfcb; } to { fill: #237b32; } }
  @keyframes inclusion-highlight { 0%, 100% { color: #fff; } 50% { color: #bcec74; } }
}
@media (max-width: 650px) {
  .service-card .visual-scene { max-width: 240px; width: 100%; margin: 8px auto 20px; }
  .scene-build { padding: 10px; }
  .scene-build-steps { grid-template-columns: repeat(2, 1fr); }
  .hero-step-check { margin-left: 5px; font-size: 12px; }
}
