:root {
    --bg-primary: #050505;
    --bg-secondary: #0f1115;
    --bg-tertiary: #1a1d24;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --border-color: #2e3545;
    --card-bg: rgba(30, 35, 45, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shine: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.6);
}

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

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

/* Layout */
header {
    padding: 24px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Rebranding */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.brand-by {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

.version-tag {
    font-size: 1.5rem;
    font-weight: 400;
    color: #444;
    /* Darker grey as per image */
    margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
}

/* Nav Link Hover Effect */
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: -1;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 4rem;
}

.install-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--bg-secondary);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

.code-block {
    background: #111;
    padding: 12px 20px;
    max-width: 530px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.copy-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Image/Carousel */
.hero-visual {
    position: relative;
    margin-top: 2rem;
    perspective: 1000px;
}

.app-screenshot {
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}

.app-screenshot:hover {
    transform: rotateX(0deg) scale(1.02);
}

.storage-image {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    background: rgba(30, 35, 45, 0.6);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }
}

/* Carousel 3D */
.carousel-container {
    perspective: 1000px;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    background: #111;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    overflow: hidden;
    transform-origin: center center;
}

.carousel-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.carousel-card .card-content {
    background: var(--bg-tertiary);
}

.carousel-card .card-header {
    padding: 12px 16px;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.card-title {
    margin-left: 12px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-family: 'JetBrains Mono', monospace;
}

/* State Classes */
.carousel-card.active {
    z-index: 10;
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: brightness(100%);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

.carousel-card.next {
    z-index: 5;
    transform: translateX(50%) scale(0.85) perspective(1000px) rotateY(-5deg);
    opacity: 0.6;
    filter: brightness(60%) blur(1px);
    pointer-events: auto;
    /* Allow clicking to bring to front */
}

/* Custom class for when the first item is moved to left */
.carousel-card.prev {
    z-index: 5;
    transform: translateX(-50%) scale(0.85) perspective(1000px) rotateY(5deg);
    opacity: 0.6;
    filter: brightness(60%) blur(1px);
    pointer-events: auto;
}

.carousel-card:hover {
    filter: brightness(80%);
}

.carousel-card.active:hover {
    filter: brightness(100%);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }

    .carousel-card {
        padding-top: 20px;
        /* Adjust for mobile if needed */
    }

    .carousel-card.next,
    .carousel-card.prev {
        transform: translateX(20%) scale(0.9);
        opacity: 0.5;
    }

    .carousel-card.prev {
        transform: translateX(-20%) scale(0.9);
    }
}


/* Mobile Navigation & Visibility */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline-flex !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        width: auto;
        height: 0;
        overflow: hidden;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        height: auto;
        min-height: calc(100vh - 73px);
        padding: 40px 32px;
    }

    .nav-links a {
        font-size: 1.25rem;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for links */
    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.25s;
    }
}