/* --- Variables & Reset --- */
:root {
    --fresh-green: #22c55e; /* Matching the Kotlin 'FreshGreen' */
    --pale-green: #f0fdf4;  /* Matching the Kotlin 'PaleGreen' */
    --dark-gray: #1e293b;
    --medium-gray: #64748b;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

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

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

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

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

/* --- Header --- */
.header {
    background-color: var(--white);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.app-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

/* --- Hero Section --- */
.hero {
    padding: 60px 20px 0;
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating {
    margin-bottom: 20px;
}

.rating i {
    color: var(--dark-gray);
    font-size: 1.2rem;
}

.rating p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 600;
    margin-top: 5px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.hero-title .highlight {
    color: var(--fresh-green);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin-bottom: 30px;
}

.download-text {
    color: var(--fresh-green);
    font-weight: 700;
    margin-bottom: 15px;
}

.store-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.store-badge {
    display: flex;
    align-items: center;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.store-badge i {
    font-size: 1.8rem;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-text span {
    font-size: 0.6rem;
    text-transform: uppercase;
}

.store-text strong {
    font-size: 1.1rem;
}

/* --- Phone Mockup & Animations --- */
.phone-mockup-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
    perspective: 1000px;
}

.phone-screen {
    width: 100%;
    border-radius: 40px;
    border: 12px solid #000;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    display: block;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-widget {
    position: absolute;
    background: var(--white);
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    animation: float 5s ease-in-out infinite;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }

.top-left {
    top: 20%;
    left: -60px;
}

.bottom-right {
    bottom: 20%;
    right: -60px;
}

.highlight-icon {
    background: var(--pale-green);
    color: var(--fresh-green);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.widget-title {
    display: block;
    font-size: 0.7rem;
    color: var(--medium-gray);
    font-weight: 600;
}

.widget-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-gray);
}

/* --- About Section --- */
.section-bg {
    background-color: var(--white);
    padding: 80px 20px;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.about-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.about-container p {
    margin-bottom: 20px;
    color: var(--medium-gray);
}

.about-container p strong {
    color: var(--dark-gray);
}

/* --- Features Section --- */
.features {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.features-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.features-header p {
    color: var(--medium-gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

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

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: var(--pale-green);
    color: var(--fresh-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 800;
}

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

/* --- Footer --- */
.footer {
    background-color: var(--white);
    padding: 40px 5%;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-logo img {
    border-radius: 8px;
}

.footer-copyright {
    color: var(--medium-gray);
    font-size: 0.85rem;
    text-align: center;
}

.footer-copyright a {
    color: var(--fresh-green);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.footer-links strong {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-links a {
    color: var(--medium-gray);
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .top-left, .bottom-right {
        display: none; /* Hide floating widgets on small screens to prevent overflow */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        text-align: center;
    }
}