@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #030807;
    --pond-deep: #050f0d;
    --pond-mid: #0d231c;
    --pond-glow: #14382e;
    --accent-orange: #eb851a;
    --accent-blue: #1a40bf;
    --accent-blue-glow: rgba(26, 64, 191, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0b0ad;
    --glass-bg: rgba(20, 56, 46, 0.2);
    --glass-border: rgba(26, 64, 191, 0.18);
    --card-hover-border: rgba(235, 133, 26, 0.45);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 20%, var(--pond-glow) 0%, var(--pond-mid) 45%, var(--bg-color) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 100;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 16px var(--accent-blue-glow);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 28, 22, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    min-width: 140px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    z-index: 200;
}

.lang-dropdown.active {
    display: flex;
}

.lang-dropdown button {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-dropdown button:hover {
    background: rgba(235, 133, 26, 0.18);
    color: var(--text-primary);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px 24px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.icon-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 28px;
    animation: float 6s ease-in-out infinite;
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    box-shadow: 0 16px 48px rgba(26, 64, 191, 0.4);
}

.app-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 30%, #b2dbd5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 720px;
    line-height: 1.6;
    font-weight: 300;
}

.download-section {
    margin-bottom: 64px;
}

.store-badge {
    display: inline-block;
    height: 60px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-badge img {
    height: 100%;
}

.store-badge:hover {
    transform: scale(1.05);
}

/* Two Columns Grid Layout */
.features-detailed {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: left;
}

.detail-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.detail-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(235, 133, 26, 0.06);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-icon {
    font-size: 2.2rem;
}

.detail-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-card li {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 24px;
}

.detail-card li::before {
    content: "•";
    color: var(--accent-orange);
    font-size: 1.4rem;
    position: absolute;
    left: 6px;
    top: -3px;
}

/* Localization active handling */
[lang]:not(html) {
    display: none;
}

[lang="ru"].active,
[lang="en"].active,
[lang="ua"].active,
[lang="es"].active,
[lang="fr"].active,
[lang="de"].active {
    display: block;
}

/* Legal & Form styling - Increased width to 1050px and optimized padding */
.legal-container {
    width: 100%;
    max-width: 1050px;
    text-align: left;
    margin: 40px auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 32px;
}

.legal-back-btn:hover {
    color: var(--text-primary);
}

.legal-container h1 {
    font-size: 2.2rem;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 16px;
}

.legal-container h2 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-container p, .legal-container li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-container ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px var(--accent-blue-glow);
}

/* Turnstile Captcha Center Alignment */
.captcha-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.submit-btn {
    background: var(--accent-orange);
    border: none;
    color: white;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 133, 26, 0.35);
}

.success-banner {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid #28a745;
    color: #28a745;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 600;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(3, 8, 7, 0.95);
    width: 100%;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    z-index: 50;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-copy {
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
}

/* Float Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Mobile responsive */
@media (max-width: 900px) {
    .features-detailed {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .app-title {
        font-size: 2.8rem;
    }
}

/* Specific Smartphone Optimization (under 600px width) */
@media (max-width: 600px) {
    main {
        padding: 0 12px 60px 12px; /* Halved main viewport side padding to 12px */
    }
    
    .legal-container {
        background: none; /* Removed gray box background completely */
        border: none; /* Removed border */
        box-shadow: none; /* Removed shadow */
        padding: 10px 0; /* Zero side padding so text uses full screen width */
        margin: 10px 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .legal-back-btn {
        margin-bottom: 20px;
    }

    .legal-container h1 {
        font-size: 1.8rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .legal-container h2 {
        font-size: 1.25rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }
}
