:root {
    --primary-blue: #2196F3;
    --primary-green: #388E3D;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --text-light: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-offwhite: #F8F9FA;
    --font-stack: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Consistent Spacing Variables */
    --section-padding-v: 80px; /* Vertical padding for sections */
    --container-padding-h: 24px; /* Horizontal padding for container */
}

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

body, html {
    font-family: var(--font-stack);
    line-height: 1.5;
    color: var(--text-dark);
    height: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Layout & Typography --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding-h);
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 36px; 
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* --- Hero Section (Brand Blue) --- */
.hero {
    position: relative;
    padding: 96px 0 96px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
}

/* Rounded Curve: White Hill Rising */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--bg-white);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    /* Space between Subtitle and Button #1: Controlled here */
    margin-bottom: 40px; 
}

/* Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Space between Button #1 and Button #2: Controlled here */
    gap: 24px; 
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    background-color: var(--bg-white);
    color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.btn-ios {
    background-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: none;
    cursor: default;
}

.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 24px;
    backdrop-filter: blur(5px);
}

/* --- Features (White Middle) --- */
.features {
    /* Adjusted padding to reduce gap with showcase */
    padding: var(--section-padding-v) 0 40px; 
    background-color: var(--bg-white);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1050px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.1);
}

.feature-text h3 {
    margin-top: 4px;
    color: var(--primary-blue);
}

/* --- App Showcase --- */
.app-showcase {
    /* Adjusted padding to reduce gap with features */
    padding: 40px 0 var(--section-padding-v); 
    background-color: var(--bg-white);
    overflow: hidden;
    position: relative;
}

.screenshot-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 24px 40px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.screenshot-item {
    scroll-snap-align: center;
    flex: 0 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    height: 500px;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.screenshot-item img {
    height: 100%;
    width: auto;
    display: block;
}

.screenshot-scroll-container::-webkit-scrollbar {
    display: none; 
}

/* --- Footer (Brand Green) --- */
footer {
    margin-top: 40px;
    padding-top: 0;
    padding-bottom: 8px;
    position: relative;
    background-color: var(--primary-green);
    color: white;
}

footer::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--primary-green);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 1rem;
}

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

.copyright {
    opacity: 0.8;
    font-size: 0.85rem;
    color: white;
}

/* --- Download Page Styles --- */
.download-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.download-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-page .container img {
    width: 100px;
    height: auto;
    margin-bottom: 24px;
}

.download-page .container p {
    font-size: 1.25em;
    color: #333;
}

/* --- Legal Page Styles --- */
.legal-page {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 1em;
    color: #000;
    line-height: normal;
}

.legal-page p {
    font-size: 1em;
    margin-bottom: 1em;
    color: #000;
}

.legal-page h3 {
    font-size: 1.17em;
    font-weight: bold;
    color: #000;
    margin: 1em 0;
}

.legal-page pre {
    background-color: #eeeeee;
    padding: 1em;
    white-space: pre-wrap;
    word-break: break-word;
    display: inline-block;
    font-family: monospace;
}

/* --- Responsive Breakpoints --- */
@media (min-width: 768px) {
    h1 { font-size: 4rem; }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        text-align: center;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .screenshot-scroll-container {
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }

    .screenshot-item {
        height: auto;
        width: calc(25% - 24px);
        max-width: 280px;
    }

    .screenshot-item:hover {
        transform: scale(1.05);
        z-index: 10;
    }

    .screenshot-item img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2.75rem; }
    .hero { padding: 140px 0 80px; }
    
    .screenshot-item {
        height: 450px;
    }
}
