/* ===== GLITCH / CYBERPUNK REDESIGN ===== */

/* Glitch effect for headings */
.glitch {
    position: relative;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 85px, 0); }
    20% { clip: rect(63px, 9999px, 130px, 0); }
    40% { clip: rect(25px, 9999px, 15px, 0); }
    60% { clip: rect(88px, 9999px, 95px, 0); }
    80% { clip: rect(45px, 9999px, 60px, 0); }
    100% { clip: rect(15px, 9999px, 110px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(20px, 9999px, 65px, 0); }
    40% { clip: rect(90px, 9999px, 120px, 0); }
    60% { clip: rect(35px, 9999px, 80px, 0); }
    80% { clip: rect(70px, 9999px, 105px, 0); }
    100% { clip: rect(5px, 9999px, 50px, 0); }
}

/* Hero H1 glitch (subtle, readable, works with line breaks) */
.hero-glitch {
    position: relative;
    animation: hero-glitch-shift 6s infinite steps(1, end);
}

@keyframes hero-glitch-shift {
    0%, 86%, 100% {
        transform: translate3d(0, 0, 0);
        text-shadow:
          0 0 10px rgba(0, 255, 255, 0.5),
          0 0 20px rgba(0, 255, 255, 0.3),
          0 0 30px rgba(0, 255, 255, 0.2);
        filter: none;
    }
    87% {
        transform: translate3d(-1px, 0, 0);
        text-shadow:
          -2px 0 rgba(255, 0, 255, 0.55),
          2px 0 rgba(0, 255, 255, 0.9),
          0 0 22px rgba(0, 255, 255, 0.35);
    }
    88% {
        transform: translate3d(1px, 0, 0);
        text-shadow:
          2px 0 rgba(255, 0, 255, 0.5),
          -2px 0 rgba(0, 255, 255, 0.85),
          0 0 22px rgba(0, 255, 255, 0.35);
    }
    89% {
        transform: translate3d(0, 0, 0);
        text-shadow:
          0 0 10px rgba(0, 255, 255, 0.5),
          0 0 20px rgba(0, 255, 255, 0.3),
          0 0 30px rgba(0, 255, 255, 0.2);
    }
}

/* Terminal-style section */
.terminal-section {
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px var(--page-padding-x) 16px;
    margin: 48px auto;
    max-width: var(--page-max-width);
    font-family: var(--font-mono);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), inset 0 0 30px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1100px) {
    .terminal-section {
        max-width: var(--page-max-width);
        padding: 10px var(--page-padding-x) 12px;
        margin: 44px auto;
    }

    .terminal-section {
        width: 90%; 
        display: grid;
        grid-template-columns: minmax(520px, 1fr) minmax(260px, 320px);
        grid-template-rows: auto;
        column-gap: 28px;
        row-gap: 6px;
        align-items: start;
    }

    .terminal-header,
    .terminal-progress,
    .terminal-friendly-note,
    .terminal-content {
        grid-column: 1;
    }

    .terminal-metrics,
    .terminal-section .start-cta {
        grid-column: 2;
        justify-content: flex-start;
    }

    .terminal-metrics {
        margin-top: 6px;
        flex-direction: column;
        align-items: flex-start;
    }

    .terminal-metric {
        width: 100%;
        text-align: left;
    }

    .terminal-section .start-cta {
        margin-top: 4px;
        display: flex;
        justify-content: flex-start;
    }
}

/* Terminal Interactive Buttons */
.terminal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    justify-content: flex-start;
}

.terminal-action-btn {
    --terminal-coral: #ff8f7a;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    font-weight: 500;
    color: #9cf8ff;
    background: rgba(0, 24, 36, 0.78);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.terminal-action-btn:hover {
    background: rgba(0, 37, 52, 0.92);
    border-color: rgba(0, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.25);
    transform: translateY(-1px);
}

.terminal-action-btn::before {
    content: '>';
    color: #9cf8ff;
    font-weight: bold;
}

.terminal-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
}

.terminal-action-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.terminal-action-label {
    min-width: 0;
}

/* Dynamic Terminal Output */
.terminal-dynamic-output {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.terminal-dynamic-output.visible {
    max-height: 500px;
    opacity: 1;
}

/* Report Modal */
/* Typing Animation */
.typing {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1.5s steps(30, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.home-page {
    --section-gap: 56px;
}

.home-page .recent-finds-section,
.home-page .quick-start-section,
.home-page .release-readiness-section,
.home-page .process-section,
.home-page .before-after-section,
.home-page .terminal-section {
    margin-top: 100px;
    margin-bottom: 10px;
}

.terminal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(90deg, rgba(0,255,255,0.1), rgba(0,191,255,0.1));
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    margin-top: 4px;
    padding-left: 0;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red,
.terminal-dot.yellow,
.terminal-dot.green { background: rgba(0, 255, 255, 0.72); }

.terminal-progress {
    margin: 10px 0 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.terminal-friendly-note {
    margin: 0 0 10px;
    color: rgba(194, 250, 251, 0.92);
    font-size: 0.95em;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.terminal-progress-step {
    position: relative;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.26);
    background: rgba(0, 20, 30, 0.55);
    color: rgba(180, 244, 247, 0.84);
    font-size: 0.74em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.terminal-progress-step.is-active,
.terminal-progress-step.is-done {
    border-color: rgba(122, 250, 255, 0.65);
    color: #d7ffff;
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.26);
}

.terminal-progress-step.is-active {
    animation: terminal-progress-pulse 1.2s ease-in-out infinite;
}

@keyframes terminal-progress-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.22); }
    50% { box-shadow: 0 0 18px rgba(0, 255, 255, 0.42); }
}

.terminal-content {
    color: #9cf8ff;
    line-height: 1.3;
}

.terminal-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: bold;
}

.terminal-command .cmd-bin {
    color: #93f8ff;
    text-shadow: 0 0 8px rgba(147, 248, 255, 0.3);
}

.terminal-command .cmd-flag {
    color: #74e5ff;
}

.terminal-output {
    padding-left: 20px;
    margin-bottom: 12px;
}

.terminal-success {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.24);
}

.terminal-command.terminal-cursor-blink {
    position: relative;
    display: inline-block;
    width: 0.46em;
    height: 1.02em;
    margin-left: 2px;
    vertical-align: baseline;
    align-self: center;
    transform: translateY(0);
    color: transparent;
    border-radius: 2px;
    background-color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.9),
                0 0 15px rgba(0, 255, 255, 0.5);
    animation: terminal-cursor-blink 1s infinite;
}

@keyframes terminal-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

.terminal-metrics {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Keep the final "$" prompt line visually separated from metric pills */
.terminal-content .terminal-line:last-of-type {
    align-items: center;
    margin-bottom: 12px;
}

.terminal-content .terminal-line:last-of-type .terminal-prompt {
    line-height: 1;
}

.terminal-cursor-line {
    flex-wrap: nowrap !important;
    min-height: 1.35em;
    overflow: visible;
}

.terminal-metric {
    font-size: 0.84em;
    color: rgba(170, 244, 244, 0.95);
    border: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 32, 46, 0.55);
    border-radius: 999px;
    padding: 8px 12px;
    letter-spacing: 0.01em;
}

.terminal-section .start-cta {
    margin-top: 18px;
}

.home-page :is(.hero-btn, .stats-strip-cta, .finds-cta-btn, .process-cta-btn, .readiness-cta-btn, .terminal-cta-btn) {
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.6);
    letter-spacing: 0.025em;
    font-weight: 700;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
    will-change: transform;
}

.home-page :is(.hero-btn, .stats-strip-cta, .finds-cta-btn, .process-cta-btn, .readiness-cta-btn, .terminal-cta-btn):focus-visible {
    outline: 2px solid rgba(125, 251, 255, 0.9);
    outline-offset: 2px;
}

.home-page :is(.stats-strip-cta, .finds-cta-btn, .process-cta-btn, .readiness-cta-btn) {
    background: rgba(0, 24, 36, 0.78);
    color: #9cf8ff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.16);
}

.home-page :is(.stats-strip-cta, .finds-cta-btn, .process-cta-btn, .readiness-cta-btn):hover {
    transform: translateY(-2px);
    background: rgba(0, 37, 52, 0.92);
    box-shadow: 0 0 28px rgba(0, 255, 255, 0.28);
    border-color: rgba(125, 251, 255, 0.85);
}

.terminal-cta-btn {
    border-radius: 14px;
    background: linear-gradient(135deg, #00f5ff, #00bfff);
    color: #001118;
    border: 1px solid rgba(170, 255, 255, 0.7);
    box-shadow: 0 0 24px rgba(0, 255, 255, 0.35), inset 0 0 10px rgba(255, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    text-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.terminal-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #24f7ff, #00d2ff);
    box-shadow: 0 0 34px rgba(0, 255, 255, 0.54), inset 0 0 14px rgba(255, 255, 255, 0.22);
}

/* Recent Finds section (replacing testimonials) */
.recent-finds-section {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 80px auto 0;
    padding: 60px var(--page-padding-x);
}

.recent-finds-section h2 {
    font-size: 3em;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    margin-bottom: 12px;
    text-align: center;
}

.recent-finds-subtitle {
    margin: 0 auto 44px;
    max-width: var(--page-text-max-width);
    text-align: center;
    color: rgba(172, 245, 245, 0.86);
    font-size: 1.08em;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

.finds-container {
    display: flex;
    gap: 24px;
    position: relative;
    left: 0;
    transition: left 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: left;
}

.finds-carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.finds-viewport {
    overflow: hidden;
    padding-top: 24px;
    margin-top: -24px;
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
}

.finds-dots {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.find-card {
    flex: 0 0 calc((100% - 48px) / 3);
}

.find-card {
    padding: 30px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 191, 255, 0.03);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.find-card::after {
    display: none;
}

.find-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #00ffff, #00bfff);
    z-index: 2;
}

.find-card > * {
    position: relative;
    z-index: 1;
}

.find-card:hover {
    transform: translateY(-5px);
    border-color: rgba(132, 255, 255, 0.55);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.find-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.find-severity {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.severity-critical,
.severity-high,
.severity-medium {
    backdrop-filter: blur(8px);
    color: #aefcff;
    border: 1px solid rgba(150, 255, 255, 0.5);
}

.find-date {
    color: rgba(176, 242, 245, 0.68);
    font-size: 0.85em;
}

.find-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-family: var(--font-title);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.24);
}

.find-desc {
    line-height: 1.6;
    margin-bottom: 10px;
}

.find-meta {
    color: rgba(146, 221, 228, 0.85);
    font-size: 0.84em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.find-impact {
    font-size: 0.9em;
    color: #8defff;
    font-style: normal;
    font-weight: 600;
}

.recent-finds-cta {
    margin-top: 22px;
    padding-top: 0;
    display: flex;
    justify-content: center;
}

.finds-cta-btn {
    display: inline-block;
    padding: 16px 30px;
    text-decoration: none;
    color: #9cf8ff;
    border: 1px solid rgba(0, 255, 255, 0.6);
    background: rgba(0, 24, 36, 0.78);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.16);
}

/* How We Work section */
.process-section {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 72px auto 0;
    padding: 52px var(--page-padding-x);
}

.process-title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 2.7em;
    color: var(--accent);
    text-shadow: 0 0 18px rgba(0, 255, 255, 0.35);
}

.process-subtitle {
    margin: 0 auto 36px;
    max-width: var(--page-text-max-width);
    text-align: center;
    color: rgba(174, 246, 246, 0.86);
    font-size: 1.04em;
    line-height: 1.6;
}

.process-story {
    position: relative;
    min-height: auto;
}

.process-sticky {
    position: relative;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 24px;
    align-items: start;
}

.process-timeline {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 12px 12px 12px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(0, 255, 255, 0.1) 0%,
        rgba(0, 255, 255, 0.46) 50%,
        rgba(0, 255, 255, 0.1) 100%
    );
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.22);
}

.process-timeline-step {
    appearance: none;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(0, 22, 34, 0.52);
    color: rgba(187, 247, 250, 0.74);
    text-align: left;
    padding: 10px 12px 10px 10px;
    cursor: pointer;
    transition: all 0.24s ease;
}

.process-timeline-step:hover {
    border-color: rgba(118, 247, 255, 0.48);
    color: #d7ffff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.16);
}

.process-timeline-step.is-active {
    border-color: rgba(122, 250, 255, 0.74);
    background: rgba(0, 40, 56, 0.64);
    color: #deffff;
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.24);
}

.process-timeline-step.is-done {
    border-color: rgba(112, 235, 242, 0.42);
    color: rgba(181, 243, 247, 0.9);
}

.process-timeline-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.36);
    font-size: 0.78em;
    color: #aaf8ff;
    background: rgba(0, 18, 28, 0.78);
}

.process-timeline-step.is-active .process-timeline-num {
    border-color: rgba(125, 251, 255, 0.86);
    background: rgba(0, 38, 54, 0.96);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.32);
}

.process-timeline-text {
    font-size: 0.9em;
    line-height: 1.36;
    letter-spacing: 0.01em;
}

.process-stage {
    position: relative;
    min-height: auto;
    display: grid;
    gap: 14px;
}

.process-layer {
    position: relative;
    inset: auto;
    width: 100%;
    opacity: 0;
    filter: blur(8px);
    pointer-events: auto;
    transform: translate3d(0, 44px, 0) scale(0.97);
    transition:
        opacity 0.55s ease,
        transform 0.65s cubic-bezier(0.2, 0.9, 0.25, 1),
        filter 0.55s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.process-layer:nth-child(odd) {
    transform: translate3d(-40px, 38px, 0) scale(0.97);
}

.process-layer:nth-child(even) {
    transform: translate3d(40px, 38px, 0) scale(0.97);
}

.process-layer.is-visible,
.process-layer.is-active {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.process-card {
    height: auto;
    padding: 26px 24px 22px;
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 8, 14, 0.84) 100%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 24px rgba(0, 191, 255, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.process-card:hover {
    transform: translateY(-3px);
    border-color: rgba(130, 255, 255, 0.58);
    box-shadow: 0 10px 28px rgba(0, 255, 255, 0.16);
}

.process-step {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.35);
    color: rgba(179, 250, 250, 0.96);
    font-size: 0.78em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.process-step::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #77f9ff;
    box-shadow: 0 0 10px rgba(119, 249, 255, 0.8);
}

.process-card h3 {
    margin: 0 0 10px;
    font-size: 1.12em;
    color: #ddffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}

.process-card p {
    margin: 0;
    color: rgba(220, 253, 253, 0.78);
    line-height: 1.58;
    font-size: 0.95em;
}

.process-outcome {
    display: block;
    margin: 6px 0 6px;
    padding-left: 12px;
    border-left: 2px solid rgba(0, 255, 255, 0.5);
    color: rgba(165, 244, 249, 0.95);
    font-size: 0.92em;
    line-height: 1.5;
}

.process-time {
    display: inline-block;
    margin-top: 14px;
    color: #7ef0ff;
    font-weight: 700;
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

.process-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.process-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    color: #9cf8ff;
    border: 1px solid rgba(0, 255, 255, 0.62);
    background: rgba(0, 24, 36, 0.78);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Before / After QA section */
.before-after-section {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 68px auto 0;
    padding: 44px var(--page-padding-x) 10px;
}

/* Quick Start section (UA) */
.quick-start-section {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 68px auto 0;
    padding: 44px var(--page-padding-x) 10px;
}

.quick-start-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 2.5em;
    color: var(--accent);
    text-shadow: 0 0 16px rgba(0, 255, 255, 0.34);
}

.quick-start-subtitle {
    margin: 0 auto 30px;
    max-width: var(--page-text-max-width);
    text-align: center;
    color: rgba(176, 245, 247, 0.84);
    line-height: 1.6;
    font-size: 1.02em;
}

.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 18px;
}

.quick-start-card {
    border: 1px solid rgba(0, 255, 255, 0.24);
    border-radius: 12px;
    padding: 20px;
    background: rgba(0, 191, 255, 0.03);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.1);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-start-card:hover {
    border-color: rgba(131, 255, 255, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 255, 255, 0.16);
}

.quick-start-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.38);
    background: rgba(0, 28, 39, 0.86);
    color: rgba(175, 248, 255, 0.96);
    font-size: 0.8em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.quick-start-card h3 {
    margin: 0 0 10px;
    font-size: 1.12em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
}

.quick-start-card p {
    margin: 0 0 10px;
    line-height: 1.58;
}

.quick-start-result {
    display: block;
    margin-top: 6px;
    padding-left: 12px;
    border-left: 2px solid rgba(0, 255, 255, 0.5);
    color: rgba(165, 244, 249, 0.95);
    font-size: 0.92em;
    line-height: 1.5;
}

.quick-start-trust {
    margin: 18px auto 0;
    max-width: var(--page-text-max-width);
    text-align: center;
    color: rgba(168, 240, 244, 0.9);
    font-size: 0.95em;
}

.quick-start-cta {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.quick-start-cta-btn {
    display: inline-block;
    padding: 13px 26px;
    text-decoration: none;
    color: #9cf8ff;
    border: 1px solid rgba(0, 255, 255, 0.58);
    background: rgba(0, 24, 36, 0.78);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
}

.before-after-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 2.5em;
    color: var(--accent);
    text-shadow: 0 0 16px rgba(0, 255, 255, 0.34);
}

.before-after-subtitle {
    margin: 0 auto 30px;
    max-width: var(--page-text-max-width);
    text-align: center;
    color: rgba(176, 245, 247, 0.84);
    line-height: 1.6;
    font-size: 1.02em;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 18px;
}

.ba-card {
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 8, 14, 0.84) 100%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 22px rgba(0, 255, 255, 0.08);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ba-card:hover {
    border-color: rgba(131, 255, 255, 0.55);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 255, 255, 0.14);
}

.ba-card h3 {
    margin: 0 0 14px;
    color: #dcffff;
    font-size: 1.08em;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.ba-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ba-value {
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(0, 28, 39, 0.68);
}

.ba-label {
    display: block;
    color: rgba(163, 236, 241, 0.76);
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.ba-value strong {
    color: #d7ffff;
    font-size: 1.06em;
}

.ba-before strong {
    color: rgba(182, 222, 228, 0.85);
}

.ba-after strong {
    color: #94fcff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.24);
}

.ba-delta {
    margin: 14px 0 0;
    color: #8ef9ff;
    font-weight: 700;
    font-size: 0.94em;
    letter-spacing: 0.01em;
}

/* Release Readiness score section */
.release-readiness-section {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 44px auto 0;
    padding: 28px var(--page-padding-x) 0;
}

.release-readiness-title {
    margin: 0;
    text-align: center;
    font-size: 2.25em;
    color: var(--accent);
    text-shadow: 0 0 14px rgba(0, 255, 255, 0.3);
}

.release-readiness-subtitle {
    margin: 10px auto 24px;
    max-width: var(--page-text-max-width);
    text-align: center;
    color: rgba(173, 243, 245, 0.84);
    line-height: 1.58;
}

.readiness-widget {
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 14px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 8, 14, 0.86) 100%);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    box-shadow: 0 0 26px rgba(0, 191, 255, 0.08);
}

.readiness-scoreline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.readiness-score-label {
    color: rgba(193, 251, 252, 0.9);
    font-size: 0.95em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.readiness-score-value {
    color: #a8fdff;
    font-size: 1.42em;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.36);
}

.readiness-progress {
    width: 100%;
    height: 11px;
    border-radius: 999px;
    background: rgba(0, 21, 31, 0.85);
    border: 1px solid rgba(0, 255, 255, 0.2);
    overflow: hidden;
}

.readiness-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #00d6ff 0%, #00ffff 100%);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
    transition: width 0.3s ease;
}

.readiness-checklist {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
}

.readiness-check {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 18, 28, 0.78);
    color: rgba(199, 249, 250, 0.86);
    font-family: var(--font-text);
    font-size: 0.93em;
    line-height: 1.35;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.readiness-check::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(122, 222, 228, 0.35);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.12);
    flex: 0 0 10px;
}

.readiness-check:hover {
    border-color: rgba(128, 247, 255, 0.52);
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.14);
    color: #dcffff;
}

.readiness-check.is-checked {
    border-color: rgba(122, 250, 255, 0.66);
    background: rgba(0, 40, 56, 0.66);
    color: #d6ffff;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.2);
    animation: readinessPulse 0.9s ease;
}

.readiness-check.is-checked::before {
    background: #78fbff;
    box-shadow: 0 0 9px rgba(120, 251, 255, 0.78);
}

@keyframes readinessPulse {
    0% { box-shadow: 0 0 0 rgba(0, 255, 255, 0); }
    45% { box-shadow: 0 0 26px rgba(0, 255, 255, 0.28); }
    100% { box-shadow: 0 0 18px rgba(0, 255, 255, 0.2); }
}

.readiness-note {
    margin: 14px 0 0;
    color: rgba(171, 243, 247, 0.78);
    font-size: 0.9em;
    line-height: 1.5;
}

.release-readiness-cta {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.readiness-cta-btn {
    display: inline-block;
    padding: 13px 26px;
    text-decoration: none;
    color: #9cf8ff;
    border: 1px solid rgba(0, 255, 255, 0.58);
    background: rgba(0, 24, 36, 0.78);
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.readiness-widget.is-ready {
    border-color: rgba(127, 253, 255, 0.62);
    box-shadow: 0 0 32px rgba(0, 255, 255, 0.2);
}

/* Scroll spacer for Release Readiness Score sticky effect */
.readiness-scroll-spacer {
    position: relative;
    width: 100%;
    display: block;
    overflow: visible;
}

.release-readiness-section.readiness-pinned {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
    position: sticky !important;
    top: 50% !important;
    z-index: 12;
}

.release-readiness-section.is-disabled {
    display: none !important;
}

/* Scroll-triggered animations */
.scroll-assemble {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-assemble.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.scroll-scatter {
    opacity: 0;
}

.scroll-scatter.visible {
    opacity: 1;
}

.js-scroll-enhanced .scroll-stage-item.is-pending-reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.985);
    filter: blur(5px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s ease;
    transition-delay: var(--scroll-stage-delay, 0ms);
    will-change: transform, opacity, filter;
}

.js-scroll-enhanced .scroll-stage-item.is-revealed {
    opacity: 1;
    transform: none;
    filter: none;
}

.js-scroll-enhanced .scroll-story-section {
    transition: filter 0.45s ease, box-shadow 0.45s ease;
}

.js-scroll-enhanced .scroll-story-section.is-story-active {
    filter: none;
}

.scatter-item {
    opacity: 0;
    transform: translateX(-100px) translateY(-50px) rotate(-15deg);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.scatter-item.visible {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0);
}

/* Stats visuals are owned by css/pages/home.css to avoid style conflicts. */

@media (max-width: 1500px) {
    .finds-container {
        gap: 18px;
    }

    .find-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }
}

/* Mobile adaptations for cyberpunk styles */
@media (max-width: 1200px) {
    .glitch::before,
    .glitch::after {
        animation: none;
        display: none;
    }

    .hero-glitch {
        animation: none;
    }

    .terminal-section {
        padding: 30px var(--page-padding-x);
        margin: 40px var(--page-padding-x);
    }
    
    .recent-finds-section {
        padding: 40px var(--page-padding-x);
    }

    .recent-finds-section h2 {
        font-size: 2.2em;
    }

    .recent-finds-subtitle {
        font-size: 0.98em;
        margin-bottom: 30px;
    }
    
    .finds-container {
        gap: 18px;
    }

    .find-card {
        flex: 0 0 calc((100% - 18px) / 2);
    }

    .find-meta {
        font-size: 0.8em;
        line-height: 1.4;
    }

    .finds-cta-btn {
        width: 100%;
        max-width: 460px;
        text-align: center;
    }

    .recent-finds-cta {
        margin-top: 18px;
        padding-top: 0;
    }

    .process-section {
        padding: 36px var(--page-padding-x);
        margin-top: 52px;
    }

    .process-title {
        font-size: 2.15em;
    }

    .process-subtitle {
        margin-bottom: 28px;
        font-size: 0.98em;
    }

    .process-story {
        min-height: auto;
    }

    .process-sticky {
        position: static;
        min-height: auto;
        display: block;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
        margin-bottom: 12px;
    }

    .process-timeline::before,
    .process-step::after {
        display: none;
    }

    .process-timeline-step {
        grid-template-columns: 30px 1fr;
        padding: 9px 10px 9px 8px;
    }

    .process-stage {
        min-height: auto;
        display: grid;
        gap: 12px;
    }

    .process-layer {
        position: relative;
        inset: auto;
        opacity: 1;
        filter: none;
        transform: none !important;
        pointer-events: auto;
    }

    .process-card {
        padding: 20px 18px 18px;
    }

    .process-cta-btn {
        width: 100%;
        max-width: 460px;
        text-align: center;
    }

    .before-after-section {
        padding: 32px var(--page-padding-x) 4px;
        margin-top: 48px;
    }

    .before-after-title {
        font-size: 2em;
    }

    .before-after-subtitle {
        margin-bottom: 22px;
        font-size: 0.98em;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
    }

    .quick-start-section {
        padding: 32px var(--page-padding-x) 4px;
        margin-top: 48px;
    }

    .quick-start-title {
        font-size: 2em;
    }

    .quick-start-subtitle {
        margin-bottom: 22px;
        font-size: 0.98em;
    }

    .quick-start-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .quick-start-card {
        padding: 18px;
    }

    .quick-start-cta-btn {
        width: 100%;
        max-width: 460px;
        text-align: center;
    }

    .release-readiness-section {
        padding: 22px var(--page-padding-x) 0;
        margin-top: 28px;
    }

    .release-readiness-title {
        font-size: 1.95em;
    }

    .release-readiness-subtitle {
        font-size: 0.98em;
        margin-bottom: 16px;
    }

    .readiness-widget {
        padding: 16px;
    }

    .readiness-checklist {
        grid-template-columns: 1fr;
    }

    .readiness-check {
        font-size: 0.9em;
    }

    .readiness-cta-btn {
        width: 100%;
        max-width: 460px;
        text-align: center;
    }

    .finds-nav {
        width: 38px;
        height: 38px;
    }

    .terminal-metrics {
        gap: 8px;
    }

    .terminal-metric {
        width: 100%;
        text-align: center;
        font-size: 0.8em;
    }
    
    .glitch::before,
    .glitch::after {
        animation: none;
        display: none;
    }

    .hero-glitch {
        animation-duration: 8.5s;
    }
}

@media (max-width: 900px) {
    .finds-carousel {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        width: 100%;
        gap: 6px;
    }

    .finds-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        font-size: 1.05em;
    }

    .finds-viewport {
        width: 100%;
        max-width: 100vw;
        min-width: 0;
        overflow: hidden;
        position: relative;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    .finds-container {
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
        display: flex;
        flex-wrap: nowrap;
    }

    .find-card {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 24px 18px;
    }

    .find-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .find-date {
        max-width: 100%;
        text-align: left;
        line-height: 1.4;
    }

    .find-card {
        padding: 24px 20px;
    }

    .terminal-line {
        flex-wrap: wrap;
    }
    
    .terminal-output {
        padding-left: 0;
        margin-top: 5px;
    }

    .terminal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .terminal-action-btn {
        width: 100%;
        min-height: 56px;
        justify-content: flex-start;
        padding: 14px 16px;
        font-size: 0.92em;
        line-height: 1.2;
    }

    .terminal-action-label {
        white-space: normal;
        text-align: left;
    }

    .hero-glitch {
        animation: none;
    }
}

@media (max-width: 560px) {
    .terminal-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-glitch {
        animation: none;
    }
}

html.is-low-power .scanlines {
    opacity: 0.14;
}

html.is-low-power .glitch::before,
html.is-low-power .glitch::after,
html.is-low-power .hero-glitch {
    animation: none !important;
}

html.is-low-power .scroll-assemble {
    transform: translateY(24px);
    transition-duration: 0.5s;
}

html.is-low-power .scroll-stage-item,
html.is-low-power .scroll-stage-item.is-revealed {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

html.is-low-power .scroll-story-section,
html.is-low-power .scroll-story-section.is-story-active {
    filter: none;
}

html.is-low-power :is(.process-card, .find-card, .ba-card, .readiness-widget, .terminal-section) {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 14px rgba(0, 255, 255, 0.08);
}

html.is-low-power :is(.hero-btn, .stats-strip-cta, .finds-cta-btn, .process-cta-btn, .readiness-cta-btn, .terminal-cta-btn) {
    transition-duration: 0.18s;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .home-page :is(.stat-card, .stats-value-strip, .find-card, .process-card, .ba-card, .readiness-widget, .terminal-section, .terminal-content) {
        background: linear-gradient(135deg, rgba(0, 22, 33, 0.9) 0%, rgba(0, 12, 18, 0.94) 100%) !important;
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.14);
    }

    .find-card::after {
        display: none;
    }
}
