/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #6a4cff;
    --primary-dark: #5538dd;
    --primary-light: #8066ff;
    --secondary: #c8b6ff;
    --accent: #ff6b9d;
    --background: #f8f7ff;
    --surface: #ffffff;
    --text-dark: #2d1f4a;
    --text-medium: #5f4b8b;
    --text-light: #8b7db8;
    --text-white: #ffffff;
    --border: #e8e4f5;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(106, 76, 255, 0.08);
    --shadow-md: 0 4px 16px rgba(106, 76, 255, 0.12);
    --shadow-lg: 0 8px 32px rgba(106, 76, 255, 0.16);
    --shadow-xl: 0 12px 48px rgba(106, 76, 255, 0.20);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: var(--text-white);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    line-height: 1.7;
    color: var(--text-medium);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-white), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(106, 76, 255, 0.08);
    transition: var(--transition-base);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.brand:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.brand-logo {
    height: 40px;
    width: auto;
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-medium);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:not(.cta-button):hover::after {
    width: 100%;
}

.nav-link.cta-button {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border-radius: 50px;
    transition: var(--transition-fast);
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 76, 255, 0.9), rgba(200, 182, 255, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--surface);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ==================== FEATURES OVERVIEW ==================== */
.features-overview {
    background: var(--surface);
    padding: 4rem 0;
}

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

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    color: var(--text-white);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-medium);
}

/* ==================== PRODUCTS SECTION ==================== */
.products {
    background: linear-gradient(180deg, var(--background), var(--surface));
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.product-badge.coming-soon {
    background: var(--accent);
}

.product-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-description {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

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

.product-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: auto;
    transition: var(--transition-fast);
}

.product-link:hover {
    gap: 0.75rem;
}

.product-link svg {
    width: 18px;
    height: 18px;
}

.product-link.disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* ==================== TECH STACK ==================== */
.tech-stack {
    background: var(--surface);
    overflow: hidden;
}

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

.tech-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.tech-text h2 {
    margin-bottom: 1.5rem;
}

.tech-text > p {
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.tech-list li:hover {
    background: var(--background);
    transform: translateX(8px);
}

.tech-list svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: linear-gradient(180deg, var(--background), var(--surface));
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.about-mission {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.about-mission h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-values {
    display: grid;
    gap: 1.5rem;
}

.value-item {
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.value-item p {
    font-size: 0.9375rem;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 76, 255, 0.95), rgba(255, 107, 157, 0.85));
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-white);
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--surface);
}

.contact-content {
    margin-top: 3rem;
}

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

.contact-card {
    background: var(--background);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    color: var(--text-white);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-link {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0.5rem 0;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.contact-card p {
    font-size: 0.9375rem;
    color: var(--text-medium);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a0f35);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-links {
    display: contents;
}

.footer-column {
    min-width: 0;
}

.footer-column h4 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-column a:hover {
    color: var(--text-white);
    transform: translateX(8px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

/* ==================== SCROLL TO TOP ==================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .tech-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .hero-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 100%;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
