/* Modern Reset & Variables */
:root {
    --primary-green: #27ae60;
    --primary-dark: #1e8449;
    --accent-amber: #f39c12;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --bg-white: #ffffff;
    --bg-light: #f8fcf8;
    --border-color: #e5e7e5;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-light);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4 {
    color: var(--text-dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-green);
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: var(--primary-green);
    color: #fff;
    border-radius: 4px;
}

.btn-sm:hover {
    background: var(--primary-dark);
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: rgba(39, 174, 96, 0.1);
    color: var(--primary-green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    width: 100%;
    object-fit: cover;
}

/* Problem Cards */
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.icon-box.danger {
    background: #fee2e2;
    color: #dc2626;
}

.icon-box.warning {
    background: #fef3c7;
    color: #d97706;
}

/* Solution Steps */
.step-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bg-white);
    color: var(--primary-green);
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.step-card h3 {
    padding: 20px 20px 5px;
    font-size: 1.2rem;
}

.step-card p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
}

.solution-highlight {
    text-align: center;
    margin-top: 50px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.solution-highlight span {
    color: var(--primary-green);
    font-weight: 700;
}

/* Tech Flow */
.tech-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.flow-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-md);
    background: white;
    padding: 10px;
}

.flow-arrow {
    color: var(--border-color);
    font-size: 1.5rem;
}

.small-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* App Section */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--primary-green);
}

.app-image img {
    /* Removed border and radius as the image already has a frame */
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    margin: 0 auto;
}

/* Team */
.team-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--bg-light);
}

/* Footer */
.footer {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-light);
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 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);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Utility Classes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-up {
    transform: translateY(30px);
}

.animate-fade-left {
    transform: translateX(-30px);
}

.animate-fade-right {
    transform: translateX(30px);
}

.animate-pop {
    transform: scale(0.9);
}

.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Responsive */
@media(max-width: 768px) {
    .header .nav {
        display: none;
    }

    /* Simplified for demo */
    .hero-container,
    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tech-flow {
        flex-direction: column;
        gap: 30px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .app-image {
        order: -1;
    }
}