/* --- 1. GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-dark: #0f1c2c;      /* Very dark, near-black for space background */
    --accent-color: #3498db;      /* Modern Blue */
    --text-light: #ecf0f1;        /* Off-white for text against dark background */
    --text-dark: #34495e;         /* Dark text for product grid */
    --grid-bg: #ffffff;           /* White background for the scrolled section */
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. HEADER --- */
.main-header {
    position: absolute; /* Absolute position over the space background */
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
}

.main-logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* --- 3. HERO SECTION (The Space Visual) --- */
.hero-space-section {
    height: 100vh; /* Full viewport height */
    width: 100%;
    /* Placeholder for the starlit space image with a huge earth shot from space*/
    background: var(--primary-dark) url("free-earth-image.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden; /* Hide anything that spills over */
}

.hero-content {
    padding-bottom: 5vh; /* To leave space for the scroll indicator */
}

.starlit-text {
    font-size: 8rem; /* Extremely large, dominant text */
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 10px;
    /* Subtle text shadow for a glow effect against the dark background */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); 
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.down-arrow {
    display: block;
    font-size: 2rem;
    margin-bottom: 5px;
}

/* --- 4. PRODUCT GRID SECTION --- */
.app-icon.icon-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.product-grid-section {
    background-color: var(--grid-bg);
    padding: 80px 0;
    text-align: center;
    /* Add a subtle shadow or border at the top to clearly separate it from the space background */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.product-grid-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.app-card {
    display: block;
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0eeef; /* Minimalistic border */
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.app-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.app-card h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.app-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.journal-divider { margin-bottom: 30px; border: 0; border-top: 1px solid #e0eeef; }
.journal-card { display: grid; place-content: center; justify-self: start; width: 150px; aspect-ratio: 1; padding: 15px; border-radius: 50%; }
.journal-card .app-icon { margin-bottom: 0; }
.journal-card p { margin-top: -4px; }
.journal-image img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }

/* Suite CTA */
.vision-cta {
    margin-top: 50px;
}

.suite-cta {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 15px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.suite-cta:hover {
    background-color: #2980b9;
}

/* --- 5. FOOTER --- */
.main-footer {
    display: grid; place-items: center;
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

.social-links { display: flex; gap: 35px; width: fit-content; margin: 0 auto 10px; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; color: rgba(255, 255, 255, 0.72); transition: transform 0.25s, color 0.25s, border-color 0.25s, background 0.25s; }
.social-links a:hover { transform: translateY(-2px); color: white; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.social-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-links .fill-icon { fill: currentColor; stroke: none; }

/* --- 6. MEDIA QUERIES (Responsiveness) --- */
@media (max-width: 900px) {
    .starlit-text {
        font-size: 5rem;
    }
}
@media (max-width: 600px) {
    .starlit-text {
        font-size: 3rem;
    }
    .app-grid {
        gap: 20px;
    }
}
