/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── Tokens ─── */
:root {
    --navy:        #1e2d42;
    --navy-mid:    #2a3d5e;
    --rose:        #c4988f;
    --rose-light:  #e8c9b8;
    --cream:       #f5f1ec;
    --white:       #ffffff;
    --text:        #1a1a1a;
    --text-mid:    #3d4a5c;
    --text-soft:   #6b7280;
    --border:      rgba(0,0,0,0.08);

    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   24px;
    --radius-xl:   36px;

    --nav-h:       64px;
    --font:        'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }

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

/* ─── Nav ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    margin-right: auto;
    transition: color 0.3s;
}

.nav.scrolled .nav-logo { color: var(--navy); }

.nav-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.nav.scrolled .nav-logo-img {
    filter: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
}

.nav-links a:hover { color: #fff; }

.nav.scrolled .nav-links a { color: var(--text-mid); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }

.nav-cta {
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.nav-cta:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.nav.scrolled .nav-cta {
    background: var(--navy);
    color: #fff;
    border-color: transparent;
}

.nav.scrolled .nav-cta:hover { background: var(--navy-mid); }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0.25rem;
    border-top: 1px solid var(--border);
}

.nav-mobile a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-mid);
    padding: 0.65rem 0;
}

.nav-mobile-cta {
    margin-top: 0.5rem;
    background: var(--navy);
    color: var(--white) !important;
    text-align: center;
    padding: 0.75rem 1rem !important;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
}

.nav-mobile.open { display: flex; }

/* ─── Hero ─── */
.hero {
    min-height: 100svh;
    padding-top: var(--nav-h);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 30, 0.3);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero text */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--rose-light);
    background: rgba(232, 201, 184, 0.15);
    border: 1px solid rgba(232, 201, 184, 0.35);
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.hero-sub {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-align: center;
}

/* Store buttons */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-store span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.btn-store small {
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

.btn-apple {
    background: var(--navy);
    color: var(--white);
}

.btn-google {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Hero mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.hero-mockup-img {
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-xl);
    box-shadow:
        0 32px 80px rgba(30,45,66,0.18),
        0 8px 24px rgba(30,45,66,0.08);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.hero-mockup-img:hover {
    transform: perspective(1000px) rotateY(-1deg) rotateX(0deg);
}

/* ─── Features Scroll Section ─── */
.features-scroll {
    height: 300vh;
    position: relative;
    background: #f9f8f6;
}

.features-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: var(--nav-h) 2rem 0;
    overflow: hidden;
}

/* Header: title + subtitle */
.features-header {
    position: relative;
    text-align: center;
    padding-top: 1rem;
    height: 350px;
    width: 100%;
    max-width: 700px;
}

.fh-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.fh-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fh-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.fh-sub {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 600px;
}

/* Stage: left | phone | right */
.features-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex: 1;
    width: 100%;
    max-width: 1160px;
    padding-top: 80px;
}

.stage-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    height: 400px;
}

.stage-left { align-items: flex-end; }
.stage-right { align-items: flex-start; }

/* Floating cards */
.fcard {
    background: linear-gradient(145deg, #ffffff, #fdf6f2);
    border-radius: 20px;
    padding: 0.9rem 1.2rem;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.06),
        0 12px 40px rgba(0,0,0,0.1);
    position: absolute;
    opacity: 0;
    pointer-events: none;
    min-width: 155px;
    border-top: 3px solid var(--rose-light);
}

.fcard.visible {
    opacity: 1;
    pointer-events: auto;
}

.fcard.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Left card positions — start near phone centre, shoot left */
.fcard-l1 {
    top: 5px; right: 0;
    transform: translateX(220px) scale(0.72) rotate(-4deg);
    transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.fcard-l1.visible { transform: translateX(0) scale(1) rotate(-4deg); }

.fcard-l2 {
    top: 230px; right: 50px;
    transform: translateX(220px) scale(0.72) rotate(3.5deg);
    transition: opacity 0.55s ease 0.1s, transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.1s;
}
.fcard-l2.visible { transform: translateX(0) scale(1) rotate(3.5deg); }

/* Right card positions — start near phone centre, shoot right */
.fcard-r1 {
    top: 25px; left: 0;
    transform: translateX(-220px) scale(0.72) rotate(5deg);
    transition: opacity 0.55s ease 0.05s, transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.05s;
}
.fcard-r1.visible { transform: translateX(0) scale(1) rotate(5deg); }

.fcard-r2 {
    top: 260px; left: 40px;
    transform: translateX(-220px) scale(0.72) rotate(-3deg);
    transition: opacity 0.55s ease 0.15s, transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.15s;
}
.fcard-r2.visible { transform: translateX(0) scale(1) rotate(-3deg); }

/* Extra card positions */
.fcard-l3 {
    top: 330px; right: 30px;
    transform: translateX(220px) scale(0.72) rotate(-2.5deg);
    transition: opacity 0.55s ease 0.18s, transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.18s;
}
.fcard-l3.visible { transform: translateX(0) scale(1) rotate(-2.5deg); }

.fcard-r0 {
    top: 10px; left: 50px;
    transform: translateX(-220px) scale(0.72) rotate(2deg);
    transition: opacity 0.55s ease 0.08s, transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.08s;
}
.fcard-r0.visible { transform: translateX(0) scale(1) rotate(2deg); }

.fcard-r3 {
    top: 330px; left: 25px;
    transform: translateX(-220px) scale(0.72) rotate(3deg);
    transition: opacity 0.55s ease 0.2s, transform 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) 0.2s;
}
.fcard-r3.visible { transform: translateX(0) scale(1) rotate(3deg); }

/* Small secondary card */
.fcard-sm {
    min-width: 130px;
    padding: 0.75rem 1rem;
}
.fcard-sm .fcard-value { font-size: 1.1rem; }
.fcard-sm .fcard-sub { font-size: 0.72rem; }

/* Icon-only card */
.fcard-icon {
    min-width: unset;
    width: 65px;
    height: 65px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--navy), var(--navy-mid));
    color: #fff;
    border-top: none;
}

.fcard-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 0.3rem;
}

.fcard-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.fcard-sub {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* Phone centre */
.features-phone-center {
    flex-shrink: 0;
}

.phone-outer {
    width: 200px;
    height: 410px;
    background: #0a0a0a;
    border-radius: 36px;
    padding: 8px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 32px 64px rgba(0,0,0,0.2),
        0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}

.phone-screen-track {
    position: relative;
    width: 100%;
    height: 394px;
}

.phone-screen {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.phone-screen.active {
    opacity: 1;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Auto-cycling images within a screen */
.phone-screen-cycle {
    position: relative;
}

.cycle-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.cycle-img-active {
    opacity: 1;
}

/* Progress dots */
.feature-dots {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    width: 10px;
    height: 10px;
    background: var(--navy);
}

/* ─── Shared section primitives ─── */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 1rem;
}
.section-label--light { color: var(--rose-light); }

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--navy);
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 3.5rem;
}

/* ─── Trust Strip ─── */
.trust-strip {
    background: var(--navy);
    padding: 1.75rem 2rem;
}

.trust-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.ts-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.ts-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.03em;
}

.ts-sep {
    color: rgba(255,255,255,0.2);
    font-size: 1.25rem;
}

/* ─── Why Section ─── */
.why-section {
    padding: 7rem 2rem;
    background: var(--white);
}

.why-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.wg-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wg-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.wg-card--prayer .wg-icon  { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); }
.wg-card--habit .wg-icon   { background: linear-gradient(135deg, #c4988f, #a87169); }
.wg-card--ramadan .wg-icon { background: linear-gradient(135deg, #2d4a22, #3d6830); }
.wg-card--calendar .wg-icon{ background: linear-gradient(135deg, #4f3f8a, #7c5fc4); }

.wg-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.wg-card p {
    font-size: 0.95rem;
    color: var(--text-soft);
    line-height: 1.65;
    margin: 0;
}

/* ─── Testimonials ─── */
.testimonials {
    padding: 7rem 2rem;
    background: var(--cream);
}

.testimonials-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.testi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.testi-card--featured {
    background: var(--navy);
    box-shadow: 0 8px 32px rgba(30,45,66,0.18);
}

.testi-quote {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--text);
    font-style: italic;
    flex: 1;
}

.testi-card--featured .testi-quote { color: rgba(255,255,255,0.88); }

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
}

.testi-avatar {
    width: 40px;
    height: 40px;
    background: var(--rose-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.testi-card--featured .testi-avatar {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.testi-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    line-height: 1.2;
}

.testi-card--featured .testi-name { color: #fff; }

.testi-loc {
    font-size: 0.78rem;
    color: var(--text-soft);
}

.testi-card--featured .testi-loc { color: rgba(255,255,255,0.48); }

/* ─── Scholar Section ─── */
.scholar-section {
    background: var(--navy);
    padding: 7rem 2rem;
    text-align: center;
}

.scholar-inner {
    max-width: 680px;
    margin: 0 auto;
}

.scholar-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.scholar-sub {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.62);
    margin-bottom: 2.5rem;
}

.scholar-refs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sr-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

.sr-dot {
    color: rgba(255,255,255,0.2);
    font-size: 1.1rem;
}

/* ─── Final CTA ─── */
.cta-section {
    padding: 8rem 2rem;
    background: var(--cream);
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.05;
}

.cta-sub {
    font-size: 1.1rem;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-store--lg {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

/* ─── Footer ─── */
.footer {
    background: var(--navy);
    padding: 3rem 2rem 2.5rem;
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
}

.footer-logo img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer-nav a:hover { color: rgba(255,255,255,0.88); }

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.28);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }

    .hero-inner {
        margin-left: 0;
        padding: 3rem 1.5rem 3rem;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .hero-sub { max-width: 100%; }
    .hero-actions { justify-content: center; }

    .why-grid { grid-template-columns: 1fr; }
    .testi-grid { grid-template-columns: 1fr; }

    .ts-sep { display: none; }
    .trust-inner { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .nav-inner { padding: 0 1.25rem; }

    .hero-inner { padding: 2.5rem 1.25rem 3rem; }

    .hero-headline { font-size: 2.5rem; }

    .hero-actions { flex-direction: column; align-items: center; }

    .btn-store { width: 100%; max-width: 280px; justify-content: center; }

    .cta-actions { flex-direction: column; align-items: center; }
    .btn-store--lg { width: 100%; max-width: 280px; justify-content: center; }

    .why-section, .testimonials, .scholar-section, .cta-section { padding: 5rem 1.25rem; }
    .footer-nav { gap: 1.25rem; }
}
