/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:      #030305;
    --bg-card:      rgba(20, 20, 30, 0.4);
    --bg-card-hover:rgba(30, 30, 45, 0.6);
    --border:       rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --blue:         #3B82F6;
    --blue-light:   #60A5FA;
    --indigo:       #818CF8;
    --red:          #EF4444;
    --red-glow:     rgba(239, 68, 68, 0.5);
    --green:        #10B981;
    --purple:       #A855F7;
    --orange:       #F97316;
    --yellow:       #F59E0B;
    --text-primary: #F8FAFC;
    --text-muted:   #94A3B8;
    --text-dim:     #CBD5E1;
    --radius:       20px;
    --radius-sm:    12px;
}

[data-theme="light"] {
    --bg-deep:      #F8FAFC;
    --bg-card:      rgba(255, 255, 255, 0.6);
    --bg-card-hover:rgba(255, 255, 255, 0.9);
    --border:       rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --text-primary: #0F172A;
    --text-muted:   #475569;
    --text-dim:     #334155;
}
[data-theme="light"] .logo-icon {
    mix-blend-mode: normal !important;
    filter: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
[data-theme="light"] .feature-card {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .whatsapp-tooltip {
    background: white;
}
[data-theme="light"] .changelog-section {
    background: white;
}
[data-theme="light"] .version-option {
    background: white;
}
[data-theme="light"] .cta-card {
    background: white;
}
[data-theme="light"] .stat-num {
    color: var(--text-primary);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── GRADIENT TEXT ──────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-light), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 40px 0;
    width: 100%;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; }
.logo-text { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; }

.nav-cta {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-light);
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}
.nav-cta:hover { background: rgba(59, 130, 246, 0.3); transform: translateY(-1px); }

.theme-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
}
[data-theme="light"] .theme-toggle {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .sun-icon { display: block !important; }
[data-theme="light"] .moon-icon { display: none !important; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
    pointer-events: none;
}

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue-light);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 480px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}
.btn-primary.large { padding: 16px 32px; font-size: 1.05rem; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    text-decoration: none;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-muted);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px dashed var(--border);
}

.pulse { animation: pulse-glow 2s infinite; }
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35); }
    50% { box-shadow: 0 4px 35px rgba(59, 130, 246, 0.6); }
}

/* ── VERSION SELECTOR ──────────────────────────────────────── */
.version-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.version-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.version-option:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}
.version-option.recommended {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}
.version-option.recommended:hover {
    border-color: rgba(59, 130, 246, 0.6);
}

.version-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.version-option.recommended .version-radio {
    border-color: var(--blue-light);
}
.version-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue-light);
    opacity: 0;
    transition: opacity 0.2s;
}
.version-option.recommended .version-radio::after {
    opacity: 1;
}

.version-info { flex: 1; }
.version-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.version-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.version-size { font-weight: 700; font-size: 0.9rem; color: var(--blue-light); white-space: nowrap; }
.version-badge {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-light);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ── CHANGELOG ─────────────────────────────────────────────── */
.changelog-section {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.changelog-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.changelog-toggle svg {
    transition: transform 0.3s;
    color: var(--text-muted);
}

.changelog-toggle.open svg {
    transform: rotate(180deg);
}

.changelog-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.changelog-content.open {
    max-height: 500px;
}

.changelog-content ul {
    list-style: none;
    padding: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-content li {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.changelog-content li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── HERO STATS ────────────────────────────────────────────── */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── PHONE MOCKUP ──────────────────────────────────────────── */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-frame {
    width: 260px;
    height: 520px;
    background: #0a0a12;
    border-radius: 36px;
    padding: 10px;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.08),
        0 40px 80px rgba(0,0,0,0.6),
        0 0 60px rgba(59, 130, 246, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 22px;
    background: #0a0a12;
    border-radius: 12px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
}
.status-icons { display: flex; gap: 6px; align-items: center; }

.new-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: transparent;
    position: relative;
    z-index: 10;
}
.app-header-left { display: flex; align-items: center; gap: 8px; }
.app-header-logo { width: 24px; height: 24px; mix-blend-mode: screen; }
.app-header-title { color: #DC2626; font-weight: 800; font-size: 1.1rem; }
.app-header-right { display: flex; align-items: center; gap: 12px; }
.app-avatar { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }

.new-app-location {
    margin: 8px 16px;
    background: #2B2B36;
    border-radius: 16px;
    padding: 12px 16px;
    position: relative;
    z-index: 2;
}
.loc-title { color: #EF4444; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; }
.loc-address { font-size: 0.85rem; font-weight: 600; color: white; }

.app-map-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(180deg, #5C7262 0%, #1A1C23 100%);
    opacity: 0.2;
    z-index: 1;
}
.map-line { position: absolute; background: rgba(255,255,255,0.05); }
.line1 { width: 100%; height: 2px; top: 40%; transform: rotate(15deg); }
.line2 { height: 100%; width: 2px; left: 60%; transform: rotate(-20deg); }

.new-app-sos-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    z-index: 2;
    margin-top: 10px;
}
.new-sos-ring {
    position: absolute;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
}
.ring-1 { width: 140px; height: 140px; }
.ring-2 { width: 180px; height: 180px; background: rgba(220, 38, 38, 0.05); }
.ring-3 { width: 220px; height: 220px; background: rgba(220, 38, 38, 0.02); }

.new-sos-btn {
    width: 100px;
    height: 100px;
    background: #DC2626;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
}
.new-sos-title { font-size: 1.6rem; font-weight: 900; color: white; line-height: 1; }
.new-sos-subtitle { font-size: 0.55rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

.new-app-cards-container {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    position: relative;
}
.new-app-card {
    background: #202130;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-icon-container { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.card-icon { font-size: 1.2rem; }
.card-content { flex: 1; }
.card-title { font-weight: 700; font-size: 0.85rem; color: white; }
.card-subtitle { font-size: 0.7rem; color: #9CA3AF; margin-top: 2px; }
.bold-text { font-weight: 600; color: white; }
.red-text { color: #EF4444; font-weight: 600; }

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #EF4444;
}
.toggle-switch {
    width: 36px; height: 20px; border-radius: 10px; background: #374151; position: relative;
}
.toggle-switch.active { background: #EF4444; }
.toggle-knob {
    width: 16px; height: 16px; border-radius: 50%; background: white;
    position: absolute; top: 2px; right: 2px;
}

.new-app-card-row {
    display: flex;
    gap: 8px;
}
.new-app-card.half { flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; }
.new-app-card.half .card-icon-container { margin-bottom: -4px; }

.new-app-bottom-nav {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: #1A1C23;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 10;
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.5; }
.nav-item.active { opacity: 1; }
.nav-icon { font-size: 1.1rem; }
.nav-item span { font-size: 0.6rem; font-weight: 600; }
.nav-item.active span { color: #EF4444; }

/* ── SECTIONS ──────────────────────────────────────────────── */
.section-label {
    display: inline-block;
    color: var(--blue-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

/* ── FEATURES ──────────────────────────────────────────────── */
.features { padding: 100px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.feature-highlight {
    border-color: rgba(239, 68, 68, 0.3);
    grid-column: span 2;
}
.feature-highlight:hover { border-color: rgba(239, 68, 68, 0.5); }

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.feature-icon.red { background: rgba(239, 68, 68, 0.12); }
.feature-icon.blue { background: rgba(59, 130, 246, 0.12); }
.feature-icon.green { background: rgba(16, 185, 129, 0.12); }
.feature-icon.purple { background: rgba(168, 85, 247, 0.12); }
.feature-icon.orange { background: rgba(249, 115, 22, 0.12); }
.feature-icon.yellow { background: rgba(245, 158, 11, 0.12); }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.feature-tag {
    display: inline-block;
    margin-top: 14px;
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how-it-works { padding: 80px 0; background: rgba(255,255,255,0.02); }

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.step {
    flex: 1;
    text-align: center;
    max-width: 300px;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--blue);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.step-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), transparent);
    margin-top: 30px;
    opacity: 0.4;
}

/* ── CTA ───────────────────────────────────────────────────── */
.cta-section { padding: 80px 0; }

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
}

.cta-card > h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-card > p { color: var(--text-dim); font-size: 1rem; margin-bottom: 36px; }

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-note { font-size: 0.78rem; color: var(--text-muted); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
    }
    .phone-mockup { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-highlight { grid-column: span 2; }
    .steps { flex-direction: column; }
    .step-connector { width: 2px; height: 40px; margin: 0 auto; }
    .cta-card { padding: 40px 24px; }
    .nav { padding: 16px 20px; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .feature-highlight { grid-column: span 1; }
    .hero-title { font-size: 2rem; }
    .version-option { padding: 12px 14px; }
    .version-size { font-size: 0.8rem; }
}

/* ── WHATSAPP FLOATING BUTTON ───────────────────────────────── */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(10px);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
    .whatsapp-tooltip { display: none; }
}
