/* CSS Variables */
:root {
    --navy: #152238;
    --navy-light: #1E3A5F;
    --red: #C41E3A;
    --red-light: #E53E3E;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--gray-600);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--gray-50);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0D1520 0%, var(--navy) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.logo-text-img {
    height: 32px;
    width: auto;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-300);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links .btn {
    margin-left: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content .highlight {
    color: var(--red);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--gray-900);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--navy);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 16px;
}

.app-header-logo-text {
    height: 22px;
    width: auto;
}

.app-header-logo {
    width: 28px;
    height: 28px;
}

.app-logo {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
}

.app-profile {
    text-align: center;
    padding: 16px 0;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
    margin: 0 auto 8px;
    border: 3px solid var(--white);
}

.profile-name {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.profile-sub {
    display: block;
    color: var(--gray-400);
    font-size: 0.75rem;
    margin-top: 2px;
}

.app-section-title {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    margin: 12px 0 8px 4px;
}

.app-alert {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.app-alert.active {
    border: 2px solid var(--red);
    background: #FFF5F5;
}

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.alert-icon.fire {
    background: #DC2626;
}

.alert-icon.medical {
    background: #2563EB;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.alert-type {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.8rem;
}

.alert-location {
    color: var(--gray-500);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-status {
    color: var(--gray-400);
    font-size: 0.65rem;
}

.alert-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.alert-badge.dispatched {
    background: var(--navy);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    font-size: 1.25rem;
    margin-top: 16px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon.alerts { background: #FEE2E2; color: var(--red); }
.feature-icon.profile { background: #DBEAFE; color: #2563EB; }
.feature-icon.agencies { background: #D1FAE5; color: #059669; }
.feature-icon.map { background: #FEF3C7; color: #D97706; }
.feature-icon.responder { background: #E0E7FF; color: #4F46E5; }
.feature-icon.secure { background: #FCE7F3; color: #DB2777; }

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

/* User Types Grid */
.user-types-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 80px;
}

.user-type-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.user-type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.user-type-card.civilian {
    border-color: var(--navy);
}

.user-type-card.responder {
    border-color: var(--red);
}

.user-type-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--gray-100);
}

.user-type-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.user-type-card.civilian .user-type-icon {
    background: rgba(21, 34, 56, 0.1);
    color: var(--navy);
}

.user-type-card.responder .user-type-icon {
    background: rgba(196, 30, 58, 0.1);
    color: var(--red);
}

.user-type-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.user-type-tagline {
    font-size: 1rem;
    color: var(--gray-500);
    font-style: italic;
}

.user-type-features {
    list-style: none;
}

.user-type-features li {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}

.user-type-features li:last-child {
    border-bottom: none;
}

.user-type-features svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.user-type-card.civilian .user-type-features svg {
    color: var(--navy);
}

.user-type-card.responder .user-type-features svg {
    color: var(--red);
}

.user-type-features span {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.user-type-features strong {
    color: var(--gray-800);
}

/* Connector between user types */
.user-type-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.connector-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--navy), var(--red));
}

.connector-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy), var(--red));
    border-radius: 50%;
    color: white;
    margin: 16px 0;
}

.connector-icon svg {
    margin: -4px 0;
}

.connector-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 16px;
}

/* Connection Flow */
.connection-flow {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 24px;
    padding: 60px;
    color: var(--white);
}

.connection-flow h3 {
    text-align: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 48px;
}

.flow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.flow-step {
    flex: 1;
    text-align: center;
    padding: 0 16px;
}

.flow-number {
    width: 48px;
    height: 48px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.flow-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.flow-content p {
    color: var(--gray-300);
    font-size: 0.9rem;
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    padding-top: 10px;
    color: var(--gray-400);
}

/* Legacy steps (keeping for backward compatibility) */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 12px;
}

.step-arrow {
    font-size: 2rem;
    color: var(--gray-300);
    padding-top: 12px;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.download-content {
    text-align: center;
}

.download-content h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.download-content p {
    color: var(--gray-300);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.store-btn img {
    height: 56px;
    transition: transform 0.2s;
}

.store-btn:hover img {
    transform: scale(1.05);
}

/* For Agencies */
.for-agencies {
    padding: 100px 0;
    background: var(--gray-50);
}

.agencies-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.agencies-text h2 {
    margin-bottom: 20px;
}

.agencies-text > p {
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.agencies-features {
    list-style: none;
    margin-bottom: 32px;
}

.agencies-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-weight: 500;
    color: var(--gray-700);
}

.agencies-features svg {
    color: var(--red);
}

.dashboard-preview {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.dashboard-header {
    background: var(--navy);
    color: var(--white);
    padding: 20px 24px;
    font-weight: 600;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 32px 24px;
    gap: 20px;
}

.dash-stat {
    text-align: center;
}

.dash-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.dash-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 20px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    padding: 60px 0 32px;
    color: var(--gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
}

.footer-brand p {
    color: var(--gray-400);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    padding: 8px 0;
    color: var(--gray-400);
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--gray-400);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-wrap: wrap;
        gap: 32px;
    }

    .step-arrow {
        display: none;
    }

    .step {
        flex: 0 0 calc(50% - 16px);
    }

    /* User types responsive */
    .user-types-grid {
        gap: 24px;
    }

    .user-type-card {
        padding: 32px;
    }

    .flow-steps {
        flex-wrap: wrap;
        gap: 24px;
    }

    .flow-step {
        flex: 0 0 calc(50% - 32px);
    }

    .flow-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-bg {
        width: 100%;
        height: 50%;
        clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex: 0 0 100%;
    }

    /* User types responsive */
    .user-types-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .user-type-connector {
        flex-direction: row;
        padding: 16px 0;
    }

    .connector-line {
        width: 60px;
        height: 2px;
    }

    .connector-text {
        writing-mode: horizontal-tb;
        margin-top: 0;
        margin-left: 16px;
    }

    .user-type-card {
        padding: 24px;
    }

    .connection-flow {
        padding: 32px 24px;
    }

    .flow-steps {
        flex-direction: column;
        gap: 24px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        justify-content: center;
        padding: 0;
    }

    .agencies-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
}
