* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e1e5e9;
    z-index: 1000;
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #6366f1;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #6366f1;
}

.btn-primary {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary:hover {
    background: #5856eb;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.highlight {
    color: #6366f1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-pill {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #6366f1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-hero {
    background: #6366f1;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero:hover {
    background: #5856eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

.btn-secondary {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #6366f1;
    color: white;
}

.hero-note {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Hero Preview */
.preview-phone {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.preview-location {
    font-weight: 600;
    color: #1a1a1a;
}

.preview-online {
    color: #16a34a;
    font-size: 0.875rem;
    font-weight: 500;
}

.preview-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-message {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e1e5e9;
}

.preview-message.urgent {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.message-author {
    font-weight: 600;
    font-size: 0.875rem;
    color: #6366f1;
    margin-bottom: 4px;
}

.message-text {
    color: #374151;
    margin-bottom: 8px;
}

.message-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.action-count {
    color: #6b7280;
}

.action-status {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Live Feed Section */
.live-feed-section {
    padding: 80px 0;
    background: #fafbfc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 0;
}

.location-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neighborhood-select {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
}

.live-feed-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

/* Feed Sidebar */
.feed-sidebar {
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.feed-filters {
    padding: 24px;
    border-bottom: 1px solid #f1f3f4;
}

.feed-filters h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.filter-btn:hover {
    background: #f8fafc;
}

.filter-btn.active {
    background: #eef2ff;
    color: #6366f1;
}

.filter-icon {
    font-size: 16px;
}

.filter-btn span:nth-child(2) {
    flex: 1;
    font-weight: 500;
}

.filter-count {
    background: #e1e5e9;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.filter-btn.active .filter-count {
    background: #6366f1;
    color: white;
}

.neighborhood-info {
    padding: 24px;
}

.neighborhood-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.info-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.info-row span:first-child {
    color: #6b7280;
}

.stat-value {
    font-weight: 600;
    color: #1a1a1a;
}

/* Feed Main */
.feed-main {
    background: white;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #f1f3f4;
}

.feed-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-weight: 500;
}

.live-indicator {
    color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.feed-time {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Event Cards */
.events-stream {
    max-height: 70vh;
    overflow-y: auto;
}

.event-card {
    padding: 24px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s;
}

.event-card:hover {
    background: #fafbfc;
}

.event-card.urgent {
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f6 100%);
    border-left: 4px solid #ef4444;
}

.event-card.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #f7fef8 100%);
    border-left: 4px solid #22c55e;
}

.event-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.event-time {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.event-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-badge.urgent {
    background: #fef2f2;
    color: #dc2626;
}

.event-badge.success {
    background: #f0fdf4;
    color: #16a34a;
}

.event-badge.info {
    background: #eff6ff;
    color: #2563eb;
}

.event-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
}

.author-distance {
    color: #6b7280;
    font-size: 0.875rem;
}

.event-category {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-category.lost {
    background: #fef3c7;
    color: #d97706;
}

.event-category.event {
    background: #ddd6fe;
    color: #7c3aed;
}

.event-category.problem {
    background: #fee2e2;
    color: #dc2626;
}

.event-category.help {
    background: #dbeafe;
    color: #2563eb;
}

.event-content {
    margin-bottom: 16px;
}

.event-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.event-content p {
    color: #374151;
    line-height: 1.6;
}

.event-responses {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.response {
    margin-bottom: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.response:last-child {
    margin-bottom: 0;
}

.response strong {
    color: #6366f1;
}

.response-time {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-left: 8px;
}

.event-result {
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 16px;
}

.event-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn.primary {
    background: #6366f1;
    color: white;
}

.action-btn.primary:hover {
    background: #5856eb;
}

.action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-btn.secondary:hover {
    background: #e5e7eb;
}

.action-btn.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.helpers-count,
.next-event {
    color: #6b7280;
    font-size: 0.75rem;
    margin-left: auto;
}

.load-more {
    padding: 24px;
    text-align: center;
    border-top: 1px solid #f1f3f4;
}

.btn-load-more {
    background: #f8fafc;
    color: #6366f1;
    border: 1px solid #e1e5e9;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid #f1f3f4;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #e1e5e9;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: #f8fafc;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.review-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.review-rating {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.review-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author .author-avatar {
    width: 48px;
    height: 48px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-info .author-name {
    font-weight: 600;
    color: #1a1a1a;
}

.author-info .author-location {
    color: #6b7280;
    font-size: 0.875rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: white;
    color: #6366f1;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: white;
}

.brand-description {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: #9ca3af;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.social-link:hover {
    color: #6366f1;
    border-color: #6366f1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.links-group h4 {
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.links-group a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.links-group a:hover {
    color: #6366f1;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.company-details {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
}

.company-details strong {
    color: white;
}

.company-details a {
    color: #6366f1;
    text-decoration: none;
}

.footer-legal {
    text-align: right;
}

.footer-legal > span {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #6366f1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.modal-body {
    padding: 0 24px 24px;
}

.join-step {
    display: none;
}

.join-step.active {
    display: block;
}

.join-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.join-step p {
    color: #6b7280;
    margin-bottom: 24px;
}

.success-message {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.success-message h4 {
    color: #16a34a;
    margin-bottom: 8px;
}

.success-message p {
    color: #166534;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group small {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

.btn-step {
    width: 100%;
    background: #6366f1;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.btn-step:hover {
    background: #5856eb;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-menu {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .live-feed-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feed-sidebar {
        position: static;
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-legal {
        text-align: center;
    }

    .cta-features {
        flex-direction: column;
        gap: 16px;
    }

    .modal-content {
        margin: 16px;
    }
}