:root {
    --background-color: #0f0f12;
    --surface-color: #1a1a1f;
    --primary-color-start: #a55eea;
    --primary-color-end: #8e44ad;
    --text-color: #f5f5f7;
    --text-secondary: #a1a1a6;
    --card-border: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(165, 94, 234, 0.15);
    --glow-shadow: 0 0 25px rgba(165, 94, 234, 0.3);
}

/* Base Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation (MOBILE-FIRST STYLES) */
header {
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

nav .container {
    display: flex;
    flex-direction: column; /* Stack vertically on small screens */
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Version Tag Style */
.version-tag {
    background: var(--surface-color);
    color: var(--primary-color-start);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--primary-color-start);
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color-start);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    background: linear-gradient(45deg, var(--primary-color-start), var(--primary-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 160px 20px 40px; 
    text-align: center;
    background: radial-gradient(ellipse at 50% -20%, rgba(165, 94, 234, 0.15), var(--background-color) 70%);
}

.hero h1 {
    font-size: 2.5rem; 
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(45deg, #ffffff, #d1d1d6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1rem; 
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 25px;
}

.hero .sub-hook {
    font-size: 0.9rem; 
    font-style: italic;
    color: var(--primary-color-start);
    max-width: 550px;
    margin-bottom: 35px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--text-color);
    padding: 12px 25px; 
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* Sections & Titles */
.section {
    padding: 80px 0; 
}

.section-title {
    text-align: center;
    font-size: 2rem; 
    margin-bottom: 40px; 
    font-weight: 700;
}

/* Dashboard CTA Section */
.dashboard-section {
    background: var(--background-color);
    border-top: 1px solid var(--card-border);
    padding: 80px 0;
}

.dashboard-section .section-title {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.dashboard-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Feature Grid and Showcase Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Showcase Grid */
#showcase {
    background-color: var(--background-color);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px;
    align-items: start;
}

.showcase-item {
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 15px;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease-in-out;
    transform-style: preserve-3d;
}

.showcase-item:hover {
    box-shadow: var(--glow-shadow);
}

.img-wrapper {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
    transform: translateZ(20px);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.showcase-item h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    transform: translateZ(50px);
}

/* Footer Styles (Mobile) */
footer {
    padding: 30px 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column; /* Stack footer elements vertically on mobile */
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-btn {
    background-color: var(--surface-color);
    border: 1px solid var(--primary-color-start);
    color: var(--primary-color-start);
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
    width: 100%; 
    max-width: 200px;
}

.contact-btn:hover {
    background-color: var(--primary-color-start);
    color: var(--text-color);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.reveal:nth-child(1) { transition-delay: 0.1s; }
.feature-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.3s; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.4s; }
.feature-card.reveal:nth-child(5) { transition-delay: 0.5s; }
.feature-card.reveal:nth-child(6) { transition-delay: 0.6s; }
.showcase-item.reveal:nth-child(1) { transition-delay: 0.1s; }
.showcase-item.reveal:nth-child(2) { transition-delay: 0.2s; }
.showcase-item.reveal:nth-child(3) { transition-delay: 0.3s; }
.showcase-item.reveal:nth-child(4) { transition-delay: 0.4s; }


/* DESKTOP OVERRIDES (Applies to screens 768px and wider) */
@media (min-width: 768px) {
    
    /* Header/Nav Fix: Revert to Horizontal Layout */
    header {
        padding: 20px 0;
    }
    nav .container {
        flex-direction: row; /* Go back to row layout */
        justify-content: space-between;
        gap: 0;
    }
    .logo {
        font-size: 1.8rem;
    }
    .nav-links {
        flex-wrap: nowrap;
        gap: 30px;
    }
    .nav-links a:not(.btn) {
        font-size: 1rem;
    }
    .btn {
        padding: 15px 35px;
        font-size: 1.05rem;
    }
    
    /* Layout Adjustments */
    .hero {
        padding: 120px 20px 40px;
    }
    .hero h1 {
        font-size: 3.8rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .section {
        padding: 100px 0;
    }
    .section-title {
        font-size: 2.8rem;
        margin-bottom: 60px;
    }

    /* Footer Adjustments */
    .footer-content {
        flex-direction: row;
        gap: 20px;
    }
    .contact-btn {
        width: auto;
        max-width: none;
    }
}