:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary-color: #3b82f6;
    --secondary-color: #8b5cf6;
    --card-bg: rgba(30, 41, 59, 0.4);
    --card-hover-bg: rgba(30, 41, 59, 0.8);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.6);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for dynamic design */
.bg-blobs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

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

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.25rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    flex-grow: 1;
}

.hero {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero p {
    font-size: 1.25rem;
}

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

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--card-hover-bg);
    color: white;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    margin-bottom: 5rem;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.about-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-card h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Section Headings */
.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-color);
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* App Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pro-grid .app-card {
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(30, 41, 59, 0.5);
}

.pro-grid .app-card:not(.coming-soon-card):hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.apps-grid a:nth-child(1) { animation-delay: 0.1s; }
.apps-grid a:nth-child(2) { animation-delay: 0.2s; }
.apps-grid a:nth-child(3) { animation-delay: 0.3s; }
.apps-grid a:nth-child(4), .apps-grid div.app-card:nth-child(4) { animation-delay: 0.4s; }
.apps-grid a:nth-child(5), .apps-grid div.app-card:nth-child(5) { animation-delay: 0.5s; }
.apps-grid a:nth-child(6), .apps-grid div.app-card:nth-child(6) { animation-delay: 0.6s; }
.apps-grid a:nth-child(7), .apps-grid div.app-card:nth-child(7) { animation-delay: 0.7s; }
.apps-grid div.app-card:nth-child(8) { animation-delay: 0.8s; }
.apps-grid div.app-card:nth-child(9) { animation-delay: 0.9s; }
.apps-grid div.app-card:nth-child(10) { animation-delay: 1.0s; }
.apps-grid div.app-card:nth-child(11) { animation-delay: 1.1s; }
.apps-grid div.app-card:nth-child(12) { animation-delay: 1.2s; }
.apps-grid div.app-card:nth-child(13) { animation-delay: 1.3s; }

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, transparent, transparent);
    transition: all 0.4s ease;
}

.app-card:hover {
    transform: translateY(-10px);
    background: var(--card-hover-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.app-card:not(.coming-soon-card):hover::before {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.coming-soon-card {
    cursor: default;
}

.coming-soon-card:hover {
    transform: none;
    background: var(--card-bg);
    box-shadow: none;
    border-color: var(--card-border);
}

.coming-soon-text {
    color: var(--text-muted);
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.card-icon svg {
    width: 30px;
    height: 30px;
}

.macros-icon { background: linear-gradient(135deg, #10b981, #059669); }
.read-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.speak-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.revers-icon { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.drafts-icon { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.meds-icon { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.wake-icon { background: linear-gradient(135deg, #eab308, #ca8a04); }
.mancala-icon { background: linear-gradient(135deg, #d97706, #78350f); }
.glass-icon { background: linear-gradient(135deg, #10b981, #047857); }
.hash-icon { background: linear-gradient(135deg, #64748b, #334155); }

.app-card p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.visit-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.app-card:hover .visit-link {
    gap: 0.75rem;
}

.coming-soon {
    text-align: center;
    padding: 3rem;
    border: 1px dashed var(--card-border);
    border-radius: 24px;
    color: var(--text-muted);
    font-style: italic;
    animation: fadeIn 1s 0.4s both;
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 0;
    margin-top: auto;
    background: rgba(15, 23, 42, 0.8);
}

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

.legal-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.separator {
    color: var(--card-border);
}

.legal-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.legal-links a:hover {
    color: var(--text-color);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Content Pages (Privacy / Terms) */
.content-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.content-section h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.back-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero { margin-bottom: 3rem; }
    .container { padding: 2rem 1.5rem; }
    .content-section { padding: 2rem 1.5rem; }
}
