:root {
    --color-bg: #f6f7fb;
    --color-surface: #ffffff;
    --color-primary: #4338ca;
    --color-primary-dark: #3730a3;
    --color-primary-tint: #eef0fd;
    --color-text: #1f2330;
    --color-muted: #6b7280;
    --color-border: #e5e7f0;
    --shadow-soft: 0 8px 24px rgba(31, 35, 48, 0.06);
    --shadow-card-hover: 0 12px 28px rgba(31, 35, 48, 0.09);
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    background: var(--color-surface);
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    z-index: 10;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
    padding: 24px 20px;
    display: flex;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1080px;
    width: 100%;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6d5bd0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Swap in a real logo by replacing .brand-logo with:
   <img src="assets/images/logo.png" alt="Sheera Lateen logo" class="brand-logo-img"> */
.brand-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-muted);
    letter-spacing: 0.2px;
}

/* ---------- Hero ---------- */
.hero {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.hero-description {
    margin: 0 auto 28px;
    max-width: 520px;
    color: var(--color-muted);
    font-size: 16px;
}

.btn-cta {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-card-hover);
}

/* ---------- Features ---------- */
.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 24px 56px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

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

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-tint);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    font-size: 14px;
    color: var(--color-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    padding: 24px 20px 32px;
    border-top: 1px solid var(--color-border);
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    color: var(--color-muted);
}

.site-footer p + p {
    margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .hero {
        padding: 36px 18px 32px;
    }

    .feature-card {
        padding: 22px 18px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn-cta,
    .feature-card {
        transition: none;
    }
}
