/* CarbIO Website Styles */

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --secondary: #6366F1;
    --background: #0A0F1C;
    --background-light: #111827;
    --surface: #1F2937;
    --surface-light: #374151;
    --text: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border: #374151;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

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

.btn-white {
    background: white;
    color: var(--background);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-cta {
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Screenshots */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.screenshots-container {
    position: relative;
    width: 500px;
    height: 580px;
}

.screenshot {
    position: absolute;
    width: 220px;
    max-width: 220px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
    background: var(--surface);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
}

.screenshot-left {
    top: 40px;
    left: 0;
    transform: rotate(-8deg) scale(0.9);
    z-index: 1;
}

.screenshot-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 3;
}

.screenshot-right {
    top: 40px;
    right: 0;
    transform: rotate(8deg) scale(0.9);
    z-index: 1;
}

.screenshots-container:hover .screenshot-left {
    transform: rotate(-12deg) scale(0.9) translateX(-10px);
}

.screenshots-container:hover .screenshot-right {
    transform: rotate(12deg) scale(0.9) translateX(10px);
}

.screenshots-container:hover .screenshot-center {
    transform: translateX(-50%) scale(1.02);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--background-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

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

/* How It Works */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 32px;
    color: var(--primary);
}

/* Perfect For Section */
.perfect-for {
    padding: 120px 0;
    background: var(--background-light);
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.use-case {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.use-case:hover {
    border-color: var(--primary);
}

.use-case-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.use-case h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.use-case p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--gradient);
    text-align: center;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--background-light);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h5 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
}

.legal-page h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.legal-page .last-updated {
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--primary);
}

.legal-content h3 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-secondary);
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary);
}

/* Support Page */
.support-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: 
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.support-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.support-hero p {
    font-size: 20px;
    color: var(--text-secondary);
}

.support-content {
    padding: 60px 0 120px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.support-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.support-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.support-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.support-card a:hover {
    text-decoration: underline;
}

.faq-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

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

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: '−';
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 2;
        margin-top: 40px;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .use-cases {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--background-light);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .screenshots-container {
        width: 340px;
        height: 450px;
    }
    
    .screenshot {
        width: 160px;
        max-width: 160px;
        border-radius: 24px;
    }
    
    .screenshot img {
        border-radius: 24px;
    }
    
    .screenshot-left {
        top: 30px;
        left: 0;
    }
    
    .screenshot-center {
        width: 180px;
        max-width: 180px;
    }
    
    .screenshot-right {
        top: 30px;
        right: 0;
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .legal-page h1 {
        font-size: 36px;
    }
}

