/* Core Variables & Reset */
:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --blob-1: #4f46e5;
    --blob-2: #db2777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Dynamic Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--blob-2);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -50px) scale(1.1); }
    100% { transform: translate(-40px, 30px) scale(0.9); }
}

/* Layout & Typography */
.main-container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    z-index: 1;
}

.container:not(.main-container) {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    padding: 30px 40px;
    margin: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.header-content {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out forwards;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.container:not(.main-container) h1 {
    font-size: 2.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.container:not(.main-container) p {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.container:not(.main-container) ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.container:not(.main-container) li {
    margin: 15px 0;
}

/* App Icon (sub-pages) */
.app-large-icon {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.app-large-icon:hover {
    transform: scale(1.05);
}

/* Download Section & App Store Button */
.download-section {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background-color: #000000;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 16px;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    gap: 12px;
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
}

.app-store-btn svg {
    width: 28px;
    height: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-subtext {
    font-size: 0.65rem;
    line-height: 1;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-maintext {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Exo 2', sans-serif;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.policy-link {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Grid & Cards */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.app-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(45, 60, 85, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.15);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.app-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.app-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.card-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.app-card:hover .card-content h2 {
    color: var(--accent);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Links */
a:not(.app-card) {
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:not(.app-card):hover {
    color: #60a5fa;
    text-shadow: 0 0 8px var(--accent-glow);
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    font-size: 1em;
    color: var(--text-secondary);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Privacy Policy — left-aligned text override */
.privacy-policy h1,
.privacy-policy h2 {
    text-align: center;
}

.privacy-policy {
    text-align: left;
}

.privacy-policy ul {
    list-style-type: disc !important;
    padding-left: 20px !important;
}

.privacy-policy li {
    margin: 8px 0 !important;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .blob-1, .blob-2 { width: 300px; height: 300px; }
    .app-grid { grid-template-columns: 1fr; }
}
