/* ===========================
   CSS VARIABLES & THEMES
   =========================== */
:root {
    --bg: #0B0F19;
    --bg-secondary: #111827;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --text: #F3F4F6;
    --text-muted: #9CA3AF;
    --accent: #8B5CF6;
    --accent-2: #EC4899;
    --accent-glow: rgba(139, 92, 246, 0.35);
    --nav-h: 76px;
}

[data-theme="light"] {
    --bg: #F5F3FF;
    --bg-secondary: #EDE9FE;
    --surface: rgba(139, 92, 246, 0.06);
    --surface-hover: rgba(139, 92, 246, 0.12);
    --border: rgba(139, 92, 246, 0.15);
    --text: #1F2937;
    --text-muted: #6B7280;
    --accent: #7C3AED;
    --accent-2: #DB2777;
    --accent-glow: rgba(124, 58, 237, 0.25);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===========================
   ANIMATED BACKGROUND BLOBS
   =========================== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    animation: blobFloat 18s infinite ease-in-out alternate;
}

.blob-1 {
    top: -15%;
    left: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(139,92,246,0.45) 0%, transparent 70%);
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(236,72,153,0.35) 0%, transparent 70%);
    animation-delay: -9s;
}

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.08); }
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 100;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(245, 243, 255, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 2rem;
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 7px;
    transition: all 0.2s;
    line-height: 1;
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
}

.lang-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
    display: inline-block;
}

/* Theme Button */
.theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.theme-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--accent);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 680px;
    width: 100%;
    text-align: center;
    padding: 3.5rem 3rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.2));
    border: 1px solid rgba(139,92,246,0.35);
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.75rem;
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

/* Download section */
.download-section {
    margin-top: 0.5rem;
}

.download-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-width: 160px;
}

.store-btn:not(.store-btn-disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
    border-color: var(--accent);
}

.store-btn-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(40%);
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-top {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.store-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.soon-badge {
    position: absolute;
    top: -9px;
    right: -6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ===========================
   GLASS CARD
   =========================== */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.15);
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
    padding: 5rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--accent-glow);
}

.feat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

.footer-links a:hover { opacity: 0.75; }

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* ===========================
   LEGAL PAGES STYLES
   =========================== */
.legal-section {
    padding: 3rem 2rem 5rem;
    min-height: calc(100vh - var(--nav-h));
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem;
}

.legal-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.text-block h3 {
    font-size: 1.3rem;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.text-block p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.6rem; }
    .hero-content { padding: 2.5rem 1.75rem; }
    .legal-content { padding: 2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .store-buttons { flex-direction: column; align-items: center; }
    .store-btn { width: 100%; max-width: 220px; }
    .section-title { font-size: 1.9rem; }
    .legal-content h2 { font-size: 1.8rem; }
}
