html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.ph-live-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #8b5cf6;
    overflow: hidden;
    white-space: nowrap;
    z-index: 100;
    padding: 0;
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-content {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    will-change: transform;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.logo {
    margin-bottom: 4rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    opacity: 0.8;
}

.hero {
    margin-bottom: 3rem;
}

/* ── Sandbox ──────────────────────────────────────────── */
.sandbox {
    margin-bottom: 5rem;
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem 2rem;
}

.sandbox-header {
    margin-bottom: 1.75rem;
}

.sandbox-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.sandbox-subtitle {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

.sandbox-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0d1f12 0%, #0a2a1a 100%);
    border-radius: 12px;
    border: 1px solid rgba(34,197,94,0.25);
}

.score-number {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
    line-height: 1;
}

.score-value {
    font-size: 4.5rem;
    font-weight: 900;
    color: #22c55e;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    text-shadow: 0 0 40px rgba(34,197,94,0.4);
    transition: color 0.3s ease;
}

.score-percent {
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
    opacity: 0.8;
}

.score-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(34,197,94,0.7);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 0.25rem;
}

.sandbox-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}

.sandbox-pane {
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.pane-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.pane-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.pane-tag-bloated {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

.pane-tag-dehydrated {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.25);
}

.pane-reset,
.pane-copy {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    border-radius: 5px;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pane-reset:hover,
.pane-copy:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sandbox-input {
    flex: 1;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    color: #d1d5db;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    width: 100%;
    min-height: 340px;
    transition: border-color 0.2s ease;
}

.sandbox-input:focus {
    border-color: rgba(239,68,68,0.5);
}

.sandbox-output {
    flex: 1;
    background: #090f09;
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 8px;
    padding: 1rem;
    color: #4ade80;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    overflow: auto;
    white-space: pre;
    margin: 0;
    min-height: 340px;
}

.sandbox-output code {
    display: block;
}

.pane-meta {
    margin-top: 0.5rem;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.25);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sandbox-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

.sandbox-arrow {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.15);
}

.sandbox-footnote {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

@media (max-width: 700px) {
    .sandbox-layout {
        grid-template-columns: 1fr;
    }
    .sandbox-divider {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }
    .sandbox-arrow {
        font-size: 1.25rem;
    }
    .score-value {
        font-size: 3.5rem;
    }
    .score-percent {
        font-size: 2rem;
    }
}

.countdown-wrapper {
    margin-top: 2rem;
}

.countdown-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b5cf6;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-text {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.countdown-sep {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(139, 92, 246, 0.5);
    line-height: 1;
    padding-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.product-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.product-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-card h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.product-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.product-link {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.product-link:hover {
    opacity: 0.8;
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.cta {
    margin-bottom: 4rem;
}

.cta-hint {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #22c55e;
    font-weight: 500;
}

.cta-scarcity {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.cta-value {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.cta-trending {
    color: #f97316;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    animation: trending-pulse 2s ease-in-out infinite;
}

@keyframes trending-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.inventory-bar {
    margin-top: 1.25rem;
}

.inventory-track {
    width: 100%;
    max-width: 360px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto 0.5rem;
}

.inventory-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 5px;
    width: 71%;
    transition: width 1s ease;
}

.inventory-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.btn-support {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: -0.01em;
}

.btn-urgent {
    background: #22c55e;
    animation: urgent-pulse 1.5s ease-in-out infinite;
}

.btn-urgent:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(34, 197, 94, 0.5);
    background: #16a34a;
}

@keyframes urgent-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
    background: #16a34a;
}

.trust {
    opacity: 0.5;
}

.trust h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.download-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.trust-note {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    margin-top: 1rem;
}

.price-comparison {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-old {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.price-new {
    font-size: 1.75rem;
    font-weight: 700;
    color: #8b5cf6;
}

.price-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.trust-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #22c55e;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    animation: ticker-pulse 3s ease-in-out infinite;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: dot-blink 1.5s ease-in-out infinite;
}

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

@keyframes ticker-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.social-link, .support-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.social-link:hover, .support-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.support-link {
    margin-top: 0.5rem;
}

.ph-link {
    background: #22c55e;
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    animation: ph-pulse 2s ease-in-out infinite;
}

.ph-link-full {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.ph-link:hover {
    background: #16a34a;
    border-color: transparent;
    color: #fff;
    opacity: 1;
}

@keyframes ph-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.footer-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #8b5cf6;
}

.notify-link {
    display: block;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.notify-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.badge-orange {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.comparison-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #8b5cf6;
}

.badge-live {
    background: #8b5cf6;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.copy-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-command:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
}

.copy-command code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    color: #22c55e;
}

.copy-icon {
    font-size: 1rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.copy-command:hover .copy-icon {
    opacity: 1;
}

.copy-command.copied {
    border-color: #22c55e;
}

.copy-command.copied .copy-icon::after {
    content: '✓';
}

.feature-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.copy-command-highlight {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.copy-command-highlight:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
}

.copy-command-highlight code {
    color: #c084fc;
}

.monetize-text {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.monetize-text a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
}

.monetize-text a:hover {
    text-decoration: underline;
}

.ph-badge {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: #ff6000;
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(255, 96, 0, 0.4);
    z-index: 100;
    animation: badge-bounce 2s ease-in-out infinite;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ph-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(255, 96, 0, 0.55);
    text-decoration: none;
}

.ph-badge-icon {
    font-size: 0.875rem;
    line-height: 1;
}

.ph-badge-text {
    line-height: 1;
}

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

/* ── Last Sale Popup ──────────────────────────────────── */
.sale-popup {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 200;
    opacity: 0;
    transform: translateX(calc(100% + 2rem));
    transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.sale-popup.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.sale-popup-inner {
    position: relative;
    background: #111827;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 14px;
    padding: 1.25rem 1.5rem 1.25rem 1.5rem;
    min-width: 270px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
    font-family: inherit;
    text-align: left;
}

.sale-popup-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}
.sale-popup-close:hover { color: rgba(255,255,255,0.8); }

.sale-popup-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.sale-popup-label {
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sale-popup-product {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.sale-popup-buyer {
    font-size: 0.8125rem;
    color: #a78bfa;
    font-weight: 600;
}

.sale-popup-time {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.6875rem;
    color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
}

.sale-popup-dot {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: dot-blink 1.4s ease-in-out infinite;
}

@media (max-width: 600px) {
    .sale-popup {
        bottom: 5rem;
        right: 1rem;
        left: 1rem;
    }
    .sale-popup-inner {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1.5rem;
    }

    .logo {
        margin-bottom: 3rem;
    }

    .hero {
        margin-bottom: 3rem;
    }

    .products {
        gap: 1rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .cta {
        margin-bottom: 3rem;
    }

    .btn-support {
        width: 100%;
        font-size: 1rem;
    }
}
