:root {
    --ivory: #F7F3EC;
    --card: #FAF8F3;
    --espresso: #231F1B;
    --espresso-soft: #8C8377;
    --olive: #6B7B5B;
    --olive-deep: #4F5B43;
    --gold: #BFA77A;
    --gold-soft: #D9C7AD;
    --line: #D8CDBB;
    --shadow: 0 16px 32px rgba(35, 31, 27, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--espresso);
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(var(--gold-soft) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .35;
    pointer-events: none;
    z-index: 0;
}

h1,
h2 {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
    color: var(--espresso);
    margin: 0;
}

p {
    margin: 0;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 3px;
}

.spark {
    fill: var(--gold);
    flex: none;
}

/* header */
header {
    position: relative;
    z-index: 1;
    padding: 28px 0;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}

.header-tagline {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .14em;
    color: var(--espresso-soft);
    text-transform: uppercase;
}

/* hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 32px 0 64px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: center;
    max-width: 640px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--olive-deep);
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 700;
    line-height: 1.35;
}

.subhead {
    margin-top: 18px;
    font-size: 16px;
    color: var(--espresso-soft);
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    margin-top: 28px;
    background: var(--olive);
    color: #fff;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.hero-cta:hover {
    background: var(--olive-deep);
    transform: translateY(-1px);
}

/* card stack */
.card-stack-wrap {
    position: relative;
    width: 280px;
    height: 300px;
    margin: 0 auto;
}

.creator-card {
    --rest: rotate(0deg);
    position: absolute;
    width: 150px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px;
    box-shadow: var(--shadow);
    animation: fanIn .7s cubic-bezier(.16, .8, .3, 1) both;
    animation-delay: calc(var(--i, 0) * 100ms);
    transform: var(--rest);
}

.creator-card:nth-child(1) {
    --rest: rotate(-7deg);
    --i: 0;
    top: 0;
    right: 16px;
    z-index: 4;
}

.creator-card:nth-child(2) {
    --rest: rotate(5deg);
    --i: 1;
    top: 46px;
    right: 110px;
    z-index: 3;
}

.creator-card:nth-child(3) {
    --rest: rotate(10deg);
    --i: 2;
    top: 120px;
    right: 8px;
    z-index: 2;
}

.creator-card:nth-child(4) {
    --rest: rotate(-11deg);
    --i: 3;
    top: 162px;
    right: 104px;
    z-index: 1;
}

@keyframes fanIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.9) rotate(0deg);
    }

    to {
        opacity: 1;
        transform: var(--rest);
    }
}

.cc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-avatar svg {
    fill: #fff;
}

.cc-tier {
    font-size: 10.5px;
    font-weight: 700;
    background: var(--gold-soft);
    color: var(--espresso);
    padding: 3px 8px;
    border-radius: 20px;
}

.cc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--espresso-soft);
}

.cc-followers {
    font-weight: 700;
    color: var(--espresso);
}

.cc-bar {
    margin-top: 9px;
    height: 4px;
    border-radius: 4px;
    background: var(--line);
    overflow: hidden;
}

.cc-bar span {
    display: block;
    height: 100%;
    background: var(--gold);
}

.hero-watermark {
    position: absolute;
    z-index: 0;
    top: -30px;
    right: -40px;
    width: 230px;
    height: auto;
    opacity: .05;
    pointer-events: none;
    transform: rotate(-6deg);
}

.footer-mark {
    width: 80px;
    height: auto;
    margin: 0 auto 12px;
    display: block;
}

.contact-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 26px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--espresso);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    transition: border-color .15s ease;
}

.contact-row:hover {
    border-color: var(--olive);
}

.contact-label {
    font-weight: 600;
}

.contact-number {
    color: var(--olive-deep);
    font-weight: 600;
}

.cc-loc {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

@media (min-width:560px) {
    .contact-rows {
        flex-direction: row;
        justify-content: center;
    }
}

/* stat strip */
.stats {
    position: relative;
    z-index: 1;
    background: rgba(35, 31, 27, .045);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 0;
}

.stat {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    min-width: 180px;
}

.stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-value {
    display: block;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--olive-deep);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--espresso-soft);
    margin-top: 4px;
}

/* form */
.form-section {
    position: relative;
    z-index: 1;
    padding: 64px 0 80px;
}

.form-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 36px 30px;
    text-align: center;
}

.form-card h2 {
    font-size: 24px;
    font-weight: 700;
}

.form-card .sub {
    margin-top: 10px;
    font-size: 14px;
    color: var(--espresso-soft);
}

form {
    margin-top: 26px;
    text-align: right;
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--espresso);
}

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 15px;
    color: var(--espresso);
    background: #fff;
}

input::placeholder {
    color: #b9ac9a;
}

input:focus {
    outline: none;
    border-color: var(--olive);
}

.hint {
    font-size: 11.5px;
    color: #a89a86;
    margin-top: 6px;
}

.submit-btn {
    width: 100%;
    background: var(--olive);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s ease;
}

.submit-btn:hover {
    background: var(--olive-deep);
}

.submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.privacy {
    margin-top: 14px;
    font-size: 12px;
    color: #a89a86;
    text-align: center;
}

.form-error {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    color: #a14b3a;
    text-align: center;
}

.success-state {
    display: none;
}

.success-state svg {
    margin: 0 auto 14px;
}

.success-state h2 {
    font-size: 22px;
}

.success-state p {
    margin-top: 10px;
    font-size: 14.5px;
    color: var(--espresso-soft);
}

/* footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 36px 0 28px;
}

.footer-brand {
    font-size: 14px;
    font-weight: 600;
}

.footer-tagline {
    font-family: 'El Messiri', serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--olive-deep);
    margin-top: 6px;
}

/* success popup modal */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(35, 31, 27, .6);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.popup-modal {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    padding: 36px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    animation: popupScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popupScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-modal svg {
    margin: 0 auto 18px;
    display: block;
}

.popup-modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--espresso);
}

.popup-modal p {
    font-size: 15px;
    color: var(--espresso-soft);
    line-height: 1.6;
    margin-bottom: 24px;
}

.popup-cta-btn {
    display: inline-block;
    width: 100%;
    background: #25D366;
    /* WhatsApp green brand color */
    color: #fff;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: background 0.15s ease, transform 0.15s ease;
    text-align: center;
}

.popup-cta-btn:hover {
    background: #20ba59;
    transform: translateY(-1px);
}

.close-popup-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    background: transparent;
    border: none;
    color: var(--espresso-soft);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.close-popup-btn:hover {
    color: var(--espresso);
}

@media (min-width:900px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        text-align: right;
    }

    .hero-text {
        text-align: right;
    }

    .eyebrow {
        justify-content: flex-start;
    }

    .card-stack-wrap {
        width: 360px;
        height: 360px;
        margin: 0;
    }

    .creator-card {
        width: 170px;
        padding: 16px;
    }

    .creator-card:nth-child(1) {
        top: 0;
        right: 20px;
    }

    .creator-card:nth-child(2) {
        top: 60px;
        right: 150px;
    }

    .creator-card:nth-child(3) {
        top: 150px;
        right: 10px;
    }

    .creator-card:nth-child(4) {
        top: 200px;
        right: 140px;
    }

    .stats-inner {
        flex-direction: row;
        justify-content: center;
        padding: 32px 0;
    }

    .stat {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        padding-inline-end: 36px;
        margin-inline-end: 36px;
        border-inline-end: 1px solid var(--line);
    }

    .stat:last-child {
        padding-inline-end: 0;
        margin-inline-end: 0;
        border-inline-end: none;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}