/*
 * Wajhti marketing system
 * A restrained, editorial visual language for the central SaaS website.
 */

:root {
    --header-height: 92px;
    --brand-deep: color-mix(in srgb, var(--secondary-color) 78%, #050807);
    --brand-ink: color-mix(in srgb, var(--secondary-color) 42%, #0f172a);
    --brand-soft: color-mix(in srgb, var(--primary-color) 11%, #fff);
    --brand-mist: color-mix(in srgb, var(--primary-color) 5%, #fff);
    --surface: color-mix(in srgb, var(--primary-color) 1.5%, #fff);
    --surface-muted: color-mix(in srgb, var(--primary-color) 4.5%, #fff);
    --ink: color-mix(in srgb, var(--secondary-color) 28%, #0f172a);
    --muted: color-mix(in srgb, var(--secondary-color) 16%, #64748b);
    --line: color-mix(in srgb, var(--primary-color) 15%, #dbe3df);
    --warm: var(--secondary-color);
    --dark-canvas: color-mix(in srgb, var(--secondary-color) 38%, #050807);
    --dark-surface: color-mix(in srgb, var(--secondary-color) 48%, #111827);
    --dark-ink: color-mix(in srgb, var(--primary-color) 9%, #fff);
    --dark-muted: color-mix(in srgb, var(--primary-color) 22%, #94a3b8);
    --marketing-shadow: 0 24px 70px color-mix(in srgb, var(--secondary-color) 14%, transparent);
    --soft-shadow: 0 12px 35px color-mix(in srgb, var(--secondary-color) 10%, transparent);
    --radius-lg: 28px;
    --radius-md: 20px;
}

html {
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body.marketing-site {
    overflow-x: hidden;
    background: var(--surface);
    color: var(--ink);
    text-rendering: optimizeLegibility;
}

.dark body.marketing-site {
    color: var(--dark-ink);
    background: var(--dark-canvas);
}

.marketing-site ::selection {
    color: #fff;
    background: var(--primary-color);
}

.marketing-site .container {
    width: min(100% - 2rem, 1200px);
}

/* Header */
.site-header {
    min-height: var(--header-height);
    padding-top: 10px;
    background: transparent;
}

.site-header__container {
    transition: width 0.3s ease;
}

.site-header__bar {
    min-height: calc(var(--header-height) - 20px);
    padding: 5px 16px !important;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 8px 35px color-mix(in srgb, var(--secondary-color) 8%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: min-height 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled .site-header__bar {
    min-height: 66px;
    border-radius: 16px;
    box-shadow: 0 12px 35px color-mix(in srgb, var(--secondary-color) 15%, transparent);
}

.dark .site-header__bar {
    background: color-mix(in srgb, var(--dark-canvas) 90%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.navbar-brand {
    flex: 0 0 auto;
}

.navbar-brand img {
    object-fit: contain;
}

.dark .navbar-brand {
    padding: 0.2rem 0.45rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-radius: 11px;
}

.site-nav {
    white-space: nowrap;
}

.site-nav .nav-link {
    position: relative;
    padding-block: 0.7rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.site-nav .nav-link::after {
    right: 0;
    left: auto;
    width: 0;
    height: 2px;
    border-radius: 999px;
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link-active::after {
    width: 100%;
}

.phone-cluster {
    direction: rtl;
    flex: 0 0 auto;
}

.phone-cluster__icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.phone-number {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.header-cta {
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 13px;
    box-shadow: none;
    white-space: nowrap;
}

.site-header__actions {
    gap: 0.65rem;
}

.site-mobile-menu {
    top: calc(100% + 4px);
    left: 1rem !important;
    width: calc(100% - 2rem) !important;
    max-height: calc(100vh - var(--header-height) - 10px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--marketing-shadow);
}

.site-mobile-menu a:hover,
.site-mobile-menu a:focus-visible {
    color: var(--primary-color) !important;
    background: var(--brand-soft) !important;
}

.marketing-site a:focus-visible,
.marketing-site button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 38%, transparent);
    outline-offset: 3px;
}

#theme-toggle:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 20%, transparent) !important;
}

/* Hero */
.hero-section {
    min-height: 790px;
    padding-top: var(--header-height);
    background:
        linear-gradient(color-mix(in srgb, var(--primary-color) 5%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 5%, transparent) 1px, transparent 1px),
        radial-gradient(circle at 82% 28%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 24rem),
        var(--surface-muted) !important;
    background-size: 44px 44px, 44px 44px, auto, auto !important;
}

.dark .hero-section {
    background:
        linear-gradient(color-mix(in srgb, var(--primary-color) 6%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 6%, transparent) 1px, transparent 1px),
        radial-gradient(circle at 82% 28%, color-mix(in srgb, var(--primary-color) 26%, transparent), transparent 24rem),
        var(--dark-canvas) !important;
    background-size: 44px 44px, 44px 44px, auto, auto !important;
}

.hero-section > .floating {
    display: none;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-slide {
    min-height: 700px;
}

.hero-container {
    padding-top: 54px;
    padding-bottom: 112px;
}

.hero-grid {
    min-height: 560px;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
    color: var(--primary-color);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.hero-eyebrow span {
    width: 28px;
    height: 2px;
    background: currentColor;
}

.hero-title {
    margin-bottom: 1.45rem !important;
    color: var(--ink);
    font-size: clamp(3.65rem, 6.2vw, 5.8rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.055em;
    line-height: 1.08 !important;
    text-wrap: balance;
}

.hero-title span {
    color: inherit;
    font-size: inherit !important;
}

.hero-title span:first-child {
    color: var(--primary-color);
}

.hero-title br + span {
    display: inline-block;
    margin-top: 0.22em;
    color: var(--brand-deep);
    font-size: 0.52em !important;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.dark .hero-title,
.dark .hero-title br + span {
    color: var(--dark-ink);
}

.hero-description {
    max-width: 39rem;
    margin-bottom: 2rem !important;
    color: var(--muted) !important;
    font-size: 1.08rem !important;
    line-height: 2;
}

.dark .hero-description {
    color: var(--dark-muted) !important;
}

.hero-actions {
    align-items: center;
}

.hero-cta {
    display: inline-flex;
    min-width: 172px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.45rem !important;
    border: 1px solid transparent;
    border-radius: 15px !important;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--primary-color) 24%, transparent) !important;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 16px 38px color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
}

.hero-cta--secondary {
    color: var(--brand-deep);
    background: color-mix(in srgb, var(--surface) 58%, transparent);
    border-color: color-mix(in srgb, var(--secondary-color) 24%, transparent);
    box-shadow: none !important;
}

.hero-cta--secondary:hover {
    color: var(--primary-color);
    background: var(--surface);
    box-shadow: none !important;
}

.dark .hero-cta--secondary {
    color: var(--dark-ink);
    background: color-mix(in srgb, var(--primary-color) 7%, transparent);
    border-color: color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.2rem;
    margin-top: 1.65rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.hero-proof i {
    color: var(--primary-color);
    font-size: 1rem;
}

.hero-media {
    position: relative;
    max-width: 590px;
    margin-inline: auto;
    padding: 16px;
    background: linear-gradient(145deg, var(--surface), var(--brand-soft));
    border: 1px solid var(--line);
    border-radius: 34px 34px 100px 34px;
    box-shadow: var(--marketing-shadow);
}

.hero-media::before {
    position: absolute;
    inset: auto auto -20px -18px;
    width: 120px;
    height: 120px;
    content: "";
    background: var(--brand-deep);
    border-radius: 30px;
    z-index: -1;
}

.hero-media::after {
    position: absolute;
    top: -16px;
    right: 38px;
    width: 74px;
    height: 32px;
    content: "واجهتي";
    color: #fff;
    background: var(--primary-color);
    border-radius: 0 0 11px 11px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 32px;
    text-align: center;
}

.dark .hero-media {
    background: var(--dark-surface);
    border-color: color-mix(in srgb, var(--primary-color) 20%, transparent);
}

.hero-image {
    max-height: 475px;
    object-fit: contain;
    background: var(--surface);
    border-radius: 23px 23px 82px 23px !important;
    box-shadow: none !important;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    opacity: 0;
    border: 1px solid color-mix(in srgb, var(--surface) 38%, transparent);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--secondary-color) 20%, transparent);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-swiper:hover .swiper-button-next,
.hero-swiper:hover .swiper-button-prev,
.hero-swiper:focus-within .swiper-button-next,
.hero-swiper:focus-within .swiper-button-prev {
    opacity: 1;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    transform: scale(1.06);
}

.hero-swiper.is-static .swiper-button-next,
.hero-swiper.is-static .swiper-button-prev {
    display: none;
}

/* Proof counters */
.stats-section {
    margin-top: -72px !important;
}

.stats-panel {
    padding: 1.4rem 1.6rem !important;
    background: color-mix(in srgb, var(--surface) 96%, transparent) !important;
    border: 1px solid var(--line) !important;
    border-radius: 22px !important;
    box-shadow: var(--soft-shadow) !important;
}

.stats-panel > div {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.8rem;
    text-align: right;
}

.stats-panel > div:not(:last-child)::after {
    position: absolute;
    top: 12%;
    left: -1rem;
    width: 1px;
    height: 76%;
    content: "";
    background: var(--line);
}

.stats-panel > div > div {
    grid-row: 1 / 3;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    color: var(--primary-color);
    background: var(--brand-soft) !important;
    border-radius: 14px !important;
}

.stats-panel > div > div i {
    color: var(--primary-color) !important;
    font-size: 1.25rem !important;
}

.stats-panel .counter-animation {
    margin: 0;
    color: var(--brand-ink);
    font-size: 1.8rem !important;
    line-height: 1.15;
    text-align: right;
}

.stats-panel p {
    margin-top: 0.15rem;
    color: var(--muted) !important;
    font-size: 0.78rem;
    text-align: right;
}

.dark .stats-panel {
    background: var(--dark-surface) !important;
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
}

.dark .stats-panel .counter-animation {
    color: var(--dark-ink);
}

/* Shared section language */
.main-section,
.partners-section,
.capabilities-band,
.closing-cta {
    position: relative;
}

.services-section,
.portfolio-section,
.packages-section,
.testimonials-section,
.faq-section,
.partners-section,
.blog-section {
    padding-block: clamp(5.5rem, 9vw, 8rem) !important;
}

.services-section,
.packages-section,
.faq-section,
.blog-section {
    background: var(--surface-muted) !important;
}

.portfolio-section,
.testimonials-section,
.partners-section {
    background: var(--surface) !important;
}

.dark .services-section,
.dark .portfolio-section,
.dark .packages-section,
.dark .testimonials-section,
.dark .faq-section,
.dark .partners-section,
.dark .blog-section {
    background: var(--dark-canvas) !important;
}

.services-section > .container > .text-center,
.portfolio-section > .container > .text-center,
.packages-section > .container > .text-center,
.testimonials-section > .container > .text-center,
.faq-section > .container > .text-center,
.partners-section > .container > .text-center,
.blog-section > .container > .text-center {
    display: grid;
    max-width: 760px;
    margin-right: 0;
    margin-bottom: 3.4rem !important;
    text-align: right;
}

.services-section > .container > .text-center > span,
.portfolio-section > .container > .text-center > span,
.packages-section > .container > .text-center > span,
.testimonials-section > .container > .text-center > span,
.faq-section > .container > .text-center > span,
.partners-section > .container > .text-center > span,
.blog-section > .container > .text-center > span {
    justify-self: start;
    margin-bottom: 0.9rem !important;
    padding: 0 !important;
    color: var(--primary-color) !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-size: 0.84rem;
    font-weight: 800;
}

.services-section > .container > .text-center > span::before,
.portfolio-section > .container > .text-center > span::before,
.packages-section > .container > .text-center > span::before,
.testimonials-section > .container > .text-center > span::before,
.faq-section > .container > .text-center > span::before,
.partners-section > .container > .text-center > span::before,
.blog-section > .container > .text-center > span::before {
    display: inline-block;
    width: 22px;
    height: 2px;
    margin-left: 8px;
    content: "";
    vertical-align: middle;
    background: currentColor;
}

.services-section h2,
.portfolio-section h2,
.packages-section h2,
.testimonials-section h2,
.faq-section h2,
.partners-section h2,
.blog-section h2 {
    margin-bottom: 0.8rem !important;
    color: var(--ink) !important;
    font-size: clamp(2.3rem, 4vw, 3.7rem) !important;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.25;
}

.dark .services-section h2,
.dark .portfolio-section h2,
.dark .packages-section h2,
.dark .testimonials-section h2,
.dark .faq-section h2,
.dark .partners-section h2,
.dark .blog-section h2 {
    color: var(--dark-ink) !important;
}

.services-section > .container > .text-center p,
.portfolio-section > .container > .text-center p,
.packages-section > .container > .text-center p,
.testimonials-section > .container > .text-center p,
.faq-section > .container > .text-center p,
.partners-section > .container > .text-center p {
    max-width: 650px;
    margin: 0;
    color: var(--muted) !important;
    font-size: 1.02rem !important;
    line-height: 1.95;
}

/* Capabilities band */
.capabilities-band {
    padding-block: clamp(5rem, 8vw, 7rem) !important;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--secondary-color) 24%, transparent), transparent 18rem),
        var(--brand-ink) !important;
}

.capabilities-band > .absolute {
    display: none;
}

.capabilities-band svg {
    width: 145px;
    height: 145px;
    padding: 24px;
    background: color-mix(in srgb, var(--primary-color) 9%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
    border-radius: 36px;
}

.capabilities-band h2 {
    font-size: clamp(2.6rem, 5vw, 4.3rem) !important;
    letter-spacing: -0.045em;
}

.capabilities-band p {
    color: var(--dark-muted) !important;
}

.capabilities-band span[class*="bg-white"] {
    background: transparent !important;
    border-color: color-mix(in srgb, var(--primary-color) 26%, transparent) !important;
    border-radius: 10px !important;
}

/* Services */
.services-section > .container > .grid {
    gap: 1rem !important;
}

.services-section .grid > div {
    position: relative;
    padding: 2rem !important;
    background: var(--surface) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) !important;
    box-shadow: none !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.services-section .grid > div:hover {
    transform: translateY(-6px) !important;
    border-color: color-mix(in srgb, var(--primary-color) 38%, var(--line));
    box-shadow: var(--soft-shadow) !important;
}

.services-section .grid > div > div:first-child {
    width: 58px !important;
    height: 58px !important;
    margin-bottom: 1.6rem !important;
    color: var(--primary-color);
    background: var(--brand-soft) !important;
    border-radius: 16px !important;
}

.services-section .grid > div > div:first-child i {
    color: var(--primary-color) !important;
    font-size: 1.55rem !important;
}

.services-section h3 {
    color: var(--ink) !important;
    font-size: 1.35rem !important;
}

.services-section .grid > div > p {
    color: var(--muted) !important;
    line-height: 1.9;
}

.services-section li {
    padding-top: 0.55rem;
    border-top: 1px dashed var(--line);
}

.dark .services-section .grid > div {
    background: var(--dark-surface) !important;
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.dark .services-section h3 {
    color: var(--dark-ink) !important;
}

/* Portfolio */
.portfolio-section > .container > .grid {
    gap: 1.15rem !important;
}

.portfolio-section .grid > .group {
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 22px !important;
    box-shadow: none !important;
}

.portfolio-section .group > img {
    height: 420px !important;
    filter: saturate(0.9);
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}

.portfolio-section .group:hover > img {
    transform: scale(1.04);
    filter: saturate(1);
}

.portfolio-section .group > div {
    opacity: 1 !important;
    background: linear-gradient(
        to top,
        color-mix(in srgb, var(--brand-ink) 96%, transparent),
        color-mix(in srgb, var(--brand-ink) 14%, transparent) 70%,
        transparent
    ) !important;
}

.portfolio-section .group > div > div {
    transform: none !important;
}

.portfolio-section .group h3 {
    font-size: 1.45rem !important;
}

.portfolio-section .group span {
    border: 1px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
    border-radius: 8px !important;
}

/* Packages */
.packages-section {
    overflow: hidden;
}

.packages-section::before {
    position: absolute;
    top: -180px;
    left: -130px;
    width: 420px;
    height: 420px;
    content: "";
    border: 1px solid color-mix(in srgb, var(--primary-color) 14%, transparent);
    border-radius: 50%;
}

.packages-section > .container > .grid {
    gap: 1rem !important;
}

.packages-section .grid > div {
    padding: 2rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 22px !important;
    box-shadow: none !important;
}

.packages-section .grid > div:not(.primary-bg) {
    background: var(--surface) !important;
}

.packages-section .grid > .primary-bg {
    transform: translateY(-12px) !important;
    background: var(--brand-deep) !important;
    border-color: var(--brand-deep) !important;
    box-shadow: 0 22px 50px color-mix(in srgb, var(--secondary-color) 24%, transparent) !important;
}

.packages-section .grid > div > .text-center > div:first-child {
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
}

.packages-section button {
    min-height: 50px;
    border-radius: 13px !important;
}

.packages-section .secondary-bg {
    color: var(--brand-ink) !important;
    background: var(--surface) !important;
}

.dark .packages-section .grid > div:not(.primary-bg) {
    background: var(--dark-surface) !important;
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
}

/* Testimonials */
.testimonials-section .grid {
    gap: 1rem !important;
}

.testimonials-section .grid > div {
    position: relative;
    padding: 2rem !important;
    background: var(--brand-mist) !important;
    border: 1px solid transparent;
    border-radius: 20px !important;
    box-shadow: none !important;
}

.testimonials-section .grid > div::after {
    position: absolute;
    top: 24px;
    left: 24px;
    content: "“";
    color: color-mix(in srgb, var(--primary-color) 14%, transparent);
    font-family: Georgia, serif;
    font-size: 7rem;
    line-height: 0.8;
}

.testimonials-section .bi-quote {
    display: none !important;
}

.testimonials-section .grid > div > p {
    position: relative;
    z-index: 1;
    min-height: 118px;
    color: var(--muted) !important;
    line-height: 2;
}

.testimonials-section .grid > div .w-14 {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
}

.dark .testimonials-section .grid > div {
    background: var(--dark-surface) !important;
}

/* FAQ */
.faq-section .max-w-4xl {
    max-width: 880px;
    margin-right: 0;
    margin-left: auto;
}

.faq-section .space-y-6 {
    gap: 0.75rem;
}

.faq-section .space-y-6 > div {
    margin-top: 0 !important;
    background: var(--surface) !important;
    border: 1px solid var(--line);
    border-radius: 16px !important;
    box-shadow: none !important;
}

.faq-question {
    padding: 1.35rem 1.5rem !important;
}

.faq-answer > div {
    color: var(--muted) !important;
    line-height: 2;
}

.dark .faq-section .space-y-6 > div {
    background: var(--dark-surface) !important;
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

/* Partners */
.partners-section .grid {
    gap: 0.75rem !important;
    opacity: 1 !important;
}

.partners-section .grid > div {
    height: 96px !important;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.partners-section .grid > div > div {
    height: auto !important;
    background: transparent !important;
}

.partners-section img {
    opacity: 0.65;
    filter: grayscale(1);
}

.partners-section .grid > div:hover img {
    opacity: 1;
    filter: grayscale(0);
}

.dark .partners-section .grid > div {
    background: var(--dark-surface);
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

/* Blog */
.blog-section article {
    background: var(--surface) !important;
    border: 1px solid var(--line);
    border-radius: 20px !important;
    box-shadow: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-section article:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--soft-shadow) !important;
}

.blog-section article img {
    height: 220px !important;
}

.blog-section article .p-6 {
    padding: 1.5rem !important;
}

.blog-section article h3 {
    color: var(--ink) !important;
    line-height: 1.55;
}

.blog-section article p {
    color: var(--muted) !important;
    line-height: 1.9;
}

.blog-section article .absolute.primary-bg {
    top: 14px;
    right: 14px;
    border: 1px solid color-mix(in srgb, var(--surface) 28%, transparent);
    border-radius: 9px !important;
}

.dark .blog-section article {
    background: var(--dark-surface) !important;
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.dark .blog-section article h3 {
    color: var(--dark-ink) !important;
}

/* Closing call to action */
.closing-cta {
    padding-block: clamp(5rem, 8vw, 7rem) !important;
    background:
        radial-gradient(circle at 13% 16%, color-mix(in srgb, var(--secondary-color) 28%, transparent), transparent 18rem),
        radial-gradient(circle at 88% 90%, color-mix(in srgb, var(--primary-color) 16%, transparent), transparent 20rem),
        var(--brand-ink) !important;
}

.closing-cta > .floating {
    display: none;
}

.closing-cta .max-w-4xl {
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid color-mix(in srgb, var(--primary-color) 24%, transparent);
    border-radius: 32px;
}

.closing-cta h2 {
    font-size: clamp(2.8rem, 5.5vw, 5rem) !important;
    letter-spacing: -0.055em;
    line-height: 1.15;
}

.closing-cta button {
    min-height: 54px;
    border-radius: 14px !important;
}

/* Footer and floating actions */
.site-footer {
    color: var(--dark-muted) !important;
    background: var(--dark-canvas) !important;
}

.site-footer > .absolute {
    display: none;
}

.site-footer .primary-bg {
    background: color-mix(in srgb, var(--primary-color) 14%, transparent) !important;
    border: 1px solid color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.site-footer .border-gray-800 {
    border-color: color-mix(in srgb, var(--primary-color) 18%, transparent) !important;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: color-mix(in srgb, var(--primary-color) 68%, #fff) !important;
}

#scrollToTop,
.marketing-site > a[aria-label="Contact us on WhatsApp"] {
    width: 50px !important;
    height: 50px !important;
    border: 1px solid color-mix(in srgb, var(--surface) 50%, transparent);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--secondary-color) 24%, transparent) !important;
}

/* The old 3D tilt works against the calmer system. */
.card-hover-effect,
.card-hover-effect:hover {
    transform: none;
}

@media (max-width: 1279px) {
    .site-nav {
        gap: 1.1rem !important;
    }

    .site-nav .nav-link {
        font-size: 0.84rem;
    }

    .phone-cluster {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    :root {
        --header-height: 82px;
    }

    .site-header {
        padding-top: 8px;
    }

    .site-header__bar {
        min-height: 66px;
        border-radius: 17px;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-slide {
        min-height: 860px;
    }

    .hero-container {
        padding-top: 56px;
        padding-bottom: 112px;
    }

    .hero-grid {
        min-height: 0;
        gap: 2.8rem;
    }

    .hero-copy {
        max-width: 46rem;
        margin-inline: auto;
        text-align: center !important;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-actions,
    .hero-proof {
        justify-content: center !important;
    }

    .hero-media {
        max-width: 440px;
    }

    .hero-image {
        max-height: 310px;
    }

    .stats-panel > div {
        grid-template-columns: 42px 1fr;
    }

    .stats-panel > div:nth-child(2)::after {
        display: none;
    }

    .packages-section .grid > .primary-bg {
        transform: none !important;
    }
}

@media (max-width: 767px) {
    .services-section > .container > .text-center,
    .portfolio-section > .container > .text-center,
    .packages-section > .container > .text-center,
    .testimonials-section > .container > .text-center,
    .faq-section > .container > .text-center,
    .partners-section > .container > .text-center,
    .blog-section > .container > .text-center {
        text-align: center;
    }

    .services-section > .container > .text-center > span,
    .portfolio-section > .container > .text-center > span,
    .packages-section > .container > .text-center > span,
    .testimonials-section > .container > .text-center > span,
    .faq-section > .container > .text-center > span,
    .partners-section > .container > .text-center > span,
    .blog-section > .container > .text-center > span {
        justify-self: center;
    }

    .capabilities-band .flex {
        text-align: center !important;
    }
}

@media (max-width: 639px) {
    :root {
        --header-height: 76px;
    }

    .marketing-site .container {
        width: min(100% - 1.25rem, 1200px);
    }

    .site-header__bar {
        min-height: 60px;
        padding: 3px 10px !important;
        border-radius: 15px;
    }

    .navbar-brand .site-logo--header {
        height: 2.6rem !important;
        max-width: 120px !important;
    }

    .site-header__actions {
        gap: 0.2rem;
    }

    #theme-toggle,
    #menu-toggle-btn {
        padding: 0.55rem;
    }

    .site-mobile-menu {
        left: 0.625rem !important;
        width: calc(100% - 1.25rem) !important;
    }

    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-slide {
        min-height: 790px;
    }

    .hero-container {
        padding-top: 42px;
        padding-bottom: 92px;
    }

    .hero-grid {
        gap: 2.2rem;
    }

    .hero-eyebrow {
        margin-bottom: 1rem;
        font-size: 0.76rem;
    }

    .hero-title {
        margin-bottom: 1rem !important;
        font-size: clamp(2.55rem, 13.5vw, 3.45rem) !important;
        line-height: 1.12 !important;
    }

    .hero-title br + span {
        font-size: 0.54em !important;
    }

    .hero-description {
        margin-bottom: 1.35rem !important;
        font-size: 0.96rem !important;
        line-height: 1.85;
    }

    .hero-actions {
        align-items: stretch;
        gap: 0.65rem !important;
    }

    .hero-cta {
        width: 100%;
        min-height: 50px;
    }

    .hero-proof {
        gap: 0.5rem 0.8rem;
        margin-top: 1.1rem;
        font-size: 0.68rem;
    }

    .hero-media {
        max-width: 310px;
        padding: 10px;
        border-radius: 24px 24px 65px 24px;
    }

    .hero-media::before {
        bottom: -12px;
        left: -10px;
        width: 76px;
        height: 76px;
        border-radius: 20px;
    }

    .hero-media::after {
        top: -10px;
        right: 28px;
        width: 58px;
        height: 25px;
        font-size: 0.6rem;
        line-height: 25px;
    }

    .hero-image {
        max-height: 218px;
        border-radius: 17px 17px 54px 17px !important;
    }

    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        display: none;
    }

    .stats-section {
        margin-top: -40px !important;
    }

    .stats-panel {
        gap: 1.3rem 0.8rem !important;
        padding: 1rem !important;
        border-radius: 18px !important;
    }

    .stats-panel > div {
        grid-template-columns: 34px 1fr;
        column-gap: 0.55rem;
    }

    .stats-panel > div::after {
        display: none;
    }

    .stats-panel > div > div {
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
    }

    .stats-panel > div > div i {
        font-size: 0.95rem !important;
    }

    .stats-panel .counter-animation {
        font-size: 1.35rem !important;
    }

    .stats-panel p {
        font-size: 0.65rem;
    }

    .services-section,
    .portfolio-section,
    .packages-section,
    .testimonials-section,
    .faq-section,
    .partners-section,
    .blog-section {
        padding-block: 4.5rem !important;
    }

    .services-section h2,
    .portfolio-section h2,
    .packages-section h2,
    .testimonials-section h2,
    .faq-section h2,
    .partners-section h2,
    .blog-section h2 {
        font-size: 2.25rem !important;
    }

    .portfolio-section .grid > .group,
    .portfolio-section .group > img {
        min-height: 340px;
        height: 340px !important;
    }

    .closing-cta .max-w-4xl {
        padding: 2rem 1.15rem;
        border-radius: 22px;
    }

    .closing-cta h2 {
        font-size: 2.55rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
