:root {
            --ace-page-bg: #f4f7f9;
            --ace-card-bg: #ffffff;
            --ace-dark: #102538;
            --ace-dark-2: #193b56;
            --ace-accent: #2b9d83;
            --ace-accent-soft: #e8f6f2;
            --ace-text: #263746;
            --ace-muted: #667887;
            --ace-border: #dce5eb;
            --ace-shadow: 0 12px 35px rgba(22, 50, 70, 0.08);
        }

        body {
            margin: 0;
            background: var(--ace-page-bg);
            color: var(--ace-text);
            font-family:
                Inter,
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                Arial,
                sans-serif;
        }

        .ace-home {
            max-width: 1240px;
            margin: 0 auto;
            padding: 32px 22px 50px;
        }

        /*
         * ----------------------------------------------------------
         * HERO
         * ----------------------------------------------------------
         */

        .ace-home-hero {
            position: relative;
            overflow: hidden;

            padding: 50px 48px;

            border-radius: 22px;

            background:
                radial-gradient(
                    circle at top right,
                    rgba(79, 198, 166, 0.20),
                    transparent 36%
                ),
                linear-gradient(
                    135deg,
                    #102538 0%,
                    #183b56 60%,
                    #205069 100%
                );

            color: #ffffff;

            box-shadow: var(--ace-shadow);
        }

        .ace-home-kicker {
            margin-bottom: 10px;

            color: #80ddc3;

            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .ace-home-hero h1 {
            margin: 0 0 15px;

            max-width: 800px;

            font-size: clamp(2rem, 5vw, 3.5rem);
            line-height: 1.05;
            letter-spacing: -0.03em;
        }

        .ace-home-intro {
            max-width: 840px;

            margin: 0;

            color: #dce8ef;

            font-size: 1.1rem;
            line-height: 1.75;
        }

        .ace-home-intro strong {
            color: #ffffff;
        }

        .ace-hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;

            margin-top: 28px;
        }

        .ace-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            min-height: 44px;
            padding: 0 20px;

            border-radius: 10px;

            text-decoration: none;

            font-weight: 650;

            transition:
                transform 0.15s ease,
                background 0.15s ease,
                border-color 0.15s ease;
        }

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

        .ace-button-primary {
            background: #62d0b2;
            color: #0d2b31;
        }

        .ace-button-secondary {
            border: 1px solid rgba(255, 255, 255, 0.22);
            background: rgba(255, 255, 255, 0.07);
            color: #ffffff;
        }

        /*
         * ----------------------------------------------------------
         * QURAN VERSE
         * ----------------------------------------------------------
         */

        .ace-quran-banner {
            margin-top: 22px;
            padding: 28px 32px;

            border: 1px solid var(--ace-border);
            border-radius: 18px;

            background: var(--ace-card-bg);

            text-align: center;

            box-shadow: var(--ace-shadow);
        }

        .ace-quran-banner .ayah {
            color: var(--ace-dark);

            font-family:
                "Noto Naskh Arabic",
                "Amiri",
                serif;

            font-size: clamp(1.65rem, 4vw, 2.5rem);
            line-height: 1.8;

            direction: rtl;
        }

        .ace-quran-banner .ayah-ref {
            margin-top: 8px;

            color: var(--ace-muted);

            font-size: 0.9rem;
        }

        /*
         * ----------------------------------------------------------
         * MAIN AREAS
         * ----------------------------------------------------------
         */

        .ace-section-heading {
            margin: 42px 0 18px;
        }

        .ace-section-heading h2 {
            margin: 0 0 6px;

            color: var(--ace-dark);

            font-size: 1.55rem;
        }

        .ace-section-heading p {
            margin: 0;

            color: var(--ace-muted);

            line-height: 1.6;
        }

        .ace-tool-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));

            gap: 18px;
        }

        .ace-tool-card {
            display: flex;
            flex-direction: column;

            min-height: 185px;

            padding: 24px;

            border: 1px solid var(--ace-border);
            border-radius: 16px;

            background: var(--ace-card-bg);

            box-shadow: 0 7px 25px rgba(20, 48, 68, 0.05);

            transition:
                transform 0.15s ease,
                box-shadow 0.15s ease,
                border-color 0.15s ease;
        }

        .ace-tool-card:hover {
            transform: translateY(-2px);

            border-color: #bfdcd4;

            box-shadow: 0 14px 32px rgba(20, 48, 68, 0.09);
        }

        .ace-tool-category {
            margin-bottom: 9px;

            color: var(--ace-accent);

            font-size: 0.76rem;
            font-weight: 750;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .ace-tool-card h3 {
            margin: 0 0 10px;

            color: var(--ace-dark);

            font-size: 1.18rem;
        }

        .ace-tool-card p {
            flex: 1;

            margin: 0 0 18px;

            color: var(--ace-muted);

            font-size: 0.94rem;
            line-height: 1.65;
        }

        .ace-tool-links {
            display: flex;
            flex-wrap: wrap;

            gap: 7px 12px;
        }

        .ace-tool-links a {
            color: var(--ace-dark-2);

            font-size: 0.91rem;
            font-weight: 650;

            text-decoration: none;
        }

        .ace-tool-links a:hover {
            color: var(--ace-accent);
            text-decoration: underline;
        }

        /*
         * ----------------------------------------------------------
         * ENGINE DESCRIPTION
         * ----------------------------------------------------------
         */

        .ace-engine-panel {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;

            gap: 22px;

            margin-top: 40px;
        }

        .ace-info-card {
            padding: 28px;

            border: 1px solid var(--ace-border);
            border-radius: 17px;

            background: var(--ace-card-bg);

            box-shadow: var(--ace-shadow);
        }

        .ace-info-card h2,
        .ace-info-card h3 {
            margin-top: 0;

            color: var(--ace-dark);
        }

        .ace-info-card p {
            color: var(--ace-muted);

            line-height: 1.75;
        }

        .ace-feature-list {
            margin: 18px 0 0;
            padding: 0;

            list-style: none;
        }

        .ace-feature-list li {
            position: relative;

            margin: 10px 0;
            padding-left: 21px;

            color: var(--ace-text);

            line-height: 1.55;
        }

        .ace-feature-list li::before {
            content: "•";

            position: absolute;
            left: 0;

            color: var(--ace-accent);

            font-weight: 800;
        }

        .ace-arabic-example {
            margin-top: 18px;
            padding: 18px 20px;

            border-radius: 12px;

            background: var(--ace-accent-soft);

            color: var(--ace-dark);

            font-family:
                "Noto Naskh Arabic",
                "Amiri",
                serif;

            font-size: 1.65rem;
            line-height: 1.8;

            text-align: center;
            direction: rtl;
        }

        /*
         * ----------------------------------------------------------
         * FOOTER
         * ----------------------------------------------------------
         */

        .ace-home-footer {
            margin-top: 40px;
            padding: 25px 10px 5px;

            border-top: 1px solid var(--ace-border);

            color: var(--ace-muted);

            font-size: 0.88rem;

            text-align: center;
        }

        /*
         * ----------------------------------------------------------
         * RESPONSIVE
         * ----------------------------------------------------------
         */

        @media (max-width: 950px) {

            .ace-tool-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .ace-engine-panel {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 650px) {

            .ace-home {
                padding: 20px 14px 35px;
            }

            .ace-home-hero {
                padding: 34px 25px;
                border-radius: 17px;
            }

            .ace-tool-grid {
                grid-template-columns: 1fr;
            }

            .ace-quran-banner {
                padding: 23px 18px;
            }
        }
