:root{
    --dz-purple: #31CCBE;
    --dz-purple-deep: #368F8B;
    --dz-purple-light: #7FE3D9;
    --dz-lavender: #E6FBF8;
    --dz-lavender-soft: #F3FDFC;
    --dz-ink: #14302E;
    --dz-ink-soft: #5C7A77;
    --dz-white: #FFFFFF;
    --dz-line: rgba(49,204,190,0.18);
    --dz-shadow-purple: rgba(49,204,190,0.25);
    --radius-card: 24px;
  }

  .dz-section, .dz-section *{box-sizing:border-box; margin:0; padding:0;}

  .dz-section{
    position:relative;
    width:100%;
    min-height:auto;
    background:
      radial-gradient(ellipse 900px 500px at 50% 0%, rgba(49,204,190,0.07), transparent 60%),
      radial-gradient(ellipse 700px 500px at 85% 30%, rgba(127,227,217,0.10), transparent 55%),
      radial-gradient(ellipse 700px 500px at 10% 70%, rgba(49,204,190,0.06), transparent 55%),
      var(--dz-white);
    overflow:hidden;
    padding:90px 24px 70px;
    direction:rtl;
  }

  /* ambient grid texture */
  .dz-grid-bg{
    position:absolute;
    inset:0;
    background-image:
      linear-gradient(rgba(49,204,190,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(49,204,190,0.035) 1px, transparent 1px);
    background-size:64px 64px;
    -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 35%, black 20%, transparent 75%);
    mask-image:radial-gradient(ellipse 80% 60% at 50% 35%, black 20%, transparent 75%);
    pointer-events:none;
  }

  /* ===== HEADER ===== */
  .dz-header{
    position:relative;
    max-width:760px;
    margin:0 auto 24px;
    text-align:center;
    z-index:5;
  }

  .dz-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:600;
    color:var(--dz-purple-deep);
    background:var(--dz-lavender);
    border:1px solid var(--dz-line);
    padding:8px 20px;
    border-radius:999px;
    margin-bottom:24px;
    letter-spacing:0.2px;
  }
  .dz-eyebrow::before{
    content:"";
    width:7px; height:7px;
    border-radius:50%;
    background:var(--dz-purple);
    box-shadow:0 0 0 4px rgba(49,204,190,0.18);
  }

  .dz-title{
    font-size:clamp(32px, 4.4vw, 54px);
    font-weight:800;
    line-height:1.35;
    letter-spacing:-0.5px;
    color:var(--dz-ink);
    margin-bottom:20px;
  }
  .dz-title .accent{
    background:linear-gradient(90deg, var(--dz-purple-deep), var(--dz-purple) 60%, var(--dz-purple-light));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
  }

  .dz-subtitle{
    font-size:clamp(15px, 1.6vw, 18px);
    font-weight:400;
    line-height:1.9;
    color:var(--dz-ink-soft);
    max-width:600px;
    margin:0 auto;
  }

  /* ===== STAGE (house + hotspots) ===== */
  .dz-stage{
    position:relative;
    width:100%;
    max-width:1180px;
    margin:0 auto;
    z-index:3;
  }

  .dz-stage-inner{
    position:relative;
    width:100%;
    aspect-ratio: 880 / 530;
  }

  .dz-house-svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }

  .dz-house-floor-glow{
    position:absolute;
    bottom:2%;
    left:50%;
    transform:translateX(-50%);
    width:78%;
    height:60px;
    background:radial-gradient(ellipse, rgba(49,204,190,0.22), transparent 70%);
    filter:blur(6px);
    z-index:1;
    pointer-events:none;
  }

  /* ===== HOTSPOTS ===== */
  .dz-hotspot{
    position:absolute;
    width:40px;
    height:40px;
    transform:translate(-50%, -50%);
    z-index:25;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .dz-hotspot-ring{
    position:absolute;
    inset:0;
    border-radius:50%;
    background:rgba(49,204,190,0.16);
    animation:dzPulse 2.6s ease-out infinite;
  }
  .dz-hotspot-ring.r2{ animation-delay:0.9s; }

  .dz-hotspot-core{
    position:absolute;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
    width:18px; height:18px;
    border-radius:50%;
    background:linear-gradient(145deg, var(--dz-purple-light), var(--dz-purple));
    box-shadow:
      0 0 0 5px rgba(255,255,255,0.9),
      0 0 0 6px var(--dz-line),
      0 4px 14px rgba(49,204,190,0.45);
    transition:transform .25s ease, box-shadow .25s ease;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .dz-hotspot-core::after{
    content:"";
    width:6px; height:6px;
    border-radius:50%;
    background:#fff;
  }

  .dz-hotspot:hover .dz-hotspot-core,
  .dz-hotspot.active .dz-hotspot-core{
    transform:translate(-50%,-50%) scale(1.18);
    box-shadow:
      0 0 0 6px rgba(255,255,255,0.95),
      0 0 0 7px var(--dz-purple),
      0 6px 20px rgba(49,204,190,0.55);
  }

  .dz-hotspot.active .dz-hotspot-ring{
    background:rgba(49,204,190,0.26);
  }

  @keyframes dzPulse{
    0%{ transform:scale(0.5); opacity:0.9; }
    75%{ transform:scale(2.1); opacity:0; }
    100%{ transform:scale(2.1); opacity:0; }
  }

  .dz-hotspot-label{
    position:absolute;
    top:50%;
    right:calc(100% + 14px);
    transform:translateY(-50%);
    white-space:nowrap;
    background:rgba(20,48,46,0.92);
    color:#fff;
    font-size:12.5px;
    font-weight:500;
    padding:6px 13px;
    border-radius:10px;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
    letter-spacing:0.1px;
  }
  .dz-hotspot-label::after{
    content:"";
    position:absolute;
    top:50%; left:-4px;
    transform:translateY(-50%);
    width:8px; height:8px;
    background:rgba(20,48,46,0.92);
    rotate:45deg;
  }
  .dz-hotspot.label-left .dz-hotspot-label{
    right:auto;
    left:calc(100% + 14px);
  }
  .dz-hotspot.label-left .dz-hotspot-label::after{
    left:auto; right:-4px;
  }

  .dz-hotspot:hover .dz-hotspot-label{
    opacity:1;
  }

  /* connecting line from hotspot to card anchor (svg drawn separately) */

  /* ===== INFO CARD (glass panel) ===== */
  .dz-infocard{
    position:absolute;
    width:272px;
    display:none;
    background:rgba(255,255,255,0.72);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.9);
    border-radius:22px;
    box-shadow:
      0 20px 60px -12px rgba(49,204,190,0.28),
      0 2px 8px rgba(49,204,190,0.08),
      inset 0 1px 0 rgba(255,255,255,0.8);
    padding:22px 22px 20px;
    z-index:20;
    opacity:0;
    transform:translateY(10px) scale(0.97);
    transition:opacity .32s cubic-bezier(.2,.8,.2,1), transform .32s cubic-bezier(.2,.8,.2,1);
    pointer-events:none;
  }
  .dz-infocard.visible{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
  }

  .dz-infocard-icon{
    width:44px; height:44px;
    border-radius:14px;
    background:linear-gradient(145deg, var(--dz-lavender), #fff);
    border:1px solid var(--dz-line);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:21px;
    margin-bottom:14px;
    box-shadow:0 4px 12px rgba(49,204,190,0.12);
  }

  .dz-infocard-title{
    font-size:16.5px;
    font-weight:700;
    color:var(--dz-ink);
    margin-bottom:6px;
  }

  .dz-infocard-tagline{
    font-size:13px;
    color:var(--dz-purple-deep);
    font-weight:500;
    margin-bottom:14px;
    line-height:1.6;
  }

  .dz-infocard-list{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:18px;
  }
  .dz-infocard-list li{
    font-size:13px;
    color:var(--dz-ink-soft);
    display:flex;
    align-items:center;
    gap:8px;
    line-height:1.5;
  }
  .dz-infocard-list li::before{
    content:"";
    flex:none;
    width:5px; height:5px;
    border-radius:50%;
    background:var(--dz-purple);
  }

  .dz-infocard-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-family:inherit;
    font-size:13px;
    font-weight:600;
    color:#fff;
    background:linear-gradient(90deg, var(--dz-purple-deep), var(--dz-purple));
    border:none;
    border-radius:11px;
    padding:10px 18px;
    cursor:pointer;
    box-shadow:0 8px 20px -6px rgba(49,204,190,0.55);
    transition:transform .2s ease, box-shadow .2s ease;
    width:100%;
    justify-content:center;
  }
  .dz-infocard-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px -6px rgba(49,204,190,0.6);
  }
  .dz-infocard-btn svg{ width:14px; height:14px; transition:transform .2s ease; }
  .dz-infocard-btn:hover svg{ transform:translateX(-3px); }

  .dz-infocard-close{
    position:absolute;
    top:14px;
    left:14px;
    width:26px; height:26px;
    border-radius:50%;
    background:rgba(49,204,190,0.08);
    border:none;
    color:var(--dz-ink-soft);
    font-size:14px;
    cursor:pointer;
    display:none;
    align-items:center;
    justify-content:center;
    transition:background .2s ease;
  }
  .dz-infocard-close:hover{ background:rgba(49,204,190,0.18); }

  /* connector line svg overlay */
  .dz-connector-svg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:15;
    overflow:visible;
  }
  .dz-connector-path{
    fill:none;
    stroke:var(--dz-purple);
    stroke-width:1.5;
    stroke-dasharray:4 5;
    opacity:0;
    transition:opacity .3s ease;
  }
  .dz-connector-path.visible{ opacity:0.55; }

  /* ===== mobile-only legend (instead of free-floating cards) ===== */
  .dz-mobile-hint{
    display:none;
    text-align:center;
    font-size:13px;
    color:var(--dz-ink-soft);
    margin-top:18px;
  }

  /* ===== STAT CARDS ===== */
  .dz-stats{
    position:relative;
    z-index:5;
    max-width:920px;
    margin:56px auto 0;
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
  }

  .dz-stat-card{
    position:relative;
    background:rgba(255,255,255,0.6);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,0.9);
    border-radius:var(--radius-card);
    padding:32px 28px;
    text-align:center;
    box-shadow:
      0 16px 40px -16px rgba(49,204,190,0.22),
      inset 0 1px 0 rgba(255,255,255,0.8);
    transition:transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
    animation:dzFloat 6s ease-in-out infinite;
  }
  .dz-stat-card:nth-child(2){ animation-delay:0.6s; }
  .dz-stat-card:nth-child(3){ animation-delay:1.2s; }

  .dz-stat-card:hover{
    transform:translateY(-8px);
    box-shadow:0 24px 50px -16px rgba(49,204,190,0.32);
  }

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

  .dz-stat-number{
    font-size:clamp(30px, 3.4vw, 40px);
    font-weight:800;
    background:linear-gradient(90deg, var(--dz-purple-deep), var(--dz-purple));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    margin-bottom:8px;
    letter-spacing:-0.5px;
  }

  .dz-stat-label{
    font-size:14.5px;
    font-weight:500;
    color:var(--dz-ink-soft);
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 880px){
    .dz-stats{ grid-template-columns:1fr; max-width:380px; gap:16px; margin-top:56px; }
    .dz-section{ padding:70px 16px 60px; min-height:auto; }
    .dz-header{ margin-bottom:40px; }
  }

  @media (max-width: 760px){
    .dz-stage-inner{ aspect-ratio: 880/530; }
    .dz-hotspot{ width:38px; height:38px; }
    .dz-hotspot-core{ width:17px; height:17px; }
    .dz-hotspot-label{ display:none; }
    .dz-connector-svg{ display:none; }
    .dz-mobile-hint{ display:block; }
  }

  @media (prefers-reduced-motion: reduce){
    .dz-hotspot-ring{ animation:none; }
    .dz-stat-card{ animation:none; }
  }

  /* ===== DETAIL MODAL ===== */
  .dz-modal-overlay{
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(10,30,28,0.55);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    transition:opacity .28s ease, visibility .28s;
  }
  .dz-modal-overlay.open{
    opacity:1;
    visibility:visible;
  }

  .dz-modal{
    position:relative;
    width:100%;
    max-width:680px;
    max-height:88vh;
    overflow-y:auto;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    border:1px solid rgba(255,255,255,0.9);
    border-radius:28px;
    box-shadow:0 30px 80px -16px rgba(49,204,190,0.35), 0 4px 16px rgba(20,48,46,0.10);
    transform:translateY(24px) scale(0.96);
    transition:transform .32s cubic-bezier(.2,.8,.2,1);
    direction:rtl;
    font-family:'Vazirmatn', sans-serif;
  }
  .dz-modal-overlay.open .dz-modal{
    transform:translateY(0) scale(1);
  }

  .dz-modal-close{
    position:absolute;
    top:18px;
    left:18px;
    z-index:5;
    width:38px; height:38px;
    border-radius:50%;
    background:rgba(255,255,255,0.85);
    border:1px solid var(--dz-line);
    color:var(--dz-ink);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
  }
  .dz-modal-close:hover{ background:#fff; transform:rotate(90deg); }
  .dz-modal-close svg{ width:18px; height:18px; }

  .dz-modal-visual{
    position:relative;
    width:100%;
    height:200px;
    border-radius:28px 28px 0 0;
    overflow:hidden;
    background:
      radial-gradient(ellipse 360px 200px at 30% 20%, rgba(49,204,190,0.35), transparent 60%),
      radial-gradient(ellipse 320px 220px at 80% 80%, rgba(54,143,139,0.30), transparent 60%),
      linear-gradient(135deg, #0E332F, #163F3C);
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .dz-modal-visual svg{ width:120px; height:120px; }

  .dz-modal-body{
    padding:28px 32px 32px;
  }

  .dz-modal-icon{
    width:52px; height:52px;
    border-radius:16px;
    background:linear-gradient(145deg, var(--dz-lavender), #fff);
    border:1px solid var(--dz-line);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    margin-top:-50px;
    margin-bottom:16px;
    position:relative;
    z-index:2;
    box-shadow:0 8px 20px rgba(49,204,190,0.18);
  }

  .dz-modal-title{
    font-size:24px;
    font-weight:800;
    color:var(--dz-ink);
    margin-bottom:8px;
  }

  .dz-modal-tagline{
    font-size:15px;
    font-weight:600;
    color:var(--dz-purple-deep);
    margin-bottom:14px;
  }

  .dz-modal-desc{
    font-size:14.5px;
    line-height:1.95;
    color:var(--dz-ink-soft);
    margin-bottom:22px;
  }

  .dz-modal-features{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:22px;
  }
  .dz-modal-feature{
    display:flex;
    align-items:flex-start;
    gap:10px;
    background:var(--dz-lavender-soft);
    border:1px solid var(--dz-line);
    border-radius:14px;
    padding:12px 14px;
  }
  .dz-modal-feature-icon{
    flex:none;
    width:28px; height:28px;
    border-radius:9px;
    background:linear-gradient(145deg, var(--dz-purple-light), var(--dz-purple));
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
  }
  .dz-modal-feature-icon svg{ width:15px; height:15px; }
  .dz-modal-feature-text{
    font-size:13px;
    line-height:1.6;
    color:var(--dz-ink);
    font-weight:500;
  }

  .dz-modal-stat{
    display:flex;
    align-items:center;
    gap:14px;
    background:linear-gradient(90deg, rgba(49,204,190,0.08), rgba(49,204,190,0.02));
    border:1px solid var(--dz-line);
    border-radius:16px;
    padding:14px 18px;
    margin-bottom:24px;
  }
  .dz-modal-stat-number{
    font-size:26px;
    font-weight:800;
    color:var(--dz-purple-deep);
    white-space:nowrap;
  }
  .dz-modal-stat-label{
    font-size:13px;
    color:var(--dz-ink-soft);
    line-height:1.6;
  }

  .dz-modal-actions{ display:flex; }
  .dz-modal-cta{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    font-family:inherit;
    font-size:14.5px;
    font-weight:700;
    color:#fff;
    text-decoration:none;
    background:linear-gradient(90deg, var(--dz-purple-deep), var(--dz-purple));
    border-radius:14px;
    padding:15px 20px;
    box-shadow:0 10px 24px -6px rgba(49,204,190,0.5);
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .dz-modal-cta:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px -6px rgba(49,204,190,0.55);
  }

  body.dz-modal-lock{ overflow:hidden; }

  @media (max-width: 560px){
    .dz-modal-overlay{ padding:0; align-items:flex-end; }
    .dz-modal{
      max-width:100%;
      max-height:92vh;
      border-radius:28px 28px 0 0;
      transform:translateY(100%);
    }
    .dz-modal-overlay.open .dz-modal{ transform:translateY(0); }
    .dz-modal-visual{ height:150px; border-radius:28px 28px 0 0; }
    .dz-modal-visual svg{ width:90px; height:90px; }
    .dz-modal-body{ padding:24px 20px 28px; }
    .dz-modal-features{ grid-template-columns:1fr; }
    .dz-modal-title{ font-size:21px; }
  }

  /* focus visibility for accessibility */
  .dz-hotspot:focus-visible .dz-hotspot-core,
  .dz-infocard-btn:focus-visible,
  .dz-infocard-close:focus-visible,
  .dz-modal-close:focus-visible,
  .dz-modal-cta:focus-visible{
    outline:2px solid var(--dz-purple-deep);
    outline-offset:3px;
  }