/* ===== PHANTOM site ===== */
:root {
    --accent: #a4cc1d;
    --accent-2: #c5e84a;
    --accent-dim: #4a5b14;
    --bg: #0a0b0d;
    --bg-card: #111317;
    --bg-card-2: #161920;
    --border: #1f232b;
    --border-strong: #2c313b;
    --text: #e8eaed;
    --text-dim: #8b8f97;
    --text-muted: #5a5e66;
    --shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px -10px rgba(164, 204, 29, 0.35);
    --radius: 14px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ===== animated background layers ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 75%);
}

.bg-glow {
    position: fixed;
    z-index: -2;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(164, 204, 29, 0.25) 0%, transparent 60%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(40px);
    pointer-events: none;
    animation: pulse 6s ease-in-out infinite;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}

/* ===== nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 56px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 11, 13, 0.6);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 15px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: var(--bg);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 4px 12px -2px rgba(164, 204, 29, 0.5);
}

.brand-name {
    font-family: 'JetBrains Mono', monospace;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* ===== buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 18px;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0d0f10;
    box-shadow: 0 4px 16px -2px rgba(164, 204, 29, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px -4px rgba(164, 204, 29, 0.65);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 15px;
}

.btn-xl {
    padding: 18px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.nav-cta {
    padding: 9px 16px;
    font-size: 13px;
}

/* ===== hero ===== */
.hero {
    text-align: center;
    padding: 100px 24px 80px;
    max-width: 1080px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(20, 22, 28, 0.6);
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    text-transform: lowercase;
    margin-bottom: 32px;
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(64px, 14vw, 168px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #fff 0%, #c8ccd1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(164, 204, 29, 0.15);
}

.hero-title .ghost {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    text-shadow: 0 0 40px rgba(164, 204, 29, 0.6);
}

.hero-sub {
    max-width: 620px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.6;
}

.accent {
    color: var(--accent);
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 520px;
    margin: 0 auto;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.stat {
    background: var(--bg-card);
    padding: 24px 16px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

/* ===== section ===== */
.section {
    padding: 100px 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.kicker {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.section-head h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-head p {
    font-size: 16px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== feature grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.22s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(164, 204, 29, 0.1);
    border: 1px solid rgba(164, 204, 29, 0.25);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ===== showcase ===== */
.showcase {
    background: linear-gradient(180deg, transparent, rgba(164, 204, 29, 0.02), transparent);
}

.showcase-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: border-color 0.22s, transform 0.22s;
}

.showcase-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.showcase-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(164, 204, 29, 0.12);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.showcase-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 600;
}

.showcase-card p {
    color: var(--text-dim);
    font-size: 14px;
}

/* ===== faq ===== */
.faq {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    cursor: pointer;
    transition: border-color 0.22s;
}

.faq-item:hover {
    border-color: var(--border-strong);
}

.faq-item[open] {
    border-color: rgba(164, 204, 29, 0.4);
}

.faq-item summary {
    list-style: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 20px;
    transition: transform 0.22s;
}

.faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-item p {
    margin-top: 14px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== download ===== */
.download-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-card-2), var(--bg-card));
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 56px;
    box-shadow: var(--shadow), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(164, 204, 29, 0.15), transparent 70%);
    pointer-events: none;
}

.download-info h2 {
    font-size: 40px;
    margin: 12px 0 10px;
    letter-spacing: -0.02em;
}

.download-info > p {
    color: var(--text-dim);
    margin-bottom: 24px;
}

.meta-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
}

.meta-list li {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text);
    display: flex;
    gap: 10px;
}

.meta-list li span {
    color: var(--text-muted);
    min-width: 64px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.dl-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ===== footer ===== */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-meta .dot {
    color: var(--border-strong);
}

/* ===== reveal-on-scroll ===== */
.card, .showcase-card, .faq-item, .download-card, .stat {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.in-view, .showcase-card.in-view, .faq-item.in-view, .download-card.in-view, .stat.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== responsive ===== */
@media (max-width: 768px) {
    .nav {
        padding: 14px 18px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 60px 20px 50px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 18px;
    }

    .section {
        padding: 60px 18px;
    }

    .download-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .download-actions {
        align-items: stretch;
    }

    .download-actions .btn {
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 14px;
    }
}
