/* ============================================
   LANDING NIGHT - Matching App Style
   Ocean Blue Theme
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e0f2fe;
    line-height: 1.6;
    background: #0a1929;
}

/* === SAME OCEAN BACKGROUND AS APP === */
.animated-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        linear-gradient(to bottom, #0a1929 0%, #1e293b 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #bae6fd, transparent),
        radial-gradient(2px 2px at 60px 70px, #7dd3fc, transparent),
        radial-gradient(1px 1px at 50px 50px, #e0f2fe, transparent),
        radial-gradient(1px 1px at 130px 80px, #bae6fd, transparent),
        radial-gradient(2px 2px at 90px 10px, #7dd3fc, transparent),
        radial-gradient(1px 1px at 40px 60px, #e0f2fe, transparent),
        radial-gradient(2px 2px at 110px 90px, #bae6fd, transparent),
        radial-gradient(1px 1px at 70px 40px, #7dd3fc, transparent);
    background-size: 200px 200px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    animation: twinkle 5s ease-in-out infinite;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
    animation: waves 20s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes waves {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(5deg); }
}

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

/* === SAME HEADER AS APP === */
.header {
    padding: 18px 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    filter: drop-shadow(0 0 16px rgba(14, 165, 233, 0.4));
    transition: all 0.3s;
}

.logo-img:hover {
    filter: drop-shadow(0 0 24px rgba(14, 165, 233, 0.7));
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

nav a:hover {
    color: #e0f2fe;
}

/* === SAME TOGGLE AS APP === */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #7dd3fc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    transform: scale(1.08);
}

/* === SAME BUTTONS AS APP === */
.btn {
    padding: 11px 22px;
    border-radius: 11px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #7dd3fc;
    border: 1.5px solid rgba(14, 165, 233, 0.4);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #7dd3fc;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 13px;
}

/* === HERO === */
.hero {
    padding: 80px 0 100px;
    text-align: center;
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    margin-bottom: 32px;
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.4));
}

.subtitle {
    font-size: 19px;
    color: #cbd5e1;
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* === FEATURES - SAME CARDS AS APP === */
.features {
    padding: 70px 0;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.25);
}

.card h3 {
    font-size: 22px;
    color: #e0f2fe;
    margin-bottom: 14px;
    font-weight: 700;
}

.card p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 15px;
}

.icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.icon-container svg {
    width: 44px;
    height: 44px;
    fill: #7dd3fc;
}

/* === PRICING === */
.pricing {
    padding: 80px 0;
}

.pricing h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 48px;
}

.pricing-wrapper {
    margin-bottom: 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.25);
}

.pricing-card h3 {
    font-size: 24px;
    color: #e0f2fe;
    margin-bottom: 16px;
    font-weight: 700;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #7dd3fc, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
}

.pricing-card li {
    color: #94a3b8;
    padding: 10px 0;
    font-size: 15px;
}

.pricing-grid-bottom {
    max-width: 320px;
    margin: 0 auto;
}

.pricing-note-container {
    margin-top: 32px;
    text-align: center;
}

.pricing-note {
    display: inline-block;
    background: rgba(15, 23, 42, 0.4);
    color: #94a3b8;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.2);
    font-size: 14px;
}

/* === FOOTER === */
.footer {
    background: rgba(15, 23, 42, 0.3);
    padding: 32px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
}

/* === MODAL - SAME AS APP === */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    padding: 36px;
    border-radius: 20px;
    max-width: 480px;
    width: calc(100% - 40px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.modal-content p {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 15px;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.2s;
}

.close:hover {
    background: rgba(14, 165, 233, 0.15);
    color: #e0f2fe;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.4);
    cursor: pointer;
    color: #e0f2fe;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.login-btn:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(14, 165, 233, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero {
        padding: 60px 0 70px;
    }
    
    .features {
        padding: 50px 0;
    }
    
    .pricing {
        padding: 60px 0;
    }
}