/*
======================================================
1. GLOBALS & TYPOGRAPHY
======================================================
*/

:root {
    /* Define a color palette for easy consistency */
    --primary-color: #007BFF;   /* Spider Blue - For buttons, links, and accents */
    --secondary-color: #6C757D;  /* Gray - For secondary text/subheadings */
    --background-color: #F8F9FA; /* Light Gray - Clean background */
    --header-bg: #343A40;       /* Dark Header */
    --text-color: #333333;      /* Primary text color */
    --link-hover: #0056b3;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    /* Simple reset for consistent spacing */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    text-align: center;
}

.container {
    /* Centralize and constrain content width */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    
}

/* --- Headings --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-color);
    
}
h1 { font-size: 2em; }
h2 { font-size: 2em; margin-bottom: 1em; }
h3 { 
    font-size: 1.5em; 
    font-weight: 700;
    line-height: 1.2;
    /* ⭐️ INCREASED SPACING: Add a larger margin below the h3 */
    margin-bottom: 1.25em; 
    margin-top: 1.5em; /* Optional: Add some space above as well */
    color: var(--text-color);
}
h4 { font-size: 1.25em;
font-weight: 700;
    line-height: 1.1;
    /* ⭐️ INCREASED SPACING: Add a larger margin below the h3 */
    margin-bottom: 1em; 
    margin-top: 1em; /* Optional: Add some space above as well */
    color: var(--text-color); }

/*
======================================================
2. HEADER & NAVIGATION
======================================================
*/

header {
    background-color: var(--header-bg);
    color: white;
    padding: 25px 0;
    box-shadow: var(--shadow-light);
}

header h1 {
    color: white;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.main-nav ul {
    list-style: none;
    justify-content: center;
    padding: 0;
    display: flex;
    gap: 40px;
    
    
}

.main-nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s, border-bottom 0.3s;
    /* Create a hover effect that matches the primary color */
    border-bottom: 2px solid transparent; 
}

.main-nav ul li a:hover {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/*
======================================================
3. MAIN CONTENT & SECTIONS
======================================================
*/

main {
    padding: 40px 0;
}

/* --- Hero Section (Index Page) --- */
.hero {
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
    text-align: center;
}

.hero h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.15em;
    color: var(--secondary-color);
}

/* --- Apps Section (Index Page) --- */
.apps {
    padding-top: 20px;
}

.app-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid var(--primary-color); /* Highlight app card */
}

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

.app-card h4 {
    color: var(--primary-color);
    margin-top: 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--link-hover);
}

/*
======================================================
4. POLICY PAGES (Terms & Privacy)
======================================================
*/

.policy-section {
    padding: 35px 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.policy-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.effective-date {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 30px;
    display: block;
}

.policy-section ul {
    padding-left: 30px;
    list-style: square; /* Clean list style */
    margin-bottom: 20px;
}

/*
======================================================
5. CONTACT PAGE (Form & Methods)
======================================================
*/

.contact-section {
    padding: 35px 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.contact-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.contact-form {
    max-width: 600px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.or-email {
    text-align: center;
    margin: 40px 0 20px 0;
    color: var(--secondary-color);
    position: relative;
}

.or-email::before, .or-email::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #DDDDDD;
}

.or-email::before { left: 0; }
.or-email::after { right: 0; }

.email-link {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.email-link a {
    color: var(--primary-color);
    font-weight: 600;
}

/*
======================================================
6. FOOTER
======================================================
*/

footer {
    background-color: var(--header-bg);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 1px solid #444;
}
/* Add these styles to your main style.css */

/* --- App Hero Section Specific Styles --- */
.app-hero {
    text-align: center;
    padding: 50px 0 20px 0;
}

.app-hero h2 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.app-tagline {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

/* --- CTA Block --- */
.cta-block {
    margin-bottom: 40px;
}

/* Re-style large buttons */
.btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
    margin: 10px;
    min-width: 250px;
    /* Create a difference between primary and secondary CTA */
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

.sub-cta {
    margin-top: 15px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

/* Placeholder for app visual (e.g., screenshot area) */
.app-visual {
    background-color: #E9ECEF; 
    height: 400px; /* Placeholder height */
    max-width: 800px;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: italic;
    color: #6c757d;
}

/* --- Features Grid --- */
.features-grid {
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.features-grid h3 {
    grid-column: 1 / -1; /* Make the heading span all columns */
    margin-bottom: 30px;
    color: var(--text-color);
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border-top: 5px solid var(--primary-color);
}

.feature-card h4 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.feature-card .icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

/* --- Social Proof/Testimonial --- */
.social-proof {
    text-align: center;
    padding: 40px 0;
}

.testimonial {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.4em;
    font-style: italic;
    color: var(--text-color);
    border-left: 5px solid var(--primary-color);
    padding: 20px 20px 20px 30px;
    background-color: #fff;
    border-radius: 8px;
    text-align: left;
}

.testimonial footer {
    display: block;
    margin-top: 15px;
    font-size: 0.8em;
    font-style: normal;
    color: var(--secondary-color);
    text-align: right;
}

/* --- Horizontal Rule (Separator) --- */
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 40px 0;
}
/* Add to style.css */

/* --- Mission Grid Section --- */
.mission {
    padding: 20px 0;
    text-align: center;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mission-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.mission-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.mission-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- App Cards Container (New Layout) --- */
.app-cards-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center; /* Center the app cards */
}

/* Adjust the original .app-card to be flexible */
.app-card {
    flex: 1; /* Allows cards to share space equally */
    max-width: 400px;
    text-align: center;
    /* Retain original styling from step 3 (border-left, padding, shadow) */
}

/* New secondary button for "Coming Soon" */
.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Footer links update */
footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

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