/* ========================================
   Safe Space Landing Page Styles
   Based on App Design System
   Colors: Day/Night Theme Inspired
   ======================================== */

/* CSS Variables - App Color Palette */
:root {
    /* Light Theme (Day Mode) */
    --sun-yellow: #FFD93D;
    --sky-blue: #5FB3E5;
    --light-sky: #B8D8F0;
    --cloud-white: #EFF5FA;
    --background: #F5F5FA;
    --white: #FFFFFF;
    --dark-text: #1A1A2E;
    
    /* Functional Colors */
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --error-red: #EF4444;
    --info-blue: #3B82F6;
    
    /* Pastel Colors */
    --pastel-peach: #FFDDCC;
    --pastel-mint: #CCF0E8;
    --pastel-lavender: #E8D5F2;
    --pastel-pink: #F5CCDC;
    --pastel-yellow: #FFF4CC;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5FB3E5 0%, #3B82F6 100%);
    --gradient-accent: linear-gradient(135deg, #FFD93D 0%, #F59E0B 100%);
    --gradient-hero: linear-gradient(180deg, #B8D8F0 0%, #F5F5FA 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-text);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--sky-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark-text);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: var(--space-3xl);
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-cloud {
    position: absolute;
    background: var(--white);
    border-radius: 100px;
    opacity: 0.6;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 15%;
    left: 5%;
    animation: float 20s ease-in-out infinite;
}

.cloud-2 {
    width: 150px;
    height: 45px;
    top: 25%;
    right: 10%;
    animation: float 25s ease-in-out infinite reverse;
}

.cloud-3 {
    width: 180px;
    height: 50px;
    top: 40%;
    left: 15%;
    animation: float 22s ease-in-out infinite 2s;
}

.hero-sun {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--sun-yellow);
    border-radius: 50%;
    top: 10%;
    right: 15%;
    box-shadow: 0 0 60px rgba(255, 217, 61, 0.5);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(30px) translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-text);
    border: 2px solid var(--light-sky);
}

.btn-secondary:hover {
    border-color: var(--sky-blue);
    color: var(--sky-blue);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--sky-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--dark-text);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.app-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark-text);
}

.app-greeting {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-xl);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.mood-buttons {
    display: flex;
    justify-content: space-around;
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.mood {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mood:hover {
    transform: scale(1.2);
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-badge {
    display: inline-block;
    background: var(--pastel-mint);
    color: var(--success-green);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--background);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card-large {
    grid-column: span 1;
    grid-row: span 2;
    background: var(--gradient-hero);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: #555;
}

.feature-list li::before {
    content: '✓';
    color: var(--success-green);
    font-weight: bold;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    background: var(--gradient-hero);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.step-content p {
    color: #666;
    font-size: 0.95rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--sky-blue);
    font-weight: bold;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--background);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--sun-yellow);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 0.875rem;
    color: #888;
}

/* ========================================
   Security Section
   ======================================== */
.security {
    background: var(--background);
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.security-text p {
    color: #666;
    margin-bottom: var(--space-lg);
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.security-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 500;
}

.security-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.security-icon svg {
    opacity: 0.3;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--sky-blue);
    font-weight: 300;
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: #666;
    line-height: 1.7;
}

.faq-item[open] {
    background: var(--cloud-white);
}

/* ========================================
   Download Section
   ======================================== */
.download {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.download-title .highlight {
    background: linear-gradient(135deg, var(--sun-yellow), var(--warning-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.store-button {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--dark-text);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.download-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin-top: var(--space-sm);
    font-size: 0.8rem !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card-large {
        grid-row: span 1;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        margin: 0 auto var(--space-xl);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .security-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .security-icon {
        order: -1;
    }
    
    .security-list {
        align-items: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-description {
        margin: var(--space-md) auto 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 460px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .download-title {
        font-size: 1.75rem;
    }
    
    .store-button {
        padding: var(--space-sm) var(--space-lg);
    }
}

/* ========================================
   Animations & Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--sky-blue);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--sky-blue);
    color: var(--white);
}

/* ========================================
   Modal Styles
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--background);
    color: var(--dark-text);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--dark-text);
}

.modal-content p {
    color: #666;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.modal-hint {
    font-size: 0.9rem;
    color: #888;
}

.modal-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--space-md);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* RuStore button style */
.store-button.rustore {
    background: linear-gradient(135deg, #00C853, #00E676);
}

.store-button.rustore:hover {
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.3);
}

/* App Store coming soon style */
.store-button.app-store {
    position: relative;
    opacity: 0.85;
}

.store-button.app-store::after {
    content: 'Скоро';
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sun-yellow);
    color: var(--dark-text);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
}
