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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.02);
}

.logo:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.625rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.nav-link i {
    color: var(--text-light);
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-link:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.btn-demo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: white;
}

.lang-switch:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50px;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}



.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.emergency-pulse {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* Dashboard Preview Section */
.dashboard-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 600;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--bg-light);
}

.alert-item.critical {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--danger-color);
}

.alert-item.warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning-color);
}

.alert-item.info {
    background: rgba(37, 99, 235, 0.1);
    border-left: 3px solid var(--primary-color);
}

.alert-icon {
    flex-shrink: 0;
}

.alert-item.critical .alert-icon {
    color: var(--danger-color);
}

.alert-item.warning .alert-icon {
    color: var(--warning-color);
}

.alert-item.info .alert-icon {
    color: var(--primary-color);
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.alert-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    background: white;
}

.trend-up {
    color: var(--success-color);
    font-weight: 600;
}

.chart-container {
    height: 200px;
    margin-bottom: 1rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.location-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.map-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
}

.marker-pulse {
    width: 100%;
    height: 100%;
    background: var(--danger-color);
    border-radius: 50%;
    animation: markerPulse 2s ease-in-out infinite;
}

.marker-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid var(--danger-color);
    border-radius: 50%;
    animation: markerRipple 2s ease-in-out infinite;
}

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

@keyframes markerRipple {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-icon {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-name {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Statistics Section */
.statistics {
    padding: 4rem 0;
    background: white;
}

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

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.stats-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
}

.comparison-card.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.comparison-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.data-source {
    font-size: 0.7rem;
    color: var(--text-light);
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 10px;
}

.comparison-stats {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.comparison-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.comparison-item.success {
    background: rgba(16, 185, 129, 0.08);
    border: 2px solid var(--success-color);
}

.comparison-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.comparison-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.improvement {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--success-color);
    color: white;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.375rem;
}

.comparison-arrow {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.stats-footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stats-reference {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.stats-reference i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.stats-source {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Disaster Section */
.disaster-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-year {
    width: 80px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-light);
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card p {
    flex: 0 0 auto;
}

.feature-demo {
    margin-top: auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.demo-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-action-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.demo-action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.demo-action-button:active {
    transform: translateY(0);
}

.demo-action-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.demo-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.emergency-button-demo {
    position: relative;
    width: 100px;
    height: 100px;
}

.button-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--danger-color);
    border-radius: 50%;
    animation: buttonRing 2s ease-in-out infinite;
}

.button-core {
    position: absolute;
    inset: 10px;
    background: var(--danger-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.button-core:hover {
    transform: scale(1.1);
}

@keyframes buttonRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}



@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notification-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    animation: slideIn 0.5s ease;
}

.notification-item.critical {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 3px solid var(--danger-color);
}

.notification-item.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 3px solid var(--warning-color);
}

.notification-item.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.security-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--success-color);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Solutions Section */
.solutions {
    background: var(--bg-light);
}

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

.solution-card {
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.solution-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.solution-card p {
    color: var(--text-light);
}

/* Interactive Demo Section */
.interactive-demo {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.demo-header .section-title {
    margin-bottom: 0.75rem;
}

.demo-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.demo-header .scenario-play {
    margin: 0 auto;
}

.scenario-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* Phone Mockup */
.phone-mockup {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.phone-frame {
    width: 100%;
    max-width: 280px;
    height: 580px;
    background: #1f2937;
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 24px;
    background: #1f2937;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

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

.screen-content {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%) scale(0.95);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.screen-content.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.app-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 0.5rem 0.75rem;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.625rem;
    margin-bottom: 0.35rem;
}

.status-icons {
    display: flex;
    gap: 0.35rem;
}

.app-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.screen-body {
    flex: 1;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

/* Screen 1: SOS Button */
.sos-container {
    text-align: center;
}

.sos-button {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.sos-ripple {
    position: absolute;
    inset: -15px;
    border: 2px solid var(--danger-color);
    border-radius: 50%;
    animation: sosRipple 2s ease-in-out infinite;
}

.sos-core {
    position: absolute;
    inset: 0;
    background: var(--danger-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

@keyframes sosRipple {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0; }
}

.sos-instruction {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Screen 2: Data Collection */
.data-collection {
    width: 100%;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

.data-item i:first-child {
    color: var(--primary-color);
    flex-shrink: 0;
}

.data-item span {
    flex: 1;
    font-size: 0.75rem;
}

.check-icon {
    color: var(--success-color);
    animation: checkPop 0.5s ease;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Screen 3: Notifications */
.notification-sending {
    text-align: center;
    width: 100%;
}

.sending-animation {
    margin-bottom: 2rem;
    color: var(--primary-color);
    animation: sendPulse 1.5s ease-in-out infinite;
}

@keyframes sendPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.recipient-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recipient {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 0.875rem;
}

.recipient i {
    color: var(--primary-color);
}

/* Screen 4: Response Team */
.response-team {
    width: 100%;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}

.avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.member-info {
    flex: 1;
    font-size: 0.875rem;
}

.member-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.member-info span {
    color: var(--text-light);
    font-size: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: var(--success-color);
    color: white;
}

.chat-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Screen 5: Tracking */
.tracking-info {
    width: 100%;
}

.timeline-mini {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.timeline-item-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    font-size: 0.875rem;
}

.timeline-item-mini.completed i {
    color: var(--success-color);
}

.timeline-item-mini.active i {
    color: var(--primary-color);
    animation: rotate 2s linear infinite;
}

.tracking-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.tracking-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tracking-stat i {
    color: var(--primary-color);
}

.tracking-stat div {
    font-size: 0.75rem;
}

.tracking-stat strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.tracking-stat span {
    color: var(--text-light);
}

/* Step Descriptions */
.scenario-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 580px;
    justify-content: space-between;
}

.step-description {
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.step-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--success-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.step-description.active {
    opacity: 1;
    border-color: var(--success-color);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, white 100%);
}

.step-description.active::before {
    transform: scaleY(1);
}

.step-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3px;
    height: 0;
    background: var(--success-color);
    transition: none;
}

.step-description.active .step-progress {
    animation: progressFill 2.5s linear forwards;
}

@keyframes progressFill {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

.step-content-mini {
    position: relative;
    z-index: 1;
}

.step-header-mini {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.375rem;
}

.step-icon-mini {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.step-description.active .step-icon-mini {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.step-description h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-dark);
}

.step-description p {
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
    font-size: 0.8rem;
    padding-left: 38px;
}

.scenario-play {
    cursor: pointer;
    border: none;
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.benefit-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
}

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

.benefit-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.benefit-features {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.benefit-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

.benefit-feature i {
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    color: var(--text-dark);
}

.contact-item strong {
    display: inline-block;
    width: 100px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-top {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.footer-cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.footer-cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.footer-cta-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-cta-text p {
    color: #cbd5e1;
    font-size: 1rem;
}

.footer-cta-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-color);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.footer-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
}

.footer-main {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

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

.footer-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section h4 i {
    color: var(--primary-color);
}

.footer-section a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

.footer-section a i {
    color: #64748b;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

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

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.footer-logo-tagline {
    font-size: 0.625rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.footer-stat {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.footer-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact-item i {
    color: #64748b;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-bottom-left p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.footer-certifications {
    display: flex;
    gap: 0.75rem;
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
}

.certification-badge i {
    color: #10b981;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-bottom-right a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-right a:hover {
    color: white;
}

.footer-bottom-right .separator {
    color: #475569;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-comparison {
        grid-template-columns: 1fr;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
    
    .scenario-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }
    
    .phone-mockup {
        position: relative;
        top: 0;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .scenario-steps {
        height: auto;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
    
    .footer-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .disasters-grid {
        grid-template-columns: 1fr;
    }
    
    .disaster-section {
        padding: 3rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 60px;
    }
    
    .timeline-year {
        width: 60px;
        font-size: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .scenario-container {
        padding: 1.5rem;
    }
    
    .sos-popup {
        width: 95%;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon i {
        width: 24px !important;
        height: 24px !important;
    }
    
    .logo-name {
        font-size: 1.25rem;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-cta {
        padding: 1.5rem;
    }
    
    .footer-cta-text h3 {
        font-size: 1.25rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Dashboard Enhancements */
.period-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
}

.metric-label i {
    color: var(--primary-color);
}

.metric-value {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.metric-value .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.metric-value .change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.metric-value .change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.metric-bar {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease;
}

.metric-fill.success {
    background: var(--success-color);
}

.metric-fill.warning {
    background: var(--warning-color);
}

.disasters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.disaster-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-light);
    transition: all 0.3s;
}

.disaster-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-left-color: var(--text-dark);
}

.disaster-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.disaster-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.disaster-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.875rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.meta-item i {
    color: var(--text-light);
    flex-shrink: 0;
}

.disaster-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* SOS Popup */
.sos-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sos-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sos-popup {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.sos-popup-overlay.active .sos-popup {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.popup-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--danger-color);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2);
}

.popup-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.popup-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.popup-timeline {
    padding: 2rem;
}

.popup-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.popup-step:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateX(5px);
}

.popup-step .step-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.popup-step .step-info {
    flex: 1;
}

.popup-step .step-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.popup-step .step-info span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.popup-step .step-time {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.popup-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.total-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-dark);
}

.total-time i {
    color: var(--warning-color);
}

.total-time strong {
    color: var(--primary-color);
}

/* Mode Switch Demo */
.mode-switch-demo {
    width: 100%;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background: var(--success-color);
    animation: statusPulse 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: var(--danger-color);
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.status-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mode-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mode-card {
    padding: 1rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    opacity: 0.5;
}

.mode-card.active {
    opacity: 1;
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.mode-card i {
    color: var(--primary-color);
}

.mode-card.active i {
    color: var(--success-color);
}

.mode-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mode-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-light);
}

.mode-card.active .mode-badge {
    background: var(--success-color);
    color: white;
}

/* AI Analysis Demo */
.ai-analysis-demo {
    width: 100%;
}

.analysis-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.analysis-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.analysis-label i {
    color: var(--primary-color);
}

.analysis-bar-container {
    height: 8px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.analysis-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.analysis-bar.risk {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.analysis-bar.resource {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.analysis-bar.readiness {
    background: linear-gradient(90deg, #10b981, #059669);
}

.analysis-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
}

/* Location Demo */
.location-demo {
    width: 100%;
}

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

.location-radar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
}

.location-radar.active .radar-ring:nth-child(1) {
    animation: radarPulse 2s ease-out infinite;
}

.location-radar.active .radar-ring:nth-child(2) {
    animation: radarPulse 2s ease-out 0.6s infinite;
}

.location-radar.active .radar-ring:nth-child(3) {
    animation: radarPulse 2s ease-out 1.2s infinite;
}

@keyframes radarPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.location-pin {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.location-radar.active .location-pin {
    animation: pinBounce 0.6s ease;
}

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

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.location-stat {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    text-align: center;
}

.location-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.location-stat .stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.location-stat .stat-value.status {
    color: var(--success-color);
}

/* Spin animation for loading icons */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Unified Feature Demo Styles */

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--success-color);
    border-radius: 28px;
    transition: 0.4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .toggle-slider {
    background: var(--warning-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.mode-demo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 140px;
}

.mode-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mode-status i {
    color: var(--success-color);
}

/* AI Metrics */
.ai-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-height: 140px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
}

.metric-row:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.metric-row.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid var(--primary-color);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-dark);
    font-weight: 500;
}

.metric-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.metric-row.highlight .metric-value {
    color: var(--text-dark);
    font-size: 0.85rem;
}

/* Location Result */
.location-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-coords {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    min-height: 60px;
}

.location-coords i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.location-coords span {
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
    flex: 1;
}

.location-accuracy {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
}

.accuracy-label {
    color: var(--text-light);
}

.accuracy-value {
    font-weight: 700;
    color: var(--success-color);
}

/* Notification Stack */
.notification-stack {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.notification-demo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid;
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    flex-shrink: 0;
}

.notification-demo-item.removing {
    animation: slideOutUp 0.4s ease forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.notification-demo-item.critical {
    border-left-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.notification-demo-item.warning {
    border-left-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.05);
}

.notification-demo-item.info {
    border-left-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.notification-demo-item i {
    flex-shrink: 0;
}

.notification-demo-item.critical i {
    color: var(--danger-color);
}

.notification-demo-item.warning i {
    color: var(--warning-color);
}

.notification-demo-item.info i {
    color: var(--primary-color);
}

.notification-demo-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    line-height: 1.3;
}

/* Security Status */
.security-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 140px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: white;
    border-radius: 8px;
}

.security-item i {
    color: var(--success-color);
    flex-shrink: 0;
}

.security-item span {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.security-item.checking {
    opacity: 0.6;
}

.security-item.checking i {
    animation: spin 1s linear infinite;
}

/* Emergency Button (keep existing) */
.emergency-button-demo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

/* App Store Popup Banner */
.app-popup-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.app-popup-banner.show {
    bottom: 0;
}

.popup-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.popup-close {
    position: absolute;
    top: -8px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.popup-banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.popup-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.popup-phone-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.popup-banner-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.popup-banner-text p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.3;
}

.popup-banner-right {
    display: flex;
    align-items: center;
}

.popup-store-buttons {
    display: flex;
    gap: 0.75rem;
}

.popup-store-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    min-width: 110px;
    justify-content: center;
}

.popup-store-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.popup-store-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-banner-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .popup-banner-left {
        justify-content: center;
    }
    
    .popup-store-buttons {
        width: 100%;
        max-width: 280px;
    }
    
    .popup-store-btn {
        flex: 1;
        min-width: auto;
    }
    
    .popup-close {
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    .popup-store-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .popup-store-btn {
        width: 100%;
    }
    
    .popup-banner-text h4 {
        font-size: 1rem;
    }
    
    .popup-banner-text p {
        font-size: 0.85rem;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.app-popup-banner.show {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for store buttons */
.popup-store-btn.apple:hover .popup-store-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.popup-store-btn.google:hover .popup-store-icon svg {
    transform: rotate(5deg) scale(1.1);
    transition: transform 0.3s ease;
}