@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --primary: #2D5A27;
    --primary-container: #D5E8D0;
    --on-primary: #FFFFFF;
    --secondary: #55624C;
    --tertiary: #984900; /* Darker amber from app theme */
    --tertiary-container: #FFDDB1;
    --background: #FFFBF0;
    --surface: #FFFFFF;
    --surface-variant: #E1E4D5;
    --on-background: #1B1C17;
    --on-surface-variant: #44483D;
    --on-surface: #1B1C17;
    --emerald-gradient: linear-gradient(135deg, #2D5A27 0%, #1B3518 100%);
    --glass-bg: rgba(255, 255, 240, 0.95); /* More opaque cream for clarity */
    --glass-border: rgba(45, 90, 39, 0.1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px rgba(45, 90, 39, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    scroll-margin-top: 100px; /* Global fix for sticky header overlap */
}

body {
    background-color: var(--background);
    color: var(--on-background);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.scrolled {
    height: 70px;
    background: rgba(255, 251, 240, 0.95);
    box-shadow: var(--shadow-soft);
}

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

.logo img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
    z-index: 1001;
}

.nav-links a {
    text-decoration: none;
    color: #1B1C17 !important;
    font-weight: 800;
    font-size: 15px;
    transition: 0.3s;
    position: relative;
    opacity: 1 !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.btn-download {
    background: var(--emerald-gradient);
    color: white;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 8px 15px rgba(45, 90, 39, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(45, 90, 39, 0.3);
}

/* HAMBURGER MENU BUTTON */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.menu-btn span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: 0.3s;
}

/* MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--background);
    z-index: 3000;
    padding: 40px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.close-btn {
    font-size: 24px;
    color: var(--on-surface-variant);
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.drawer-links a {
    text-decoration: none;
    color: var(--on-background);
    font-size: 20px;
    font-weight: 800;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left:0;
    width:100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 8% 80px;
    background: radial-gradient(circle at 80% 20%, rgba(45, 90, 39, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(152, 73, 0, 0.03) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1.2;
}

.hero-tagline {
    color: var(--tertiary);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 25px;
    color: #000;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    color: var(--on-surface-variant);
    margin-bottom: 45px;
    max-width: 550px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    transition: 0.5s;
}

/* STATS BAR */
.stats-bar {
    background: white;
    padding: 50px 8%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-radius: 40px;
    margin: -40px 8% 0;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.stat-value {
    display: block;
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SECTION HEADERS */
section {
    padding: 100px 8%;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header span {
    color: var(--tertiary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 900;
    margin-top: 10px;
}

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

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-container);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--primary);
}

/* SOCIAL CARDS */
.social-card {
    background: white;
    padding: 30px;
    border-radius: 25px;
    text-decoration: none;
    color: var(--on-background);
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 170px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* DOWNLOAD HUB */
.download-app {
    background: var(--emerald-gradient);
    color: white;
    border-radius: 60px;
    margin: 0 5% 100px;
    padding: 100px 5%;
    text-align: center;
}

.download-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.download-card.featured {
    background: white;
    color: #000;
    padding: 50px;
    border-radius: 40px;
    flex: 1.2;
    min-width: 320px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #FFD700;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.card-icon {
    font-size: 60px;
    color: #3DDC84; /* Android Green */
    margin-bottom: 25px;
}

.download-card h3 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 5px;
}

.download-card p {
    color: var(--on-surface-variant);
    font-size: 14px;
    margin-bottom: 20px;
}

.security-labels {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.security-labels span {
    font-size: 12px;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.primary-btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

/* STORE ITEMS */
.download-stores {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

.store-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
}

.store-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(10px);
}

.store-item i {
    font-size: 32px;
}

.store-text span {
    display: block;
    font-size: 12px;
    opacity: 0.7;
}

.store-text strong {
    font-size: 20px;
    display: block;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* MEDIA QUERIES */

/* For Tablet & Large Phones */
@media (max-width: 992px) {
    nav { padding: 0 5%; }
    .nav-links, .desktop-btn { display: none; }
    .menu-btn { display: flex; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 150px; height: auto; }
    .hero h1 { font-size: 54px; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero-image { margin-top: 50px; }
    
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin: 0 5%; border-radius: 30px; }
}

/* For Phones */
@media (max-width: 580px) {
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 16px; }
    .stats-bar { grid-template-columns: 1fr; margin: 0 5%; gap: 20px; }
    .stat-value { font-size: 32px; }
    
    .section-header h2 { font-size: 30px; }
    section { padding: 60px 5%; }
    
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 30px; }
    
    .social-card { width: 100%; }
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* DOCS */
.doc-section {
    background: white;
    border-radius: 30px;
    padding: 30px;
    border: 1px solid #f0f0f0;
}

.doc-item {
    margin-bottom: 15px;
    background: var(--background);
    padding: 20px;
    border-radius: 15px;
}
