/* ============================================
   DEENFLOW — PREMIUM DESIGN + DARK/LIGHT MODE
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-off: #f7f8f6;
    --bg-section: #f2f4f2;
    --green: #1a5d4a;
    --green-mid: #2a7d64;
    --green-light: #e8f4ef;
    --green-glow: rgba(26, 93, 74, 0.12);
    --green-glow-strong: rgba(26, 93, 74, 0.22);
    --gold: #b8882a;
    --text: #0f1f18;
    --text-muted: #4a6057;
    --text-dim: #7a9088;
    --border: #e4eae7;
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.75);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.94);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 22px;
    --radius-pill: 50px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-sm: 0 2px 12px rgba(26, 93, 74, 0.06);
    --shadow-md: 0 8px 32px rgba(26, 93, 74, 0.10);
    --shadow-lg: 0 20px 60px rgba(26, 93, 74, 0.13);
    --shadow-xl: 0 32px 80px rgba(26, 93, 74, 0.16);
}

/* ---- Dark Theme ---- */
[data-theme="dark"] {
    --bg: #0c1a12;
    --bg-off: #111f17;
    --bg-section: #0f1e15;
    --green: #34b88a;
    --green-mid: #2a9d74;
    --green-light: rgba(52, 184, 138, 0.1);
    --green-glow: rgba(52, 184, 138, 0.15);
    --green-glow-strong: rgba(52, 184, 138, 0.25);
    --gold: #e0b050;
    --text: #e4efe8;
    --text-muted: #94b4a4;
    --text-dim: #6a8e7e;
    --border: #1e352a;
    --card-bg: #142420;
    --nav-bg: rgba(12, 26, 18, 0.8);
    --nav-bg-scrolled: rgba(12, 26, 18, 0.95);
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.12;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   NAVIGATION — Clean White Glass
   ============================================ */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1200px;
    z-index: 1000;
    padding: 12px 28px;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    padding: 10px 28px;
    background: var(--nav-bg-scrolled);
    border-color: rgba(15, 31, 24, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* ---- Theme Toggle ---- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--green-glow-strong);
    transform: scale(1.08);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease);
}

.theme-toggle .icon-sun {
    position: absolute;
}

.theme-toggle .icon-moon {
    position: absolute;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    transform: rotate(180deg) scale(0);
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

html:not([data-theme="dark"]) .theme-toggle .icon-sun {
    transform: rotate(0deg) scale(1);
    opacity: 1;
}

html:not([data-theme="dark"]) .theme-toggle .icon-moon {
    transform: rotate(-180deg) scale(0);
    opacity: 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.25s;
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--green);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 10px 22px !important;
    background: var(--green) !important;
    color: #fff !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 600 !important;
    transition: all 0.3s var(--ease) !important;
    box-shadow: 0 4px 16px var(--green-glow-strong) !important;
}

.nav-cta-btn::after {
    display: none !important;
}

.nav-cta-btn:hover {
    background: var(--green-mid) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px var(--green-glow-strong) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: 130px;
    transition: background-color 0.4s var(--ease);
}

.hero-layout {
    display: grid;
    grid-template-columns: 42% 58%;
    align-items: center;
    gap: 100px;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
}

/* ---- Left: Text ---- */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 500px;
}

/* ---- Right: App Preview Image ---- */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-preview {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto -120px auto;
}

/* Subtle glow behind phones */
.hero-preview::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, var(--green-glow-strong) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

.hero-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Social proof badge — laurel wreath */
.hero-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 243, 230, 0.95));
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
    padding: 14px 22px;
    margin-bottom: 70px;
    box-shadow:
        0 2px 12px rgba(201, 168, 76, 0.08),
        0 0 0 1px rgba(201, 168, 76, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: fit-content;
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .hero-social-proof {
    background: linear-gradient(135deg, rgba(30, 30, 25, 0.9), rgba(40, 36, 24, 0.85));
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow:
        0 2px 16px rgba(201, 168, 76, 0.1),
        0 0 0 1px rgba(201, 168, 76, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.laurel {
    flex-shrink: 0;
    opacity: 0.85;
}

[data-theme="dark"] .laurel {
    opacity: 0.7;
}

.proof-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
}

.proof-rating {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c9a84c, #a8882c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.proof-stars-row {
    display: flex;
    gap: 2px;
    margin: 2px 0 4px;
}

.proof-title {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: var(--text);
    text-transform: uppercase;
    opacity: 0.7;
}

[data-theme="dark"] .proof-title {
    color: rgba(255, 255, 255, 0.6);
}

/* Headline */
.hero-left h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.08;
}

.hero-left h1 em {
    font-style: italic;
    color: var(--green);
    background: linear-gradient(135deg, #1a5d4a, #2a9d6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 460px;
}

/* App Store Button */
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Trust Badges (Amal-inspired) */
.hero-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--text);
    color: var(--bg);
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 20px rgba(15, 31, 24, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .app-store-btn {
    background: #e4efe8;
    color: #0c1a12;
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(15, 31, 24, 0.28);
    background: #1a2e25;
}

[data-theme="dark"] .app-store-btn:hover {
    background: #d0e5d8;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-btn-text small {
    font-size: 0.68rem;
    opacity: 0.75;
}

.app-btn-text strong {
    font-size: 1rem;
}

.app-store-btn-white {
    background: #fff !important;
    color: var(--green) !important;
    border: 1.5px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .app-store-btn-white {
    background: var(--card-bg) !important;
    color: var(--green) !important;
}

.app-store-btn-white:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-md) !important;
    background: var(--bg-off) !important;
}


/* ---- Phone Screen Content (shared) ---- */
.scr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scr {
    padding: 10px;
    font-size: 0.62rem;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.scr-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    margin-top: auto;
    border-top: 1px solid #eee;
    font-size: 0.58rem;
    color: #999;
}

.scr-nav .active {
    color: #1a5d4a;
    font-weight: 600;
}

/* Home Screen */
.scr-home {
    background: #fafaf7;
}

.sh-header {
    background: linear-gradient(135deg, #2a7d64 0%, #1a5d4a 100%);
    color: #fff;
    padding: 14px 12px 12px;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -10px -10px 8px;
}

.sh-header em {
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
}

.sh-header span {
    opacity: 0.6;
}

.sh-prayer {
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sh-countdown {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.sh-countdown small {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a5d4a;
    font-weight: 600;
}

.sh-countdown strong {
    font-size: 1.1rem;
    color: #1a1a2e;
}

.sh-dots {
    display: flex;
    gap: 4px;
    justify-content: space-between;
}

.sh-dot {
    text-align: center;
    flex: 1;
}

.sh-dot i {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 1px;
    font-style: normal;
}

.sh-dot small {
    font-size: 0.48rem;
    color: #aaa;
}

.sh-dot.done small {
    color: #1a5d4a;
}

.sh-dot.active small {
    color: #1a5d4a;
    font-weight: 700;
}

.sh-streak {
    background: linear-gradient(135deg, #1a3a2e 0%, #0f2a20 100%);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.sh-streak-content {
    position: relative;
    z-index: 1;
}

.sh-tier {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

.sh-tier-sub {
    font-size: 0.48rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
}

.sh-streak-right {
    text-align: center;
}

.sh-streak-right strong {
    font-size: 1.4rem;
    display: block;
}

.sh-streak-right small {
    font-size: 0.5rem;
    opacity: 0.6;
    display: block;
}

.sh-water {
    font-size: 0.45rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 3px;
    display: inline-block;
}

.sh-niyyah {
    background: #fff;
    border: 1.5px solid #e0e8e4;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 6px;
    text-align: center;
}

.sh-niyyah small {
    color: #1a5d4a;
    letter-spacing: 0.15em;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.sh-niyyah em {
    font-size: 0.7rem;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.sh-niyyah-cta {
    font-size: 0.5rem;
    color: #1a5d4a;
    font-weight: 600;
}

.sh-verse {
    text-align: center;
    padding: 8px;
}

.sh-verse-badge {
    font-size: 0.45rem;
    background: #f0f0ea;
    padding: 2px 8px;
    border-radius: 8px;
    color: #888;
    display: inline-block;
    margin-bottom: 4px;
}

.sh-verse em {
    display: block;
    font-size: 0.68rem;
    color: #1a1a2e;
    font-style: italic;
}

.sh-verse small {
    font-size: 0.48rem;
    color: #aaa;
}

/* Today Screen */
.scr-today {
    background: #fff;
}

.st-head {
    padding: 8px 0;
    text-align: center;
}

.st-head small {
    display: block;
    color: #1a5d4a;
    font-size: 0.55rem;
}

.st-head strong {
    font-size: 0.9rem;
    color: #1a1a2e;
}

.st-cal,
.st-cal-nums {
    display: flex;
    justify-content: space-around;
    padding: 2px 4px;
}

.st-cal span {
    font-size: 0.5rem;
    color: #aaa;
    text-align: center;
    width: 22px;
}

.st-cal-nums span {
    font-size: 0.58rem;
    color: #333;
    text-align: center;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.st-cal-nums span.sel {
    background: #1a5d4a;
    color: #fff;
}

.st-section {
    margin: 8px 0;
    padding: 8px;
    background: #fafaf7;
    border-radius: 8px;
}

.st-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.st-section-head small {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    font-weight: 600;
}

.st-section-head span {
    font-size: 0.5rem;
    color: #1a5d4a;
}

.st-prayers {
    display: flex;
    gap: 8px;
    font-size: 0.55rem;
    color: #888;
}

.st-hadith {
    font-size: 0.5rem;
    color: #666;
    font-style: italic;
    padding: 6px 4px;
    line-height: 1.5;
}

.st-habit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    color: #333;
}

.st-check {
    width: 14px;
    height: 14px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}

.st-streak {
    margin-left: auto;
    font-size: 0.5rem;
    color: #1a5d4a;
    font-weight: 600;
}

.st-fab {
    width: 28px;
    height: 28px;
    background: #1a5d4a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin: 8px 4px 4px auto;
}

/* Reflection Screen */
.scr-deen {
    background: linear-gradient(180deg, #f0faf5 0%, #fff 40%);
    text-align: center;
}

.sd-head {
    padding: 12px 0 6px;
}

.sd-head strong {
    font-size: 0.8rem;
    color: #1a1a2e;
}

.sd-arabic {
    font-size: 0.85rem;
    color: #1a5d4a;
    line-height: 2;
    padding: 10px 6px;
    direction: rtl;
}

.sd-quote {
    font-size: 0.62rem;
    color: #333;
    font-style: italic;
    padding: 0 8px 4px;
}

.sd-ref {
    font-size: 0.48rem;
    color: #aaa;
    margin-bottom: 10px;
}

.sd-card {
    background: #fff;
    border: 1px solid #e8e8e4;
    border-radius: 8px;
    padding: 10px;
    margin: 6px 0;
    text-align: left;
}

.sd-card small {
    display: block;
    font-size: 0.48rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a5d4a;
    font-weight: 600;
    margin-bottom: 3px;
}

.sd-card em {
    font-size: 0.58rem;
    color: #555;
    display: block;
}

.sd-intention span {
    font-size: 0.58rem;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.sd-done {
    font-size: 0.5rem;
    color: #1a5d4a;
    font-weight: 600;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    animation: scrollBounce 2.5s ease-in-out infinite;
    z-index: 2;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 0.9;
    }
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
    padding: clamp(50px, 6vw, 80px) 0;
    background: var(--bg);
    transition: background-color 0.4s var(--ease);
}

.manifesto-inner {
    max-width: 720px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--green);
    margin-bottom: 20px;
}

.manifesto h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.manifesto-body p {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 22px;
}

.manifesto-body em {
    color: var(--text);
    font-style: italic;
}

.manifesto-body strong {
    color: var(--green);
    font-weight: 650;
}

.manifesto-highlight {
    font-size: 1.2rem !important;
    color: var(--text) !important;
    font-weight: 500;
    border-left: 3px solid var(--green);
    padding-left: 22px;
    margin: 28px 0 !important;
}

.manifesto-quote {
    margin-top: 32px;
    padding: 24px;
    background: var(--green-light);
    border: 1px solid rgba(26, 93, 74, 0.12);
    border-radius: var(--radius);
    text-align: center;
}

.mq-arabic {
    font-size: 1.35rem;
    color: var(--green);
    line-height: 2.2;
    margin-bottom: 12px;
    direction: rtl;
}

.mq-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.mq-ref {
    font-size: 0.82rem;
    color: var(--text-dim);
}

/* ============================================
   FEATURES — Light Cards
   ============================================ */
.features {
    padding: clamp(50px, 6vw, 80px) 0;
    background: var(--bg-section);
    transition: background-color 0.4s var(--ease);
}

.section-header {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 44px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 5-card layout: 3 top + 2 centered below */
.features-grid-5 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.features-grid-5 .feature-card:nth-child(1) {
    grid-column: 1 / 3;
}

.features-grid-5 .feature-card:nth-child(2) {
    grid-column: 3 / 5;
}

.features-grid-5 .feature-card:nth-child(3) {
    grid-column: 5 / 7;
}

.features-grid-5 .feature-card:nth-child(4) {
    grid-column: 2 / 4;
}

.features-grid-5 .feature-card:nth-child(5) {
    grid-column: 4 / 6;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 93, 74, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.fc-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--green-light);
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.feature-card:hover .fc-icon {
    transform: scale(1.08);
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 650;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ============================================
   HOW IT WORKS — Story Steps
   ============================================ */
.steps-section {
    padding: clamp(50px, 6vw, 80px) 0;
    background: var(--bg);
    transition: background-color 0.4s var(--ease);
}

.story-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.story-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.story-step-reverse {
    direction: rtl;
}

.story-step-reverse>* {
    direction: ltr;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--green);
    opacity: 0.4;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 12px;
}

.story-step-text h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.story-step-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.85;
}

/* Mini Cards — Light Premium */
.mini-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mc-label {
    font-size: 0.68rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green);
    margin-bottom: 16px;
}

.mc-input {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.mc-dua {
    font-size: 1.3rem;
    text-align: right;
    color: var(--green);
    margin-bottom: 4px;
    direction: rtl;
}

.mc-trans {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 16px;
}

.mc-action {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
}

.mc-mission {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.mc-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.mc-meta {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.mc-motto {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.mc-prayer {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 0.88rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.mc-prayer:last-child {
    border-bottom: none;
}

.mc-prayer.done {
    color: var(--green);
    font-weight: 500;
}

.mc-prayer.next {
    color: var(--text);
    font-weight: 600;
}

.mc-verse {
    background: var(--green-light);
    border-color: rgba(26, 93, 74, 0.1);
}

.mc-arabic {
    font-size: 1.3rem;
    text-align: center;
    color: var(--green);
    line-height: 2;
    margin-bottom: 12px;
    direction: rtl;
}

.mc-quote {
    font-size: 0.92rem;
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mc-ref {
    font-size: 0.78rem;
    text-align: center;
    color: var(--text-dim);
}

/* ============================================
   FAQ — Amal-inspired card layout
   ============================================ */
.faq-section {
    padding: clamp(50px, 6vw, 80px) 0;
    background: var(--bg-section);
    transition: background-color 0.4s var(--ease);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 28px;
    transition: all 0.3s var(--ease);
}

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

.faq-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--green-glow-strong);
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.25s;
}

.faq-q:hover {
    color: var(--green);
}

.faq-icon {
    font-size: 1.1rem;
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
    margin-left: 16px;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-light);
    font-weight: 400;
}

.faq-q[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--green);
    background: var(--green-glow-strong);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), padding 0.45s var(--ease);
}

.faq-a.open {
    max-height: 250px;
    padding: 0 0 22px;
}

.faq-a p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   FINAL CTA — Rich Deep Green
   ============================================ */
.final-cta {
    padding: clamp(60px, 8vw, 100px) 0;
    background: linear-gradient(135deg, #0d2e20 0%, #1a5d4a 50%, #0a2218 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .final-cta {
    background: linear-gradient(135deg, #071510 0%, #0e3d2d 50%, #051210 100%);
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(42, 157, 110, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    padding: 10px 26px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.final-cta h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: #fff;
}

.final-cta h2 em {
    color: #ffe08a;
    font-style: italic;
}

.final-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0a1a12;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .footer {
    background: #060f0a;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding: 72px 28px 56px;
}

.footer-logo {
    margin-bottom: 16px;
}

.nav-logo.footer-logo {
    color: #4ade80;
}

.logo-icon {
    border-radius: 6px;
    object-fit: contain;
}

.footer-verse em {
    display: block;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.25s;
}

.footer-col ul a:hover {
    color: #4ade80;
}

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px) translateY(40px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: rotate(-10deg) translateX(10px) translateY(24px) scale(0.86);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) translateY(40px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: rotate(10deg) translateX(-10px) translateY(24px) scale(0.86);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        height: auto;
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 50px;
        height: auto;
        min-height: auto;
    }

    .hero-left {
        max-width: 100%;
        align-items: center;
    }

    .hero-sub {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-right {
        position: relative;
        width: 100%;
        height: auto;
        justify-content: center;
        align-self: auto;
    }

    .hero-preview {
        max-width: 480px;
        align-self: auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid-5 .feature-card:nth-child(1),
    .features-grid-5 .feature-card:nth-child(2),
    .features-grid-5 .feature-card:nth-child(3),
    .features-grid-5 .feature-card:nth-child(4),
    .features-grid-5 .feature-card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--nav-bg-scrolled);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right 0.5s var(--ease-out);
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        background: var(--text);
    }

    .hero {
        padding-top: 110px;
    }

    .hero-preview {
        max-width: 420px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-5 {
        grid-template-columns: 1fr;
    }

    .story-step {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
        padding-bottom: 60px;
    }

    .story-step-reverse {
        direction: ltr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 2.2rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .app-store-btn {
        justify-content: center;
    }

    .hero-badges {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}