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

body {
    font-family: 'San Francisco', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1a1e2e;
    background: #fff;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1e2e;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: #e84040; }

/* Hero — dark base with a sweep of all 4 logo colors */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0c1a2e 0%, #153060 30%, #c83030 65%, #e8a020 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

/* Subtle colorful glow blobs in the hero background */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61,181,92,0.18) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,128,212,0.2) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 24px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.22);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.store-btn img {
    height: 54px;
    width: auto;
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}

.store-btn:hover img {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Sections */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a1e2e;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    line-height: 1.8;
}

/* Features */
.features {
    padding: 96px 0;
    background: #f7f8fa;
}

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

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border-top: 3px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover { transform: translateY(-4px); }

/* Cycle all 4 logo colors across cards */
.feature-card:nth-child(4n+1):hover { border-top-color: #e84040; box-shadow: 0 8px 32px rgba(232,64,64,0.12); }
.feature-card:nth-child(4n+2):hover { border-top-color: #4a80d4; box-shadow: 0 8px 32px rgba(74,128,212,0.12); }
.feature-card:nth-child(4n+3):hover { border-top-color: #f5a623; box-shadow: 0 8px 32px rgba(245,166,35,0.12); }
.feature-card:nth-child(4n+4):hover { border-top-color: #3db55c; box-shadow: 0 8px 32px rgba(61,181,92,0.12); }

.feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1e2e;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.93rem;
    color: #666;
    line-height: 1.7;
}

/* On-device badge — blue petal */
.on-device {
    display: inline-block;
    background: #e8f0fb;
    color: #3a72b8;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 8px;
    margin-top: 8px;
}

/* Privacy section */
.privacy {
    padding: 96px 0;
    background: #fff;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.privacy-item {
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
}

/* Each privacy card gets its own logo color */
.privacy-item:nth-child(1) { background: #fef0f0; border-bottom: 3px solid #e84040; }
.privacy-item:nth-child(2) { background: #eef4fd; border-bottom: 3px solid #4a80d4; }
.privacy-item:nth-child(3) { background: #edfaf2; border-bottom: 3px solid #3db55c; }

.privacy-item .privacy-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.privacy-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1e2e;
    margin-bottom: 8px;
}

.privacy-item p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.7;
}

/* CTA — dark with a multi-color gradient echo */
.cta {
    background: linear-gradient(135deg, #0c1a2e 0%, #153060 40%, #c83030 75%, #e8a020 100%);
    padding: 96px 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: #0c1520;
    padding: 40px 24px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    opacity: 0.9;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

/* Page Header (inner pages) */
.page-header {
    background: linear-gradient(135deg, #0c1a2e 0%, #153060 40%, #c83030 75%, #e8a020 100%);
    padding: 140px 24px 72px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
}

/* Contact */
.contact-section {
    padding: 80px 0;
    background: #f7f8fa;
}

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

.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

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

.contact-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1e2e;
}

.contact-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

.contact-link {
    font-size: 1rem;
    font-weight: 600;
    color: #e84040;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover { color: #c83030; }

/* Legal */
.legal-section {
    padding: 80px 0;
    background: #fff;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1e2e;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.legal-content p {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 8px 0 16px 24px;
    list-style: disc;
}

.legal-content li {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 4px;
}

.legal-content small {
    font-size: 0.85rem;
    color: #888;
}

/* Nav active */
.nav-active {
    color: #e84040 !important;
    font-weight: 700;
}

/* Language switcher dropdown */
.nav-lang {
    position: relative;
    margin-left: 24px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    color: #555;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-toggle:hover,
.nav-lang.open .lang-toggle {
    color: #e84040;
    border-color: rgba(232,64,64,0.4);
    background: rgba(232,64,64,0.05);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
    min-width: 110px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.nav-lang.open .lang-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 9px 16px;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
}

.lang-option:hover,
.lang-option.lang-active {
    color: #e84040;
    background: rgba(232,64,64,0.05);
}

/* Responsive */
@media (max-width: 600px) {
    .nav-container { padding: 0 12px; gap: 8px; }
    .logo-text { font-size: 1.1rem; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.82rem; }
    .footer-container { justify-content: center; text-align: center; }
    .footer-nav { justify-content: center; }
}
