:root {
    /* Color Palette */
    --primary: #FF7A00;
    --primary-hover: #E06B00;
    --primary-light: rgba(255, 122, 0, 0.1);
    
    --bg-dark: #0F1016;
    --bg-card: #1A1C23;
    --bg-card-hover: #22252E;
    
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-main: 'Nunito', sans-serif;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.text-gradient {
    background: linear-gradient(135deg, #FF7A00, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #FFF;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 16, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.logo ion-icon {
    color: var(--primary);
    font-size: 28px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

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

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

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

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

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 122, 0, 0.2);
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

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

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), rgba(255, 179, 71, 0.1));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
    z-index: -1;
    filter: blur(20px);
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.mockup {
    max-height: 600px;
    object-fit: contain;
    border-radius: 32px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    border: 8px solid var(--bg-card);
}

.slide-up {
    animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections Common */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

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

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 0, 0.3);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Architecture */
.architecture {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.arch-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.arch-card {
    flex: 1;
    min-width: 250px;
    background: var(--bg-dark);
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.arch-card:hover {
    border-color: var(--primary);
}

.arch-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

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

.arch-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.arch-connector {
    color: var(--border-color);
    font-size: 32px;
    display: flex;
    align-items: center;
}

.docs-links {
    margin-top: 60px;
    text-align: center;
}

/* Screenshots Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    gap: 32px;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.carousel-img {
    height: 400px;
    object-fit: contain;
    border-radius: 24px;
    border: 4px solid var(--bg-card);
    box-shadow: 0 16px 32px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

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

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 16px)); }
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background-color: var(--bg-card);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
}

.footer-logo ion-icon {
    color: var(--primary);
}

.footer-content p {
    color: var(--text-muted);
    text-align: center;
}

.social-links a {
    color: var(--text-muted);
    font-size: 24px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
}

/* Article & Documentation Styles */
.article-hero {
    padding: 120px 0 60px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255, 122, 0, 0.08) 0%, transparent 60%);
}

.article-hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FF7A00, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.article-content {
    margin-bottom: 100px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.2);
}

.article-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.article-card h2:first-child {
    margin-top: 0;
}

.article-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.article-card p {
    margin-bottom: 20px;
    color: #D1D5DB;
    line-height: 1.8;
}

.article-card ul, .article-card ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #D1D5DB;
}

.article-card li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-card strong {
    color: var(--text-main);
    font-weight: 700;
}

.article-card pre {
    background-color: var(--bg-dark);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.article-card code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #FFB347;
}

.article-card pre code {
    color: #E5E7EB;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .arch-content {
        flex-direction: column;
    }
    
    .arch-connector {
        transform: rotate(90deg);
    }
}
