:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.5);
    --secondary: #2563eb;
    --secondary-glow: rgba(37, 99, 235, 0.4);
    
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Orbs */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary-glow);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--secondary-glow);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 50%;
    width: 40vw;
    height: 40vw;
    background: rgba(236, 72, 153, 0.3); /* Pink hint */
    transform: translateX(-50%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0 0 20px 20px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:not(.btn):hover {
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10rem 2rem 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(124, 58, 237, 0.3);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-title span {
    background: linear-gradient(to right, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Mockup */
.dashboard-mockup {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--glass-border);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.dashboard-mockup img {
    width: 100%;
    display: block;
    height: auto;
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}


/* Cinematic Features Layout */
.cinematic-features {
    display: flex;
    flex-direction: column;
    gap: 10rem;
    margin-top: 4rem;
    padding: 0 2rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    padding: 2rem 0;
}

.feature-text h3 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
}

.feature-media {
    flex: 1.2;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-row:hover .feature-media {
    transform: scale(1.03) translateY(-10px);
}

.feature-media img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .cinematic-features {
        gap: 6rem;
    }
    .feature-row, .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 3rem;
    }
    .feature-media {
        width: 100%;
        box-sizing: border-box;
    }
    .feature-text {
        padding: 0;
        text-align: center;
    }
    .feature-text h3 {
        font-size: 2.2rem;
    }
}

/* About Section */
.about-section {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 4rem;
    border-radius: 30px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-list .icon {
    font-size: 1.2rem;
}

.code-window {
    background: #0d0d0d;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.window-header {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-window pre {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-window code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: #a1a1aa;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-logo {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations & Transitions */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* 3D tilt effect on images */
.bento-item:hover .bento-img {
    transform: translateY(-10px) scale(1.02);
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large, .bento-full {
        grid-column: span 1;
        flex-direction: column;
    }

    .bento-reverse {
        flex-direction: column;
    }

    .bento-large .bento-content, .bento-full .bento-content {
        width: 100%;
        padding: 2.5rem 2.5rem 0 2.5rem;
    }
    
    .bento-large .bento-img-container, .bento-full .bento-img-container, .bento-reverse .bento-img-container {
        width: 100%;
        height: auto;
        min-height: 250px;
        margin-top: 2rem;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .bento-large .bento-img, .bento-full .bento-img, .bento-reverse .bento-img {
        object-position: top left;
    }

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

    .about-section {
        padding: 2rem;
    }
}

@media (max-width: 600px) {
    .nav-links a:not(.btn) {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    max-width: 800px;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-card {
    padding: 4rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #fff;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    text-transform: none;
    letter-spacing: normal;
}

/* ==========================================================================
   Features Page Styles
   ========================================================================== */

.features-page {
    max-width: 1200px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.features-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Sticky Sidebar */
.features-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 100px;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

#features-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#features-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

#features-nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

#features-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent-glow);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Content Area */
.features-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.feature-detail {
    scroll-margin-top: 120px;
}

.feature-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-detail h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #fff;
}

.feature-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* Glass Accordions */
.glass-accordion {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-accordion[open] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.glass-accordion summary {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glass-accordion summary::-webkit-details-marker {
    display: none;
}

.glass-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.glass-accordion[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.1rem;
    animation: fadeDown 0.3s ease forwards;
}

.accordion-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    color: #a5a5a5;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive features layout */
@media (max-width: 900px) {
    .features-layout {
        flex-direction: column;
    }
    
    .features-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        flex: none;
        padding: 1rem;
    }

    #features-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    #features-nav a {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    #features-nav a.active {
        border-left: none;
        border-bottom: 3px solid var(--accent-glow);
    }
}
