/* Reset & Variables */
:root {
    --primary: #b91c1c;       /* Dark Red */
    --primary-dark: #991b1b;
    --secondary: #dc2626;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #111827;
    --text-muted: #4b5563;
    --border-light: #e5e7eb;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-heavy: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.max-w-800 { max-width: 800px; margin: 0 auto; }
.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary); }
.bg-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.text-white { color: var(--white); }
.text-light { color: rgba(255,255,255,0.8); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.highlight { color: var(--primary); }
.section { padding: 120px 0; }
.py-lg { padding: 80px 0; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 64px; }
.mb-lg { margin-bottom: 64px; }

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}
.glass-heavy {
    background: var(--glass-heavy);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.8);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge.red { background: rgba(185, 28, 28, 0.1); color: var(--primary); }
.badge.blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }

/* Buttons */
.btn-primary, .btn-outline, .btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}
.btn-white {
    background-color: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.block { width: 100%; display: block; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.logo-icon { font-size: 1.8rem; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 600;
}
.nav-links a:not(.btn-primary):hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--text-dark); transition: all 0.3s; }

/* Hero Section */
.hero {
    padding-top: 180px;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(185,28,28,0.08) 0%, rgba(255,255,255,0) 60%),
                radial-gradient(circle at bottom left, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 60%);
    display: flex;
    align-items: center;
}
.hero-container {
    display: flex;
    align-items: center;
    gap: 64px;
}
.hero-content { flex: 1.2; }
.hero-image { flex: 1; position: relative; display: flex; justify-content: center; }

.emergency-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(185, 28, 28, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 32px;
    border: 1px solid rgba(185, 28, 28, 0.2);
}
.indicator {
    width: 10px; height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.7);
    animation: pulse-ring 1.5s infinite;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 540px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}
.trust-indicators {
    display: flex;
    gap: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Mockups */
.phone-mockup {
    width: 320px;
    height: 650px;
    border-radius: 48px;
    padding: 16px;
    box-shadow: var(--shadow-lg), 0 0 0 10px rgba(0,0,0,0.03);
    position: relative;
    z-index: 2;
}
.screen {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mockup-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    font-size: 0.875rem;
    font-weight: 600;
}
.mockup-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mockup-card {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.emergency-alert {
    border: 2px solid var(--primary);
    position: relative;
}
.emergency-alert small { color: var(--primary); font-weight: 800; }
.emergency-alert h3 { margin: 8px 0; }
.emergency-alert p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; }
.pulse-border { animation: border-pulse 2s infinite; }
.stats-row { display: flex; justify-content: space-around; text-align: center; margin-top: 16px; font-weight: 600; }
.stats-row .highlight { font-size: 1.5rem; font-weight: 800; }

.floating-element {
    position: absolute;
    font-size: 4rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}
.drop-1 { bottom: 80px; left: -30px; animation-delay: 0s; }
.drop-2 { top: 120px; right: -20px; animation-delay: 2s; font-size: 3rem; }

/* Impact Counter */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 32px;
}
.counter-box h2 {
    font-size: 3.5rem;
    font-weight: 800;
    display: inline-block;
}
.counter-box span { font-size: 3.5rem; font-weight: 800; }
.counter-box p { font-size: 1.125rem; font-weight: 500; opacity: 0.9; }

/* Split Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.split-layout.reverse .split-text { grid-column: 2; grid-row: 1; }
.split-layout.reverse .split-image { grid-column: 1; grid-row: 1; }

.split-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}
.split-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.check-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 20px;
    font-size: 1.125rem;
    font-weight: 500;
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    width: 24px; height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem;
}

.rounded-image {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
}

/* UI Mockup embedded */
.ui-mockup {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.ui-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    font-weight: 700;
    text-align: center;
}
.ui-body { padding: 32px; }
.donor-profile {
    display: flex;
    align-items: center;
    gap: 24px;
}
.avatar {
    width: 64px; height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700;
}
.info strong { display: block; font-size: 1.25rem; }
.info span { display: block; color: var(--text-muted); margin-top: 4px; }
.status.online { color: #16a34a; font-weight: 600; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s;
}
.hover-lift:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3.5rem; margin-bottom: 24px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.testimonial-card {
    padding: 40px;
    border-radius: 24px;
}
.stars { margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p {
    font-size: 1.125rem; font-style: italic; margin-bottom: 24px;
}
.author strong { display: block; font-size: 1.125rem; }
.author span { color: var(--text-muted); font-size: 0.875rem; }

/* FAQ Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.accordion-item {
    border-radius: 16px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 24px;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header::after {
    content: '+'; font-size: 1.5rem; color: var(--primary); transition: transform 0.3s;
}
.accordion-item.active .accordion-header::after { transform: rotate(45deg); }
.accordion-content {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.accordion-item.active .accordion-content {
    padding: 0 24px 24px;
    max-height: 500px;
}

/* Store Badges */
.store-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
}
.store-badge img { height: 50px; }
.store-badge.disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(100%); }

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 16px; }
.footer-brand p { color: #94a3b8; }
.footer-links h4 { margin-bottom: 24px; font-size: 1.125rem; }
.footer-links a { display: block; color: #94a3b8; margin-bottom: 12px; }
.footer-links a:hover { color: white; }
.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.875rem;
}

/* Animations */
@keyframes pulse-ring {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(185, 28, 28, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}
@keyframes border-pulse {
    0% { border-color: rgba(185, 28, 28, 1); box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.4); }
    50% { border-color: rgba(185, 28, 28, 0.5); box-shadow: 0 0 0 15px rgba(185, 28, 28, 0); }
    100% { border-color: rgba(185, 28, 28, 1); box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.fade-in {
    animation: fadeIn 1s ease-in forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .split-layout { flex-direction: column; text-align: center; display: flex; }
    .hero h1 { font-size: 3.5rem; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-cta { justify-content: center; }
    .counter-grid, .features-grid, .testimonial-grid { grid-template-columns: 1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .check-list li { text-align: left; }
    .split-layout.reverse .split-text { grid-row: 2; }
    .split-layout.reverse .split-image { grid-row: 1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.75rem; }
    .section { padding: 80px 0; }
}
