/* ============================================
   Blur Landing Page Styles
   ============================================ */

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Focus-visible for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #8B5CF6;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   Header / Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: 14px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

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

.navbar-brand {
    text-decoration: none;
}

.navbar-brand .logo {
    height: 32px;
    width: auto;
}

.navbar-nav {
    display: flex;
    gap: 36px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: #4B5563;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #6b7cff 0%, #b347ff 100%);
    border-radius: 1px;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #7C3AED;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: #1F2937;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 999;
}

.mobile-menu-content {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    text-decoration: none;
    color: #1F2937;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    transition: color 0.2s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #7C3AED;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 40%, #f7f8fb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tagline {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #7C3AED;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #6b7cff, #b347ff);
    border-radius: 1px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #6b7cff 0%, #b347ff 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 36px;
    color: #4B5563;
}

.desc-block {
    display: block;
    margin-bottom: 12px;
}

.desc-block:last-child {
    margin-bottom: 0;
}

.app-download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
    transform: translateY(-1px);
}

.download-btn img {
    display: block;
    width: auto;
}

/* Google Play badge PNG has ~33% vertical and ~13% horizontal
   built-in transparent padding.  Negative margin collapses that
   padding so the visible artwork aligns with the Apple badge.   */
.download-btn img.badge-google {
    height: 68px;
    margin: -11px;
}

.download-btn img.badge-apple {
    height: 46px;
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    max-width: 340px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(107, 124, 255, 0.2));
    z-index: 2;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.speech-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    width: 100px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    border-radius: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.bubble-1 {
    top: 10%;
    left: -15%;
    animation-delay: 0s;
}

.bubble-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 100px 0;
    background-color: #fff;
}

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

.feature-item {
    text-align: left;
    padding: 36px;
    background: #FAFAFE;
    border: 1px solid #F0EEFF;
    border-radius: 20px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(107, 124, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.feature-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    opacity: 0.25;
    line-height: 1;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1F2937;
    line-height: 1.3;
}

.feature-description {
    font-size: 15px;
    line-height: 1.7;
    color: #5B6270;
}

/* ============================================
   Safety Section
   ============================================ */
.safety {
    padding: 100px 0;
    background: linear-gradient(180deg, #F9FAFB 0%, #fff 100%);
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.safety-image {
    display: flex;
    justify-content: center;
}

.safety-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.safety-image img:hover {
    transform: scale(1.02);
}

.safety-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1F2937;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.safety-description {
    font-size: 17px;
    line-height: 1.8;
    color: #5B6270;
}

/* ============================================
   How it Works Section
   ============================================ */
.how-it-works {
    padding: 100px 0 60px;
    background-color: #fff;
}

.section-title {
    font-size: 44px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 72px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.work-step {
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid #F3F4F6;
}

.work-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.reverse .step-content {
    direction: rtl;
}

.reverse .step-text {
    direction: ltr;
}

.step-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1F2937;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.step-description {
    font-size: 17px;
    line-height: 1.8;
    color: #5B6270;
}

.step-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-phone {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(107, 124, 255, 0.12));
}

.connection-phones {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.chat-phone {
    transform: translateY(20px) scale(0.9);
}

.profile-bubbles,
.connection-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.profile-bubble,
.connection-bubble,
.connection-emoji,
.connection-bubble-2 {
    position: absolute;
    width: 60px;
    height: auto;
    border-radius: 15px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.06));
}

.profile-bubble {
    top: 10%;
    right: -20%;
}

.connection-bubble {
    top: 15%;
    left: -15%;
}

.connection-emoji {
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
    background: #FCD34D;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-bubble-2 {
    bottom: 20%;
    right: -10%;
    animation-delay: 1s;
}

/* ============================================
   CTA Section (before footer)
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.cta-buttons .download-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: #111827;
    color: #fff;
    padding: 72px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr 1.2fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-company {
    text-align: center;
}

.footer-company p {
    margin-bottom: 8px;
    color: #9CA3AF;
    font-size: 13px;
    line-height: 1.6;
}

.footer-sections {
    display: flex;
    gap: 48px;
    justify-content: flex-end;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p,
.footer-link {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #D1D5DB;
}

.app-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.app-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.app-button:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.app-button img {
    display: block;
    width: auto;
}

.app-button img.badge-google {
    height: 50px;
    margin: -8px;
}

.app-button img.badge-apple {
    height: 34px;
}

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #6B7280;
    font-size: 13px;
}

/* ============================================
   Button Styles
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Responsive - Tablet (1024px)
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .safety-content,
    .step-content {
        gap: 48px;
    }

    .safety-title {
        font-size: 34px;
    }

    .section-title {
        font-size: 38px;
    }

    .step-title {
        font-size: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-sections {
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .app-buttons {
        align-items: center;
    }

    .connection-phones .step-phone {
        max-width: 220px;
    }
}

/* ============================================
   Responsive - Mobile (768px)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 110px 0 60px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-tagline {
        justify-content: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .app-download-buttons {
        justify-content: center;
    }

    .hero-phone {
        max-width: 260px;
    }

    .features {
        padding: 72px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 28px;
    }

    .feature-number {
        font-size: 40px;
    }

    .safety {
        padding: 72px 0;
    }

    .safety-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .safety-title {
        font-size: 30px;
    }

    .how-it-works {
        padding: 72px 0 40px;
    }

    .step-content,
    .reverse .step-content {
        grid-template-columns: 1fr;
        gap: 36px;
        direction: ltr;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 48px;
    }

    .step-title {
        font-size: 26px;
    }

    .work-step {
        margin-bottom: 60px;
        padding-bottom: 60px;
    }

    .step-phone {
        max-width: 220px;
    }

    .connection-phones {
        flex-direction: column;
        gap: 16px;
    }

    .chat-phone {
        transform: translateY(0) scale(0.95);
    }

    .connection-phones .step-phone {
        max-width: 200px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-description {
        font-size: 16px;
    }

    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-sections {
        justify-content: center;
        flex-wrap: wrap;
        gap: 32px;
    }

    .app-buttons {
        align-items: center;
    }
}

/* ============================================
   Responsive - Small Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .safety-title {
        font-size: 26px;
    }

    .step-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 24px;
    }
}
