/* Havuja - Modern Landing Page & Legal Documents */

:root {
    --primary-color: #1A365D;
    --primary-dark: #2C5282;
    --text-color: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-light: #ffffff;
    --bg-color: #ffffff;
    --bg-secondary: #f5f5f7;
    --border-color: #d2d2d7;

    /* Winter gradient colors */
    --gradient-start: #1a365d;
    --gradient-mid: #2c5282;
    --gradient-end: #4299e1;
    --gradient-accent: #90cdf4;
}

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

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

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

/* =============================================================================
   LANDING PAGE STYLES
   ============================================================================= */

.landing-page {
    padding: 0;
}

/* Hero Gradient Section */
.hero-gradient {
    background: linear-gradient(135deg,
        var(--gradient-start) 0%,
        var(--gradient-mid) 50%,
        var(--gradient-end) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(144, 205, 244, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.app-icon {
    font-size: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.hero-gradient h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-gradient .tagline {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-description {
    font-size: 18px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* App Badges */
.app-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.coming-soon-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, background 0.2s;
}

.coming-soon-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.badge-icon {
    font-size: 36px;
}

.badge-text {
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
}

.badge-text strong {
    font-size: 18px;
    display: block;
}

/* App Store Badge */
.app-store-badge {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.app-store-badge img {
    height: 54px;
    width: auto;
}

/* Snow particles effect */
.snow-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.4), transparent);
    background-size: 200px 200px;
    animation: snow 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes snow {
    0% { background-position: 0 0; }
    100% { background-position: 200px 400px; }
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* Legal Section */
.legal-section {
    padding: 60px 20px;
    background: white;
}

.legal-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
}

.legal-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.legal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 40px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    min-width: 200px;
}

.legal-card:hover {
    transform: translateY(-3px);
    background: #e8e8ed;
    text-decoration: none;
}

.legal-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.legal-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-color);
}

.legal-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    background: var(--gradient-start);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
}

footer .copyright {
    opacity: 0.8;
    font-size: 14px;
    margin-bottom: 10px;
}

footer .contact a {
    color: var(--gradient-accent);
    text-decoration: none;
}

footer .contact a:hover {
    text-decoration: underline;
}

/* =============================================================================
   LEGAL PAGES STYLES (Privacy, Terms)
   ============================================================================= */

body:not(.landing-page) {
    padding: 20px;
}

body:not(.landing-page) .container {
    max-width: 800px;
    background: white;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

header .tagline {
    font-size: 21px;
    color: var(--text-secondary);
}

/* Main Content */
main {
    padding: 40px 20px;
}

section {
    margin-bottom: 40px;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-color);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
}

/* Legal Pages Specific */
.legal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.legal-meta {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 15px;
}

.language-switch {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.language-switch a {
    margin: 0 15px;
    font-weight: 500;
}

/* Code and Emphasis */
code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 15px;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    background: var(--bg-secondary);
}

/* =============================================================================
   RESPONSIVE STYLES
   ============================================================================= */

@media (max-width: 768px) {
    .hero-gradient h1 {
        font-size: 42px;
    }

    .hero-gradient .tagline {
        font-size: 20px;
    }

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

    .app-icon {
        font-size: 60px;
    }

    .app-badges {
        flex-direction: column;
        align-items: center;
    }

    .coming-soon-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .features {
        padding: 50px 20px;
    }

    .features h2 {
        font-size: 28px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 36px;
    }

    header .tagline {
        font-size: 18px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 21px;
    }

    main {
        padding: 20px 15px;
    }
}

/* Print Styles */
@media print {
    .hero-gradient,
    .features,
    .snow-particles,
    footer {
        display: none;
    }

    .back-link,
    .language-switch {
        display: none;
    }
}
