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

:root {
    --sand: #f5efe6;
    --sand-dark: #ede4d5;
    --ink: #1c1812;
    --ink-soft: #3d3629;
    --ink-muted: #6e6356;
    --gold: #b8893e;
    --gold-light: #d4a857;
    --gold-pale: #f0e2c8;
    --green: #2d4a38;
    --green-mid: #3d6349;
    --moon: #c8a96e;
    --font-display: Fraunces, Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px #1c181214;
    --shadow-md: 0 8px 32px #1c18121f;
    --shadow-lg: 0 20px 60px #1c181229
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-body);
    background: var(--sand);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #f5efe6e0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #b8893e26
}

/* Appbar enhancements */
.nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-back svg {
    width: 20px;
    height: 20px;
}

[dir="rtl"] .nav-back svg {
    transform: scaleX(-1);
}

.nav-lang-badge {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(200, 169, 110, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

[dir="rtl"] .nav-lang-badge {
    margin-right: 0;
    margin-left: auto;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em
}

.nav-logo img {
    width: 38px;
    height: 38px;
}

.logo-moon {
    font-size: 1.3rem;
    color: var(--gold);
    line-height: 1
}

.nav-cta {
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink);
    border: 1.5px solid var(--gold);
    padding: .4rem 1rem;
    border-radius: 100px;
    transition: background .2s, color .2s;
    letter-spacing: .01em
}

.nav-cta:hover {
    background: var(--gold);
    color: #fff
}

.hero {
    position: relative;
    padding: 120px 2rem 80px;
    overflow: hidden;
    background: var(--sand)
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 70% 20%, #c8a96e1f 0%, transparent 55%), radial-gradient(circle at 15% 80%, #2d4a3812 0%, transparent 45%);
    pointer-events: none
}

.hero-bg-pattern::before {
    content: '';
    position: absolute;
    top: 60px;
    right: 5%;
    width: 320px;
    height: 320px;
    border: 1px solid #b8893e1f;
    border-radius: 50%;
    transform: rotate(15deg)
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    top: 100px;
    right: 6.5%;
    width: 240px;
    height: 240px;
    border: 1px solid #b8893e14;
    border-radius: 50%
}

.hero-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--gold-pale);
    border: 1px solid #b8893e40;
    padding: .3rem .85rem;
    border-radius: 100px;
    margin-bottom: 2rem
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2.4s ease-in-out infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(.7)
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.03em;
    color: var(--ink);
    max-width: 680px;
    margin-bottom: 1.4rem
}

.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold)
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 2.4rem;
    line-height: 1.7
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 4rem
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: var(--ink);
    color: var(--sand);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 500;
    padding: .78rem 1.6rem;
    border-radius: var(--radius-md);
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: var(--shadow-md);
    letter-spacing: .01em
}

.btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg)
}

.btn-primary--large {
    font-size: 1rem;
    padding: .95rem 2rem
}

.btn-ghost {
    font-size: .9rem;
    font-weight: 400;
    color: var(--ink-muted);
    letter-spacing: .01em;
    transition: color .15s
}

.btn-ghost:hover {
    color: var(--ink)
}

.hero-widgets {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap
}

.widget {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-md);
    min-width: 170px;
    flex: 1;
    max-width: 230px;
    position: relative;
    border: 1px solid #fffc;
    transition: transform .25s, box-shadow .25s;
    animation: float 5s ease-in-out infinite
}

.widget:nth-child(2) {
    animation-delay: 1.5s
}

.widget:nth-child(3) {
    animation-delay: 3s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.widget:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg)
}

.w-label {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: .8rem;
    opacity: .6
}

.w-arabic {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold);
    direction: rtl;
    margin-bottom: .3rem
}

.w-date {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem
}

.w-event {
    font-size: .72rem;
    color: var(--ink-muted);
    background: var(--gold-pale);
    padding: .2rem .5rem;
    border-radius: var(--radius-sm);
    display: inline-block
}

.widget--minimal {
    background: var(--ink);
    color: var(--sand)
}

.w-date-big {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold-light);
    margin-bottom: .2rem
}

.w-month {
    font-size: .82rem;
    color: #f5efe6a6;
    letter-spacing: .02em
}

.widget--arabic {
    background: var(--green);
    color: var(--sand)
}

.w-arabic-full {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--gold-light);
    direction: rtl;
    text-align: right;
    margin-bottom: .4rem;
    line-height: 1.4
}

.w-day-ar {
    font-size: .8rem;
    color: #f5efe699;
    direction: rtl;
    text-align: right
}

.stats-bar {
    background: var(--ink);
    padding: 1.6rem 2rem
}

.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem 2.5rem;
    gap: .15rem
}

.stat-n {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1
}

.stat-l {
    font-size: .72rem;
    font-weight: 400;
    color: #f5efe673;
    letter-spacing: .06em;
    text-transform: uppercase
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: #f5efe61a
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem
}

.section-label {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .85rem
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
    color: var(--ink);
    margin-bottom: 1rem
}

.section-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold)
}

.section-desc {
    font-size: 1rem;
    color: var(--ink-muted);
    max-width: 520px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 3rem
}

.features {
    padding: 100px 2rem;
    background: var(--sand)
}

.features .section-title {
    margin-bottom: 3rem
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.2rem
}

.feat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid #c8a96e26;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s
}

.feat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md)
}

.feat-card--large {
    grid-column: span 1;
    background: var(--gold-pale);
    border-color: #b8893e40
}

.feat-card--accent {
    background: var(--ink);
    color: var(--sand);
    border-color: transparent
}

.feat-card--accent h3 {
    color: var(--gold-light) !important
}

.feat-card--accent p {
    color: #f5efe6b3
}

.feat-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1
}

.feat-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .6rem;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: .5rem
}

.feat-card p {
    font-size: .9rem;
    color: var(--ink-muted);
    line-height: 1.65;
    font-weight: 300
}

.feat-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold);
    background: #b8893e1f;
    padding: .25rem .65rem;
    border-radius: 100px
}

.new-badge {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--gold);
    color: #fff;
    padding: .15rem .45rem;
    border-radius: 100px;
    vertical-align: middle;
    font-family: var(--font-body)
}

.widgets-section {
    padding: 100px 2rem;
    background: var(--sand-dark)
}

.styles-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    max-width: 540px
}

.style-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #b8893e1f;
    transition: gap .2s
}

.style-item:hover {
    gap: 1.4rem
}

.style-item:last-child {
    border-bottom: none
}

.style-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid #ffffff80;
    box-shadow: 0 2px 6px #00000026
}

.style-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    min-width: 110px;
    letter-spacing: -.01em
}

.style-desc {
    font-size: .85rem;
    color: var(--ink-muted);
    font-weight: 300
}

.promise-section {
    padding: 100px 2rem;
    background: var(--sand)
}

.promise-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start
}

.promise-inner .section-title {
    margin-bottom: 1.2rem
}

.promise-inner>.promise-text>p {
    font-size: .97rem;
    color: var(--ink-muted);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 1.8rem
}

.promise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem
}

.promise-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .93rem;
    color: var(--ink-soft);
    font-weight: 400
}

.check {
    color: var(--green-mid);
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0
}

.promise-quote {
    position: sticky;
    top: 90px
}

blockquote {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.45;
    color: var(--ink);
    padding: 2rem 2rem 1.5rem;
    background: var(--gold-pale);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--gold);
    margin-bottom: 1.5rem;
    position: relative
}

blockquote::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--gold);
    opacity: .2;
    position: absolute;
    top: -.5rem;
    left: 1.2rem;
    line-height: 1
}

blockquote cite {
    display: block;
    font-size: .78rem;
    font-style: normal;
    font-family: var(--font-body);
    color: var(--ink-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-top: .8rem
}

.barakallah {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    direction: rtl;
    text-align: center;
    letter-spacing: .03em;
    opacity: .75
}

.languages-section {
    padding: 100px 2rem;
    background: var(--ink)
}

.languages-section .section-label {
    color: var(--gold-light);
    opacity: .7
}

.languages-section .section-title {
    color: var(--sand)
}

.languages-section .section-title em {
    color: var(--gold-light)
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 2.5rem
}

.lang-tag {
    font-size: .82rem;
    font-weight: 400;
    color: #f5efe6bf;
    background: #f5efe60f;
    border: 1px solid #f5efe61a;
    padding: .35rem .8rem;
    border-radius: 100px;
    transition: background .15s, color .15s, border-color .15s
}

.lang-tag.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(212, 175, 108, 0.25);
}

.lang-tag:hover {
    background: #c8a96e26;
    color: var(--gold-light);
    border-color: #c8a96e4d
}

.lang-tag--more {
    border-style: dashed;
    color: #f5efe659
}

.cta-section {
    padding: 120px 2rem;
    background: var(--sand-dark);
    text-align: center;
    position: relative;
    overflow: hidden
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, #c8a96e24 0%, transparent 65%);
    pointer-events: none
}

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

.cta-moon {
    font-size: 3.5rem;
    color: var(--gold);
    opacity: .7;
    display: block;
    margin-bottom: 1.4rem;
    line-height: 1
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: .9rem
}

.cta-sub {
    font-size: .97rem;
    color: var(--ink-muted);
    font-weight: 300;
    margin-bottom: 2.2rem;
    line-height: 1.6
}

.cta-note {
    margin-top: 1.2rem;
    font-size: .75rem;
    color: var(--ink-muted);
    opacity: .6;
    letter-spacing: .02em
}

.footer {
    background: var(--ink);
    padding: 3rem 2rem;
    text-align: center
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sand)
}

.footer-logo .logo-moon {
    color: var(--gold-light)
}

.footer-tagline {
    font-size: .82rem;
    color: #f5efe666;
    font-weight: 300
}

.footer-tagline a {
    color: #f5efe68c;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s
}

.footer-tagline a:hover {
    color: var(--gold-light)
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin: .4rem 0
}

.footer-links a {
    font-size: .82rem;
    color: #f5efe673;
    transition: color .15s;
    letter-spacing: .02em
}

.footer-links a:hover {
    color: var(--gold-light)
}

.footer-copy {
    font-size: .75rem;
    color: #f5efe640;
    letter-spacing: .02em
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .promise-inner {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    .promise-quote {
        position: static
    }
}

@media (max-width: 680px) {
    .hero {
        padding: 100px 1.25rem 60px
    }

    .features {
        padding: 70px 1.25rem
    }

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

    .widgets-section,
    .promise-section,
    .languages-section,
    .cta-section {
        padding: 70px 1.25rem
    }

    .hero-widgets {
        gap: .85rem
    }

    .widget {
        min-width: 130px;
        padding: 1rem 1.1rem
    }

    .stat {
        padding: .5rem 1.4rem
    }

    .stat-divider {
        display: none
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem
    }

    blockquote {
        font-size: 1.25rem
    }

    .nav-inner {
        padding: 0 1.25rem
    }
}

@media (prefers-reduced-motion: no-preference) {

    .hero-badge,
    .hero-title,
    .hero-sub,
    .hero-actions,
    .hero-widgets {
        animation: fade-up .7s ease both
    }

    .hero-title {
        animation-delay: .08s
    }

    .hero-sub {
        animation-delay: .18s
    }

    .hero-actions {
        animation-delay: .28s
    }

    .hero-widgets {
        animation-delay: .4s
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}