:root {
    --bg-dark: #0a0a0c;
    --bg-card: #131316;
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #10b981;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Changed from all to none to allow clicking elements below */
    background: transparent;
}

/* NAV */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 90%;
    top: 0;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--primary);
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.links a:hover {
    color: white;
}

.btn-nav {
    background: white;
    color: black !important;
    padding: 8px 16px;
    border-radius: 6px;
}

/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
    /* nav offset */
    position: relative;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-price-highlight {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-price-highlight .highlight {
    color: #10b981;
    font-weight: 800;
    font-size: 1.8rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0 10px;
    border-radius: 8px;
}

.trial-pill {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 30px -10px var(--primary-glow);
    transition: transform 0.2s;
    position: relative;
    z-index: 5;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.2s;
    position: relative;
    z-index: 5;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stats {
    display: flex;
    gap: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stats span {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.hero-visual {
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.hero-img-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    background: #111827;
    /* Match app background from admin.html */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8),
        0 18px 36px -18px rgba(0, 0, 0, 0.5);
    transform: perspective(1500px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-img-container:hover {
    transform: perspective(1500px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.window-header {
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.hero-img-overlay {
    position: absolute;
    inset: 32px 0 0 0;
    /* Below header */
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05));
    pointer-events: none;
}

.glow-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.25;
    z-index: -1;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.15;
        transform: scale(0.9);
    }

    to {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* SECTIONS */
section {
    padding: 100px 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#pricing .container {
    max-width: 1400px;
    padding: 0 20px;
}

#pricing h2 {
    margin-bottom: 14px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
}

.trial-subline {
    margin-top: 0;
    margin-bottom: 26px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.pricing-trial-banner {
    display: inline-block;
    margin: 0 auto 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #ddd6fe;
    font-weight: 700;
    font-size: 0.92rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
}

/* PRICING */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: stretch;
}

/* Revised Pricing Card */
.pricing-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1 1 260px;
    /* Grow, Shrink, Basis */
    max-width: 350px;
    /* Prevent excessively wide cards */
}

.pricing-card.featured {
    background: linear-gradient(135deg, #1e1e24 0%, #17171b 100%);
    border: 1px solid var(--primary);
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.2);
    z-index: 2;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.pricing-card.featured:hover {
    transform: translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    width: max-content;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.pricing-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 10px 0;
    color: white;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Modern Daily Badge */
.daily-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 25px;
    width: fit-content;
    align-self: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.daily-badge strong {
    color: white;
}

.daily-badge.featured-badge {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.daily-badge.lifetime-badge {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.billing-desc {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-card li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-card li strong {
    color: white;
}

.full-width {
    width: 100%;
    margin-top: auto;
    display: block;
    text-align: center;
}

/* DOWNLOAD */
.download-box {
    background: linear-gradient(135deg, #1e1e24 0%, #131316 100%);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download {
    background: white;
    color: black;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    transition: 0.2s;
    text-align: left;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
}

.btn-download .icon {
    font-size: 2rem;
}

.btn-download .text {
    display: flex;
    flex-direction: column;
}

.btn-download .main {
    font-weight: 800;
    font-size: 1.2rem;
    display: block;
}

.btn-download .sub {
    font-size: 0.8rem;
    opacity: 0.7;
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* CHOICE SECTION (Updated to match reference) */
#download {
    background: #0a0a0c;
    padding: 120px 5%;
}

.platform-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.platform-container h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    font-weight: 800;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.platform-card {
    background: #161b22;
    border: 2px solid rgba(139, 92, 246, 0.1);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 480px;
}

.platform-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.platform-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.platform-card .icon-box {
    width: 80px;
    height: 80px;
    background: transparent;
    /* Made transparent as requested */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
}

.platform-card.web .icon-box {
    color: #3b82f6;
}

.platform-card.recommended .icon-box {
    color: white;
}

.platform-card h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.platform-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.platform-card .btn-choice {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
    width: fit-content;
    margin: 0 auto;
}

.btn-choice.disabled {
    background: #21262d;
    color: #8b949e;
    border: 1px solid #30363d;
    cursor: default;
}

.btn-choice.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-choice.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.recommended-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 850px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* WEB & TABLET SECTION */
#web-tablet {
    background: #0a0a0c;
    padding: 100px 5%;
}

.web-tablet-card {
    background: #131316;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.web-tablet-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.web-tablet-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.web-tablet-icon svg {
    width: 32px;
    height: 32px;
}

.web-tablet-card h2 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    font-weight: 800;
}

.web-tablet-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.availability-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-browser {
    display: block;
    background: #1e1e24;
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
    margin: 0 auto;
}

.btn-browser:hover {
    background: #25252d;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .web-tablet-card {
        padding: 40px 20px;
    }
}

@media (max-width: 1080px) {
    nav {
        width: 100%;
        left: 0;
        padding: 14px 20px;
    }

    .links a {
        margin-left: 16px;
    }

    #hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 40px;
        min-height: auto;
        gap: 24px;
    }

    .hero-content,
    .hero-visual {
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        max-width: 760px;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-img-container {
        transform: none;
        max-width: 880px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }

    .links {
        display: none;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-price-highlight {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .hero-price-highlight .highlight {
        font-size: 1.25rem;
        display: inline-block;
        margin-top: 6px;
    }

    .trial-pill {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 0 16px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-bottom: 24px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }

    .stats {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        padding-top: 14px;
    }

    .stats > div {
        flex: 1 1 30%;
    }

    section {
        padding: 72px 20px;
    }

    h2 {
        font-size: 1.85rem;
        margin-bottom: 30px;
    }

    .trial-subline {
        margin-top: 0;
        margin-bottom: 18px;
        font-size: 0.95rem;
        padding: 0 4px;
    }

    .pricing-trial-banner {
        display: block;
        width: 100%;
        margin-top: 0;
        margin-bottom: 8px;
        font-size: 0.84rem;
        padding: 10px 12px;
        line-height: 1.35;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px;
    }

    .pricing-card {
        max-width: 100%;
        width: 100%;
    }

    .platform-card {
        min-height: auto;
        padding: 36px 20px;
    }

    .platform-container h2 {
        font-size: 2rem;
    }
}
