/* ============================================
   DailyAyah — Premium Minimalist Dark Theme
   ============================================ */

:root {
    --bg: #0A0A0B;
    --bg-card: #111113;
    --bg-elevated: #161618;
    --text: #FFFFFF;
    --text-mid: #8E8E93;
    --text-dim: #48484A;
    --accent: #D4AF37;
    --accent-soft: rgba(212, 175, 55, 0.12);
    --accent-glow: rgba(212, 175, 55, 0.06);
    --border: rgba(255, 255, 255, 0.05);
    --radius: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] { font-family: 'Noto Naskh Arabic', var(--font); }

/* Skip link — visually hidden, only shown on keyboard focus (a11y) */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    color: transparent;
    background: transparent;
}

.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    z-index: 1000;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Navigation ========== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    color: var(--text);
}

.logo-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 2px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2px;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 5px 11px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

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

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

.nav-cta {
    display: none;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.nav-cta:hover { background: rgba(255, 255, 255, 0.1); }

@media (min-width: 640px) {
    .nav-cta { display: inline-block; }
}

/* ========== App Store Button ========== */

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--text);
    color: #000;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-appstore:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-appstore.btn-large {
    padding: 17px 40px;
    font-size: 16px;
    border-radius: 14px;
}

/* ========== Hero ========== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
    text-align: center;
}

@media (min-width: 860px) {
    .hero-container {
        grid-template-columns: 1fr auto;
        text-align: left;
        gap: 80px;
    }
}

.hero-title {
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-mid);
    margin-bottom: 40px;
    letter-spacing: 0.2px;
}

@media (min-width: 860px) {
    .hero-content { max-width: 480px; }
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    background: var(--bg-card);
    border-radius: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 80px var(--accent-glow);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #000;
    border-radius: 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.screen-content {
    text-align: center;
    padding: 28px 20px;
}

.screen-label {
    font-size: 8px;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    margin-bottom: 36px;
    font-weight: 500;
}

.screen-arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    line-height: 2.2;
    margin-bottom: 20px;
}

.screen-divider {
    width: 24px;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
    margin: 0 auto 20px;
}

.screen-translation {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 300;
}

.screen-ref {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

/* ========== Verse Showcase ========== */

.verse-showcase {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.verse-arabic {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 400;
    color: var(--text);
    line-height: 2;
    margin-bottom: 24px;
    opacity: 0.9;
}

.verse-translation {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-mid);
    max-width: 500px;
    margin: 0 auto 12px;
    line-height: 1.7;
}

.verse-ref {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ========== Section Common ========== */

.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-label.gold {
    color: var(--accent);
}

.section-heading {
    font-size: clamp(30px, 4.5vw, 46px);
    font-weight: 700;
    text-align: center;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-mid);
    text-align: center;
    max-width: 540px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

/* ========== Features ========== */

.features {
    padding: 120px 0;
}

.features-list {
    max-width: 640px;
    margin: 56px auto 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.feature-item:first-child {
    border-top: 1px solid var(--border);
}

.feature-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    padding-top: 3px;
    flex-shrink: 0;
    width: 28px;
}

.feature-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.feature-text p {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ========== Premium ========== */

.premium {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(212, 175, 55, 0.02) 50%, var(--bg) 100%);
}

/* Pricing */
.pricing-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 580px) {
    .pricing-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    transition: border-color 0.2s;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured {
    border-color: rgba(212, 175, 55, 0.25);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, var(--bg-card) 100%);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 12px;
}

.pricing-amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 4px;
}

.pricing-cents {
    font-size: 22px;
    font-weight: 500;
}

.pricing-card.featured .pricing-amount {
    background: linear-gradient(135deg, #F5E6A3, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-sub {
    font-size: 12px;
    color: var(--text-dim);
}

/* ========== Download ========== */

.download {
    padding: 140px 0 120px;
    position: relative;
}

.download-content {
    text-align: center;
}

.download-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
}

.download-sub {
    font-size: 16px;
    color: var(--text-mid);
    font-weight: 300;
    margin-bottom: 40px;
}

.download-note {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 20px;
}

/* ========== Footer ========== */

.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 40px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 640px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
}

.footer-brand {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-dim);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.6;
}

@media (min-width: 640px) {
    .footer-copy {
        text-align: right;
    }
}

/* ========== RTL Support ========== */

[dir="rtl"] .feature-item { direction: rtl; }
[dir="rtl"] .feature-text { text-align: right; }

@media (min-width: 860px) {
    [dir="rtl"] .hero-container { text-align: right; direction: rtl; }
}

[dir="rtl"] .footer-inner { direction: rtl; }

/* ========== Animations ========== */

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

.hero-content { animation: fadeIn 0.8s ease both; }
.hero-visual { animation: fadeIn 0.8s ease 0.15s both; }

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Responsive ========== */

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }

    .phone-mockup::before {
        width: 76px;
        height: 22px;
    }

    .phone-screen { border-radius: 28px; }
    .screen-arabic { font-size: 17px; }

    .feature-item { gap: 20px; padding: 24px 0; }
    .feature-text h3 { font-size: 16px; }

    .pricing-row { gap: 10px; }
}
