/* Traceroute App — Product Page Styles */

/* Hide the perspective grid on this page */
body.no-perspective-grid::before {
    display: none;
}

/* Traceroute palette */
:root {
    --tr-red: #da492b;
    --tr-orange: #d8733d;
    --tr-amber: #ea9d47;
    --tr-yellow: #fbf189;
}

.traceroute-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 20px 20px;
}

/* Hero Section */
.traceroute-hero {
    text-align: center;
    padding: 10px 0 10px;
}

.hero-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(234, 157, 71, 0.3);
}

.hero-content .neon-heading {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.hero-description {
    color: var(--text-secondary, #a09882);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-description-label {
    margin-bottom: 8px;
}

.hero-items {
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: center;
}

.hero-item {
    color: #d4cdc2;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    padding: 6px 0;
}

.hero-item + .hero-item {
    padding-top: 0;
}

.hero-item + .hero-item::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 157, 71, 0.5), transparent);
    margin: 6px auto;
}

.hero-description-note {
    font-size: 0.8rem;
    opacity: 0.6;
}

.hero-description-cta {
    font-weight: 600;
    color: #e8e0d4;
}

.why-desktop-heading {
    font-family: 'Space Mono', monospace;
    font-size: 1.35rem;
    color: var(--tr-amber);
    margin: 32px 0 12px;
}

.why-desktop-text {
    margin-bottom: 32px;
}

.hero-screenshot {
    margin: 16px auto;
    max-width: 700px;
}

.app-screenshot {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(234, 157, 71, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--text-secondary, #a09882);
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
    margin-bottom: 10px;
    opacity: 0.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-block;
    padding: 14px 32px;
    background: var(--tr-amber);
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-gold:hover {
    background: var(--tr-yellow);
    box-shadow: 0 0 20px rgba(234, 157, 71, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--tr-amber);
    border: 1px solid var(--tr-amber);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-outline:hover {
    background: rgba(234, 157, 71, 0.1);
    box-shadow: 0 0 20px rgba(234, 157, 71, 0.2);
}

/* Download */
.download-heading {
    font-family: var(--tr-font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tr-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
}

.download-counter {
    font-size: 0.85rem;
    color: var(--tr-amber);
    opacity: 0.7;
    margin: -8px 0 16px 0;
    letter-spacing: 1px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 16px 12px;
    background: rgba(234, 157, 71, 0.08);
    border: 1px solid rgba(234, 157, 71, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.download-btn:hover {
    background: rgba(234, 157, 71, 0.15);
    border-color: var(--tr-amber);
    box-shadow: 0 0 20px rgba(234, 157, 71, 0.3);
}

.download-platform {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--tr-amber);
}

.download-arch {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-secondary, #a09882);
}

.download-soon {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-secondary, #a09882);
    opacity: 0.6;
    margin-top: 2px;
}

.download-btn--soon {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.download-btn--recommended {
    border-color: var(--tr-amber);
    background: rgba(234, 157, 71, 0.15);
    box-shadow: 0 0 16px rgba(234, 157, 71, 0.25);
}

.download-btn--recommended.download-btn--soon {
    border-color: rgba(234, 157, 71, 0.3);
    background: rgba(234, 157, 71, 0.08);
    box-shadow: none;
}

.download-recommended {
    font-family: 'Space Mono', monospace;
    font-size: 0.55rem;
    color: var(--tr-amber);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Editions Section */
.editions-section {
    padding: 16px 0;
    text-align: center;
}

.editions-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.editions-subtitle {
    text-align: center;
    color: var(--text-secondary, #a09882);
    font-size: 1.15rem;
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.premium-name {
    color: var(--tr-amber);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

.title-desktop-app {
    color: var(--tr-orange);
}

.editions-title.premium-name {
    font-size: 2.4rem;
}

/* ================================
   LOADING BAR — 90s game style
   ================================ */

.loadbar-wrapper {
    margin: 0 auto 48px;
    max-width: 100%;
}

/* The outer track — chunky dark capsule */
.loadbar-track {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #0d0d14;
    border: 3px solid #2a2a3a;
    border-radius: 10px;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Each segment — a chunky block */
.loadbar-segment {
    flex: 1;
    height: 64px;
    border-radius: 4px;
    position: relative;
    cursor: default;
    overflow: hidden;
    transition: all 0.3s;

    /* Empty state — dark recessed look */
    background: #12121c;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Segment number label */
.segment-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tr-amber);
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s;
}

/* Filled segment (SOLD) — gradient with gloss */
.loadbar-segment.filled {
    background: linear-gradient(
        180deg,
        var(--tr-yellow) 0%,
        var(--tr-amber) 30%,
        var(--tr-orange) 65%,
        var(--tr-red) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(251, 241, 137, 0.5),
        inset 0 -2px 4px rgba(218, 73, 43, 0.4),
        0 0 8px rgba(234, 157, 71, 0.3);
}

.loadbar-segment.filled .segment-label {
    color: rgba(10, 10, 15, 0.6);
}

/* Gloss highlight on filled segments */
.loadbar-segment.filled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 4px 4px 0 0;
    pointer-events: none;
}

/* Pending — pulsing dim fill */
.loadbar-segment.pending {
    background: linear-gradient(
        180deg,
        rgba(251, 241, 137, 0.15) 0%,
        rgba(234, 157, 71, 0.1) 50%,
        rgba(218, 73, 43, 0.08) 100%
    );
    animation: pulse-segment 2s ease-in-out infinite;
}

@keyframes pulse-segment {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loadbar-segment.pending .segment-label {
    color: rgba(234, 157, 71, 0.5);
}

/* Mint failed */
.loadbar-segment.mint-failed {
    background: rgba(255, 45, 149, 0.15);
    box-shadow: inset 0 0 6px rgba(255, 45, 149, 0.2);
}

.loadbar-segment.mint-failed .segment-label {
    color: rgba(255, 45, 149, 0.5);
}

/* Next up — flashing highlight, clickable */
.loadbar-segment.next-up {
    cursor: pointer;
    background: linear-gradient(
        180deg,
        rgba(251, 241, 137, 0.12) 0%,
        rgba(234, 157, 71, 0.08) 50%,
        rgba(216, 115, 61, 0.06) 100%
    );
    border: 1px solid rgba(234, 157, 71, 0.4);
    animation: flash-next 1.5s ease-in-out infinite;
}

@keyframes flash-next {
    0%, 100% {
        box-shadow:
            inset 0 2px 4px rgba(0, 0, 0, 0.4),
            0 0 8px rgba(234, 157, 71, 0.15);
        border-color: rgba(234, 157, 71, 0.3);
    }
    50% {
        box-shadow:
            inset 0 2px 4px rgba(0, 0, 0, 0.2),
            0 0 24px rgba(234, 157, 71, 0.5),
            0 0 48px rgba(234, 157, 71, 0.15);
        border-color: rgba(234, 157, 71, 0.7);
    }
}

.loadbar-segment.next-up .segment-label {
    color: var(--tr-amber);
    font-size: 1rem;
}

.loadbar-segment.next-up:hover {
    background: linear-gradient(
        180deg,
        rgba(251, 241, 137, 0.2) 0%,
        rgba(234, 157, 71, 0.15) 50%,
        rgba(216, 115, 61, 0.1) 100%
    );
    animation: none;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(234, 157, 71, 0.5),
        0 0 60px rgba(234, 157, 71, 0.2);
    border-color: var(--tr-amber);
}

/* Labels below the bar */
.loadbar-labels {
    display: flex;
    gap: 4px;
    padding: 8px 6px 0;
}

.loadbar-label {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.label-price {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-secondary, #a09882);
    white-space: nowrap;
}

.label-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    color: var(--tr-amber);
    min-height: 20px;
}

.btn-buy-small {
    padding: 6px 18px;
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    background: var(--tr-amber);
    color: #0a0a0f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy-small:hover {
    background: var(--tr-yellow);
    box-shadow: 0 0 16px rgba(234, 157, 71, 0.5);
}

.tx-link {
    color: var(--neon-blue, #00d4ff);
    font-size: 0.6rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tx-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Progress text */
.loadbar-progress {
    text-align: center;
    padding: 16px 0 0;
    font-family: 'Space Mono', monospace;
    color: var(--text-secondary, #a09882);
    font-size: 0.9rem;
}

.loadbar-count {
    color: var(--tr-amber);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Editions note card */
.editions-note-card {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 20px 24px;
    max-width: 540px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    animation: glow-card 2.5s ease-in-out infinite;
}

@keyframes glow-card {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.06),
            0 0 30px rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 255, 255, 0.15),
            0 0 50px rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.35);
    }
}

.editions-note {
    text-align: center;
    color: var(--text-secondary, #a09882);
    font-size: 0.85rem;
    max-width: 500px;
    margin: 0 auto;
}

.editions-note a {
    color: var(--neon-blue, #00d4ff);
    text-decoration: none;
}

.editions-note a:hover {
    text-decoration: underline;
}

/* Section divider */
.section-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 157, 71, 0.5), transparent);
    margin: 48px auto;
}

/* What Is This title */
.what-is-this-title {
    font-size: 2rem;
    text-align: center;
    color: var(--tr-amber);
    margin-bottom: 0;
}

/* Scroll arrow overlay */
.scroll-arrow-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 80px;
    pointer-events: none;
    transition: opacity 0.5s;
}

.scroll-arrow-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.scroll-arrow-inner {
    text-align: center;
    pointer-events: auto;
    padding: 24px 48px;
    border: 2px solid var(--tr-red);
    border-radius: 16px;
    background: rgba(10, 10, 15, 0.92);
    box-shadow:
        0 0 30px rgba(218, 73, 43, 0.4),
        0 0 60px rgba(218, 73, 43, 0.2),
        inset 0 0 20px rgba(218, 73, 43, 0.05);
}

.scroll-arrow-icon {
    font-size: 10rem;
    line-height: 1;
    margin-top: -20px;
    color: var(--tr-red);
    text-shadow:
        0 0 30px rgba(218, 73, 43, 0.8),
        0 0 60px rgba(218, 73, 43, 0.5),
        0 0 100px rgba(218, 73, 43, 0.3);
    animation: bounce-arrow 1.2s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(18px); }
}

/* Why Buy section */
.why-buy {
    text-align: center;
    padding: 0 0 40px;
}

.why-buy-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--tr-amber);
}

.why-buy-subhead {
    font-family: 'Space Mono', monospace;
    font-size: 1.35rem;
    color: #e8e0d4;
    margin: 32px 0 12px;
}

.why-buy-text {
    color: var(--text-secondary, #a09882);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 16px;
}

.why-buy-emphasis {
    color: #e8e0d4;
    font-weight: 600;
}

.why-buy-items {
    max-width: 600px;
    margin: 0 auto 16px;
    text-align: center;
}

.why-buy-item {
    color: #d4cdc2;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    padding: 6px 0;
}

.why-buy-item + .why-buy-item {
    padding-top: 0;
}

.why-buy-item + .why-buy-item::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234, 157, 71, 0.5), transparent);
    margin: 6px auto;
}

.price-inline {
    color: var(--tr-amber);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.why-buy-prices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    max-width: 500px;
    margin: 16px auto 24px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--tr-amber);
}

/* Purchase Modal Additions */
.purchase-card {
    max-width: 480px;
}

.field-hint {
    display: block;
    color: var(--text-secondary, #a09882);
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.7;
}

.minimum-note {
    display: block;
    color: var(--neon-pink, #ff2d95);
    font-size: 0.8rem;
    margin-top: 4px;
}

#purchase-card {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: border-color 0.2s;
}

#purchase-card.StripeElement--focus {
    border-color: var(--tr-amber);
}

/* Responsive */
@media (max-width: 600px) {
    .hero-content .neon-heading {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .loadbar-segment {
        height: 50px;
    }

    .segment-label {
        font-size: 0.7rem;
    }

    .label-price {
        font-size: 0.55rem;
    }

    .label-status {
        font-size: 0.5rem;
    }

    .loadbar-track {
        gap: 3px;
        padding: 4px;
        border-width: 2px;
    }

    .loadbar-labels {
        gap: 3px;
        padding: 6px 4px 0;
    }

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

    .editions-title.premium-name {
        font-size: 1.8rem;
    }

    .scroll-arrow-icon {
        font-size: 7rem;
    }

    .scroll-arrow-inner {
        padding: 20px 32px;
    }

    .why-buy-title {
        font-size: 1.4rem;
    }
}
