:root{
    --navy:#142841;
    --navy-2:#1d395a;
    --gold:#d1a24a;
    --gold-light:#ecd39e;
    --white:#ffffff;
    --bg:#f6f7f5;
    --text:#263444;
    --muted:#6f7781;
    --border:rgba(20,40,65,.10);

    --navy-deep: #152238;
    --green-dark: #0B3326;
    --gold-matte: #C89B3C;
    --bg-creamy: #F7F4EE;
    --text-main: #252A31;
    --text-muted: #69717D;
    --gold-glow: rgba(200, 155, 60, 0.35);

    --bg-light: #F7F4EE;
    --border-card: rgba(21, 34, 56, 0.08);
    --card-bg: rgba(255, 255, 255, 0.88);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Vazirmatn",Tahoma,sans-serif;
    background:#fff;
    color:var(--text);
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

button,
input,
textarea{
    font-family:inherit;
}

img{
    max-width:100%;
}

.container{
    width:min(1180px,90%);
    margin:auto;
    position:relative;
    z-index:2;
}

.why-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-matte);
    color: var(--navy-deep);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    margin-top: 18px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(200, 155, 60, 0.3);
}

.why-card-cta:hover {
    background: #fff;
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
}

.why-card-cta span {
    font-size: 15px;
    transition: transform 0.3s;
}

.why-card-cta:hover span {
    transform: translateX(-3px);
}

/* استایل دکمه CTA در بخش مسیر همکاری */
.cta-btn-process {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-matte);
    color: var(--navy-deep);
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 22px;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(200, 155, 60, 0.25);
}

.cta-btn-process:hover {
    background: #ffffff;
    color: var(--navy-deep);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.25);
}

.cta-btn-process span {
    font-size: 16px;
    transition: transform 0.3s;
}

.cta-btn-process:hover span {
    transform: translateX(-3px);
}

/* استایل جداکننده اول (خط گرادیانت طلایی تمام‌عرض) */
.section-divider-glow-wrap {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: -1px;
    margin-bottom: -1px;
}
.section-divider-glow {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 155, 60, 0.3), var(--gold-matte), rgba(200, 155, 60, 0.3), transparent);
}

/* استایل جداکننده دوم (لوزی طلایی وسط با خطوط سبز مکمل) */
.section-divider-diamond-wrap {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: -1px;
    margin-bottom: -1px;
}
.section-divider-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}
.section-divider-diamond::before,
.section-divider-diamond::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(11, 51, 38, 0.35));
}
.section-divider-diamond::after {
    background: linear-gradient(270deg, transparent, rgba(11, 51, 38, 0.35));
}
.divider-gem {
    width: 8px;
    height: 8px;
    background: var(--gold-matte);
    transform: rotate(45deg);
    margin: 0 15px;
    box-shadow: 0 0 10px var(--gold-glow);
}

/* پاپ‌آپ مشاوره رایگان */
.consultation-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(21, 34, 56, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.consultation-modal-backdrop.active {
    display: flex;
}

.consultation-modal-box {
    width: min(420px, 100%);
    background: #FFFFFF;
    border-radius: 28px;
    padding: 38px 28px;
    border: 1px solid rgba(200, 155, 60, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.consultation-close-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(21, 34, 56, 0.05);
    border: 1px solid rgba(21, 34, 56, 0.1);
    color: var(--navy-deep);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.consultation-close-btn:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    border-color: var(--gold-matte);
    transform: scale(1.08);
}

.consultation-modal-box h3 {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy-deep);
    margin-bottom: 22px;
    text-align: center;
}

.consultation-modal-box .form-group {
    margin-bottom: 15px;
    text-align: right;
}

.consultation-modal-box .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

.consultation-modal-box .form-group input,
.consultation-modal-box .form-group select {
    width: 100%;
    background: #F7F4EE;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 13.5px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.25s, background 0.25s;
}

.consultation-modal-box .form-group input#consultationPhone {
    direction: ltr;
    text-align: right;
}

.consultation-modal-box .form-group input:focus,
.consultation-modal-box .form-group select:focus {
    border-color: var(--gold-matte);
    background: #fff;
}

.consultation-submit-btn {
    background: var(--gold-matte);
    border: none;
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy-deep);
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(200, 155, 60, 0.25);
}

.consultation-submit-btn:hover {
    background: var(--navy-deep);
    color: #fff;
    box-shadow: 0 12px 25px rgba(21, 34, 56, 0.2);
    transform: translateY(-2px);
}

/* پیام موفقیت پس از ثبت */
.consultation-success-msg {
    display: none;
    text-align: center;
    padding: 15px 0;
}
.consultation-success-msg h4 {
    font-size: 19px;
    color: var(--navy-deep);
    font-weight: 900;
    margin-bottom: 12px;
}
.consultation-success-msg p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 22px;
}

/* =========================
   HEADER & BRAND LOGO & MENU
========================= */

.header{
    position:fixed;
    top:0;
    right:0;
    width:100%;
    z-index:1000;
    transition:.4s ease;
}

.header.scrolled{
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(20,40,65,.07);
    box-shadow:0 12px 45px rgba(20,40,65,.05);
}

.nav{
    min-height:92px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.brand{
    display:flex;
    align-items:center;
    flex-shrink:0;
    text-decoration:none;
    margin-right: -15px;
}

.brand img{
    height: 40px; 
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand:hover img{
    transform: scale(1.03);
}

.menu{
    display:flex;
    align-items:center;
    gap:32px;
    list-style:none;
}

.menu a{
    color:var(--navy);
    font-size:14px;
    font-weight:600;
    position:relative;
    transition:.3s;
}

.menu a::after{
    content:"";
    position:absolute;
    right:0;
    bottom:-8px;
    width:0;
    height:2px;
    border-radius:10px;
    background:var(--gold);
    transition:.35s ease;
}

.menu a:hover{
    color:var(--gold);
}

.menu a:hover::after{
    width:100%;
}

.cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:50px;
    padding:0 28px;
    border-radius:100px;
    border:1px solid transparent;
    background:var(--gold);
    color:var(--navy);
    font-size:14px;
    font-weight:800;
    cursor:pointer;
    position:relative;
    overflow:hidden;
    transition:
        transform .35s ease,
        background .35s ease,
        color .35s ease,
        box-shadow .35s ease;
    box-shadow:0 14px 32px rgba(209,162,74,.24);
}

.cta::before{
    content:"";
    position:absolute;
    width:80px;
    height:150%;
    top:-25%;
    left:-120px;
    background:rgba(255,255,255,.28);
    transform:rotate(25deg);
    transition:.65s ease;
}

.cta:hover::before{
    left:120%;
}

.cta:hover{
    background:var(--navy);
    color:#fff;
    transform:translateY(-4px);
    box-shadow:0 20px 45px rgba(20,40,65,.22);
}

.cta-arrow{
    width:24px;
    height:24px;
    border-radius:50%;
    background:rgba(20,40,65,.1);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.35s;
}

.cta:hover .cta-arrow{
    background:rgba(255,255,255,.15);
    transform:translateX(-4px);
}

.secondary-btn{
    display:inline-flex;
    min-height:50px;
    align-items:center;
    justify-content:center;
    padding:0 28px;
    border-radius:100px;
    border:1px solid rgba(20,40,65,.18);
    color:var(--navy);
    background:rgba(255,255,255,.72);
    font-size:14px;
    font-weight:700;
    transition:.35s ease;
}

.secondary-btn:hover{
    background:var(--navy);
    color:#fff;
    border-color:var(--navy);
    transform:translateY(-4px);
}

.mobile-menu-btn{
    display:none;
    width:46px;
    height:46px;
    border:none;
    background:var(--navy);
    border-radius:14px;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
}

.mobile-menu-btn span{
    width:20px;
    height:2px;
    background:white;
    border-radius:5px;
    transition:.3s;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 25px;
    overflow: hidden;
    background: 
        radial-gradient(circle at 10% 25%, rgba(200, 155, 60, 0.14), transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(11, 51, 38, 0.08), transparent 35%),
        linear-gradient(145deg, #FFFFFF 0%, var(--bg-creamy) 100%);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(21, 34, 56, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 34, 56, 0.04) 1px, transparent 1px);
    background-size: 65px 65px;
    mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
}

@keyframes gridMove {
    to { background-position: 0 130px; }
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 40px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(200, 155, 60, 0.12);
    border: 1px solid rgba(200, 155, 60, 0.35);
    color: var(--navy-deep);
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 54px;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-matte);
    box-shadow: 0 0 0 5px rgba(200, 155, 60, 0.18);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    50% { box-shadow: 0 0 0 10px rgba(200, 155, 60, 0); }
}

.hero h1 {
    color: var(--navy-deep);
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.38;
    letter-spacing: -1.2px;
    font-weight: 900;
}

.hero h1 .line-1 {
    display: block;
    white-space: nowrap;
    font-size: clamp(28px, 3.5vw, 48px);
}

.hero h1 .line-2 {
    display: block;
    white-space: nowrap;
    font-size: clamp(28px, 3.5vw, 48px);
}

.hero h1 .accent {
    color: var(--gold-matte);
    position: relative;
    display: inline-block;
    padding: 0 4px;
}

.hero h1 .accent svg {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 14px;
    pointer-events: none;
    overflow: visible;
}

.hero h1 .accent path {
    stroke: var(--navy-deep);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawUnderline 1.4s cubic-bezier(0.65, 0, 0.076, 1) forwards;
    animation-delay: 0.4s;
}

@keyframes drawUnderline {
    to { stroke-dashoffset: 0; }
}

.hero-description {
    margin-top: 24px;
    font-size: 16.5px;
    line-height: 2.1;
    color: var(--text-muted);
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 34px;
    border-radius: 100px;
    background: var(--gold-matte);
    color: var(--navy-deep);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(200, 155, 60, 0.28);
    transition: all 0.35s ease;
    z-index: 1;
}

.cta-btn:hover {
    background: var(--navy-deep);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(21, 34, 56, 0.25);
}

.sparkle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 32px;
    border-radius: 100px;
    text-decoration: none;
    overflow: hidden;
    background: transparent;
    z-index: 1;
    transition: transform 0.35s ease;
}

.sparkle-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        rgba(200, 155, 60, 0.1) 15%, 
        var(--gold-matte) 25%, 
        transparent 40%
    );
    animation: rotateBorder 3.5s linear infinite;
    z-index: -2;
}

.sparkle-btn-inner {
    position: absolute;
    inset: 2px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 100px;
    z-index: -1;
    transition: background 0.3s;
}

.sparkle-btn span {
    color: var(--navy-deep);
    font-size: 15px;
    font-weight: 800;
    transition: color 0.3s;
}

.sparkle-btn:hover {
    transform: translateY(-4px);
}

.sparkle-btn:hover .sparkle-btn-inner {
    background: var(--navy-deep);
}

.sparkle-btn:hover span {
    color: var(--white);
}

@keyframes rotateBorder {
    100% {
        transform: rotate(360deg);
    }
}

.hero-visual {
    height: 640px;
    position: relative;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-orbit {
    width: 480px;
    height: 480px;
    border-radius: 50%;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(21, 34, 56, 0.08);
    animation: orbitRotate 45s linear infinite;
}

.visual-orbit::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 45px;
    border: 1px dashed rgba(200, 155, 60, 0.35);
}

@keyframes orbitRotate {
    to { transform: translateX(-50%) rotate(360deg); }
}

/* لایه زیرین: شکل مواج سرمه‌ای */
.center-core {
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 44% 56% 58% 42% / 43% 40% 60% 57%;
    background: radial-gradient(circle at 35% 25%, #223757, var(--navy-deep) 65%);
    box-shadow: 0 35px 70px rgba(21, 34, 56, 0.22);
    animation: morph 8s ease-in-out infinite;
    z-index: 2;
}

@keyframes morph {
    0%, 100% {
        border-radius: 44% 56% 58% 42% / 43% 40% 60% 57%;
        transform: translateY(0);
    }
    50% {
        border-radius: 58% 42% 45% 55% / 55% 62% 38% 45%;
        transform: translateY(-12px);
    }
}

/* لایه رویی: شکل مواج سفید */
.morph-logo-box {
    position: absolute;
    width: 175px;
    height: 175px;
    border-radius: 45% 55% 52% 48% / 48% 52% 48% 52%;
    background: #FFFFFF;
    border: 3px solid var(--gold-matte);
    box-shadow: 0 25px 50px rgba(21, 34, 56, 0.25), 0 0 20px rgba(200, 155, 60, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: morphWhiteSoft 7s ease-in-out infinite alternate;
    z-index: 5;
}

@keyframes morphWhiteSoft {
    0% { border-radius: 45% 55% 52% 48% / 48% 52% 48% 52%; transform: rotate(-1deg) scale(0.98); }
    100% { border-radius: 55% 45% 48% 52% / 52% 48% 52% 48%; transform: rotate(1deg) scale(1.02); }
}

.morph-logo-img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.floating-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 100px;
    box-shadow: 0 12px 35px rgba(21, 34, 56, 0.09);
    z-index: 8;
    color: var(--navy-deep);
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.35s ease;
}

.floating-pill:hover {
    transform: scale(1.06) translateY(-4px) !important;
    border-color: rgba(200, 155, 60, 0.5);
    box-shadow: 0 16px 40px rgba(200, 155, 60, 0.18);
}

.floating-pill svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold-matte);
    fill: none;
    stroke-width: 2;
}

.pos-1 { top: 45px; left: 50%; transform: translateX(-50%); animation: floatVertical 5.2s ease-in-out infinite; }
.pos-2 { top: 110px; right: -10px; animation: floatSide 6s ease-in-out infinite; }
.pos-3 { top: 235px; right: -40px; animation: floatVertical 5.8s ease-in-out infinite 0.5s; }
.pos-4 { top: 380px; right: -15px; animation: floatSide 6.4s ease-in-out infinite reverse; }
.pos-5 { bottom: 50px; left: 50%; transform: translateX(-50%); animation: floatVertical 5.5s ease-in-out infinite reverse; }
.pos-6 { bottom: 120px; left: -25px; animation: floatSide 6.2s ease-in-out infinite; }
.pos-7 { top: 250px; left: -45px; animation: floatVertical 5.6s ease-in-out infinite 1s; }
.pos-8 { top: 120px; left: -10px; animation: floatSide 5.9s ease-in-out infinite reverse; }

@keyframes floatVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatSide {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(6px, -8px); }
}

.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold-matte);
    box-shadow: 0 0 14px var(--gold-matte);
    transform: translate(-50%, -50%);
}

.od1 { top: 0%; left: 50%; }
.od2 { top: 34.55%; left: 97.55%; }
.od3 { top: 90.45%; left: 79.39%; }
.od4 { top: 90.45%; left: 20.61%; }
.od5 { top: 34.55%; left: 2.45%; }

/* =========================
   COMMON SECTION
========================= */

section{position:relative;}
.section{padding:115px 0;}

.section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:35px;
    margin-bottom:50px;
}

.section-label{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--gold);
    font-size:13px;
    font-weight:800;
    margin-bottom:10px;
}

.section-label::before{
    content:"";
    width:28px;
    height:2px;
    background:var(--gold);
}

.section-title{
    color:var(--navy);
    font-size:clamp(34px,4vw,50px);
    line-height:1.4;
    font-weight:900;
    letter-spacing:-1px;
}

.section-title span{color:var(--gold);}

.section-desc{
    max-width:520px;
    line-height:2;
    color:var(--muted);
    font-size:15px;
}

/* =========================
   SERVICES
========================= */

.services{
    background:var(--bg);
    overflow:hidden;
    padding-top: 40px; 
    padding-bottom: 50px;
}

.services .section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 45px;
}

.services .section-head .reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.services .section-label {
    align-self: center;
}

.services .section-title {
    white-space: nowrap;
    font-size: clamp(26px, 3.2vw, 42px);
    letter-spacing: -0.5px;
    text-align: center;
}

.services .section-desc {
    white-space: normal;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    line-height: 2.2;
    color: var(--muted);
    font-size: 15px;
}

.services .desc-line-1 {
    display: block;
}

.services .desc-line-2 {
    display: block;
}

.service-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.service-card{
    position:relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding:32px;
    background:#fff;
    border:1px solid rgba(20,40,65,.08);
    border-radius:28px;
    overflow:hidden;
    transform-style:preserve-3d;
    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s ease,
        border-color .45s ease;
}

.service-card::before{
    content:"";
    width:150px;
    height:150px;
    border-radius:50%;
    position:absolute;
    top:-90px;
    left:-70px;
    background:rgba(209,162,74,.14);
    transition:transform .5s ease;
    pointer-events:none;
    z-index:1;
}

.service-card:hover::before{
    transform:scale(1.6);
}

.service-card .specular-surface {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        220px circle at var(--spec-x, -300px) var(--spec-y, -300px),
        rgba(255, 255, 255, 0.85) 0%,
        rgba(250, 244, 225, 0.35) 40%,
        transparent 100%
    );
    opacity: var(--spec-opacity, 0);
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity .25s ease;
    z-index: 2;
}

.service-card .specular-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        160px circle at var(--spec-x, -300px) var(--spec-y, -300px),
        #ffffff 0%,
        #fff4d0 30%,
        var(--gold-matte) 65%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: var(--spec-opacity, 0);
    pointer-events: none;
    z-index: 4;
    transition: opacity .2s ease;
}

.service-card:hover{
    transform:translateY(-12px);
    border-color:transparent;
    box-shadow:0 30px 70px rgba(20,40,65,.10);
}

.service-content-wrap {
    position: relative;
    z-index: 3;
}

.service-icon{
    width:60px;
    height:60px;
    border-radius:18px;
    background:var(--navy);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    margin-bottom:28px;
    transition:.45s ease;
}

.service-card:hover .service-icon{
    background:var(--gold);
    color:var(--navy);
    transform:rotate(-8deg) scale(1.08);
}

.service-icon svg{
    width:28px;
    height:28px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.8;
}

.service-card h3{
    color:var(--navy);
    font-size:20px;
    margin-bottom:13px;
}

.service-card p{
    color:var(--muted);
    line-height:1.95;
    font-size:14px;
}

.service-more{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(200, 155, 60, 0.1);
    border: 1px solid rgba(200, 155, 60, 0.25);
    color: var(--gold-matte);
    font-size: 13px;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 100px;
    margin-top: 24px;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

@media(min-width: 768px) {
    .service-more {
        width: auto;
    }
}

.service-card:hover .service-more{
    background: var(--gold-matte);
    color: var(--navy-deep);
    border-color: var(--gold-matte);
    box-shadow: 0 6px 20px var(--gold-glow);
    transform: translateY(-2px);
}

/* =========================
   WHY REVIRA
========================= */

#why {
    padding-top: 40px;
    padding-bottom: 40px;
}

#why .why-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
}

#why .why-content .section-label {
    align-self: flex-start;
}

#why .why-content .section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 20px;
}

#why .why-title-line-1 {
    display: block;
    white-space: nowrap;
    color: var(--navy-deep);
}

@keyframes gradientMoveGoldGreen {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#why .why-title-line-2 {
    display: block;
    white-space: nowrap;
    font-weight: 900;
    background: linear-gradient(270deg, #C89B3C, #dfbd71, #0B3326, #1b5e48, #C89B3C);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMoveGoldGreen 6s ease infinite;
    padding: 0 4px;
}

#why .why-content > p {
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 35px;
    line-height: 2;
    color: var(--muted);
}

#why .why-list {
    width: 100%;
    text-align: right;
    display: grid;
    gap: 16px;
}

.why-item{
    padding:20px 22px;
    border:1px solid var(--border);
    border-radius:20px;
    transition:.35s;
    display:flex;
    gap:16px;
    align-items:start;
}

.why-item:hover{
    border-color:rgba(209,162,74,.4);
    transform:translateX(-7px);
    box-shadow:0 14px 40px rgba(20,40,65,.06);
}

.why-icon{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:14px;
    background:rgba(209,162,74,.14);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
}

.why-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-item h4{color:var(--navy);font-size:16px;margin-bottom:6px;}
.why-item p{color:var(--muted);font-size:13px;line-height:1.9;}

.why-layout{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:70px;
    align-items:center;
}

.why-visual{
    min-height:560px;
    border-radius:35px;
    position:relative;
    background:
        radial-gradient(circle at 70% 25%,rgba(209,162,74,.25),transparent 24%),
        linear-gradient(145deg,var(--navy),#1e4168);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow .45s ease, border-color .45s ease;
}

.why-visual .why-aura-glow {
    position: absolute;
    inset: -15px;
    border-radius: 45px;
    background: radial-gradient(
        180px circle at var(--why-glow-x, -200px) var(--why-glow-y, -200px),
        rgba(255, 235, 160, 0.65) 0%,
        rgba(200, 155, 60, 0.45) 45%,
        rgba(200, 155, 60, 0.15) 70%,
        transparent 100%
    );
    filter: blur(22px);
    opacity: var(--why-glow-opacity, 0);
    pointer-events: none;
    z-index: 1;
    transition: opacity .2s ease;
}

.why-visual .why-border-glow{
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 3px;
    background: radial-gradient(
        130px circle at var(--why-glow-x, -200px) var(--why-glow-y, -200px),
        #ffffff 0%,
        #fff1b8 25%,
        var(--gold-matte) 55%,
        rgba(200, 155, 60, 0.3) 80%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: var(--why-glow-opacity, 0);
    filter: drop-shadow(0 0 12px rgba(255, 225, 140, 0.95)) drop-shadow(0 0 24px rgba(200, 155, 60, 0.8));
    transition: opacity .2s ease;
    pointer-events: none;
    z-index: 10;
}

.why-grid{
    position:absolute;
    inset:0;
    border-radius: inherit;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
    background-size:45px 45px;
    overflow: hidden;
    z-index: 2;
}

.why-word{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%) rotate(-90deg);
    font-size:95px;
    font-weight:900;
    color:rgba(255,255,255,.045);
    letter-spacing:8px;
    z-index: 2;
}

.why-card{
    position: absolute;
    width: 82%;
    max-width: 440px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 30px;
    padding: 35px;
    color: white;
    box-shadow: 0 30px 70px rgba(0,0,0,.15);
    animation: whyFloat 7s ease-in-out infinite;
    z-index: 3;
    transition: box-shadow .35s ease, border-color .35s ease;
}

.why-card .card-aura-glow {
    position: absolute;
    inset: -12px;
    border-radius: 38px;
    background: radial-gradient(
        140px circle at var(--card-glow-x, -200px) var(--card-glow-y, -200px),
        rgba(255, 235, 160, 0.7) 0%,
        rgba(200, 155, 60, 0.5) 45%,
        rgba(200, 155, 60, 0.15) 75%,
        transparent 100%
    );
    filter: blur(16px);
    opacity: var(--card-glow-opacity, 0);
    pointer-events: none;
    z-index: -1;
    transition: opacity .2s ease;
}

.why-card .card-border-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2.5px;
    background: radial-gradient(
        110px circle at var(--card-glow-x, -200px) var(--card-glow-y, -200px),
        #ffffff 0%,
        #fff1b8 30%,
        var(--gold-matte) 60%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: var(--card-glow-opacity, 0);
    filter: drop-shadow(0 0 10px rgba(255, 235, 160, 0.95)) drop-shadow(0 0 20px rgba(200, 155, 60, 0.8));
    transition: opacity .2s ease;
    pointer-events: none;
    z-index: 5;
}

@keyframes whyFloat{
    50%{
        transform: translate(-50%, calc(-50% - 15px)) rotate(-1deg);
    }
}

.why-card small{color:var(--gold-light); position: relative; z-index: 2;}
.why-card h3 {
    font-size: 21px; 
    margin: 12px 0; 
    position: relative; 
    z-index: 2;
    white-space: nowrap;
}
.why-card p{font-size:14px;line-height:2;color:rgba(255,255,255,.75); position: relative; z-index: 2;}

/* =========================
   PORTFOLIO (DNA CAROUSEL)
========================= */

.portfolio-section .section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 45px;
}

.portfolio-section .section-head .reveal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.portfolio-section .section-label {
    align-self: center;
}

.portfolio-section .section-title {
    white-space: nowrap;
    font-size: clamp(26px, 3.2vw, 42px);
    letter-spacing: -0.5px;
    text-align: center;
}

.portfolio-section .section-desc {
    white-space: normal;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    line-height: 2.2;
    color: var(--muted);
    font-size: 15px;
}

.portfolio-split-frame {
    position: relative;
    width: 100%;
    min-height: 620px;
    border-radius: 36px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.95fr 1.35fr;
    border: 1px solid rgba(21, 34, 56, 0.08);
    box-shadow: 0 30px 80px rgba(10, 19, 31, 0.08);
    background: #fff;
}

.content-col {
    position: relative;
    z-index: 3;
    background: var(--bg-creamy);
    padding: 65px 50px 65px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
}

.content-col h2 {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 900;
    color: var(--navy-deep);
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.content-col h2 span {
    color: var(--gold-matte);
}

.desc {
    font-size: 14.5px;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 440px;
}

.actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: auto;
}

.cta-btn-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-deep);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(21, 34, 56, 0.14);
}

.cta-btn-portfolio:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(200, 155, 60, 0.35);
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(21, 34, 56, 0.04);
    border: 1px solid rgba(21, 34, 56, 0.1);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    transition: all 0.3s;
}

.arrow-btn:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    border-color: var(--gold-matte);
    transform: scale(1.08);
}

.seam-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 41.3%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 5%,
        rgba(200, 155, 60, 0.15) 20%,
        var(--gold-matte) 50%,
        rgba(200, 155, 60, 0.15) 80%,
        transparent 95%
    );
    box-shadow: 0 0 12px var(--gold-glow);
    z-index: 10;
    pointer-events: none;
}

.stage-col {
    position: relative;
    background: #0a131f;
    height: 100%;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ambient-glow {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 155, 60, 0.16) 0%, rgba(18, 34, 54, 0.3) 45%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.dna-viewport {
    position: absolute;
    inset: 0;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
}

.dna-viewport.grabbing {
    cursor: grabbing;
}

.dna-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.dna-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 195px;
    height: 280px;
    margin: -140px 0 0 -97px;
    border-radius: 20px;
    overflow: hidden;
    background: #101c2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    will-change: transform, filter, opacity;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.dna-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}

.dna-card.active-focus {
    border-color: var(--gold-matte);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.9), 0 0 30px var(--gold-glow);
}

.hint-pill {
    position: absolute;
    bottom: 20px;
    z-index: 10;
    background: rgba(10, 19, 31, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.hint-pill b {
    color: var(--gold-matte);
}

/* لایت‌باکس بزرگ‌نمایی تصویر */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 19, 31, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 30px rgba(200, 155, 60, 0.3);
    border: 2px solid rgba(200, 155, 60, 0.4);
    object-fit: contain;
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

/* =========================
   PROCESS
========================= */

.process{
    background: #0a131f;
    overflow:hidden;
    padding: 60px 0 70px;
}

.process .section-label{color:var(--gold-matte);}
.process .section-title{color:#fff;}
.process .section-desc{color:rgba(255,255,255,.62);}

.constellation-stage {
    position: relative;
    height: 590px;
    border-radius: 34px;
    background: radial-gradient(circle at center, #122236 0%, #0a131f 75%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    margin-top: 40px;
}

.lines-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.base-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1.2;
}

.pulse-line {
    fill: none;
    stroke: var(--gold-matte);
    stroke-width: 1.5;
    stroke-dasharray: 8 8;
    opacity: 0.65;
    filter: drop-shadow(0 0 6px var(--gold-glow));
}

.anim-forward {
    animation: dashForward 12s linear infinite;
}

@keyframes dashForward {
    to { stroke-dashoffset: -400; }
}

.neural-core {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #294569, #0d1a29 75%);
    border: 1.5px solid var(--gold-matte);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 45px var(--gold-glow), inset 0 0 20px rgba(200, 155, 60, 0.25);
    z-index: 5;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.core-pulse-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(200, 155, 60, 0.35);
    animation: spinRing 30s linear infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.core-text {
    font-size: 11.5px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 1.2px;
}

.core-sub {
    font-size: 9.5px;
    color: var(--gold-matte);
    font-weight: 700;
    margin-top: 2px;
}

.node-card {
    position: absolute;
    width: 270px;
    padding: 22px 20px;
    background: rgba(18, 32, 50, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(200, 155, 60, 0.25);
    border-radius: 20px;
    text-align: right;
    z-index: 6;
    transition: all 0.35s ease;
}

.node-card:hover {
    border-color: var(--gold-matte);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
    transform: scale(1.03) !important;
}

.node-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.phase-badge {
    color: var(--gold-matte);
    font-weight: 800;
    font-size: 11.5px;
    background: rgba(200, 155, 60, 0.12);
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid rgba(200, 155, 60, 0.28);
}

.node-card h4 {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.45;
}

.node-card h3 {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.45;
}

.node-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.8;
}

.phase-1 { top: 40px; right: 55px; }
.phase-2 { top: 40px; left: 55px; }
.phase-3 { bottom: 40px; left: 55px; }
.phase-4 { bottom: 40px; right: 55px; }

.after-launch-box {
    margin-top: 45px;
    background: rgba(18, 32, 51, 0.6);
    border: 1px solid rgba(200, 155, 60, 0.2);
    border-radius: 28px;
    padding: 38px 30px;
    text-align: right;
    backdrop-filter: blur(14px);
    display: grid;
    grid-template-columns: 0.9fr 2.1fr;
    gap: 35px;
    align-items: center;
}

.after-launch-info h3 {
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--white);
    line-height: 1.5;
}

.after-launch-info h3 span {
    color: var(--gold-matte);
}

.after-launch-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.9;
}

.after-launch-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.after-card {
    background: rgba(10, 19, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px 14px;
    transition: all 0.3s;
}

.after-card:hover {
    border-color: var(--gold-matte);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.after-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    color: var(--gold-matte);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.after-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.after-card h4 {
    font-size: 13.5px;
    margin-bottom: 6px;
    color: var(--gold-light);
    font-weight: 800;
    line-height: 1.4;
}

.after-card p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================
   REVIEWS
========================= */

.reviews-section {
    position: relative;
    background-color: var(--bg-light);
    padding: 60px 0 70px;
    overflow: hidden;
}

.particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.reviews-section .container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.reviews-section .section-head {
    margin-bottom: 45px;
    display: block;
    text-align: center;
}

.reviews-section .section-label {
    margin-bottom: 12px;
}

.reviews-section .section-title {
    letter-spacing: -0.8px;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    gap: 20px;
    z-index: 2;
    direction: ltr !important;
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
    will-change: transform;
}

.track-forward {
    animation: marqueeScroll 36s linear infinite;
}

.track-reverse {
    animation: marqueeScrollReverse 36s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.review-card {
    position: relative;
    width: 320px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--border-card);
    background: var(--card-bg);
    padding: 22px;
    text-align: right;
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(21, 34, 56, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.review-card:hover {
    border-color: rgba(200, 155, 60, 0.5);
    background: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(21, 34, 56, 0.08), 0 0 20px var(--gold-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.user-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-custom {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--gold-matte);
    background: var(--green-dark);
    box-shadow: 0 0 10px rgba(11, 51, 38, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-custom svg {
    width: 100%;
    height: 100%;
    display: block;
}

.user-details figcaption {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy-deep);
    line-height: 1.2;
}

.user-details p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: monospace;
    direction: ltr;
    text-align: right;
}

.review-tag {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--gold-matte);
    background: rgba(200, 155, 60, 0.12);
    border: 1px solid rgba(200, 155, 60, 0.28);
    padding: 3px 9px;
    border-radius: 100px;
    white-space: nowrap;
}

.review-body {
    font-size: 12.5px;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 0;
}

.fade-curtain-left,
.fade-curtain-right {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 16%;
    z-index: 10;
}

.fade-curtain-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-light) 20%, rgba(247, 244, 238, 0.8) 60%, transparent);
}

.fade-curtain-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-light) 20%, rgba(247, 244, 238, 0.8) 60%, transparent);
}

.btn-open-form {
    margin: 40px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-deep);
    color: #fff;
    padding: 13px 30px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 13.5px;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(21, 34, 56, 0.15);
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
}

.btn-open-form:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(200, 155, 60, 0.35);
}

.review-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(21, 34, 56, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.review-modal-backdrop.active {
    display: flex;
}

.review-modal-box {
    width: min(480px, 100%);
    background: #FFFFFF;
    border-radius: 28px;
    padding: 35px 30px;
    border: 1px solid rgba(200, 155, 60, 0.3);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    text-align: right;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-modal-box h3 {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

.review-modal-box p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #F7F4EE;
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-matte);
    background: #fff;
}

.modal-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid rgba(21, 34, 56, 0.15);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-submit {
    background: var(--gold-matte);
    border: none;
    padding: 11px 26px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy-deep);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    box-shadow: 0 6px 20px var(--gold-glow);
    transform: translateY(-2px);
}

/* =========================
   ACADEMY & INSIGHTS
========================= */

.academy-section {
    position: relative;
    background-color: var(--bg-light);
    padding: 50px 0 90px;
    overflow: hidden;
    border-top: 1px solid rgba(21, 34, 56, 0.05);
}

.journal-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 35px;
}

.journal-promo-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(21, 34, 56, 0.15);
    border: 1px solid rgba(21, 34, 56, 0.08);
    min-height: 460px;
}

.library-photo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transform: scale(1.03);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.journal-promo-wrapper:hover .library-photo-bg {
    transform: scale(1.08);
}

.journal-promo-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 40, 0.65);
    z-index: 1;
}

.journal-promo {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(21, 34, 56, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 26px;
    padding: 38px 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 25px rgba(255, 255, 255, 0.06);
    color: #fff;
    text-align: right;
}

.journal-label {
    color: var(--gold-matte);
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.journal-promo h3 {
    font-size: 23px;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 12px;
}
.journal-promo h3 span { color: var(--gold-matte); }

.journal-promo p {
    font-size: 12.5px;
    line-height: 1.95;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 100px;
    padding: 4px;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.newsletter-form:focus-within {
    border-color: var(--gold-matte);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 15px rgba(200, 155, 60, 0.3);
}

.newsletter-form input {
    background: transparent;
    border: none;
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
    width: 100%;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.newsletter-form button {
    background: var(--gold-matte);
    color: var(--navy-deep);
    border: none;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}
.newsletter-form button:hover { 
    background: #fff; 
    transform: scale(1.02);
}

.journal-list-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.journal-list {
    display: flex;
    flex-direction: column;
}

.journal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
    text-align: right;
}

.journal-item:hover {
    background: #fff;
    border-radius: 20px;
    padding-right: 22px;
    padding-left: 22px;
    box-shadow: 0 12px 30px rgba(21, 34, 56, 0.05);
    border-color: transparent;
}

.item-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.item-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(200, 155, 60, 0.1);
    border: 1px solid rgba(200, 155, 60, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-matte);
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.journal-item:hover .item-icon {
    background: var(--green-dark);
    border-color: var(--gold-matte);
    transform: scale(1.06);
}

.item-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy-deep);
    line-height: 1.5;
    margin-bottom: 4px;
}

.item-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.item-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(21, 34, 56, 0.05);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 900;
}

.journal-item:hover .item-arrow {
    background: var(--gold-matte);
    color: var(--navy-deep);
    border-color: var(--green-dark);
    transform: translateX(-6px);
    box-shadow: 0 4px 14px rgba(11, 51, 38, 0.2);
}

.archive-action-wrap {
    margin-top: 22px;
    padding: 0 10px;
    display: flex;
    justify-content: flex-start;
}

.btn-view-archive {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy-deep);
    color: #ffffff;
    border: 1px solid var(--navy-deep);
    padding: 13px 26px;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(21, 34, 56, 0.16);
    cursor: pointer;
}

.btn-view-archive span {
    color: var(--gold-matte);
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-view-archive:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    border-color: var(--gold-matte);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(200, 155, 60, 0.35);
}

.btn-view-archive:hover span {
    color: var(--navy-deep);
    transform: translateX(-4px);
}

/* =========================
   CTA SECTION
========================= */

.cta-section{padding:90px 0;}

.cta-box{
    min-height:390px;
    border-radius:38px;
    padding:70px;
    position:relative;
    overflow:hidden;
    background:var(--navy);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
}

.cta-box::before{
    content:"";
    position:absolute;
    width:400px;
    height:400px;
    border-radius:50%;
    background:var(--gold);
    filter:blur(120px);
    opacity:.15;
    left:-70px;
    top:-90px;
}

.cta-pattern{
    position:absolute;
    inset:0;
    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:55px 55px;
}

.cta-content{
    position:relative;
    z-index:2;
    max-width:690px;
}

.cta-content small{color:var(--gold);font-weight:800;}
.cta-content h2{color:white;font-size:clamp(35px,4vw,53px);line-height:1.45;margin:12px 0 18px;}
.cta-content p{color:rgba(255,255,255,.64);line-height:2;}

.cta-button-wrap{
    position:relative;
    z-index:3;
    flex-shrink:0;
}

.cta-big{
    width: 165px;
    height: 165px;
    border-radius: 44% 56% 58% 42% / 43% 40% 60% 57%;
    background: radial-gradient(circle at 35% 25%, #dfbd71, var(--gold-matte) 65%);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 900;
    position: relative;
    box-shadow: 0 25px 60px rgba(200, 155, 60, 0.3);
    animation: morphGold 8s ease-in-out infinite, floatCta 5s ease-in-out infinite;
    transition: transform 0.45s ease, background 0.45s ease;
}

@keyframes morphGold {
    0%, 100% {
        border-radius: 44% 56% 58% 42% / 43% 40% 60% 57%;
    }
    50% {
        border-radius: 58% 42% 45% 55% / 55% 62% 38% 45%;
    }
}

@keyframes floatCta {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cta-big::before{
    content:"";
    position:absolute;
    inset:-12px;
    border:1px dashed rgba(200, 155, 60, 0.55);
    border-radius:50%;
    animation:rotateCircle 12s linear infinite;
}

@keyframes rotateCircle{
    to{transform:rotate(360deg);}
}

.cta-big:hover{
    transform:scale(1.08) rotate(-4deg);
    background: white;
    color: var(--navy-deep);
}

/* =========================
   FOOTER
========================= */

footer{
    background:#0b1828;
    padding:70px 0 25px;
    color:white;
}

.footer-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1fr;
    gap:50px;
    padding-bottom:55px;
}

.footer-brand h4{color:#fff;margin-bottom:22px;}

.footer-brand p{
    color:rgba(255,255,255,.55);
    line-height:2;
    max-width:370px;
    font-size:13px;
}

.footer-col h4{color:#fff;margin-bottom:22px;}

.footer-links{
    list-style:none;
    display:grid;
    gap:12px;
}

.footer-links a{
    color:rgba(255,255,255,.55);
    font-size:13px;
    transition:.3s;
}

.footer-links a:hover{
    color:var(--gold);
    padding-right:6px;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
    padding-top:25px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    color:rgba(255,255,255,.4);
    font-size:12px;
}

/* =========================
   REVEAL & CURSOR
========================= */

.reveal{
    opacity:0;
    transform:translateY(45px);
    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.2,.8,.2,1);
}

.reveal.from-right{transform:translateX(55px);}
.reveal.from-left{transform:translateX(-55px);}
.reveal.scale{transform:scale(.92);}

.reveal.visible{
    opacity:1;
    transform:none;
}

.cursor-glow{
    width:220px;
    height:220px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(209,162,74,.12),transparent 70%);
    pointer-events:none;
    position:fixed;
    top:0;
    left:0;
    transform:translate(-50%,-50%);
    z-index:9999;
    opacity:0;
    transition:opacity .3s;
}

body:hover .cursor-glow{opacity:1;}

/* =========================
   دکمه شناور بازگشت به بالا
========================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    background: var(--navy-deep);
    color: var(--gold-matte);
    border: 1px solid rgba(200, 155, 60, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(21, 34, 56, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold-matte);
    color: var(--navy-deep);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 14px 30px rgba(200, 155, 60, 0.4);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1024px){
    .hero-layout { grid-template-columns: 1fr; }
    .hero-copy { text-align: center; }
    .hero-description { margin-inline: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { max-width: 580px; width: 100%; margin: auto; }
    .after-launch-box { grid-template-columns: 1fr; }
    .after-launch-cards { grid-template-columns: repeat(2, 1fr); }
    .portfolio-split-frame { grid-template-columns: 1fr; }
    .seam-divider { display: none; }
    .content-col { padding: 45px 30px; }
    .stage-col { min-height: 520px; }
    .dna-card { width: 160px; height: 230px; margin: -115px 0 0 -80px; }
    .services .section-title, #why .why-content .section-title { white-space: normal; }
    .journal-layout { grid-template-columns: 1fr; }
}

@media(max-width:1000px){
    .menu{
        position:fixed;
        top:92px;
        right:5%;
        left:5%;
        background:#fff;
        border-radius:24px;
        padding:25px;
        flex-direction:column;
        align-items:flex-start;
        gap:20px;
        box-shadow:0 25px 70px rgba(20,40,65,.14);
        transform:translateY(-20px);
        opacity:0;
        pointer-events:none;
        transition:.35s;
    }

    .menu.active{
        transform:none;
        opacity:1;
        pointer-events:auto;
    }

    .header .nav > .cta{display:none;}
    .mobile-menu-btn{display:flex;}
    .service-grid{grid-template-columns:repeat(2,1fr);}
    .why-layout{grid-template-columns:1fr;}
    .why-visual{min-height:480px;}
    .footer-grid{grid-template-columns:repeat(2,1fr);}
}

@media(max-width:950px){
    .constellation-stage { height: auto; padding: 40px 20px; flex-direction: column; gap: 20px; }
    .lines-svg, .neural-core { display: none; }
    .node-card { position: static; width: 100%; }
    .after-launch-cards { grid-template-columns: 1fr; }
}

@media(max-width:768px){
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 32px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a { width: 100%; }
    .hero-visual { height: 480px; transform: scale(0.85); }
    .pos-3, .pos-7 { display: none; }
}

@media(max-width:700px){
    .nav{min-height:78px;}
    .menu{top:80px;}
    .section{padding:80px 0;}
    .section-head{align-items:flex-start;flex-direction:column;}
    .section-title{font-size:32px;}
    .service-grid{grid-template-columns:1fr;}
    .service-card{min-height:auto;}
    .why-visual{min-height:420px;}
    .why-card{width:84%;right:8%;}
    .stats-grid{padding:25px;grid-template-columns:repeat(2,1fr);gap:30px;}
    .stat:nth-child(2)::after{display:none;}
    .stat strong{font-size:34px;}
    .cta-box{padding:45px 28px;text-align:center;flex-direction:column;}
    .cta-content h2{font-size:32px;}
    .cta-big{width:135px;height:135px;}
    .footer-grid{grid-template-columns:1fr;}
    .footer-bottom{flex-direction:column;text-align:center;}
    .cursor-glow{display:none;}
}

/* =========================
   MOBILE FIXES (v1.2)
========================= */

html, body { max-width: 100%; overflow-x: clip; }
.hero, .services, #why, .portfolio-section, .process, .reviews-section, .academy-section, .cta-section { overflow-x: clip; }

@media(max-width:1024px){
    .hero h1 .line-1, .hero h1 .line-2,
    .portfolio-section .section-title,
    #why .why-title-line-1, #why .why-title-line-2,
    .why-card h3 { white-space: normal; }
    .hero h1 .line-1, .hero h1 .line-2 { font-size: clamp(24px, 6.4vw, 40px); }
}

@media(max-width:768px){
    .hero { min-height: auto; }
    .hero-visual { height: 420px; transform: none; max-width: 100%; overflow: hidden; }
    .visual-orbit { width: min(340px, 86vw); height: min(340px, 86vw); top: 40px; }
    .center-core { width: 200px; height: 200px; }
    .morph-logo-box { width: 130px; height: 130px; }
    .floating-pill { font-size: 11.5px; padding: 8px 12px; }
    .pos-1 { top: 10px; }
    .pos-2 { top: 70px; right: 0; }
    .pos-4 { top: 300px; right: 0; }
    .pos-5 { bottom: 10px; }
    .pos-6 { bottom: 70px; left: 0; }
    .pos-8 { top: 70px; left: 0; }
    .eyebrow { margin-bottom: 28px; font-size: 12px; }
    .hero-description { font-size: 14.5px; }
    .section { padding: 60px 0; }
    .section-title { font-size: clamp(24px, 7vw, 32px); }
    .services .section-title { font-size: clamp(22px, 6vw, 30px); }
    .section-desc { font-size: 14px; }
    .why-layout { gap: 30px; }
    .why-visual { min-height: 400px; }
    .why-card { width: 88%; padding: 24px; }
    .why-card h3 { font-size: 18px; }
    .why-word { font-size: 60px; }
    .portfolio-split-frame { min-height: 0; border-radius: 26px; }
    .content-col { padding: 32px 22px; gap: 24px; }
    .actions-row { flex-direction: column; align-items: stretch; gap: 18px; }
    .cta-btn-portfolio { justify-content: center; }
    .nav-arrows { justify-content: center; }
    .stage-col { min-height: 440px; }
    .ambient-glow { width: 300px; height: 300px; }
    .dna-card { width: 140px; height: 200px; margin: -100px 0 0 -70px; }
    .hint-pill { font-size: 10px; padding: 5px 12px; max-width: 92%; text-align: center; }
    .process { padding: 50px 0 60px; }
    .after-launch-box { padding: 26px 20px; }
    .reviews-section, .academy-section { padding-left: 0; padding-right: 0; }
    .review-card { width: 270px; }
    .journal-promo-wrapper { min-height: 380px; padding: 18px; }
    .journal-promo { padding: 26px 20px; }
    .journal-item { gap: 10px; padding: 16px 8px; }
    .item-arrow { display: none; }
    .btn-view-archive { width: 100%; justify-content: center; }
    .archive-action-wrap { padding: 0; }
    .cta-section { padding: 50px 0; }
    .cta-content h2 { font-size: 26px; }
    footer { padding-top: 50px; }
    .footer-brand a { margin-top: 0 !important; }
    .back-to-top { bottom: 18px; left: 18px; }
}

/* =========================
   MOBILE FIXES (v1.3)
========================= */

/* لایت‌باکس: همیشه وسط صفحه و داخل کادر */
.lightbox-overlay { padding: 16px; cursor: zoom-out; }
.lightbox-img { max-width: min(92vw, 900px); max-height: 85vh; width: auto; height: auto; }

@media(max-width:768px){
    /* هیرو: دایره بالا، حباب‌ها مرتب زیرش (بدون روی‌هم‌افتادن) */
    .hero-visual {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-content: flex-start;
        gap: 10px;
        padding: 310px 4px 10px;
        overflow: visible;
    }
    .visual-orbit { width: 300px; height: 300px; top: -10px; }
    .center-core { width: 200px; height: 200px; top: 40px; left: 50%; margin-left: -100px; }
    .morph-logo-box { width: 130px; height: 130px; top: 75px; left: 50%; margin-left: -65px; }
    .floating-pill,
    .pos-1, .pos-2, .pos-3, .pos-4, .pos-5, .pos-6, .pos-7, .pos-8 {
        position: static;
        animation: none;
        transform: none;
        display: inline-flex;
        font-size: 12px;
        padding: 8px 13px;
    }
    .pos-3, .pos-7 { display: inline-flex; }

    /* چرا رویرا: کارت معلق دقیقاً وسط باکس سرمه‌ای */
    .why-card { right: auto; left: 50%; }
}

@media(max-width:950px){
    /* مسیر همکاری: خط اتصال عمودی بین فازها */
    .constellation-stage { gap: 34px; }
    .constellation-stage .node-card { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: 100%; }
    .node-card:not(.phase-4)::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        height: 34px;
        border-left: 2px dashed var(--gold-matte);
        opacity: .7;
        transform: translateX(-1px);
    }
    .node-card:not(.phase-4)::before {
        content: "";
        position: absolute;
        left: 50%;
        top: calc(100% + 24px);
        width: 8px;
        height: 8px;
        background: var(--gold-matte);
        transform: translateX(-50%) rotate(45deg);
        box-shadow: 0 0 10px var(--gold-glow);
        z-index: 2;
    }
}

/* =========================
   FIXES (v1.4)
========================= */

/* جلوگیری از جابجایی افقی صفحه با کشیدن انگشت */
html { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
body { overflow-x: clip; overscroll-behavior-x: none; }

/* شکل مواج سفید: موج واضح‌تر، مشابه شکل سرمه‌ای */
@keyframes morphWhiteStrong {
    0%   { border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; transform: rotate(-2deg) scale(0.98); }
    50%  { border-radius: 58% 42% 46% 54% / 55% 60% 40% 45%; transform: rotate(1deg) scale(1.02); }
    100% { border-radius: 46% 54% 40% 60% / 42% 54% 46% 58%; transform: rotate(2deg) scale(1); }
}
.morph-logo-box { animation: morphWhiteStrong 6s ease-in-out infinite alternate; }

/* فرم ثبت نظر: همیشه وسط */
.review-modal-backdrop { justify-content: center; align-items: center; }
.review-modal-box { margin: auto; width: 100%; max-width: 480px; }

/* کارت شیشه‌ای خبرنامه: شفاف‌تر تا عکس پس‌زمینه دیده شود */
.journal-promo-wrapper::before { background: rgba(11, 24, 40, 0.30); }
.journal-promo {
    background: rgba(21, 34, 56, 0.24);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.30);
}
.journal-promo h3, .journal-promo p, .journal-label { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }
.newsletter-form { background: rgba(255, 255, 255, 0.16); }

@media(max-width:768px){
    /* دو مدار دور دایره‌ی لوگو */
    .visual-orbit { border-color: rgba(21, 34, 56, 0.16); }
    .visual-orbit::before { inset: 25px; border: 1.5px dashed rgba(200, 155, 60, 0.7); }

    /* تیترها در یک سطر */
    .services .section-title { white-space: nowrap; font-size: 5.2vw; letter-spacing: -0.3px; }
    #process .section-title { white-space: nowrap; font-size: 6.2vw; }

    /* تیتر کارت خبرنامه در دو سطر مشخص */
    .journal-promo h3 span { display: block; }
}
