:root {
    --ink: #0b1b33;
    --ink-2: #122743;
    --ink-3: #1e3a5f;
    --muted: #5b6b82;
    --muted-2: #8fa0b8;
    --line: rgba(15, 34, 58, .10);
    --paper: #ffffff;
    --canvas: #f4f7fb;
    --accent: #e31c23;
    --accent-deep: #b8141a;
    --accent-soft: rgba(227, 28, 35, .12);
    --font-body: "primary-font", Tahoma, "Segoe UI", sans-serif;
    --font-display: "secondary-font", "primary-font", Tahoma, sans-serif;
    --shadow-soft: 0 18px 48px rgba(11, 27, 51, .10);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink-2);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.landing-shell {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-inline: 22px;
}

/* —— Utility bar —— */
.landing-util {
    background: var(--accent);
    color: #fff;
}

.landing-util-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 40px;
    font-size: .92rem;
    font-weight: 500;
}

.util-phone,
.util-link {
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.util-phone:hover,
.util-link:hover {
    opacity: .9;
}

.util-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .35);
}

/* —— Main nav —— */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.landing-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink) !important;
}

.nav-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px rgba(227, 28, 35, .28);
}

.nav-brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(11, 27, 51, .12);
}

.nav-brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px 22px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted) !important;
    font-weight: 500;
    font-size: .95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.nav-links a:hover {
    color: var(--ink) !important;
    border-bottom-color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-ghost,
.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
}

.btn-nav-ghost {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-2) !important;
}

.btn-nav-primary {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(227, 28, 35, .22);
}

.btn-nav-primary:hover {
    background: var(--accent-deep);
    color: #fff !important;
}

/* —— Hero —— */
.landing-hero {
    position: relative;
    padding: 64px 0 72px;
    background:
        radial-gradient(ellipse 70% 80% at 85% 20%, rgba(227, 28, 35, .18), transparent 55%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(30, 58, 95, .35), transparent 50%),
        linear-gradient(155deg, #071425 0%, var(--ink) 42%, var(--ink-2) 100%);
    color: #fff;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: auto -10% -30% 40%;
    height: 70%;
    background: radial-gradient(circle, rgba(227, 28, 35, .16), transparent 65%);
    pointer-events: none;
    animation: heroPulse 7s ease-in-out infinite alternate;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}

.hero-copy {
    animation: landingFadeUp .75s ease both;
}

.hero-kicker {
    margin: 0 0 14px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .82);
    font-size: .86rem;
    font-weight: 500;
}

.hero-brand {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 4.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #fff;
}

.hero-line {
    margin: 0 0 14px;
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    font-weight: 500;
    color: #ffd2d4;
}

.hero-trust {
    margin: 0 0 28px;
    max-width: 32rem;
    color: rgba(255, 255, 255, .72);
    font-size: 1.02rem;
    line-height: 1.9;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: landingFadeUp .85s ease .08s both;
}

.hero-doc {
    position: relative;
    width: min(100%, 360px);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    color: var(--ink);
    border-radius: 22px;
    padding: 28px 24px 32px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .28),
        0 0 0 1px rgba(255, 255, 255, .08);
    transform: rotate(-3deg);
    animation: docFloat 6.5s ease-in-out infinite;
}

.hero-doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.hero-doc-logo {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
}

.hero-doc-badge {
    font-size: .78rem;
    font-weight: 500;
    color: var(--muted);
    background: var(--canvas);
    border-radius: 999px;
    padding: 4px 10px;
}

.hero-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hero-doc-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--ink-2);
}

.hero-doc-list i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1rem;
}

.hero-doc-stamp {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(227, 28, 35, .55);
    color: rgba(227, 28, 35, .7);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    transform: rotate(-18deg);
    background: rgba(255, 255, 255, .55);
}

/* Buttons */
.btn-primary-landing,
.btn-ghost-landing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 14px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary-landing {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(227, 28, 35, .28);
}

.btn-primary-landing:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
    color: #fff !important;
}

.landing-hero .btn-ghost-landing {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff !important;
}

.landing-hero .btn-ghost-landing:hover {
    background: rgba(255, 255, 255, .14);
}

.btn-ghost-landing {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2) !important;
}

/* —— Features —— */
.landing-features {
    margin-top: -28px;
    position: relative;
    z-index: 2;
    padding-bottom: 8px;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px;
    box-shadow: var(--shadow-soft);
}

.feature-item {
    padding: 22px 20px;
    text-align: center;
}

.feature-item + .feature-item {
    border-right: 1px solid var(--line);
}

.feature-item i {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.feature-item h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ink);
}

.feature-item p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.8;
}

/* —— Sections —— */
.landing-plans,
.landing-logos,
.landing-consult {
    padding: 56px 0;
}

.section-title {
    margin: 0 0 10px;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--ink);
}

.section-sub {
    margin: 0 auto 32px;
    text-align: center;
    color: var(--muted);
    max-width: 30rem;
    font-size: 1rem;
}

.section-title-start,
.section-sub-start {
    text-align: right;
}

.section-sub-start {
    margin-inline: 0;
}

/* —— Plans —— */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 22px 26px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(11, 27, 51, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: landingFadeUp .65s ease both;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.plan-card.is-featured {
    border-color: rgba(227, 28, 35, .45);
    box-shadow: 0 18px 40px rgba(227, 28, 35, .12);
}

.plan-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.plan-card:nth-child(2) { animation-delay: .05s; }
.plan-card:nth-child(3) { animation-delay: .1s; }
.plan-card:nth-child(4) { animation-delay: .15s; }

.plan-name {
    margin: 8px 0 10px;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--ink);
}

.plan-subtitle {
    margin: 0 0 18px;
    min-height: 2.8em;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.7;
}

.plan-price {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.plan-price-payable {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.plan-price-old {
    text-decoration: line-through;
    color: var(--muted-2);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.plan-price-old .plan-price-unit {
    font-size: .85rem;
    font-weight: 500;
}

.plan-price-main {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ink);
}

.plan-discount {
    color: #0f9d58;
    font-weight: 700;
    font-size: .95rem;
}

.plan-price-call {
    font-size: 1.15rem;
}

.plan-price-unit {
    color: var(--muted);
    font-size: .85rem;
}

.plan-features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    text-align: right;
    flex: 1 1 auto;
}

.plan-features li {
    position: relative;
    padding: 11px 28px 11px 4px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: .9rem;
    line-height: 1.65;
}

.plan-features li:last-child {
    border-bottom: 1px solid var(--line);
}

.plan-features li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230f9d58' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 5-5L12.6 5z'/%3E%3C/svg%3E");
}

.plan-cta {
    width: 100%;
    margin-top: auto;
}

/* —— Trust —— */
.landing-trust-strip {
    padding: 34px 0;
    background: linear-gradient(90deg, rgba(227, 28, 35, .08), rgba(11, 27, 51, .06));
    border-block: 1px solid var(--line);
}

.trust-strip-text {
    margin: 0;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink-2);
    line-height: 1.85;
    font-size: clamp(1.45rem, 3.2vw, 2rem);
}

/* —— Logos —— */
.logo-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: logoSlide 42s linear infinite;
}

.logo-tile {
    flex: 0 0 auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(11, 27, 51, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.logo-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logos-empty {
    margin-bottom: 0;
}

/* —— Consult —— */
.consult-panel {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: var(--shadow-soft);
}

.consult-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--accent) !important;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.consult-form-wrap {
    min-width: 0;
}

.ravesh-form-slot {
    min-width: 0;
    min-height: 160px;
}

.ravesh-form-slot iframe {
    max-width: 100%;
}

.ravesh-form-fallback {
    margin: 10px 0 0;
    text-align: center;
    font-size: .88rem;
}

.ravesh-form-fallback a {
    color: var(--accent);
    font-weight: 700;
}

.consult-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.consult-field label {
    display: block;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 6px;
    color: var(--ink-2);
}

.consult-field input {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid #d5deea;
    padding: 0 14px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}

.consult-field input:focus {
    outline: none;
    border-color: rgba(227, 28, 35, .55);
    box-shadow: 0 0 0 4px rgba(227, 28, 35, .10);
}

.consult-fallback .btn-primary-landing {
    width: 100%;
}

/* —— Footer —— */
.landing-footer {
    padding: 40px 0 48px;
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 24px;
    align-items: center;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 6px;
}

.footer-brand {
    margin: 0;
    line-height: 1.8;
    font-size: .95rem;
}

.footer-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-phones a {
    color: #ffd2d4 !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}

.landing-enamad img {
    width: 72px;
    height: auto;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
}

/* —— Motion —— */
@keyframes landingFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoSlide {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

@keyframes docFloat {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-8px); }
}

@keyframes heroPulse {
    from { opacity: .55; transform: scale(1); }
    to { opacity: 1; transform: scale(1.08); }
}

/* —— Responsive —— */
@media (max-width: 992px) {
    .hero-grid,
    .consult-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-doc {
        width: min(100%, 320px);
    }

    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        text-align: center;
        justify-items: center;
    }

    .footer-phones {
        align-items: center;
    }

    .section-title-start,
    .section-sub-start {
        text-align: center;
    }

    .consult-copy {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .landing-hero {
        padding: 40px 0 56px;
    }

    .landing-nav-inner {
        min-height: 64px;
    }

    .btn-nav-ghost {
        display: none;
    }

    .features-row {
        grid-template-columns: 1fr;
    }

    .feature-item + .feature-item {
        border-right: 0;
        border-top: 1px solid var(--line);
    }

    .plan-grid,
    .consult-fields {
        grid-template-columns: 1fr;
    }

    .logo-tile {
        width: 101px;
        height: 101px;
    }

    .landing-util-inner {
        justify-content: center;
    }
}

/* —— Buy modal —— */
body.landing-modal-open {
    overflow: hidden;
}

.landing-modal[hidden] {
    display: none !important;
}

.landing-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.landing-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 37, .55);
}

.landing-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    animation: landingFadeUp .35s ease both;
}

.landing-modal-close {
    position: absolute;
    top: 10px;
    left: 12px;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.landing-modal-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.landing-modal-sub {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .95rem;
}

.landing-modal-dialog .consult-field {
    margin-bottom: 12px;
}

.landing-modal-dialog .btn-primary-landing {
    width: 100%;
    margin-top: 6px;
}

button.plan-cta:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-visual,
    .plan-card,
    .logo-track,
    .hero-doc,
    .hero-glow,
    .landing-modal-dialog {
        animation: none !important;
    }
}
