:root {
    --bg: #050505;
    --text: #ffffff;
    --accent: #9B5BFF;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

/* Custom Cursor */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    font-size: 32px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease-out; /* Smooth lag */
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
}

.logo img {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.links a {
    color: var(--text);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    position: relative;
    cursor: none; /* Ensure custom cursor is used */
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
    animation: floatingHero 6s ease-in-out infinite;
}

.hero-visual img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); 
    cursor: pointer;
}

.hero-visual img:hover {
    transform: scale(1.05) rotateY(-10deg) rotateX(10deg);
    box-shadow: 0 50px 100px rgba(155, 91, 255, 0.25);
}

@keyframes floatingHero {
    0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-2deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(2deg); }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        align-items: center;
    }
    .subtitle-container {
        justify-content: center;
    }
    .hero-visual {
        width: 100%;
    }
}

h1 {
    font-size: 6rem;
    line-height: 0.9;
    margin: 0;
    letter-spacing: -3px;
    mix-blend-mode: difference;
}

.subtitle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap; /* Handle mobile gracefully */
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.7;
    margin: 0;
    max-width: fit-content;
}

.badge {
    background: rgba(155, 91, 255, 0.1);
    color: #9B5BFF;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(155, 91, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 20px rgba(155, 91, 255, 0.1);
    transition: 0.3s ease;
    cursor: default;
}

.badge:hover {
    box-shadow: 0 0 25px rgba(155, 91, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(155, 91, 255, 0.4);
}

.cta-container {
    margin-top: 3rem;
}

.download-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.download-btn:hover {
    transform: scale(1.1) rotate(-2deg);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 6rem;
    padding-bottom: 4rem;
}

.feature-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-12px) scale(1.03) rotate(1deg);
    border-color: rgba(155, 91, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.feature-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy spring effect */
    background: rgba(255,255,255,0.03);
    cursor: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    /* Create a gradient overlay context */
    position: relative;
    background: #000;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    color: var(--text);
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #888;
    line-height: 1.5;
}

/* FAQ Section */
.faq {
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.faq h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    letter-spacing: -2px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: 0.3s ease;
}

.faq-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-5px);
    border-color: rgba(155, 91, 255, 0.3);
}

.faq-item h3 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.faq-item p {
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* Install Notice Section */
.install-notice {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.notice-text {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.info-icon {
    opacity: 0.5;
    cursor: help;
}

.command-box {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-family: 'SF Mono', 'Monaco', monospace;
    gap: 1rem;
}

.command-box code {
    color: #9B5BFF;
    font-size: 0.9rem;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: 0.2s ease;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.4;
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Wobbly text effect handled by JS usually, but here simple CSS */
.wobbly-text:hover {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
