:root {
    --brand: #2faa6f;
    --brand-deep: #1e6a46;
    --brand-dark: #1f8b58;
    --brand-soft: #eaf8f1;
    --ink: #15281f;
    --muted: #6a786f;
    --line: rgba(21, 40, 31, 0.1);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% 10%, rgba(47, 170, 111, 0.12), transparent 22%),
        radial-gradient(circle at 88% 8%, rgba(47, 170, 111, 0.09), transparent 20%),
        radial-gradient(circle at 40% 90%, rgba(47, 170, 111, 0.06), transparent 25%),
        linear-gradient(180deg, #fbfefc 0%, #f0faf4 50%, #e8f6ee 100%);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.cs-bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(47, 170, 111, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    animation: csGridDrift 22s linear infinite;
}

@keyframes csGridDrift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 28px 28px;
    }
}

.cs-glow {
    position: fixed;
    width: min(90vw, 520px);
    height: min(90vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 170, 111, 0.18) 0%, transparent 68%);
    top: -10%;
    right: -15%;
    pointer-events: none;
    z-index: 0;
    animation: csFloat 10s ease-in-out infinite;
}

.cs-glow--b {
    top: auto;
    bottom: -20%;
    right: auto;
    left: -20%;
    animation-delay: -4s;
    opacity: 0.85;
}

@keyframes csFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-16px, 20px) scale(1.04);
    }
}

.cs-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    text-align: center;
}

.cs-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: 0 24px 60px rgba(21, 40, 31, 0.08);
    backdrop-filter: blur(14px);
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cs-brand img {
    width: clamp(72px, 18vw, 100px);
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 8px 24px rgba(47, 170, 111, 0.2));
}

.cs-title {
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.cs-title span {
    color: var(--brand);
}

.cs-sub {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0 0 1.75rem;
}

.cs-progress {
    height: 6px;
    border-radius: 999px;
    background: #e7f4ec;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.cs-progress span {
    display: block;
    height: 100%;
    width: 62%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #79d5a6);
    animation: csBar 2.8s ease-in-out infinite alternate;
}

@keyframes csBar {
    0% {
        width: 52%;
    }
    100% {
        width: 78%;
    }
}

.cs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cs-btn--primary {
    background: linear-gradient(135deg, var(--brand), #39b97b);
    color: #fff;
    box-shadow: 0 12px 26px rgba(47, 170, 111, 0.22);
}

.cs-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: saturate(1.05);
}

.cs-btn--ghost {
    background: #fff;
    color: var(--brand-dark);
    border: 1px solid rgba(47, 170, 111, 0.28);
}

.cs-btn--ghost:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.cs-meta {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
}

.cs-meta a {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
}

.cs-meta a:hover {
    text-decoration: underline;
}

.cs-footer {
    margin-top: 2rem;
    font-size: 0.82rem;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .cs-bg-grid,
    .cs-glow,
    .cs-progress span {
        animation: none;
    }
    .cs-progress span {
        width: 62%;
    }
}
