:root {
    --green: #0f9d78;
    --green-dark: #08745a;
    --blue: #2563eb;
    --purple: #7c3aed;
    --gold: #f4b942;
    --pink: #ff7eb6;
    --navy: #1d3557;
    --text: #30455c;
    --muted: #6f8296;
    --white: #ffffff;
    --soft-bg: #f7fcfb;
    --border: #dcebe6;
    --shadow: 0 20px 50px rgba(22, 82, 75, 0.12);
    --small-shadow: 0 10px 24px rgba(22, 82, 75, 0.08);
    --danger: #d9534f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 157, 120, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.06), transparent 22%),
        linear-gradient(135deg, #fbfefd, #f3fbf9, #ffffff);
    font-family: "Poppins", Arial, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

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

button,
input,
select,
audio {
    font: inherit;
}

button {
    border: 0;
}

.section {
    position: relative;
    padding: 95px 7%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 235, 230, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.navbar {
    width: min(1180px, 100%);
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-block;
    font-family: "Baloo 2", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(
        90deg,
        var(--green),
        #22c55e,
        var(--gold),
        var(--blue),
        var(--purple),
        var(--green)
    );
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbowMove 8s linear infinite;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
}

.nav-links a {
    color: #4a5e75;
    font-size: 0.94rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.account-buttons,
.hero-buttons,
.control-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button:active {
    transform: scale(0.95);
    opacity: 0.86;
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--green), #10b981);
    box-shadow: 0 12px 24px rgba(15, 157, 120, 0.24);
}

.button-outline {
    color: var(--green);
    background: var(--white);
    border: 2px solid rgba(15, 157, 120, 0.35);
}

.button-secondary {
    color: var(--green-dark);
    background: #e8f8f2;
    border: 1px solid #cfece2;
}

.button-large {
    min-height: 56px;
    padding: 16px 28px;
    border-radius: 18px;
}

.active-account {
    box-shadow: 0 10px 20px rgba(15, 157, 120, 0.14);
}

.menu-button {
    width: 46px;
    height: 46px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 13px;
    background: #ebfaf4;
    cursor: pointer;
}

.menu-button span {
    width: 22px;
    height: 3px;
    border-radius: 99px;
    background: var(--navy);
    transition: 0.25s;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "✦";
    color: var(--gold);
}

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero-text h1,
.section-heading h2,
.about-card h2,
.reader-preview-text h2,
.auth-intro h1,
.auth-card h2,
.reader-header-card h1 {
    color: var(--navy);
    font-family: "Baloo 2", sans-serif;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-text h1 {
    margin-top: 14px;
    font-size: clamp(3.1rem, 7vw, 6.1rem);
}

.hero-description {
    max-width: 650px;
    margin-top: 23px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.rainbow-text {
    background: linear-gradient(
        90deg,
        var(--green),
        #22c55e,
        var(--gold),
        var(--blue),
        var(--purple),
        var(--green)
    );
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbowMove 7s linear infinite;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-stats {
    margin-top: 34px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.stat {
    display: grid;
}

.stat strong {
    color: var(--navy);
    font-size: 1.16rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.82rem;
}

.float-shape {
    position: absolute;
    border-radius: 999px;
    opacity: 0.45;
}

.shape-one {
    top: 14%;
    left: -70px;
    width: 160px;
    height: 160px;
    background: #c9f3e7;
}

.shape-two {
    right: 8%;
    top: 10%;
    width: 105px;
    height: 105px;
    background: #ffe5a6;
}

.shape-three {
    right: 32%;
    bottom: 8%;
    width: 78px;
    height: 78px;
    background: #e6dbff;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.kid-scene {
    position: relative;
    width: min(470px, 100%);
    min-height: 470px;
    padding: 30px;
    border: 1px solid rgba(220, 235, 230, 0.95);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    animation: floatCard 4.8s ease-in-out infinite;
    overflow: hidden;
}

.quran-book {
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 115px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f9d78, #1bc797);
    box-shadow: 0 16px 30px rgba(15, 157, 120, 0.2);
    display: grid;
    place-items: center;
    color: white;
    font-family: "Baloo 2", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
}

.book-line {
    position: absolute;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.5);
}

.book-line:nth-child(1) {
    top: 24px;
}
.book-line:nth-child(2) {
    top: 38px;
}
.book-line:nth-child(3) {
    top: 52px;
}

.kid {
    position: absolute;
    bottom: 32px;
    width: 140px;
    height: 240px;
}

.kid-boy {
    left: 60px;
}

.kid-girl {
    right: 60px;
}

.kid-head {
    position: relative;
    width: 110px;
    height: 115px;
    margin: 0 auto;
}

.kid-face {
    position: absolute;
    top: 20px;
    left: 16px;
    width: 78px;
    height: 82px;
    border-radius: 42% 42% 46% 46%;
    background: #ffd7be;
    z-index: 3;
}

.kid-hair {
    position: absolute;
    top: 6px;
    left: 10px;
    width: 92px;
    height: 62px;
    border-radius: 42px 42px 26px 26px;
    background: #35231d;
    z-index: 4;
}

.kid-hair::after {
    content: "";
    position: absolute;
    top: 34px;
    left: 5px;
    width: 82px;
    height: 22px;
    border-radius: 50%;
    background: #35231d;
}

.kid-hijab {
    position: absolute;
    top: 0;
    left: 2px;
    width: 106px;
    height: 112px;
    border-radius: 48px 48px 50px 50px;
    background: #7c3aed;
    z-index: 2;
}

.kid-hijab::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 10px;
    width: 86px;
    height: 30px;
    border-radius: 0 0 24px 24px;
    background: #7c3aed;
}

.eye {
    position: absolute;
    top: 35px;
    width: 7px;
    height: 10px;
    border-radius: 50%;
    background: #2e2d33;
    animation: blinkEyes 5s infinite;
}

.left-eye {
    left: 20px;
}

.right-eye {
    right: 20px;
}

.smile {
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 24px;
    height: 12px;
    border-bottom: 3px solid #9d5d4f;
    border-radius: 0 0 18px 18px;
    transform: translateX(-50%);
}

.kid-body {
    width: 120px;
    height: 110px;
    margin: -6px auto 0;
    border-radius: 32px 32px 18px 18px;
}

.kid-boy .kid-body {
    background: linear-gradient(180deg, #36c5f0, #2563eb);
}

.kid-girl .kid-body {
    background: linear-gradient(180deg, #ff7eb6, #ec4899);
}

.sparkle {
    position: absolute;
    font-size: 1.4rem;
    animation: floatSpark 3.5s ease-in-out infinite;
}

.sparkle-1 {
    left: 28px;
    top: 44px;
}
.sparkle-2 {
    right: 36px;
    top: 92px;
    animation-delay: 0.5s;
}
.sparkle-3 {
    left: 48%;
    bottom: 118px;
    animation-delay: 1s;
}

.section-heading {
    max-width: 740px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    margin-top: 11px;
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.section-heading p:last-child {
    margin-top: 15px;
    color: var(--muted);
    line-height: 1.8;
}

.feature-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.feature-card,
.about-card,
.auth-card,
.reader-header-card,
.ayahs-card,
.sidebar-card {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--small-shadow);
}

.feature-card {
    padding: 29px;
    border-radius: 24px;
    transition: 0.24s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #eaf9f3;
    font-size: 1.65rem;
}

.feature-card h3 {
    color: var(--navy);
}

.feature-card p {
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.reader-preview-card {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
    padding: 42px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f7fffc, #fbfbff);
    border: 1px solid var(--border);
    box-shadow: var(--small-shadow);
}

.reader-preview-text h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.reader-preview-text p:not(.eyebrow) {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.preview-list {
    margin: 22px 0;
    display: grid;
    gap: 11px;
    list-style: none;
    color: var(--text);
    font-weight: 600;
}

.reader-preview-box {
    display: flex;
    justify-content: center;
}

.mini-player {
    width: min(320px, 100%);
    padding: 26px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.mini-player-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
}

.mini-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7f8f2;
    color: var(--green-dark);
    font-size: 0.78rem;
}

.mini-arabic {
    margin-top: 24px;
    text-align: center;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1.8;
}

.mini-wave {
    height: 42px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.mini-wave span {
    width: 7px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--green), var(--blue));
    animation: waveMove 1.25s ease-in-out infinite;
}

.mini-wave span:nth-child(1) {
    height: 16px;
}
.mini-wave span:nth-child(2) {
    height: 28px;
    animation-delay: 0.1s;
}
.mini-wave span:nth-child(3) {
    height: 40px;
    animation-delay: 0.2s;
}
.mini-wave span:nth-child(4) {
    height: 28px;
    animation-delay: 0.3s;
}
.mini-wave span:nth-child(5) {
    height: 16px;
    animation-delay: 0.4s;
}

.about-card {
    width: min(950px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 32px;
    padding: 40px;
    border-radius: 28px;
}

.about-icon {
    width: 136px;
    height: 136px;
    display: grid;
    place-items: center;
    border-radius: 38px;
    background: #ebfaf4;
    font-size: 3.9rem;
}

.about-card h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.about-card p:last-child {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.8;
}

.footer {
    color: #d7ebe6;
    background: #123330;
}

.footer-content {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 58px 7%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
}

.footer-brand p {
    max-width: 370px;
    margin-top: 14px;
    color: #aac4be;
    line-height: 1.8;
}

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

.footer-links h3 {
    margin-bottom: 12px;
    color: white;
}

.footer-links a {
    display: block;
    margin-top: 8px;
    color: #b2cac5;
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #95aea9;
    font-size: 0.82rem;
}

/* AUTH */
.auth-page {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    padding: 75px 7%;
}

.auth-layout {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 70px;
    align-items: center;
}

.auth-intro h1 {
    margin-top: 12px;
    font-size: clamp(3rem, 6vw, 5.4rem);
}

.auth-intro > p:last-of-type {
    max-width: 560px;
    margin-top: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.auth-benefits {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.auth-benefits div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #485c72;
}

.auth-benefits span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #eaf9f3;
}

.auth-card {
    padding: 34px;
    border-radius: 29px;
}

.auth-card-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #eaf9f3;
    font-size: 2rem;
}

.auth-card h2 {
    text-align: center;
    font-size: 2.2rem;
}

.auth-subtitle {
    margin-top: 6px;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.form-group {
    margin-top: 16px;
}

.form-group:first-child {
    margin-top: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #45596f;
    font-size: 0.86rem;
    font-weight: 700;
}

.form-group input,
.control-group select {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 2px solid #dcebe6;
    border-radius: 15px;
    outline: none;
    color: var(--text);
    background: #fbfefd;
    transition: 0.2s;
}

.form-group input:focus,
.control-group select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(15, 157, 120, 0.12);
}

.input-error {
    border-color: var(--danger) !important;
}

.input-success {
    border-color: var(--green) !important;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    transform: translateY(-50%);
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover {
    background: #eaf9f3;
}

.form-error {
    min-height: 16px;
    margin-top: 5px;
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 600;
}

.form-submit {
    width: 100%;
    margin-top: 20px;
}

.auth-switch,
.auth-note {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.84rem;
}

.auth-switch a,
.auth-note a {
    color: var(--green);
    font-weight: 800;
}

/* READER */
.reader-page {
    min-height: calc(100vh - 76px);
    padding: 70px 7%;
}

.reader-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 28px;
    align-items: start;
}

.reader-sidebar {
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 24px;
    border-radius: 24px;
}

.sidebar-card h3 {
    color: var(--navy);
    font-family: "Baloo 2", sans-serif;
    font-size: 1.5rem;
}

.sidebar-card p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.9rem;
}

.control-group {
    margin-top: 16px;
}

.control-group label {
    display: block;
    margin-bottom: 7px;
    color: #45596f;
    font-size: 0.86rem;
    font-weight: 700;
}

.control-buttons {
    margin-top: 18px;
}

.reader-main {
    display: grid;
    gap: 22px;
}

.reader-header-card,
.ayahs-card {
    padding: 30px;
    border-radius: 28px;
}

.reader-header-card h1 {
    margin-top: 10px;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.reader-subtitle {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.reader-audio {
    width: 100%;
    margin-top: 20px;
}

.audio-source-text {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.84rem;
}

.ayahs-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ayahs-top h2 {
    color: var(--navy);
    font-family: "Baloo 2", sans-serif;
    font-size: 2rem;
}

.ayah-container {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.ayah-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fbfefd;
}

.ayah-number {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eaf9f3;
    color: var(--green-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.ayah-text {
    direction: rtl;
    text-align: right;
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    line-height: 2.1;
}

.loading-text,
.error-text {
    color: var(--muted);
    line-height: 1.7;
}

.error-text {
    color: var(--danger);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(16, 44, 39, 0.58);
    backdrop-filter: blur(8px);
}

.modal-overlay.show {
    display: grid;
}

.modal-card {
    position: relative;
    width: min(430px, 100%);
    padding: 36px;
    border-radius: 28px;
    background: white;
    text-align: center;
    box-shadow: 0 30px 80px rgba(8, 28, 24, 0.28);
    animation: modalPop 0.28s ease;
}

.modal-close {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eaf9f3;
    cursor: pointer;
    font-size: 1.5rem;
}

.modal-icon {
    font-size: 3.4rem;
}

.modal-card h2 {
    margin-top: 10px;
    color: var(--navy);
    font-family: "Baloo 2", sans-serif;
    font-size: 2rem;
}

.modal-card p {
    margin: 12px 0 22px;
    color: var(--muted);
    line-height: 1.75;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ANIMATIONS */
@keyframes rainbowMove {
    from {
        background-position: 0%;
    }
    to {
        background-position: 300%;
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatSpark {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

@keyframes waveMove {
    0%, 100% {
        transform: scaleY(0.6);
    }
    50% {
        transform: scaleY(1);
    }
}

@keyframes blinkEyes {
    0%, 45%, 55%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.1);
    }
}

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

/* RESPONSIVE */
@media (max-width: 1050px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reader-preview-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .section,
    .reader-page,
    .auth-page {
        padding-left: 6%;
        padding-right: 6%;
    }

    .menu-button {
        display: flex;
    }

    .navigation {
        position: absolute;
        top: calc(100% + 10px);
        left: 6%;
        right: 6%;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

    .navigation.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
    }

    .account-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-content,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .hero-text,
    .auth-intro {
        text-align: center;
    }

    .hero-buttons,
    .hero-stats {
        justify-content: center;
    }

    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-icon {
        margin: 0 auto;
    }

    .reader-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {
    .section,
    .reader-page,
    .auth-page {
        padding-left: 5%;
        padding-right: 5%;
    }

    .logo {
        font-size: 1.65rem;
    }

    .hero-text h1,
    .auth-intro h1 {
        font-size: clamp(2.8rem, 15vw, 4.4rem);
    }

    .hero-buttons {
        display: grid;
    }

    .hero-buttons .button {
        width: 100%;
    }

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

    .kid-scene {
        min-height: 430px;
        padding: 20px;
    }

    .kid-boy {
        left: 22px;
    }

    .kid-girl {
        right: 22px;
    }

    .quran-book {
        width: 140px;
        height: 100px;
    }

    .reader-header-card,
    .ayahs-card,
    .auth-card,
    .sidebar-card,
    .reader-preview-card,
    .about-card {
        padding: 24px 20px;
    }

    .ayah-text {
        font-size: 1.6rem;
    }

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

    .account-buttons {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
