:root {
    --background: #1f2226; /* slightly lighter than #181b1f */
    --surface: #2a2d32; /* lifted one step toward neutral gray */
    --header: #262a30; /* header glass */
    --text: #f4f4f4; /* whiter text */
    --muted: #b0b2b7; /* lighter gray for body */
    --primary: #0a84ff; /* keep your blue */
    --accent: #30d158; /* keep your green */
}

body {
    margin: 0;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

a,
a:visited {
    color: inherit;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(
        125deg,
        #0a84ff55 0%,
        #1f2226 40%,
        #30d15855 100%
    );
    background-size: 200% 200%;
    animation: parallaxMove 18s ease-in-out infinite alternate;
}

@keyframes parallaxMove {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 80%;
    }
}

header {
    background: rgba(32, 35, 40, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    margin-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}
.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}
.nav a:hover {
    color: var(--primary);
    background: rgba(10, 132, 255, 0.1);
}
.nav a:active {
    transform: scale(0.96);
}
.hero {
    padding: 3.5rem 2rem 2.2rem 2rem;
    text-align: center;
    background: rgba(24, 24, 32, 0.32);
    margin-bottom: 1.1rem;
    border-radius: 1.2rem;
    box-shadow: 0 6px 40px #0006;
}
main {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 24px #0006;
    padding: 2rem 2rem 2.6rem 2rem;
}
h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 0.6em 0;
}
h2 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
h2:first-child {
    margin-top: 0;
}
.features-list {
    list-style: disc inside;
    line-height: 1.7;
    margin-top: 1.2rem;
}

.get-started {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    padding: 0.9rem 2.2rem;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 2.2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px #0154b966;
    cursor: pointer;
    transition: background 0.18s;
}
.get-started:hover {
    background: #176edd;
}
.screenshot {
    width: 100%;
    border-radius: 10px;
    margin-top: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
footer {
    margin: 6rem auto 0 auto;
    text-align: center;
    color: var(--muted);
    font-size: 0.98rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
th,
td {
    padding: 0.8rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
th {
    background: rgba(10, 132, 255, 0.15);
    color: var(--primary);
    font-weight: 600;
}
tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
td:has(+ td):not(:first-child) {
    font-size: 1.3rem;
}
table td:nth-child(2),
table td:nth-child(3) {
    color: var(--accent);
    font-weight: 600;
}
table td:nth-child(2):contains("✗"),
table td:nth-child(3):contains("✗") {
    color: #ff453a;
    opacity: 0.9;
}

/* Feature Showcase */
.feature-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.feature-item {
    background: rgba(20, 22, 28, 0.39);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.2);
}
.feature-item h3 {
    color: var(--primary);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}
.feature-item p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 1rem 0 0 0;
}
.feature img,
.highlights img {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.feature img:hover,
.highlights img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.feature-item img {
    margin-bottom: 0.5rem;
}

/* Pricing Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.card {
    background: rgba(20, 22, 28, 0.39);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.card h3 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}
.card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0.5rem 0 1rem 0;
}
.card ul {
    list-style: disc inside;
    line-height: 1.7;
    color: var(--text);
}

@media (max-width: 600px) {
    main {
        padding: 0.5rem;
    }
    .hero {
        padding: 1.8rem 0.7rem;
    }
}

/* --- Mobile nav toggle (hidden on desktop) --- */
.hamburger {
    margin-left: auto; /* pushes button to the right */
    display: none; /* shown in media query */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--text);
    border-radius: 10px;
    cursor: pointer;
}
.hamburger:hover {
    background: rgba(255, 255, 255, 0.06);
}
.hamburger:active {
    transform: scale(0.96);
}

/* --- Mobile menu styles --- */
@media (max-width: 900px) {
    /* Show the toggle, hide desktop layout */
    .hamburger {
        display: inline-flex;
    }

    /* Convert the nav into an overlayed panel */
    .nav {
        position: fixed;
        top: calc(64px + env(safe-area-inset-top, 0));
        right: 1rem;
        left: 1rem;
        background: var(--surface);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        box-shadow: 0 12px 40px #0009;
        padding: 0.4rem;
        display: none; /* hidden until open */
        flex-direction: column;
        gap: 0.25rem;
        z-index: 999;
    }

    /* When header has .menu-open (toggled by JS), show the panel */
    header.menu-open .nav {
        display: flex;
        animation: menuFade 140ms ease-out;
    }

    /* Make touch targets comfy */
    .nav a {
        padding: 0.95rem 1rem;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    /* Keep header layout tidy on mobile */
    header {
        gap: 0.5rem;
    }
}

/* Simple fade for the panel */
@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Fullscreen Image Overlay (Animated) ---------- */
#imageOverlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

#imageOverlay.show {
    opacity: 1;
    pointer-events: auto;
}

#imageOverlay img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
    opacity: 0;
    transform: scale(0.92);
    animation: zoomIn 0.3s ease forwards;
}

/* When hiding (optional small shrink fade) */
#imageOverlay:not(.show) img {
    opacity: 0;
    transform: scale(0.9);
}

/* Fade + zoom keyframes */
@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-text {
    font-family: "Orbitron", "Rajdhani", "Exo 2", monospace;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    color: var(--primary);
    text-transform: uppercase;
    position: relative;
    background: linear-gradient(90deg, #0a84ff, #30d158);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.logo-text::after {
    content: "_";
    color: var(--accent);
    animation: blink 1.2s step-start infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ================================
   Desktop nav polish (>=901px)
   ================================ */
@media (min-width: 901px) {
    /* Space things out a touch */
    .nav {
        gap: 0.25rem;
    }

    /* Pill buttons with subtle border + hover */
    .nav a {
        padding: 0.55rem 1rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(0, 0, 0, 0.04)
        );
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
        transition:
            background 160ms ease,
            color 160ms ease,
            border-color 160ms ease,
            transform 80ms ease;
    }

    .nav a:hover {
        color: var(--text); /* keeps text bright on hover */
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .nav a:active {
        transform: translateY(1px) scale(0.99);
    }

    /* Focus-visible for keyboard users */
    .nav a:focus-visible {
        outline: 2px solid color-mix(in oklab, var(--primary) 70%, white);
        outline-offset: 2px;
    }

    /* Animated underline from center */
    .nav a {
        position: relative;
        overflow: hidden;
    }
    .nav a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 6px;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
        transform: translateX(-50%);
        transition: width 180ms ease;
    }
    .nav a:hover::after,
    .nav a[aria-current="page"]::after,
    .nav a.is-active::after {
        width: 60%;
    }

    /* Active state color lift */
    .nav a[aria-current="page"],
    .nav a.is-active {
        color: var(--primary);
        border-color: rgba(10, 132, 255, 0.28);
        background: linear-gradient(
            180deg,
            rgba(10, 132, 255, 0.12),
            rgba(10, 132, 255, 0.06)
        );
    }

    /* Optional: make one link a CTA (e.g., Download) */
    .nav a.cta {
        color: #fff;
        font-weight: 700;
        letter-spacing: 0.02em;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-color: transparent;
        box-shadow:
            0 8px 26px rgba(10, 132, 255, 0.22),
            0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    }
    .nav a.cta:hover {
        filter: brightness(1.06);
    }
    .nav a.cta::after {
        width: 0;
    } /* no underline on pill CTA */
}
/* ================================
   Sliding highlight bar ("ink")
   ================================ */
@media (min-width: 901px) {
    .nav {
        position: relative;
    }

    /* The highlight bar */
    .nav__ink {
        position: absolute;
        bottom: 5px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 3px;
        transition:
            transform 0.25s ease,
            width 0.25s ease,
            opacity 0.25s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 0;
    }

    /* Ensure links are above the ink */
    .nav a {
        position: relative;
        z-index: 1;
    }
}

/* ================================
   Polished desktop nav (v2)
   ================================ */
@media (min-width: 901px) {
    .nav {
        position: relative;
        gap: 0.6rem;
    }

    /* Base link styling */
    .nav a {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 1.05rem;
        letter-spacing: 0.02em;
        color: var(--text);
        text-decoration: none;
        padding: 0.8rem 1.4rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(4px);
        transition:
            color 0.2s ease,
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.1s ease;
    }

    .nav a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

    .nav a:active {
        transform: scale(0.97);
    }

    /* Active/current page */
    .nav a.is-active,
    .nav a[aria-current="page"] {
        background: linear-gradient(
            180deg,
            rgba(10, 132, 255, 0.18),
            rgba(48, 209, 88, 0.15)
        );
        border-color: rgba(10, 132, 255, 0.3);
        color: var(--primary);
        box-shadow: inset 0 0 10px rgba(10, 132, 255, 0.25);
        font-weight: 700;
    }

    /* Animated underline — hover only, not on active */
    .nav__ink {
        position: absolute;
        bottom: 6px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 3px;
        transition:
            transform 0.25s ease,
            width 0.25s ease,
            opacity 0.25s ease;
        opacity: 0;
        pointer-events: none;
        z-index: 0;
    }

    /* CTA still distinct */
    .nav a.cta {
        font-weight: 700;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        color: #fff;
        border: none;
        box-shadow: 0 6px 20px rgba(10, 132, 255, 0.3);
    }
    .nav a.cta:hover {
        filter: brightness(1.08);
        transform: translateY(-2px);
    }
}
/* Disable legacy per-link underline; we only use .nav__ink now */
@media (min-width: 901px) {
    .nav a::after {
        content: none !important;
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}
section {
    padding: 2rem 2rem 2.6rem;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 4px 24px #0006;
    margin-bottom: 2.5rem;
}

section + section {
    margin-top: 2rem;
}
main,
section {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
p,
li,
.muted,
.features-list {
    color: #d8dadf;
}
a:hover,
.nav a:hover {
    color: #4dc2ff;
}
.light-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* Glassy backplate + bright text */
/* Refined section headings */
h2,
.section-title {
    display: block;
    font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 1rem 0;
    color: #eaf4ff;
    text-shadow: 0 4px 18px rgba(10, 132, 255, 0.25);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* soft gradient accent line (longer and lighter) */
h2::after,
.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    margin-top: 0.5rem;
    border-radius: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.5;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #e9f2ff; /* brighter than var(--primary) */
    text-shadow: 0 4px 18px rgba(10, 132, 255, 0.18);
    margin: 0 0 0.75rem 0;
}
