/* ==========================================================================
   VNDEL design system 2026 (loaded after custom.css)
   Typography, rhythm, surfaces and conversion elements for the CMS pages.
   Remove the <link> to this file in includes/common/overwrites/seo.tpl to disable.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cairo:wght@400;600;700;800&display=swap');

/* this file is linked before the theme's variables, so html:root (higher specificity) is needed */
html:root {
    --font-family-base: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root {
    --vn-radius: 16px;
    --vn-radius-sm: 12px;
    --vn-glow: rgba(99, 102, 241, .22);
}
html[dir="rtl"]:root { --font-family-base: 'Cairo', 'Inter', system-ui, sans-serif; }
html.lagom-dark-mode body.lagom,
body.lagom { font-family: var(--font-family-base); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------- Headings ---------- */
body.lagom h1, body.lagom h2, body.lagom h3,
body.lagom .section-title, body.lagom .banner-title {
    font-family: var(--font-family-base);
    letter-spacing: -.022em;
    font-weight: 700;
}
html[dir="rtl"] body.lagom h1, html[dir="rtl"] body.lagom h2, html[dir="rtl"] body.lagom h3,
html[dir="rtl"] body.lagom .section-title, html[dir="rtl"] body.lagom .banner-title { letter-spacing: 0; font-weight: 800; }
body.lagom .banner-title {
    font-size: clamp(2.2rem, 4.2vw, 3.7rem);
    line-height: 1.1;
    font-weight: 800;
}
.lagom-dark-mode body.lagom .banner-title {
    background: linear-gradient(180deg, #ffffff 30%, #b9c0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.lagom .section-title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.18; }
body.lagom .banner-subtitle { font-size: 1.15rem; line-height: 1.6; opacity: .9; }

/* ---------- Eyebrow captions as pills ---------- */
body.lagom .banner-caption,
body.lagom .section-caption {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(99, 102, 241, .12);
    border: 1px solid rgba(129, 140, 248, .28);
    color: #b6bcff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.lagom .banner-caption::before,
body.lagom .section-caption::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #818cf8;
    box-shadow: 0 0 10px #818cf8;
}
html[dir="rtl"] body.lagom .banner-caption, html[dir="rtl"] body.lagom .section-caption { letter-spacing: 0; text-transform: none; font-size: .9rem; }

/* ---------- Hero: depth glow + faint grid ---------- */
body.lagom [data-site-banner] { position: relative; isolation: isolate; }
body.lagom [data-site-banner]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 50% -8%, rgba(99, 102, 241, .38), transparent 70%),
        radial-gradient(600px 300px at 12% 70%, rgba(79, 70, 229, .16), transparent 70%),
        radial-gradient(600px 300px at 88% 70%, rgba(129, 140, 248, .14), transparent 70%);
}
body.lagom [data-site-banner]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Section rhythm ---------- */
body.lagom .site-section { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
body.lagom .site .site-section + .site-section:not(.section-gray):not(.section-primary) { border-top: 0; }
body.lagom .site-section.section-gray {
    background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 30%), var(--site-section-bg, transparent);
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
body.lagom .site-section .section-subtitle { max-width: 680px; font-size: 1.08rem; line-height: 1.65; }

/* ---------- Buttons ---------- */
body.lagom .btn { border-radius: var(--vn-radius-sm); font-weight: 600; letter-spacing: .005em; }
body.lagom .btn-primary {
    background: linear-gradient(135deg, #6f72f5 0%, #4f46e5 100%);
    border-color: transparent;
    box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}
body.lagom .btn-primary:not(:disabled):not(.disabled):hover {
    background: linear-gradient(135deg, #8183ff 0%, #5b52f0 100%);
    box-shadow: 0 16px 32px -12px rgba(99, 102, 241, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
}
body.lagom .btn-lg, body.lagom .btn-extra-large, body.lagom .btn-xl { padding-left: 28px; padding-right: 28px; }
.lagom-dark-mode body.lagom .btn-primary-faded, .lagom-dark-mode body.lagom .btn-default {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #e7e9ff;
}
.lagom-dark-mode body.lagom .btn-primary-faded:not(:disabled):hover, .lagom-dark-mode body.lagom .btn-default:not(:disabled):hover {
    background: rgba(99, 102, 241, .16);
    border-color: rgba(129, 140, 248, .5);
}

/* ---------- Cards / surfaces ---------- */
body.lagom .package.is-boxed,
body.lagom .section-features .feature.is-boxed,
body.lagom .panel,
body.lagom .section-box.is-boxed {
    border-radius: var(--vn-radius);
}
.lagom-dark-mode body.lagom .package.is-boxed,
.lagom-dark-mode body.lagom .section-features .feature.is-boxed {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)),
        var(--ui-block-bg);
    border: 1px solid rgba(255, 255, 255, .08);
}
.lagom-dark-mode body.lagom .package.package-link:hover {
    background:
        radial-gradient(420px 160px at 50% 0%, var(--vn-glow), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        var(--ui-block-bg);
}
body.lagom .package-title { font-weight: 600; letter-spacing: -.01em; }
body.lagom .package-actions .btn-link { font-weight: 600; }

/* ---------- Stats (bigger, gradient numbers) ---------- */
body.lagom .section-stats .feature-stat,
body.lagom .section-stats .stat,
body.lagom .section-stats [class*="stat"] > span:first-child {
    font-weight: 800;
    letter-spacing: -.02em;
}
body.lagom .section-stats .feature {
    border-radius: var(--vn-radius);
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}

/* ---------- Domain search ---------- */
body.lagom .section-domains .form-control,
body.lagom .section-domains .input-group {
    border-radius: var(--vn-radius-sm);
}
body.lagom .section-domains .domain-tlds .tld-name { border-radius: 8px; }

/* ---------- FAQ ---------- */
body.lagom .section-faq .panel,
body.lagom .section-faq .list-item,
body.lagom .section-faq .accordion-item { border-radius: var(--vn-radius-sm); }

/* ---------- Final CTA ---------- */
body.lagom .banner-center .banner-caption { margin-left: auto; margin-right: auto; }
body.lagom .site-section.section-cta { background: transparent; border: 0; }
body.lagom .section-cta .section-box.is-boxed {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 56px);
}
.lagom-dark-mode body.lagom .section-cta .section-box.is-boxed {
    border: 1px solid rgba(129, 140, 248, .3);
    background:
        radial-gradient(600px 260px at 85% 0%, rgba(99, 102, 241, .35), transparent 70%),
        radial-gradient(500px 260px at 0% 100%, rgba(79, 70, 229, .22), transparent 70%),
        linear-gradient(180deg, #151a2c, #0f1320);
    box-shadow: 0 30px 60px -30px rgba(79, 70, 229, .6);
}
body.lagom .section-cta .section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- Footer ---------- */
body.lagom .footer, body.lagom footer.footer { border-top: 1px solid rgba(255, 255, 255, .06); }
body.lagom .footer .footer-title, body.lagom .footer h5 { letter-spacing: .02em; text-transform: capitalize; font-weight: 600; }
body.lagom .footer a { transition: color .18s ease; }
body.lagom .footer a:hover { color: #a5b4fc; }

/* ---------- RTL: game banner (banner-type-3) ----------
   The theme's RTL rule (right:50%) loses to the LTR rule (right:-220px), so in Arabic the
   artwork stayed on the right, on top of the text. Move it to the left half and fade its edges. */
html[dir="rtl"] .site-banner.banner.banner-custom-graphic-bg.banner-type-3 .banner-graphic-background.banner-graphic-background-side {
    right: auto;
    left: 0;
    width: 50%;
    justify-content: center;
    align-items: center;
}
html[dir="rtl"] .site-banner.banner.banner-custom-graphic-bg.banner-type-3 .banner-graphic-background-side img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 52%, transparent 82%);
    mask-image: radial-gradient(ellipse at center, #000 52%, transparent 82%);
}

/* ---------- RTL: plan feature rows (VPS / hosting pages) ----------
   The (i) tooltip icon was `inline` in some rows and `inline-flex` in others, so in Arabic it jumped
   between the left and right side of the label. Make it identical everywhere. */
html[dir="rtl"] .package-features li > span {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    margin-inline-start: 6px;
}

/* ---------- Accessibility: keep readable if animations are reduced ---------- */
@media (prefers-reduced-motion: reduce) {
    body.lagom [data-site-banner]::before { opacity: .9; }
}
