/* =========================================
   ARAF DICTIONARY | ULTRA PREMIUM CSS 
   THEME: Deep Black, Gunmetal Grey, Silver
   ========================================= */

:root {
    /* Core Palette */
    --black-absolute: #000000;
    --black-rich: #0a0a0a;
    --grey-dark: #121212;
    --grey-panel: #1a1b1e;
    --grey-border: #2d2d30;
    
    /* Typography Palette */
    --text-white: #ffffff;
    --text-silver: #e0e0e0;
    --text-muted: #888888;
    
    /* Accents */
    --accent-silver: #a1a1aa;
    --accent-glow: rgba(161, 161, 170, 0.15);
    
    /* Glassmorphism */
    --glass-bg: rgba(26, 27, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Base & Scrollbar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--black-absolute);
}
::-webkit-scrollbar-thumb {
    background: var(--grey-border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-silver);
}

::selection {
    background: var(--accent-silver);
    color: var(--black-absolute);
}

body {
    background-color: var(--black-rich);
    color: var(--text-silver);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* --- Ambient Background --- */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(30, 30, 35, 0.5), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(20, 20, 25, 0.5), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* --- Typography Utilities --- */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #71717a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo-icon-wrapper {
    background: var(--grey-border);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-white);
    transition: var(--transition-smooth);
}

.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }

/* --- Buttons --- */
.btn {
    padding: 16px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-nav {
    padding: 10px 24px;
    border-radius: 6px;
    background: var(--text-white);
    color: var(--black-absolute);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}
.btn-nav:hover { background: var(--text-silver); transform: scale(1.05); }

.btn-glow {
    background: var(--text-white);
    color: var(--black-absolute);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--grey-border);
}
.btn-outline:hover {
    background: var(--grey-panel);
    border-color: var(--accent-silver);
}

.btn-full { width: 100%; justify-content: center; }

/* --- Hero Section --- */
.hero {
    padding: 180px 8% 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--grey-panel);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-silver);
    margin-bottom: 30px;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 90%;
}

.hero-actions { display: flex; gap: 20px; }

/* Visualizer (CSS App Mockup) */
.hero-visual { position: relative; }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.visualizer-card {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float-slow 6s ease-in-out infinite;
}

.visualizer-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--black-rich);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid var(--grey-border);
    margin-bottom: 30px;
    color: var(--text-muted);
}

.mock-word h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.mock-type { color: var(--accent-silver); font-style: italic; margin-bottom: 20px; display: block; }

.mock-line {
    height: 10px;
    background: var(--grey-border);
    border-radius: 5px;
    margin-bottom: 12px;
}
.line-1 { width: 100%; }
.line-2 { width: 80%; }
.line-3 { width: 60%; }

/* --- Stats Strip --- */
.stats-strip {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 60px 8%;
    background: linear-gradient(90deg, transparent, rgba(26, 27, 30, 0.8), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-item { text-align: center; }
.stat-item i { font-size: 2rem; color: var(--text-white); margin-bottom: 15px; }
.stat-item h2 { font-size: 3rem; font-weight: 900; letter-spacing: -1px; color: var(--text-white); }
.stat-item p { color: var(--text-muted); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }

/* --- Features Section --- */
.features-section {
    padding: 120px 8%;
    background: var(--grey-dark);
}

.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 3rem; margin-bottom: 15px; }
.section-title p { color: var(--text-muted); font-size: 1.2rem; }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.glass-feature-card {
    background: var(--grey-panel);
    border: 1px solid var(--grey-border);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-silver);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}
.glass-feature-card:hover::before { opacity: 1; }

.feature-icon-box {
    width: 60px; height: 60px;
    background: var(--black-rich);
    border: 1px solid var(--grey-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 25px;
    transition: var(--transition-smooth);
}

.glass-feature-card:hover .feature-icon-box {
    background: var(--text-white);
    color: var(--black-absolute);
    transform: rotate(5deg) scale(1.1);
}

.glass-feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-white); }
.glass-feature-card p { color: var(--text-muted); font-size: 1rem; }

/* --- Download Section --- */
.download-section {
    padding: 120px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--grey-panel) 0%, var(--black-absolute) 100%);
}

.download-container {
    max-width: 1000px;
    width: 100%;
    padding: 60px;
    text-align: center;
}

.glow-border {
    position: relative;
}
.glow-border::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 16px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    z-index: -1;
    animation: border-glow 4s linear infinite;
}

.download-header i { font-size: 3rem; color: var(--text-white); margin-bottom: 20px; }
.download-header h2 { font-size: 3rem; margin-bottom: 15px; }
.download-header p { color: var(--text-muted); margin-bottom: 50px; font-size: 1.2rem; }

.download-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.download-card {
    background: var(--black-rich);
    border: 1px solid var(--grey-border);
    padding: 40px 30px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}
.download-card:hover { border-color: var(--accent-silver); transform: translateY(-5px); }

.download-card i { font-size: 2.5rem; margin-bottom: 20px; }
.apk-icon { color: #3DDC84; } /* Subtle Android color hint */
.store-icon { color: var(--text-white); }

.download-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-white); }
.download-card p { color: var(--text-muted); margin-bottom: 30px; font-size: 0.95rem; }

.divider-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-weight: 900;
    letter-spacing: 2px;
}
.divider-vertical::before, .divider-vertical::after {
    content: '';
    width: 1px;
    height: 80px;
    background: var(--grey-border);
    margin: 15px 0;
}

.uptodown-wrapper img {
    max-width: 220px;
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(20%); /* Matches theme slightly */
}
.uptodown-wrapper img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* --- Footer --- */
.glass-footer {
    background: var(--black-absolute);
    border-top: 1px solid var(--grey-border);
    padding: 80px 8% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 400px;
}

.footer-links h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}
.footer-links a:hover { color: var(--text-white); padding-left: 5px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--grey-border);
}

.primary-copy { color: var(--text-white); font-weight: 700; font-size: 1.1rem; }
.secondary-copy { color: var(--text-muted); font-size: 0.85rem; margin-top: 5px; }

.social-icons { display: flex; gap: 20px; }
.social-icons i {
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.social-icons i:hover { color: var(--text-white); transform: translateY(-3px); }

/* --- Animations --- */
@keyframes float-slow {
    0% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(-20px); }
    100% { transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) translateY(0); }
}

.float-icon { animation: icon-float 3s ease-in-out infinite; }
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.pulse-icon { animation: opacity-pulse 2s infinite; color: var(--accent-silver); }
@keyframes opacity-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.download-anim { animation: bounce-soft 2s infinite; }
@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes border-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-subtitle { margin: 0 auto 40px; }
    .visualizer-card { transform: none; animation: none; margin-top: 50px; }
    .visualizer-card:hover { transform: none; }
    .download-options { grid-template-columns: 1fr; }
    .divider-vertical { flex-direction: row; }
    .divider-vertical::before, .divider-vertical::after { width: 80px; height: 1px; margin: 0 15px; }
    .stats-strip { flex-direction: column; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav { display: none; } /* Simplified mobile nav */
    .hero { padding: 120px 5% 60px; }
    .hero-text h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-brand p { margin: 20px auto; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
