/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #5a6c7d;
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Color Variables */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #27ae60;
    --accent-color: #e74c3c;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-light: #95a5a6;
    --bg-light: #f8fafc;
    --bg-section: #ffffff;
    --border-color: #e3ebf0;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --gradient-primary: linear-gradient(135deg, #3498db 0%, #27ae60 100%);
    --gradient-accent: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
}

/* Header and Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.nav-brand a,
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.trust-indicators {
    display: flex;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trust-icon {
    font-size: 1.125rem;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-medium);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.primary-feature {
    grid-column: span 2;
    background: linear-gradient(135deg, #3498db 0%, #27ae60 100%);
    color: white;
    border: none;
}

.primary-feature .feature-description,
.primary-feature .feature-list li {
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-icon.emergency {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: inherit;
}

.feature-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.primary-feature .feature-list li::before {
    color: rgba(255, 255, 255, 0.9);
}

.coming-soon {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Safety Section */
.safety-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.safety-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.safety-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.safety-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.safety-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.safety-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.safety-feature h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.safety-feature p {
    color: var(--text-secondary);
    margin: 0;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.testimonial-author h5 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.download-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: block;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn img {
    height: 60px;
    width: auto;
}

.download-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.footer-brand h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-section h5 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Page Content Styles */
.main-content {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Privacy Policy Styles */
.privacy-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}

.privacy-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--secondary-color);
}

.highlight-icon {
    font-size: 3rem;
}

.highlight-text h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.privacy-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-section h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.privacy-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.link {
    color: var(--primary-color);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.last-updated {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Support Page Styles */
.support-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}

.support-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.support-intro h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.support-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.support-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.support-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Contact Email Section */
.contact-email-section {
    margin: 3rem 0;
}

.contact-email-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.email-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.email-icon {
    font-size: 3rem;
}

.email-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.email-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.email-link {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.response-time {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.email-tips {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.email-tips h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.email-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.email-tips li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: var(--bg-light);
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: rgba(52, 152, 219, 0.05);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem;
}

.faq-answer p {
    margin: 0;
}

/* Emergency Note */
.emergency-note {
    display: flex;
    gap: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 3rem;
}

.emergency-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.emergency-text h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.emergency-text ul {
    margin: 1rem 0 0 1rem;
}

.emergency-text li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .safety-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .primary-feature {
        grid-column: span 1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .brand-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
        transform: rotate(0deg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .safety-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    .privacy-content,
    .support-content {
        padding: 2rem 1rem;
    }
    
    .privacy-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-note {
        flex-direction: column;
        text-align: center;
    }
    
    .email-contact {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .feature-card,
    .testimonial {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
}

/* Placeholder images for app screenshots */
.app-screenshot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 0.875rem;
}

.app-screenshot::before {
    content: 'MichiMap\AEmergency\AEvacuation\ACenters';
    white-space: pre;
    line-height: 1.4;
}

/* Download badge placeholders */
.download-btn img {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    min-height: 60px;
    min-width: 180px;
}

.ios-btn img::before {
    content: 'Download on the\A App Store';
    white-space: pre;
    text-align: center;
    line-height: 1.2;
}

.android-btn img::before {
    content: 'GET IT ON\A Google Play';
    white-space: pre;
    text-align: center;
    line-height: 1.2;
}