/* ===================================
   MODERN CSS VARIABLES & RESET
   =================================== */

:root {
    /* Color Palette - Green/Eco Theme */
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --primary-lighter: #D1FAE5;
    
    --secondary: #3B82F6;
    --secondary-dark: #2563EB;
    
    --accent: #8B5CF6;
    --accent-light: #A78BFA;
    
    --dark: #0F172A;
    --dark-light: #1E293B;
    --dark-lighter: #334155;
    
    --light: #F8FAFC;
    --light-dark: #E2E8F0;
    
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    --gradient-hero: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #8B5CF6 100%);
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   NAVIGATION BAR
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav-download {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.btn-nav-download::after {
    display: none;
}

.btn-nav-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(135deg, #F0FDF4 0%, #DBEAFE 50%, #EDE9FE 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    right: 20%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

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

.hero-content {
    animation: fadeInUp 1s ease;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.badge i {
    animation: sparkle 2s ease infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--dark);
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

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

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

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

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

.hero-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phone-mockup {
    position: relative;
    max-width: 400px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.app-screenshot {
    width: 100%;
    border-radius: 30px;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-xl);
    animation: floatSlow 6s ease-in-out infinite;
}

.element-1 {
    color: var(--primary);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.element-2 {
    color: var(--secondary);
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

.element-3 {
    color: var(--accent);
    top: 30%;
    right: -10%;
    animation-delay: 4s;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===================================
   FEATURES SECTION
   =================================== */

.features {
    padding: var(--section-padding) 0;
    background: white;
}

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

.section-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

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

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

.feature-card {
    padding: 40px;
    background: white;
    border-radius: var(--radius-xl);
    border: 2px solid var(--light-dark);
    transition: all var(--transition-base);
    cursor: pointer;
}

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

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

.feature-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   TECH STACK SECTION
   =================================== */

.tech-stack {
    padding: var(--section-padding) 0;
    background: var(--light);
}

.tech-categories {
    display: grid;
    gap: 32px;
    margin-bottom: 60px;
}

.tech-category {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.tech-category-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-category-title i {
    font-size: 28px;
    color: var(--primary);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item img {
    height: 28px;
    transition: transform var(--transition-fast);
}

.tech-item img:hover {
    transform: scale(1.1);
}

.architecture-diagram {
    background: white;
    padding: 50px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.diagram-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
}

.diagram-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.arch-layer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.arch-box {
    padding: 30px 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arch-box i {
    font-size: 32px;
    margin-bottom: 8px;
}

.arch-box span {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
}

.arch-box small {
    font-size: 13px;
    opacity: 0.8;
}

.arch-box.presentation {
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    color: white;
}

.arch-box.domain {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: white;
}

.arch-box.data {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
}

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

/* ===================================
   SCREENSHOTS SECTION
   =================================== */

.screenshots {
    padding: var(--section-padding) 0;
    background: white;
}

.screenshot-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.screenshot-main {
    position: relative;
}

.main-screenshot {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
}

.screenshot-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.screenshot-feature {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.screenshot-feature:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.screenshot-feature i {
    font-size: 28px;
    color: var(--primary);
    min-width: 28px;
}

.screenshot-feature h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

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

/* ===================================
   DOWNLOAD SECTION
   =================================== */

.download {
    padding: var(--section-padding) 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.download-card {
    background: var(--dark-light);
    border-radius: var(--radius-xl);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.download-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.download-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-xl);
}

.download-title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.download-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
}

.info-item i {
    color: var(--primary);
}

.btn-download {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 48px;
    font-size: 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(16, 185, 129, 0.5);
}

.btn-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

.download-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 550px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-light);
    text-align: left;
}

.download-note i {
    color: var(--primary);
    font-size: 16px;
    min-width: 16px;
    margin-top: 2px;
}

.download-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.download-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    right: 0;
    top: 0;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    right: 100px;
    top: 100px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    right: 50px;
    top: -50px;
}

.download-phone-icon {
    font-size: 200px;
    color: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.installation-steps {
    margin-top: 80px;
}

.steps-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

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

.step-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    border: 2px solid var(--dark-lighter);
    transition: all var(--transition-base);
}

.step-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-item h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--dark-light);
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 14px;
    transition: color var(--transition-fast);
}

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

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

.footer-bottom i {
    color: var(--primary);
}

.footer-badges {
    display: flex;
    gap: 8px;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

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

.scroll-top:hover {
    transform: translateY(-5px);
}

/* ===================================
   ANIMATIONS
   =================================== */

[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-showcase {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 40px 24px;
    }
    
    .download-title {
        font-size: 32px;
    }
    
    .download-info {
        flex-direction: column;
        gap: 12px;
    }
}
