/* ============================================================
   AZ-ZUHRI LANDING PAGE — STYLESHEET
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #0E9467;
    --primary-dark: #076341;
    --primary-darker: #043827;
    --primary-light: #4DB88C;
    --primary-pale: #E6F7F1;
    --accent: #D4AF37;
    --accent-light: #F0D677;
    --dark: #0F172A;
    --dark-soft: #1E293B;
    --gray: #64748B;
    --gray-light: #CBD5E1;
    --light: #F8FAFC;
    --white: #FFFFFF;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    --shadow-sm: 0 2px 8px rgba(14, 148, 103, 0.08);
    --shadow-md: 0 8px 24px rgba(14, 148, 103, 0.12);
    --shadow-lg: 0 20px 48px rgba(14, 148, 103, 0.18);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --container: 1200px;
    --gutter: 24px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.65;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(14, 148, 103, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 148, 103, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: grid;
    place-items: center;
    font-family: 'Amiri', serif;
    font-size: 24px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 18px;
    color: var(--white);
    transition: var(--transition);
}

.logo-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.navbar.scrolled .logo-text strong { color: var(--dark); }
.navbar.scrolled .logo-text small { color: var(--gray); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.navbar.scrolled .nav-link { color: var(--dark-soft); }

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary);
    background: var(--primary-pale);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar:not(.scrolled) .nav-actions .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}
.navbar:not(.scrolled) .nav-actions .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle { background: var(--primary-pale); }
.navbar.scrolled .nav-toggle span { background: var(--primary-dark); }

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3Ccircle cx='40' cy='40' r='12'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(212, 175, 55, 0.15);
    top: -100px;
    right: -100px;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(77, 184, 140, 0.2);
    bottom: -100px;
    left: -100px;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 12px var(--accent-light);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.text-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.trust-item { display: flex; flex-direction: column; }
.trust-item strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1.2;
}
.trust-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-card {
    position: relative;
    width: 340px;
    height: 420px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: calc(var(--radius-lg) - 8px);
    pointer-events: none;
}

.hero-card-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light), transparent 70%);
    opacity: 0.6;
}

.hero-card-arabic {
    font-family: 'Amiri', serif;
    font-size: 88px;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.hero-card-caption {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
}

.hero-card-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
}

/* Floating badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    color: var(--dark);
}

.floating-badge .fb-icon {
    font-size: 24px;
}

.floating-badge div strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.floating-badge div span {
    font-size: 12px;
    color: var(--gray);
}

.floating-badge-1 {
    top: 40px;
    right: -20px;
    animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge-2 {
    bottom: 60px;
    left: -30px;
    animation: floatBadge 4s ease-in-out infinite 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: grid;
    place-items: start center;
    padding-top: 8px;
    z-index: 2;
}

.hero-scroll span {
    display: block;
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollDown 1.8s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-pale);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

/* ---------- STATS ---------- */
.stats-section {
    padding: 0 0 60px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(14, 148, 103, 0.08);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-story h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.about-story p {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.75;
}

.about-features {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--dark-soft);
    font-weight: 500;
}

.about-features svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    background: var(--primary-pale);
    border-radius: 50%;
    padding: 3px;
}

.about-cards {
    display: grid;
    gap: 20px;
}

.about-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-pale);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-pale);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.about-card-icon svg { width: 24px; height: 24px; }

.about-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.about-card p,
.about-misi li {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

.about-misi {
    padding-left: 18px;
    list-style: disc;
}
.about-misi li { margin-bottom: 6px; }

/* ---------- PROGRAMS ---------- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.program-card {
    position: relative;
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(14, 148, 103, 0.06);
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
}

.program-icon svg { width: 26px; height: 26px; }

.program-icon-green {
    background: var(--primary-pale);
    color: var(--primary);
}

.program-icon-gold {
    background: #FBF4DE;
    color: var(--accent);
}

.program-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.program-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

.program-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---------- USTADZ ---------- */
.ustadz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.ustadz-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(14, 148, 103, 0.06);
    transition: var(--transition);
}

.ustadz-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.ustadz-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(14, 148, 103, 0.3);
}

.ustadz-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.ustadz-card p {
    font-size: 13px;
    color: var(--gray);
}

/* ---------- FASILITAS ---------- */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.facility-item {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.facility-item:hover {
    transform: translateY(-6px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.facility-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.facility-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.facility-item p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

/* ---------- LOGIN CTA ---------- */
.login-cta-section {
    padding: 80px 0;
}

.login-cta {
    padding: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    color: var(--white);
    display: grid;
    grid-template-columns: 1.5fr auto;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(14, 148, 103, 0.3);
}

.login-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-cta-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
}

.login-cta-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    position: relative;
}

.login-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.login-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.login-cta .btn-primary:hover {
    background: var(--accent-light);
    color: var(--dark);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.75;
    max-width: 320px;
}

.footer .logo-text strong { color: var(--white); }
.footer .logo-text small { color: rgba(255, 255, 255, 0.6); }

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent-light); padding-left: 4px; }

.footer-contact li {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-made { font-size: 12px; }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container { gap: 40px; }
    .hero-card { width: 280px; height: 360px; }
    .hero-card-arabic { font-size: 72px; }
    .floating-badge-1 { right: -10px; }
    .floating-badge-2 { left: -10px; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }

    .login-cta {
        grid-template-columns: 1fr;
        padding: 40px;
        text-align: center;
    }
    .login-cta-actions { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — Mobile Landscape / Small Tablet
   ============================================================ */
@media (max-width: 768px) {
    :root { --gutter: 20px; }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: var(--gutter);
        right: var(--gutter);
        flex-direction: column;
        background: var(--white);
        padding: 16px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        color: var(--dark-soft);
        text-align: center;
    }
    .nav-link:hover, .nav-link.active {
        color: var(--primary);
        background: var(--primary-pale);
    }

    .nav-actions { display: none; }
    .nav-toggle { display: flex; }

    .hero { padding: 120px 0 80px; min-height: auto; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; gap: 20px; }

    .hero-visual {
        margin-top: 40px;
        transform: scale(0.85);
    }
    .floating-badge-1 { right: 0; top: 20px; }
    .floating-badge-2 { left: 0; bottom: 20px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 32px; }

    .section { padding: 70px 0; }
    .section-header { margin-bottom: 40px; }

    .programs-grid,
    .ustadz-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .login-cta { padding: 32px 24px; }
    .login-cta-actions .btn { width: 100%; justify-content: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .hero-scroll { display: none; }
}

/* ============================================================
   RESPONSIVE — Mobile Portrait
   ============================================================ */
@media (max-width: 480px) {
    .hero-title { font-size: 1.85rem; }
    .hero-badge { font-size: 11px; padding: 6px 12px; }
    .hero-desc { font-size: 15px; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-trust { flex-wrap: wrap; gap: 16px; }
    .trust-divider { display: none; }
    .hero-trust .trust-item { flex: 1 1 40%; }

    .hero-card { width: 240px; height: 320px; }
    .hero-card-arabic { font-size: 60px; }
    .floating-badge { padding: 10px 14px; font-size: 12px; }
    .floating-badge div strong { font-size: 13px; }
    .floating-badge div span { font-size: 11px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 28px; }

    .programs-grid,
    .ustadz-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 1.6rem; }

    .login-cta-content h2 { font-size: 1.4rem; }

    .footer { padding: 60px 0 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}