:root {
    --color-light-blue: #99D9F2;
    --color-deep-blue: #4D80B3;
    --color-white: #ffffff;
    --color-text: #333333;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: transparent;
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

html {
    background-color: var(--color-white);
    height: 100%;
    overflow-x: hidden;
}

/* Background Gradient */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 80% 20%, rgba(153, 217, 242, 0.4) 0%, rgba(255, 255, 255, 0) 50%),
        radial-gradient(circle at 20% 80%, rgba(77, 128, 179, 0.4) 0%, rgba(255, 255, 255, 0) 50%);
    filter: blur(60px); /* Reduced blur, applied to container */
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative; /* Ensure content is above blobs */
}

/* Header */
header {
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-deep-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 40px;
    width: auto;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    flex-direction: column; /* Mobile first: stack vertically */
    align-items: center;
    gap: 60px;
    text-align: center;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero-image-container {
        order: 1; /* Image on left */
        flex: 1;
        display: flex;
        justify-content: center; /* Center image in its half */
    }

    .hero-text {
        order: 2; /* Text on right */
        flex: 1;
        padding-left: 40px;
    }
}

.hero-image-container {
    max-width: 320px; /* Limit iPhone size */
    width: 100%;
    animation: float-phone 6s ease-in-out infinite;
}

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

.iphone-placeholder {
    width: 100%;
    aspect-ratio: 9 / 19.5; /* iPhone aspect ratio */
    background: linear-gradient(135deg, var(--color-light-blue) 0%, var(--color-deep-blue) 100%);
    border-radius: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(77, 128, 179, 0.25);
    color: white;
    font-weight: bold;
    border: 8px solid white;
    position: relative;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 620px; /* Increased height */
    object-fit: cover;
    object-position: center;
    border-radius: 48px;
    box-shadow: 0 30px 60px rgba(77, 128, 179, 0.25);
    border: 8px solid white;
    display: block;
}

/* Add a subtle shine to the phone */
.iphone-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 70%);
    transform: skewX(-15deg);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, #2c5282 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.6;
    color: #4a5568;
    max-width: 500px;
}

.app-store-button {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.app-store-button img {
    height: 64px;
    width: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .app-store-button img {
        height: 100px;
    }
}

.app-store-button:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
    position: relative;
}

.feature-section:nth-child(even) {
    /* Removed background color for seamless look */
}

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

@media (min-width: 768px) {
    .feature-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .feature-content.reverse {
        flex-direction: row-reverse;
    }
    
    .feature-content.center {
        flex-direction: column;
        text-align: center;
    }
}

.feature-text {
    flex: 1;
    padding: 20px;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-deep-blue);
}

.feature-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 2rem;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 300px;
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 6px solid white;
}

/* Steps Section (3 Columns) */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(77, 128, 179, 0.1);
    line-height: 1;
    margin-bottom: -20px;
    z-index: 0;
}

.step-image {
    width: 100%;
    max-width: 260px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.step-card:hover .step-image {
    transform: translateY(-10px);
}

.step-image img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 4px solid white;
}

.step-card h3 {
    font-size: 1.5rem;
    color: var(--color-deep-blue);
    margin-bottom: 10px;
}

.step-card p {
    color: #666;
    line-height: 1.5;
}

/* Bento Grid Section */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.bento-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card.large {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
}

.bento-card h3 {
    font-size: 1.8rem;
    color: var(--color-deep-blue);
    margin-bottom: 15px;
}

.bento-card p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    background: none;
    border: none;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--color-deep-blue);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    opacity: 0.6;
    font-size: 0.8rem;
}
