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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    font-size: 16px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

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

.btn-download:hover {
    transform: scale(1.05);
}

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

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.nav-brand .logo {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-cta {
    display: flex;
}

/* Hero Section */
.hero {
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #1e293b;
}

.hero-description {
    font-size: 20px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 14px;
    color: #64748b;
}

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

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

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

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: float 3s ease-in-out infinite;
    max-width: 200px;
    font-size: 14px;
    font-weight: 500;
}

.floating-card.card-1 {
    top: 20%;
    left: -40%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: -40%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: -40%;
    animation-delay: 2s;
}

.card-emoji {
    font-size: 20px;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.feature-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.feature-card.featured .feature-title,
.feature-card.featured .feature-description {
    color: white;
}

.feature-card.emergency {
    border-color: #ef4444;
}

.feature-card.emergency::before {
    background: #ef4444;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-highlight {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.feature-highlight.emergency {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Benefits Section */
.benefits {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefits-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.benefit-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.benefit-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

.benefit-cta {
    margin-top: 40px;
}

.benefits-visual {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefits-chart h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    text-align: center;
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-fill {
    height: 12px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 6px;
    flex: 1;
    position: relative;
    animation: fillBar 1s ease-out;
}

.bar-value {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    min-width: 35px;
}

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

.testimonials .section-title {
    text-align: center;
    margin-bottom: 80px;
}

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

.testimonial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.testimonial-card.featured-testimonial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
}

.testimonial-rating {
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 14px;
    opacity: 0.7;
}

/* How it Works */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
}

.how-it-works .section-title {
    text-align: center;
    margin-bottom: 80px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -30px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
}

/* Download CTA */
.download-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
    color: white;
    text-align: center;
}

.download-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.download-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 24px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.feature-check {
    font-size: 18px;
}

.download-note {
    font-size: 14px;
    opacity: 0.7;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
}

.footer-brand .logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    display: block;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

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

.footer-bottom p:first-child {
    margin-bottom: 8px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fillBar {
    0% { width: 0%; }
    100% { width: var(--target-width, 100%); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .download-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .benefits-title {
        font-size: 28px;
    }
    
    .download-title {
        font-size: 32px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .floating-card {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 150px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}