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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
    /* Colors - Same as app theme */
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #27ae60;
    --accent-color: #f39c12;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #ecf0f1;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section__title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.section__description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

.btn--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.nav__logo i {
    font-size: var(--font-size-2xl);
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav__link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav__toggle {
    display: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.hero__title-highlight {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    line-height: 1.6;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-hover);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.app-header h3 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.budget {
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.app-items {
    flex: 1;
}

.app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.app-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: var(--text-color);
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--background-light);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature__card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.feature__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    color: white;
    font-size: var(--font-size-2xl);
}

.feature__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.feature__description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about__description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat__label {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    font-weight: 500;
}

/* App Screens */
.app-screens {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
}

.screen {
    width: 120px;
    height: 200px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 15px;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.screen:hover {
    transform: rotate(0deg) scale(1.05);
}

.screen--2 {
    transform: rotate(5deg);
}

.screen--2:hover {
    transform: rotate(0deg) scale(1.05);
}

.screen--3 {
    transform: rotate(-2deg);
}

.screen--3:hover {
    transform: rotate(0deg) scale(1.05);
}

.screen-content h4 {
    font-size: var(--font-size-sm);
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.screen-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.screen-item {
    font-size: var(--font-size-xs);
    padding: 4px 8px;
    background: var(--background-light);
    border-radius: var(--radius-sm);
}

.budget-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(
        var(--primary-color) 0deg 270deg,
        var(--border-color) 270deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-color);
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 60px;
    justify-content: center;
}

.bar {
    width: 8px;
    background: var(--primary-color);
    border-radius: 2px;
}

.bar--1 {
    height: 40px;
}
.bar--2 {
    height: 60px;
}
.bar--3 {
    height: 30px;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
    color: white;
    text-align: center;
}

.cta__title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.cta__description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-color);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.footer__description {
    color: #bdc3c7;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
}

.social__link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: var(--spacing-xs);
}

.footer__list a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow);
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav__menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav__toggle {
        display: block;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .hero__buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
        transform: none;
    }

    .about__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-screens {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .screen {
        transform: none !important;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .cta__buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .section__title {
        font-size: var(--font-size-3xl);
    }

    .hero__title {
        font-size: var(--font-size-3xl);
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
