/* ============================================
   KURAN — Single Screen Landing Page
   Silicon Valley × Islamic Aesthetic
   ============================================ */

/* ── Design Tokens ── */
:root {
    --sage: #6B8F71;
    --sage-deep: #4A6B50;
    --sage-light: rgba(107, 143, 113, 0.08);
    --sage-glow: rgba(107, 143, 113, 0.15);
    --gold: #C4A35A;
    --gold-light: rgba(196, 163, 90, 0.1);
    --charcoal: #1A1A2E;
    --charcoal-soft: #2D2D44;
    --cream: #FAFAF7;
    --white: #FFFFFF;
    --gray: #8D8DA0;
    --gray-light: #E8E8ED;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-arabic: 'Amiri', serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {
    body {
        overflow: hidden;
        height: 100vh;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Background Pattern ── */
.geo-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

/* ── Ambient Glow Effects ── */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.ambient-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(107, 143, 113, 0.08);
    top: -200px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.ambient-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(196, 163, 90, 0.05);
    bottom: -150px;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -20px);
    }
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(250, 250, 247, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--charcoal);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--charcoal);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: var(--charcoal);
    padding: 10px 20px;
    border-radius: 100px;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: var(--sage-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(107, 143, 113, 0.3);
}

.nav-cta .apple-icon {
    opacity: 0.8;
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 72px 0 0;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    width: 100%;
}

/* ── Hero Content (Left) ── */
.hero-content {
    max-width: 520px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sage-deep);
    background: var(--sage-light);
    border: 1px solid rgba(107, 143, 113, 0.12);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -2.5px;
    color: var(--charcoal);
    margin-bottom: 16px;
}

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

.hero-desc {
    font-size: 15px;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 400px;
}

/* ── Micro Features ── */
.micro-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.micro-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal-soft);
}

.mf-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
    flex-shrink: 0;
}

/* ── Hero CTA ── */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
    padding: 14px 28px;
    border-radius: 14px;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 24px rgba(107, 143, 113, 0.25);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(107, 143, 113, 0.35);
}

.hero-cta .apple-icon {
    opacity: 0.9;
}

/* ── Bismillah ── */
.bismillah {
    grid-column: 1 / -1;
    text-align: center;
    font-family: var(--font-arabic);
    font-size: 22px;
    color: var(--gold);
    opacity: 0.5;
    direction: rtl;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* ── Phone Mockup (Right) ── */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-glow {
    position: absolute;
    width: 320px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(107, 143, 113, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
}

.phone-frame {
    position: relative;
    z-index: 1;
    width: 240px;
    height: 500px;
    background: var(--charcoal);
    border-radius: 34px;
    padding: 8px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 20px 60px rgba(26, 26, 46, 0.2),
        0 40px 80px rgba(26, 26, 46, 0.1);
}

.phone-notch {
    width: 80px;
    height: 22px;
    background: var(--charcoal);
    border-radius: 0 0 14px 14px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
}

/* ── App Mockup Content ── */
.app-mock {
    padding: 34px 12px 12px;
    font-size: 10px;
}

.mock-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--charcoal);
}

.mock-status-right {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.4;
}

.mock-battery {
    width: 22px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    padding: 1px;
    position: relative;
}

.mock-battery::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 5px;
    background: currentColor;
    border-radius: 0 1px 1px 0;
}

.mock-battery-fill {
    width: 80%;
    height: 100%;
    background: var(--sage);
    border-radius: 1px;
}

.mock-header {
    margin-bottom: 16px;
}

.mock-greet {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.mock-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

/* Mock Progress */
.mock-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cream);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.mock-ring-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.mock-ring {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.mock-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--sage-deep);
}

.mock-prog-info {
    flex: 1;
}

.mock-prog-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--charcoal);
}

.mock-prog-sub {
    font-size: 10px;
    color: var(--gray);
}

.mock-streak {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    background: rgba(196, 163, 90, 0.12);
    color: var(--gold);
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 3px;
}

/* Mock Hadith */
.mock-hadith {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
    border-radius: 14px;
    padding: 14px;
    color: white;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.mock-hadith::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 12px solid rgba(255, 255, 255, 0.06);
}

.mock-hadith-q {
    font-size: 14px;
    opacity: 0.4;
    margin-bottom: 2px;
}

.mock-hadith-text {
    font-size: 10px;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.95;
}

.mock-hadith-src {
    font-size: 9px;
    opacity: 0.5;
    margin-top: 4px;
    font-weight: 600;
}

/* Mock CTA Button */
.mock-cta-btn {
    background: var(--cream);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 16px;
    border: 1px solid var(--gray-light);
}

/* Mock Surah List */
.mock-section-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.mock-surah {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--cream);
    border-radius: 12px;
    margin-bottom: 6px;
}

.mock-surah-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-arabic);
    font-size: 13px;
    color: var(--sage);
    flex-shrink: 0;
    border: 1px solid rgba(107, 143, 113, 0.1);
}

.mock-surah-info {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--charcoal);
}

.mock-surah-info small {
    font-size: 9px;
    color: var(--gray);
    font-weight: 400;
}

.mock-surah-pct {
    font-size: 12px;
    font-weight: 800;
    color: var(--sage);
}

/* ── Footer Bar ── */
.footer-bar {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding: 16px 0;
    background: rgba(250, 250, 247, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

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

.footer-links a {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s var(--ease);
}

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

/* ── Entrance Animations ── */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slide-in-phone {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bismillah {
    animation: fade-in 1s var(--ease) 0.1s both;
}

.hero-pill {
    animation: fade-up 0.8s var(--ease) 0.2s both;
}

.hero-title {
    animation: fade-up 0.8s var(--ease) 0.3s both;
}

.hero-desc {
    animation: fade-up 0.8s var(--ease) 0.4s both;
}

.micro-features {
    animation: fade-up 0.8s var(--ease) 0.5s both;
}

.hero-cta {
    animation: fade-up 0.8s var(--ease) 0.6s both;
}

.hero-phone {
    animation: slide-in-phone 1s var(--ease) 0.3s both;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        max-width: 560px;
        margin: 0 auto;
    }

    .hero-desc {
        max-width: 100%;
    }

    .micro-features {
        align-items: flex-start;
        width: fit-content;
        margin: 0 auto 28px;
    }

    .hero-cta {
        width: auto;
    }

    .bismillah {
        display: block;
    }

    .hero-phone {
        order: -1;
    }

    .bismillah {
        order: -2;
        margin-bottom: 32px;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
        border-radius: 34px;
    }

    .phone-notch {
        width: 80px;
        height: 22px;
    }

    .hero-title {
        font-size: 56px;
        letter-spacing: -2px;
    }

    .nav-inner {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .nav-link {
        display: none;
    }

    .hero {
        padding: 120px 0 40px;
    }

    .hero-inner {
        padding: 0 24px;
        gap: 40px;
    }

    .hero-title {
        font-size: 44px;
        letter-spacing: -1.5px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .phone-frame {
        width: 220px;
        height: 460px;
        border-radius: 30px;
    }

    .phone-notch {
        width: 70px;
        height: 20px;
        border-radius: 0 0 12px 12px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-pill {
        font-size: 11px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .micro-features {
        gap: 10px;
    }

    .hero-cta {
        font-size: 15px;
        padding: 14px 28px;
        width: 100%;
        justify-content: center;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
        border-radius: 26px;
    }

    .app-mock {
        padding: 36px 12px 12px;
    }

    .mock-name {
        font-size: 18px;
    }

    .bismillah {
        font-size: 18px;
    }
}