/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --border-color: #475569;
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-hero: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #ec4899 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 20px rgba(16, 185, 129, 0.3);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

* {
    position: relative;
    z-index: 1;
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 600px 800px at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: bg-shift 25s ease-in-out infinite;
}

@keyframes bg-shift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

img:not(.feature-image img) {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.logo:hover {
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.5));
}

.nav {
    display: none;
    gap: 2rem;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem;
    flex-direction: column;
}

.nav.active {
    display: flex;
}

@media (min-width: 768px) {
    .nav {
        position: static;
        display: flex;
        flex-direction: row;
        padding: 0;
        background: transparent;
        border: none;
    }
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent-green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.github-link {
    color: var(--text-secondary);
    padding: 0.5rem;
}

.github-link:hover {
    color: var(--accent-green);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero-main {
    font-size: 3rem;
    background: var(--gradient-hero);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 5s ease infinite;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (min-width: 768px) {
    .hero-main {
        font-size: 4rem;
    }
}

/* Products Section */
.products-section {
    background: var(--bg-secondary);
    padding: 6rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card.featured {
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--bg-tertiary));
}

.product-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-orange);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-header {
    margin-bottom: 2rem;
}

.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-green {
    color: var(--accent-green);
}

.highlight-orange {
    color: var(--accent-orange);
}

.highlight-blue {
    color: var(--accent-blue);
}

.product-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-features svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-green);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-product {
    width: 100%;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 2.5rem;
    }
}

/* Features Section */
.features-section {
    background: var(--bg-secondary);
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

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

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse > * {
    direction: ltr;
}

@media (min-width: 968px) {
    .feature-item {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 967px) {
    .feature-item.reverse {
        direction: ltr;
    }
}

.feature-image {
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.feature-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
}

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

@media (min-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    order: 1;
}

@media (min-width: 968px) {
    .hero-text {
        order: 2;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-image {
    order: 2;
}

@media (min-width: 968px) {
    .hero-image {
        order: 1;
    }
}

.hero-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
}

/* News Section */
.news-section {
    background: var(--bg-primary);
}

.news-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.news-card {
    display: none;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    align-items: center;
}

.news-card.active {
    display: grid;
}

@media (min-width: 768px) {
    .news-card {
        grid-template-columns: 1fr 1.5fr;
        padding: 3rem;
    }
}

.news-image {
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.news-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    font-weight: 600;
}

.news-link:hover {
    gap: 1rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.carousel-dots {
    display: flex;
    gap: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-green);
    width: 30px;
    border-radius: 6px;
}

/* Press Section */
.press-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.press-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .press-logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

.press-logo {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.press-logo:hover {
    opacity: 1;
}

.press-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item[aria-expanded="true"] {
    border-color: var(--accent-green);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent-green);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-img {
    width: 120px;
    height: auto;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.footer-downloads {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-policy {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-policy:hover {
    color: var(--accent-green);
}

.footer-logo-small {
    width: 80px;
}

.footer-logo-small img {
    width: 100%;
    opacity: 0.6;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

