/* Panic Bypass — focused visual, responsive and accessibility enhancements */

:root {
    --surface: #050806;
    --surface-raised: #090e0a;
    --line: rgba(237, 248, 242, .1);
    --muted: #9bacA2;
}

main {
    overflow-x: clip;
    overflow-y: visible;
}

section[id] {
    scroll-margin-top: 110px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--panic-green);
    color: #031006;
    font-size: .8rem;
    font-weight: 900;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:where(a, button, summary):focus-visible {
    outline: 3px solid var(--panic-green-light);
    outline-offset: 4px;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(.16, .8, .2, 1), transform .65s cubic-bezier(.16, .8, .2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .06s; }
.reveal-delay-2 { transition-delay: .12s; }
.reveal-delay-3 { transition-delay: .18s; }
.reveal-delay-4 { transition-delay: .24s; }
.reveal-delay-5 { transition-delay: .3s; }
.reveal-delay-6 { transition-delay: .36s; }
.reveal-delay-7 { transition-delay: .42s; }

/* Background and header */
.hero-bg-gradient {
    position: fixed;
    inset: 0 0 auto;
    z-index: -1;
    width: 100%;
    height: 100svh;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 46% at 50% 0%, rgba(0, 197, 0, .09), transparent 68%),
        radial-gradient(ellipse 45% 35% at 15% 75%, rgba(0, 130, 20, .045), transparent 70%),
        #000;
    animation: hero-gradient 12s ease-in-out infinite alternate;
}

@keyframes hero-gradient {
    from { opacity: .65; transform: scale(1); }
    to { opacity: 1; transform: scale(1.04); }
}

.site-header {
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
    box-shadow: 0 14px 42px rgba(0, 0, 0, .28);
}

/* Hero */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 197, 0, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 197, 0, .028) 1px, transparent 1px);
    background-size: 58px 58px;
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 72% 62% at 50% 42%, #000 0%, transparent 72%);
}

.hero h1 {
    margin: 32px auto 28px;
}

.hero-text {
    max-width: 600px;
    color: #cfdbd4;
    font-size: clamp(1rem, 2vw, 1.14rem);
    line-height: 1.75;
}

.hero-secondary {
    border-color: rgba(var(--panic-green-rgb), .55);
    background: rgba(var(--panic-green-rgb), .055);
    color: var(--panic-green-light);
}

.hero-secondary:hover {
    border-color: var(--panic-green-light);
    background: rgba(var(--panic-green-rgb), .12);
}

.hero-metrics {
    width: min(720px, 100%);
    margin-inline: auto;
}

.hero-metrics div {
    gap: 7px;
    background: linear-gradient(180deg, rgba(var(--panic-green-rgb), .025), transparent);
}

.hero-metrics svg {
    color: var(--panic-green);
    opacity: .9;
}

.hero-metrics.metrics-animated div strong {
    animation: metric-pop .45s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-metrics.metrics-animated div:nth-child(2) strong { animation-delay: .1s; }
.hero-metrics.metrics-animated div:nth-child(3) strong { animation-delay: .2s; }

@keyframes metric-pop {
    from { opacity: 0; transform: scale(.65); }
    to { opacity: 1; transform: scale(1); }
}

/* Features */
.feature-grid article {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    background: linear-gradient(145deg, rgba(var(--panic-green-rgb), .035), transparent 65%), #000;
}

.feature-grid article::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(var(--panic-green-rgb), .1);
    border-radius: 50%;
}

/* Plans: one centered comparison row on desktop */
.plans {
    width: min(1480px, calc(100% - 32px));
}

.plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    width: 100%;
    margin-inline: auto;
}

.plan {
    min-height: 600px;
    border-color: var(--line);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--panic-green-rgb), .08), transparent 34%),
        var(--surface);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.plan:hover {
    border-color: rgba(var(--panic-green-rgb), .72);
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 26px rgba(var(--panic-green-rgb), .08);
}

.featured-plan,
.featured-plan:hover {
    transform: none;
}

.featured-plan {
    border-color: var(--panic-green);
    background:
        radial-gradient(circle at 100% 0%, rgba(var(--panic-green-rgb), .18), transparent 38%),
        linear-gradient(180deg, rgba(8, 48, 22, .42), #000 62%);
}

.featured-plan:hover {
    transform: translateY(-6px);
}

.plan-img {
    height: 178px;
}

.plan-type {
    margin: 4px 0 8px;
    color: var(--panic-green);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.plan .plan-name {
    margin: 0 0 10px;
    color: #f7fff9;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-height: auto;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.65rem, 3.5vw, 2.55rem) !important;
    font-weight: 950;
    line-height: 1 !important;
    letter-spacing: -.04em;
    text-transform: none;
}

.plan-old-price {
    font-size: .48em;
    letter-spacing: 0;
}

.plan-summary,
.plan-description {
    margin: 0;
    color: #aabbb1 !important;
    font-size: .9rem;
    font-weight: 500 !important;
    line-height: 1.65;
}

.plan-description {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}

.plan-details {
    margin-top: 18px;
}

.feature-dropdown {
    margin: 14px 0 18px;
}

.feature-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(var(--panic-green-rgb), .46);
    border-radius: 10px;
    background: #07120b;
    color: var(--panic-green-light);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .05em;
    list-style: none;
    text-transform: uppercase;
}

.feature-toggle::-webkit-details-marker { display: none; }
.feature-toggle::after { content: "+"; font-size: 1.15rem; }
.feature-dropdown[open] .feature-toggle::after { content: "−"; }
.feature-dropdown[open] .feature-toggle {
    border-radius: 10px 10px 0 0;
    background: rgba(var(--panic-green-rgb), .11);
}

.feature-content {
    display: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    border: 1px solid rgba(var(--panic-green-rgb), .24);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: rgba(2, 10, 5, .88);
    padding: 2px 14px 8px;
}

.feature-dropdown[open] .feature-content { display: block; }

.plan-features li {
    padding-left: 20px;
    font-size: .82rem;
}

.plan-options button {
    min-height: 42px;
    border: 1px solid transparent;
}

.plan-options button:hover {
    border-color: rgba(var(--panic-green-rgb), .45);
}

.plan-options button.is-selected {
    border-color: var(--panic-green);
    background: rgba(var(--panic-green-rgb), .16);
}

.plan .plan-cta {
    align-self: stretch;
    justify-content: space-between;
    min-height: 48px;
    margin-top: auto;
    padding: 0 16px;
    border: 1px solid rgba(var(--panic-green-rgb), .55);
    border-radius: 11px;
    background: rgba(var(--panic-green-rgb), .06);
    color: #f1f8f4;
}

.plan .plan-cta:hover {
    border-color: var(--panic-green);
    background: rgba(var(--panic-green-rgb), .13);
    color: var(--panic-green-light);
}

.featured-plan .plan-cta {
    border-color: var(--panic-green);
    background: var(--panic-green);
    color: #04110c;
}

.featured-plan .plan-cta:hover {
    background: var(--panic-green-light);
    color: #04110c;
}

.plan-badge-limited {
    border-color: rgba(255, 206, 84, .65);
    background: #171408;
    box-shadow: none;
    color: #ffdc73;
    animation: none;
}

/* Changelog */
.changelog-list {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.changelog-entry {
    min-height: 180px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(var(--panic-green-rgb), .04), transparent 70%), #000;
}

.changelog-entry:hover {
    background: linear-gradient(145deg, rgba(var(--panic-green-rgb), .1), transparent 75%), #020503;
}

.changelog-latest {
    border-color: rgba(var(--panic-green-rgb), .58);
}

.changelog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
}

.changelog-date {
    margin: 0;
}

.changelog-label {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--panic-green);
    color: #04110c;
    font-size: .61rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.changelog-entry h3 {
    font-size: 1.1rem;
}

/* Video and final CTA */
.proof-video {
    background: #050805;
}

.proof-video iframe {
    color-scheme: dark;
}

.final-cta {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--panic-green-rgb), .2);
    background:
        radial-gradient(circle at 50% 120%, rgba(var(--panic-green-rgb), .18), transparent 52%),
        #020402;
}

.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .025), transparent 70%);
}

/* FAQ */
@keyframes faq-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-list details[open] p { animation: faq-slide-in .25s ease both; }
.faq-list details[open] summary { color: var(--panic-green-light); }

.faq-list summary {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    margin-left: auto;
    color: var(--panic-green);
    font-size: 1.25rem;
}
.faq-list details[open] summary::after { content: "−"; }

/* Scroll button */
.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(var(--panic-green-rgb), .52);
    border-radius: 14px;
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(12px);
    color: var(--panic-green-light);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s .25s, box-shadow .25s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.scroll-top:hover {
    box-shadow: 0 0 24px rgba(var(--panic-green-rgb), .3);
    transform: translateY(-3px);
}

/* Footer */
footer {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.footer-logo { width: 36px; height: 36px; object-fit: contain; }
.footer-brand span { color: #f7fff9; font-size: 1.1rem; font-weight: 950; text-transform: uppercase; }
.footer-tagline { width: 100%; margin: 4px 0 0; color: #7d8d85; font-size: .85rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 6px; color: #f7fff9; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { color: #9eb0a8; font-size: .85rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--panic-green-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(237, 248, 242, .08); }
.footer-bottom p { margin: 0; color: #6b7d74; font-size: .82rem; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #9eb0a8; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.footer-socials a:hover { border-color: var(--panic-green); color: var(--panic-green-light); transform: translateY(-2px); }

@media (min-width: 951px) and (max-width: 1200px) {
    .plan {
        padding: 22px 16px;
    }

    .plan-img {
        width: calc(100% + 32px);
        margin: -22px -16px 16px;
        height: 138px;
    }

    .plan .plan-name {
        font-size: 1.35rem;
    }

    .plan-price {
        font-size: 1.7rem !important;
    }

    .plan-summary,
    .plan-description {
        font-size: .78rem;
    }

    .plan-options button {
        flex: 1 1 100%;
    }
}

@media (max-width: 950px) {
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .site-header.menu-open {
        max-height: calc(100svh - 36px);
        overflow-y: auto;
    }

    .changelog-list {
        grid-template-columns: 1fr;
    }

    .plan {
        min-height: 0;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hero h1 {
        font-size: clamp(3.35rem, 18vw, 4.3rem);
    }

    .hero-status {
        max-width: 100%;
        line-height: 1.5;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-metrics div {
        min-height: 84px;
        border-right: 0;
        border-bottom: 1px solid rgba(237, 248, 242, .12);
    }

    .hero-metrics div:last-child { border-bottom: 0; }
    .plan { padding: 22px 18px; }
    .plan-img { width: calc(100% + 36px); margin: -22px -18px 16px; height: 150px; }
    .plan-options button { flex: 1 1 calc(50% - 4px); }
    .footer-links { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
    .scroll-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .ticker-track {
        animation: none;
    }

    .site-intro {
        display: none;
    }

    body.intro-active {
        position: static;
        overflow: auto !important;
        width: auto;
        height: auto;
    }

    body.intro-active #site-content {
        opacity: 1;
    }
}
