:root {
    --primary-color: #ff0000;
    --primary-hover: #cc0000;
    --secondary-color: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --border-color: #e2e8f0;
    --btn-bg: #ff0000;
    --font-family: 'Outfit', sans-serif;
    --max-width: 1200px;
    --container-padding: 0 2rem;
    --card-bg: #ffffff;
    --footer-bg: #fff1f2;
}

[data-theme="dark"] {
    --primary-color: #ff0000;
    --primary-hover: #cc0000;
    --secondary-color: #1e1e1e;
    --text-main: #f5f5f5;
    --text-muted: #a1a1aa;
    --bg-main: #111111;
    --bg-nav: rgba(17, 17, 17, 0.8);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --border-color: #2d2d2d;
    --card-bg: #1e1e1e;
    --footer-bg: #0d0d0d;
    --btn-bg: #ff0000;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-menu, .nav-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a, .nav-right a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover, .nav-right a:hover {
    color: var(--primary-color);
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-bg);
    color: #fff !important;
    padding: 0 1.25rem;
    height: 34px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.theme-toggle {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

header {
    padding-top: 10rem;
    padding-bottom: 6rem;
    background: radial-gradient(circle at top right, rgba(255, 0, 0, 0.05) 0%, transparent 60%);
}

.hero {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    color: var(--primary-color);
}

header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 48px;
    background: var(--btn-bg);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: 48px;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--text-main);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    z-index: 10;
    background: var(--card-bg);
    transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s ease, background-color 0.3s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.blob-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0.1;
    z-index: 1;
}

section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

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

.feature-card {
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

.screenshot-carousel {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    padding: 2rem 1.5rem;
    margin: 0 -1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshot-carousel::after {
    content: "";
    min-width: 1.5rem;
    height: 100%;
}

.screenshot-carousel img {
    height: 600px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.screenshot-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-carousel img:hover {
    transform: scale(1.02);
}

footer {
    background: var(--footer-bg);
    padding: 6rem 0 3rem 0;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    header p {
        margin: 0 auto 2.5rem auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
        max-width: 300px;
    }
}